diff options
author | 2023-12-24 13:44:48 +0100 | |
---|---|---|
committer | 2023-12-24 13:44:48 +0100 | |
commit | f036506b88af02508242f279ca29b743ef713976 (patch) | |
tree | 0fb82e22b383996606ef6adc3e92c42d85bc6777 /src/openvic-simulation/military | |
parent | 14e47d58b85f657ec1fed8abf88219f09bd3efbb (diff) | |
parent | 8a33982e543b7fb8c09be90ebadb33fe7f99b52f (diff) |
Merge pull request #102 from OpenVicProject/tgc-compat
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); |