As seen below we have a ManaFromKills UnitStat. Is it possible to add a new UnitStat that gives another resource from kills instead of Mana? I don't understand how modding UnitStats works since they don't appear to contain active code of any type. If it is not possible can you get a resources from kills or victories another way?
<DisplayName>Mana From Kills</DisplayName>
<Description>Amount of mana this unit melee recovers when killing an enemy unit.</Description>
I also have tried modding the Heroic trait xml to give research instead of prestige, but it leads to the CorePlayerAbilities file which once again does not appear to have active code.
If anyone has any ideas on how to help I would be very appreciative.