aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/LeaderTrait.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-19 20:02:25 +0200
committer hop311 <hop3114@gmail.com>2024-07-19 20:02:25 +0200
commit03647d2249f72b6545628bb844685f87c4581062 (patch)
tree435dde45bb17dc12e74cc79bd5f25cc7a7ef8dca /src/openvic-simulation/military/LeaderTrait.hpp
parenta673f89bb2705826b1c646365eab1775727372b7 (diff)
Cleanup: inheritance, const movable variables, code formattingformat-cleanup
Diffstat (limited to 'src/openvic-simulation/military/LeaderTrait.hpp')
-rw-r--r--src/openvic-simulation/military/LeaderTrait.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/openvic-simulation/military/LeaderTrait.hpp b/src/openvic-simulation/military/LeaderTrait.hpp
index 7dd5217..65f45f8 100644
--- a/src/openvic-simulation/military/LeaderTrait.hpp
+++ b/src/openvic-simulation/military/LeaderTrait.hpp
@@ -1,23 +1,22 @@
#pragma once
-#include <cstdint>
#include <string_view>
#include "openvic-simulation/misc/Modifier.hpp"
#include "openvic-simulation/dataloader/NodeTools.hpp"
#include "openvic-simulation/types/IdentifierRegistry.hpp"
-#include "openvic-simulation/types/fixed_point/FixedPoint.hpp"
namespace OpenVic {
struct LeaderTraitManager;
- struct LeaderTrait : HasIdentifier {
+ struct LeaderTrait : Modifier {
friend struct LeaderTraitManager;
enum class trait_type_t { PERSONALITY, BACKGROUND };
private:
const trait_type_t PROPERTY(trait_type);
+
/*
* Allowed modifiers for leaders:
* attack - integer
@@ -30,7 +29,6 @@ namespace OpenVic {
* experience - %
* reliability - decimal, mil gain or loss for associated POPs
*/
- const ModifierValue PROPERTY(modifiers);
LeaderTrait(std::string_view new_identifier, trait_type_t new_type, ModifierValue&& new_modifiers);