Translations:Difficulty scaling/32/en: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
Importing a new version from external source
 
Importing a new version from external source
 
Line 1: Line 1:
Interestingly, the game calculates a single point value based on the kill counter flags but calculates two separate values for weapons and enemies with two different multipliers. This format makes it possible to easily change the scaling.
Interestingly, the game calculates a single point value based on the kill counter flags but calculates two separate values for weapons and enemies with two different multipliers. This format makes it possible to easily change the scaling.
<source lang="c++">
float points = 0.0;
for (kill_flag : this->byml["flag"])
    int kill_count = GameData::getIntegerFlag(kill_flag["name"]);
    points += kill_count * kill_flag["point"];

Latest revision as of 05:40, 11 May 2020

Interestingly, the game calculates a single point value based on the kill counter flags but calculates two separate values for weapons and enemies with two different multipliers. This format makes it possible to easily change the scaling.