diff options
author | hop311 <hop3114@gmail.com> | 2023-12-23 19:26:05 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-12-23 19:26:05 +0100 |
commit | 8a33982e543b7fb8c09be90ebadb33fe7f99b52f (patch) | |
tree | 0fb82e22b383996606ef6adc3e92c42d85bc6777 /src/openvic-simulation/military | |
parent | 14e47d58b85f657ec1fed8abf88219f09bd3efbb (diff) |
Fixed TGC compatibility + misc cleanup
Diffstat (limited to 'src/openvic-simulation/military')
-rw-r--r-- | src/openvic-simulation/military/Unit.cpp | 4 |
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); |