1 | | Ships can't be garrissoned anywhere. Therefore the button is useless and should be removed for ships. |
| 1 | Some units can't be garrissoned anywhere and have incoherent garrisson usage: |
| 2 | |
| 3 | * '''Ships''' can't be garrissoned anywhere. |
| 4 | Whether or not they should (for example in the carthaginian military dock) is a design question. In case we go with that, it should be done in another ticket. |
| 5 | |
| 6 | * '''Sheep''' |
| 7 | Currently `UnitAI` can't deal with garrisoning animals. Hence it has a hardcoded disabling of animals. The GUI still draws the garrison cursor for sheep, which should not happen. |
| 8 | |
| 9 | * The '''worker elephant''' can be garrisoned in temples, towers, outposts and other buildings that don't make sense (see #3611). It should be coherent with '''war-elephants''', i.e. garrisonable only in buildings that make sense (#3135) or nowhere. |
| 10 | |
| 11 | Due to these circumstances it seems appropriate to add a new boolean property `IsGarrisonable` to the '''templates''' which is true for all units except for those mentioned above. |
| 12 | If that property is false, the garrison '''cursor and button should be hidden'''. |
| 13 | |
| 14 | Besides making those three cases coherent and fixing the worker elephant bug, it will also ease future edits (prohibiting garrisoning of some units). |