Yeah, I knew that buildings could not calc. That code I put is for a tactical regen spell used in combat which I am curious if it will work.
I was curious if there was possibly another way to do it with cities. As in using a multiplier. For example I have seen resources multiplied like this:
<GameModifier>
<ModType>ResourceMultiplier</ModType>
<Attribute>Gold</Attribute>
<Value>1.2</Value>
<PerTurn>1</PerTurn>
<Provides>+20% Gildar</Provides>
<UpgradeComparisonID>2</UpgradeComparisonID>
</GameModifier>
Regen looks like this:
<GameModifier>
<ModType>City</ModType>
<Attribute>AdjustDefendingUnit</Attribute>
<StrVal>UnitStat_HealthRegen</StrVal>
<Value>5</Value>
<Operator>+</Operator>
<PerTurn>1</PerTurn>
<Provides>Heals 5 Hit Points per Week to all stationed units</Provides>
</GameModifier>
So maybe if a UnitStat_HealthRegenMultiplier could be made, not sure.
So if that could be made somehow then maybe:
<GameModifier>
<ModType>City</ModType>
<Attribute>AdjustDefendingUnit</Attribute>
<StrVal>UnitStat_HealthRegenMultiplier</StrVal>
<Value>1.25</Value>
<PerTurn>1</PerTurn>
<Provides>Heals 25% health per week</Provides>
</GameModifier>
But yeah, I don't think that is possible heh.