rlcevg / CircuitAI

Spring RTS local native AI
GNU General Public License v2.0
19 stars 20 forks source link

`disableduntis` modoption: handle regular names #49

Closed sprunk closed 6 years ago

sprunk commented 7 years ago

The disabledunits modoption handles both internal (eg. cloakraid) and regular (eg. Glaive) names but Circuit only works with the internal name.

https://github.com/rlcevg/CircuitAI/blob/0fd548daccc76665ae89e8d1a6304da9c2382b7d/src/circuit/setup/SetupManager.cpp#L61

Some regular names may map to multiple internal ones (eg Assault Commander -> dynassault1, dynassault2...) in which case they are all supposed to be disabled. I think no such unit is buildable though.

sprunk commented 6 years ago

Chobby will do the conversion to internal names in its modoption interface.