Skip to content

Commit

Permalink
Add Ranged Timer for the Centurion
Browse files Browse the repository at this point in the history
Add Ranged Timer for the Centurion
  • Loading branch information
romaniac01 committed Dec 29, 2023
1 parent 103910e commit be025ef
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions db/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,11 @@ const templates = {
icon: "DamageRanged",
sort: 84
},
AttackCooldownRangedAttack: {
name: "Ranged Attack Cooldown",
icon: "BuildPoints",
sort: 62
},
ScaleByContainedUnitsRangedAttack: {
name: "Damage scales with units inside",
icon: "DamageRanged",
Expand Down
3 changes: 3 additions & 0 deletions db/units/convert-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ function convertTactic(tactic, stats, inactiveActions) {
inactiveActions.push("PerfectAccuracy")
}
}
if (tactic.timer !== null) {
stats["AttackCooldown" + tactic.anim] = parseFloat(tactic.timer)
}
if (tactic.activeIfContainsUnits === "1") {
stats["AttackIfContainsUnits" + tactic.anim] = 1
if(inactiveActions.includes("DamageRanged")){
Expand Down
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://unitstats.projectceleste.com</loc><lastmod>2023-12-19T21:36:51.106Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://unitstats.projectceleste.com</loc><lastmod>2023-12-29T19:11:22.256Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>
2 changes: 1 addition & 1 deletion src/data/effects.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/units.json

Large diffs are not rendered by default.

0 comments on commit be025ef

Please sign in to comment.