Skip to content

Commit

Permalink
Tweak: better naming for playerHealthMax
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleHato committed Sep 5, 2023
1 parent 7c21827 commit c24fe89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void from_json(const json& j, PlayerData& playerData) {
j.at("damageEffect").get_to(playerData.damageEffect);
j.at("damageValue").get_to(playerData.damageValue);
j.at("playerHealth").get_to(playerData.playerHealth);
j.at("playerHealthMax").get_to(playerData.playerHealthCapacity);
j.at("playerHealthCapacity").get_to(playerData.playerHealthCapacity);
}

void to_json(json& j, const PlayerData& playerData) {
Expand All @@ -68,7 +68,7 @@ void to_json(json& j, const PlayerData& playerData) {
{ "damageEffect", playerData.damageEffect },
{ "damageValue", playerData.damageValue },
{ "playerHealth", playerData.playerHealth },
{ "playerHealthMax", playerData.playerHealthCapacity },
{ "playerHealthCapacity", playerData.playerHealthCapacity },
};

}
Expand Down

0 comments on commit c24fe89

Please sign in to comment.