Max life point.

This commit is contained in:
Pcornat 2022-01-10 21:28:29 +01:00
parent 1a07874ff2
commit 67967051f2
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0
2 changed files with 12 additions and 1 deletions

View File

@ -8,12 +8,19 @@
#include <cstdint>
namespace character::characteristic {
class Endurance {
class Endurance final {
private:
const std::uint32_t base{ 2 };
std::uint32_t carac{ 0 };
std::uint32_t materiel{ 0 };
std::uint32_t additional{ 0 };
public:
Endurance() noexcept = default;
~Endurance() noexcept = default;
[[nodiscard]] std::uint32_t get_max_lp() const noexcept;
};
}

View File

@ -1 +1,5 @@
#include "characteristic/endurance.hpp"
std::uint32_t character::characteristic::Endurance::get_max_lp() const noexcept {
return (base + carac + materiel + additional) * 3;
}