MagisterCultuum
Great Sage
I asked that you be able to assign the damage type that affinity grants separately in the unit/promotion xml instead of having it always be set to the same type for a particular resource. I also asked that you be able to grant different amounts of affinity strength through attack and defense (for example, a unit could get +1 attack and -1 defense per each body mans owned), and maybe even affinity that grants not strength, but movement points. (I was also wanting the ability to change things like the percentage bonus against other unitcombats/promotions, the chances a unit would turn barbarian, the changes a promotion would expire, and the ability to grant fractional affinity (rounded or truncated before actually applied, or course. Granting, say, 1/3 affinity would be nice, but wouldn't be noticed until you had at least 3 of a particular resource), etc. I think that all but the part about being able to assign a fractional affinity is likely more trouble than its worth). I suggested the idea, and CXDamian came wrote an example of the possible xml:
@IEATCRAYONS: do you need more elaboration on this?
@Magister
Changing it to something like this?
Where 'Change' are percentages of the base value(-100 or higher). So for two air mana and a melee unit with 10/10(just to keep it simple) and 2 movement would change the unit to 10 melee +2 cold damage offense / 8 defense and 5 movement. movement: ((.25*2)*2)+(1*2) +2 ((movementChange*mana)*base)+(affinity*mana)+baseCode:<BonusAffinities> <BonusAffinity> <BonusType>BONUS_MANA_AIR</BonusType> <DamageType>DAMAGE_COLD</DamageType> <iAffinityCombat>1</iAffinityCombat> <iAffinityCombatDefense>0</iAffinityCombatDefense> <iAffinityCombatChange>0</iAffinityCombatChange> <iAffinityCombatDefenseChange>-10</iAffinityCombatDefenseChange> <iAffinityMovement>1</iAffinityMovement> <iAffinityMovementChange>25</iAffinityMovementChange> </BonusAffinity> </BonusAffinities>
Modifying the % chances in the promotions(barbarian, miscast, etc) is a bit beyond me atm. I think it will take far more effort then the benefits though.