Mana Regeneration question

I can't seem to get this to work on an item.

 

The only references to Mana Regeneration in the files that I can find are:

UnitStat_ManaRegen (Overland)

UnitStat_TacticalManaRegen (Tactical)

A_CoreManaRegeneration Seems to be faction default mana regen

A_ManaRegeneration seems to be racial default mana regen

 

Especially since with the Tower of Ereog, you have code like this

Code: xml
  1.  <GameModifier>
  2.       <ModType>Player</ModType>
  3.       <Attribute>AbilityBonus</Attribute>
  4.       <StrVal>A_ManaRegeneration</StrVal>
  5.       <Value>2</Value>
  6.       <Provides>+2 Mana Regeneration</Provides>
  7.     </GameModifier>

Which supposedly modifies the whole faction/race

 

This seems like the right one,

 

Code: xml
  1.   <UnitStatType InternalName="UnitStat_ManaRegen">
  2.     <DisplayName>Mana Regeneration</DisplayName>
  3.     <DisplayNameShort>MGEN</DisplayNameShort>
  4.     <Description>Unit regenerates this amount of mana per turn.</Description>
  5.     <Icon>ManaRegen_Stat_Icon.png</Icon>
  6.     <Hidden>1</Hidden>
  7.     <AffectPerLevelUpPoint>0.0</AffectPerLevelUpPoint>
  8.   </UnitStatType>

 

So something like this should work.

 

Code: xml
  1.    
  2. <GameModifier>
  3.       <ModType>Unit</ModType>
  4.       <Attribute>AdjustUnitStat</Attribute>
  5.       <StrVal>UnitStat_ManaRegen</StrVal>
  6.       <Value>5.00</Value>
  7.     </GameModifier>

 

But it doesn't.

 

Suggestions or ideas?

4,017 views 6 replies
Reply #1 Top

It is my understanding that UnitStat_ManaRegen does not work at this time.

Reply #2 Top

That seems to be the case, but units currently rgenerate 1 mana per turn. Unless that is due to A_CoreManaRegeneration & A_ManaRegeneration.

Reply #3 Top

It's due to A_ManaRegeneration, but obviously that affects the entire faction

Reply #4 Top

Where is A_ManaRegeneration located?

Reply #5 Top

A_ stats can be controlled from Sovereign pre-game BonusAbility, and ImprovementType. A_ManaRegeneration can also be controlled from RaceConfigs.

It is possible that there are more ways to control it, but I do not know them.

Reply #6 Top

The A_ManaRegeneration (NOT the coremanaregen, which appears to do nothing) will work in the raceconfigs file. You need to add it for all races if you want to avoid unbalancing. I initially put it at 3, but it actually made my sov a little too powerful early in the game. I put on 2 now and makes magic much more useable while still requiring some thought about how you use it. It will apply to your champions as well. Not sure how this will interact with the later techs that boost mana regen.