aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/military/Unit.cpp')
-rw-r--r--src/openvic-simulation/military/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/military/Unit.cpp b/src/openvic-simulation/military/Unit.cpp
index 98fe392..0862741 100644
--- a/src/openvic-simulation/military/Unit.cpp
+++ b/src/openvic-simulation/military/Unit.cpp
@@ -204,6 +204,8 @@ bool UnitManager::generate_modifiers(ModifierManager& modifier_manager) const {
ret &= modifier_manager.register_complex_modifier(identifier);
+ stat_modifier("_attack", true, RAW_DECIMAL);
+ stat_modifier("_defence", true, RAW_DECIMAL);
stat_modifier("_default_organisation", true, RAW_DECIMAL);
stat_modifier("_maximum_speed", true, RAW_DECIMAL);
stat_modifier("_build_time", false, INT);
@@ -212,8 +214,6 @@ bool UnitManager::generate_modifiers(ModifierManager& modifier_manager) const {
switch (type) {
case Unit::type_t::LAND:
stat_modifier("_reconnaissance", true, RAW_DECIMAL);
- stat_modifier("_attack", true, RAW_DECIMAL);
- stat_modifier("_defence", true, RAW_DECIMAL);
stat_modifier("_discipline", true, PROPORTION_DECIMAL);
stat_modifier("_support", true, PROPORTION_DECIMAL);
stat_modifier("_maneuver", true, INT);