Adding critique getter

This commit is contained in:
Pcornat 2026-03-18 14:41:13 +01:00
commit 5632d417b8
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD

View file

@ -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());