Cleaner includes
This commit is contained in:
parent
1f18499228
commit
e2d598d5d0
7 changed files with 17 additions and 17 deletions
|
@ -1,9 +1,5 @@
|
|||
//
|
||||
// Created by postaron on 23/02/24.
|
||||
//
|
||||
#include "billy_objects.hpp"
|
||||
#include <spdlog/spdlog.h>
|
||||
#include "characteristic/characteristic.hpp"
|
||||
#include "characteristic.hpp"
|
||||
#include "character_sheet.hpp"
|
||||
|
||||
std::uint32_t constexpr const_hash(const char *input) {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include "character_sheet.hpp"
|
|
@ -3,6 +3,7 @@
|
|||
//
|
||||
|
||||
#include "generic_object.hpp"
|
||||
#include "characteristic.hpp"
|
||||
|
||||
namespace character {
|
||||
using characteristic::characType;
|
||||
|
@ -30,7 +31,7 @@ namespace character {
|
|||
|
||||
std::uint32_t Weapons::add_damage() const noexcept { return type == weapons::Morgenstern ? 1 : 0; }
|
||||
|
||||
std::int32_t Weapons::add_materiel(const characteristic::characType inType) const noexcept {
|
||||
std::int32_t Weapons::add_materiel(const characteristic::characType &inType) const noexcept {
|
||||
switch (type) {
|
||||
case weapons::Sword:
|
||||
if (inType == characType::Habilete) {
|
||||
|
@ -93,7 +94,7 @@ namespace character {
|
|||
|
||||
std::uint32_t Equipments::add_damage() const noexcept { return 0; }
|
||||
|
||||
std::int32_t Equipments::add_materiel(const characteristic::characType inType) const noexcept {
|
||||
std::int32_t Equipments::add_materiel(const characteristic::characType &inType) const noexcept {
|
||||
switch (type) {
|
||||
case equipments::Chainmail:
|
||||
if (inType == characType::Habilete ||
|
||||
|
@ -129,7 +130,7 @@ namespace character {
|
|||
|
||||
std::uint32_t Tools::add_damage() const noexcept { return 0; }
|
||||
|
||||
std::int32_t Tools::add_materiel(const characteristic::characType inType) const noexcept {
|
||||
std::int32_t Tools::add_materiel(const characteristic::characType &inType) const noexcept {
|
||||
switch (type) {
|
||||
case tools::Fourche:
|
||||
switch (inType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue