diff --git a/include/character_sheet.hpp b/include/character_sheet.hpp index d885131..6b278ec 100644 --- a/include/character_sheet.hpp +++ b/include/character_sheet.hpp @@ -92,6 +92,8 @@ namespace character { [[nodiscard]] std::uint32_t get_damage() const { return damage; } + [[nodiscard]] std::uint32_t get_critique() const { return critique; } + [[nodiscard]] std::uint32_t get_glory() const { return glory; } [[nodiscard]] std::uint32_t get_money() const { return money; } @@ -111,6 +113,7 @@ namespace character { j.at("health_point").get_to(billy.health_point); j.at("armor").get_to(billy.armor); j.at("damage").get_to(billy.damage); + j.at("critique").get_to(billy.critique); j.at("glory").get_to(billy.glory); j.at("money").get_to(billy.money); j.at("nb_weapons").get_to(billy.nb_weapons); @@ -130,6 +133,7 @@ namespace character { j.emplace("health_point", billy.get_health_point()); j.emplace("armor", billy.get_armor()); j.emplace("damage", billy.get_damage()); + j.emplace("critique", billy.get_critique()); j.emplace("glory", billy.get_glory()); j.emplace("money", billy.get_money()); j.emplace("nb_weapons", billy.get_nb_weapons());