Commit without knowing what was changed
This commit is contained in:
parent
92575d7d08
commit
20bfb96171
2 changed files with 57 additions and 51 deletions
|
@ -17,7 +17,8 @@
|
|||
|
||||
namespace character {
|
||||
class CharacterSheet;
|
||||
namespace characteristic{
|
||||
|
||||
namespace characteristic {
|
||||
class Characteristic;
|
||||
}
|
||||
|
||||
|
@ -27,18 +28,18 @@ namespace character {
|
|||
using container = std::unordered_map<billyEnums, billyObjects>;
|
||||
|
||||
static constexpr std::array<billyEnums, 12> all_objects{
|
||||
weapons::Sword,
|
||||
weapons::Lance,
|
||||
weapons::Morgenstern,
|
||||
weapons::Bow,
|
||||
equipments::Chainmail,
|
||||
equipments::CookingPot,
|
||||
equipments::PamphletTourist,
|
||||
equipments::MedicKit,
|
||||
tools::Fourche,
|
||||
tools::Dagger,
|
||||
tools::RockClimbingKit,
|
||||
tools::SackOfGrain,
|
||||
weapons::Sword,
|
||||
weapons::Lance,
|
||||
weapons::Morgenstern,
|
||||
weapons::Bow,
|
||||
equipments::Chainmail,
|
||||
equipments::CookingPot,
|
||||
equipments::PamphletTourist,
|
||||
equipments::MedicKit,
|
||||
tools::Fourche,
|
||||
tools::Dagger,
|
||||
tools::RockClimbingKit,
|
||||
tools::SackOfGrain,
|
||||
};
|
||||
|
||||
static constexpr std::string_view json_key{ "billy_objects" };
|
||||
|
@ -61,9 +62,7 @@ namespace character {
|
|||
|
||||
[[nodiscard]] const std::minus<std::uint32_t> &get_minus_operation() const { return minus; }
|
||||
|
||||
static void check_dagger_conditions(const CharacterSheet &sheet,
|
||||
characteristic::Characteristic &localHabilete,
|
||||
const std::function<std::uint32_t(std::uint32_t, std::uint32_t)> &operation);
|
||||
static void check_dagger_conditions(CharacterSheet &sheet);
|
||||
|
||||
private:
|
||||
std::plus<std::uint32_t> plus;
|
||||
|
@ -71,12 +70,12 @@ namespace character {
|
|||
std::minus<std::uint32_t> minus;
|
||||
|
||||
static void change_carac(const billyObjects &arg,
|
||||
CharacterSheet &sheet,
|
||||
characteristic::Characteristic &localHabilete,
|
||||
characteristic::Characteristic &localAdresse,
|
||||
characteristic::Characteristic &localEndurance,
|
||||
characteristic::Characteristic &localChance,
|
||||
const std::function<std::uint32_t(std::uint32_t, std::uint32_t)> &operation) noexcept;
|
||||
CharacterSheet &sheet,
|
||||
characteristic::Characteristic &localHabilete,
|
||||
characteristic::Characteristic &localAdresse,
|
||||
characteristic::Characteristic &localEndurance,
|
||||
characteristic::Characteristic &localChance,
|
||||
const std::function<std::uint32_t(std::uint32_t, std::uint32_t)> &operation) noexcept;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue