OpenXcom Forum
Modding => Released Mods => XPiratez => Topic started by: firat28 on April 21, 2022, 10:26:24 pm
-
I dont understand the meaning of Normalized. Can you please help me calculate this exemple please?
Bra: 50
Moral: 90
Freshness: 44
Armor Calculation is: -3 -10 +0,0888 Bra - 0,1777 Morale + 14 x Normalized Freshness
My Calculation is: -3 -10 +0,0888 x 50 - 0,1777 x 90 + (14 x 44 /100 ) = 18
But next turn is see that Morale decreases to 76 from 90 and it makes not 18 but 14
What did i do wrong ?
-
Normalized is a value between 0 and 1, representing a percentage of how full a stat is. You get it by dividing Current stat by Full stat (or however you wanna call it).
In your case, your Current Freshness is 44, and Full Freshness is, like, 59? So 44 / 59 = 0.75. 75% full.
14 x 0.75 = 10.5.
-3 -10 +4.44 -15.993 + 10.5 = -14.053
-
That answer is super satifying
Thank you very much