Skip to content

Commit

Permalink
HP regen softcoding for Classic ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
ec429 authored and jwrober committed Feb 3, 2022
1 parent 11d4d48 commit 40dd5d3
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions data/classic/effects.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,34 @@ reqs =
type = "Tech_Upkeep_Free"
value = 3

; Basic HP regen. Not for helis, as they have hp_loss_pct=10
; All unit-types' hitpoints are divisible by 10, so no need to worry about rounding
[effect_hp_regen_base]
type = "HP_Regen"
value = 10
reqs =
{ "type", "name", "range", "present"
"UnitClass", "Helicopter", "Local", FALSE
}

; When hardcoded, effect_hp_regen_base was applied after the HP_Regen_Min
[effect_hp_regen_min_base]
type = "HP_Regen_Min"
value = 10
reqs =
{ "type", "name", "range", "present"
"UnitClass", "Helicopter", "Local", FALSE
}

; Units in cities regenerate at least 1/3 of their HP regardless
[effect_hp_regen_min_city]
type = "HP_Regen_Min"
value = 34
reqs =
{ "type", "name", "range"
"CityTile", "Center", "Local"
}

; Fortress HP regen
[effect_fortress_hp_regen]
type = "HP_Regen"
Expand All @@ -136,6 +164,23 @@ reqs =
"Activity", "Fortified", "Local"
}

[effect_fortified_hp_regen]
type = "HP_Regen"
value = 10
reqs =
{ "type", "name", "range"
"Activity", "Fortified", "Local"
}

; When hardcoded, effect_fortified_hp_regen was applied after the HP_Regen_Min
[effect_fortified_hp_regen_min]
type = "HP_Regen_Min"
value = 10
reqs =
{ "type", "name", "range"
"Activity", "Fortified", "Local"
}

[effect_city_fortified]
type = "Fortify_Defense_Bonus"
value = 50
Expand Down

0 comments on commit 40dd5d3

Please sign in to comment.