Make cross-type templates behave more sensibly, like legacy#2496
Make cross-type templates behave more sensibly, like legacy#2496GinjaNinja32 wants to merge 4 commits into
Conversation
daid
left a comment
There was a problem hiding this comment.
In general, I think this is the wrong direction. The templates are not designed for cross-use like this. And I much rather see some simple checks in :setTemplate() to check for certain odd combinations and report that. (like having both player and ai_controller, or an ai_controller and energy/coolant)
|
Updated. |
Two example cases:
PlayerSpaceship():setTemplate("MT52 Hornet")("Player"), a player ship with a "CPU ship" templateCpuShip():setTemplate("MP52 Hornet")("CPU"), a CPU ship with a "player ship" templatePlayerCPUPlayerCPUPlayerCPUPlayerCPUPlayerCPUPlayerCPU