MODIFIER_SINGLE_CITY_GRANT_YIELD_PER_UNIT_COST Arguments

Aldollin

Chieftain
Joined
Mar 7, 2017
Messages
87
so i was trying out the new modifiertype that is used in the macedonia/persia dlc:
MODIFIER_SINGLE_CITY_GRANT_YIELD_PER_UNIT_COST
it is used to grant 25% of a units production cost as science everytime a unit is trained in the city with macedons unique building and unsurprisingly its arguments are
YieldType: YIELD_SCIENCE and UnitProductionPercent: 25

so i wanted to some the same with 10% of the units production cost as faith, used the same modifiertype do make a modifier with arguments
YieldType: YIELD_FAITH and UnitProductionPercent: 10, go into game, build a slinger (cost 35 production)
and get 10.5 faith from that
..which is 30% of 35, not 10% of 35

after that i tried some different numbers for UnitProductionPercent, and none of it makes sense to me
has anyone used that modifier (for faith?) and got some results that make sense?
 
did some more testing, these are the stats:
x is the value i put as UnitProductionPercent
y is (faith gained from producing a warrior)/(production cost of a warroir) aka, how much percent of the cost i got as faith
 

Attachments

  • UnitProductionPercentStats.PNG
    UnitProductionPercentStats.PNG
    94.5 KB · Views: 87
did some more testing, these are the stats:
x is the value i put as UnitProductionPercent
y is (faith gained from producing a warrior)/(production cost of a warroir) aka, how much percent of the cost i got as faith

Well somebody screwed up really badly somewhere lol
 
the actual percentage you get is 600/(x+5) where x is what you put as UnitProductionPercent
at least that fits my data perfectly
 
Back
Top Bottom