Move the allowed formations from cmpIdentity to cmpUnitAI.
commit14f64123218a40b119172197d509bf2683c879ba
authorFreagarach <Freagarach@3db68df2-c116-0410-a063-a993310a9797>
Sun, 23 Jan 2022 07:23:44 +0000 (23 07:23 +0000)
committerFreagarach <Freagarach@3db68df2-c116-0410-a063-a993310a9797>
Sun, 23 Jan 2022 07:23:44 +0000 (23 07:23 +0000)
tree3badce32cb86625048c197a9b7dd0cd6e6eece70
parent702ec21887f409c3fcafd0338df26ff402f5a03d
Move the allowed formations from cmpIdentity to cmpUnitAI.

One needs UnitAI to be able to use a formation, so include the spec therein (to keep information close to where it is used).
Modders can change their templates with the following script: https://code.wildfiregames.com/P261.

Differential revision: https://code.wildfiregames.com/D4443
Comments by: @Stan
Idea accepted by: @wraitii
Fixes: #6399

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@26235 3db68df2-c116-0410-a063-a993310a9797
41 files changed:
binaries/data/mods/public/gui/session/selection_panels.js
binaries/data/mods/public/simulation/components/GuiInterface.js
binaries/data/mods/public/simulation/components/Identity.js
binaries/data/mods/public/simulation/components/UnitAI.js
binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
binaries/data/mods/public/simulation/components/tests/test_Identity.js
binaries/data/mods/public/simulation/helpers/Commands.js
binaries/data/mods/public/simulation/templates/mixins/hoplite.xml
binaries/data/mods/public/simulation/templates/template_unit.xml
binaries/data/mods/public/simulation/templates/template_unit_catafalque.xml
binaries/data/mods/public/simulation/templates/template_unit_cavalry.xml
binaries/data/mods/public/simulation/templates/template_unit_cavalry_ranged.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_cavalry.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_cavalry_archer.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_cavalry_crossbowman.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_cavalry_javelineer.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_archer.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_crossbowman.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_javelineer.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_pikeman.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_spearman.xml
binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_swordsman.xml
binaries/data/mods/public/simulation/templates/template_unit_fauna.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_cavalry.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_cavalry_archer.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_cavalry_crossbowman.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_cavalry_javelineer.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_infantry_archer.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_infantry_crossbowman.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_infantry_javelineer.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_infantry_pikeman.xml
binaries/data/mods/public/simulation/templates/template_unit_hero_infantry_spearman.xml
binaries/data/mods/public/simulation/templates/template_unit_infantry_melee.xml
binaries/data/mods/public/simulation/templates/template_unit_infantry_melee_pikeman.xml
binaries/data/mods/public/simulation/templates/template_unit_infantry_ranged.xml
binaries/data/mods/public/simulation/templates/template_unit_ship.xml
binaries/data/mods/public/simulation/templates/template_unit_support_elephant.xml
binaries/data/mods/public/simulation/templates/template_unit_support_female_citizen.xml
binaries/data/mods/public/simulation/templates/template_unit_support_trader.xml
binaries/data/mods/public/simulation/templates/units/plane.xml
binaries/data/mods/public/simulation/templates/units/rome/infantry_spearman_b.xml