This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void statFinal(int defense_initial, int stat_initial, int stat_min_max[2],int defense_final); | |
float fitValue(int defense); | |
void statFinal(int defense_initial, int stat_initial, int stat_min_max[2], int defense_final=335) | |
{ | |
stat_min_max[0] = floor((stat_initial+1.0)*fitValue(defense_final)/fitValue(defense_initial)); //max | |
stat_min_max[1] = floor((stat_initial)*fitValue(defense_final)/fitValue(defense_initial)); //min | |
}; |