Skip to content

Commit

Permalink
Fix Persian Storehouse Healing
Browse files Browse the repository at this point in the history
Fix Persian Storehouse Healing
  • Loading branch information
romaniac01 committed Jul 5, 2023
1 parent 5a4a137 commit 1743421
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 9 additions & 0 deletions db/units/convert-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,15 @@ function convertTactic(tactic, stats, inactiveActions) {
}
if (tactic.affectsTargetsInCombat === "") {
const healType = "Rate" + tactic.name.text
if (tactic.active === "0") {
inactiveActions.push(healType + "InCombat")
inactiveActions.push("MaximumRange" + tactic.name.text)
}
if (!stats[healType]) {
stats[healType] = parseFloat(tactic.rate[0].text)
stats[healType + "InCombat"] = parseFloat(tactic.rate[0].text)
stats["MaximumRange" + tactic.name.text] = parseFloat(tactic.maxRange)
}
stats[healType + "InCombat"] = stats[healType]
delete stats[healType]
}
Expand Down
11 changes: 6 additions & 5 deletions src/components/Stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,6 @@ export default {
affectedStats.push("MaximumRange2")
affectedStats.push("DamageBonusBuildingRangedAttack2")
break
case "Heal":
affectedStats.push("RateHeal")
affectedStats.push("MaximumRangeHeal")
affectedStats.push("HealArea")
break
case "AreaHeal":
affectedStats.push("RateAreaHealInCombat")
affectedStats.push("MaximumRangeAreaHeal")
Expand All @@ -300,6 +295,12 @@ export default {
delete stats["MaximumRangeHeal"]
delete stats["HealArea"]
break
case "Heal":
affectedStats.push("RateHeal")
affectedStats.push("RateHealInCombat")
affectedStats.push("MaximumRangeHeal")
affectedStats.push("HealArea")
break
case "Charge":
affectedStats.push("ChargeDamageMultiplier")
affectedStats.push("ChargeRange")
Expand Down
2 changes: 1 addition & 1 deletion src/data/units.json

Large diffs are not rendered by default.

0 comments on commit 1743421

Please sign in to comment.