Skip to content

Commit

Permalink
load correct stat_hp_mods (CleverRaven#65055)
Browse files Browse the repository at this point in the history
The code was incorrectly overriding the strength modifier with the perception modifier and not writing anything to the perception modifier.
  • Loading branch information
guijan authored Apr 15, 2023
1 parent 105643d commit b0146f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bodypart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ void stat_hp_mods::load( const JsonObject &jsobj )
optional( jsobj, was_loaded, "str_mod", str_mod, 3.0f );
optional( jsobj, was_loaded, "dex_mod", dex_mod, 0.0f );
optional( jsobj, was_loaded, "int_mod", int_mod, 0.0f );
optional( jsobj, was_loaded, "per_mod", str_mod, 0.0f );
optional( jsobj, was_loaded, "per_mod", per_mod, 0.0f );

optional( jsobj, was_loaded, "health_mod", health_mod, 0.0f );
}
Expand Down

0 comments on commit b0146f2

Please sign in to comment.