Disable docks on landmaps
|Reported by:||elexis||Owned by:|
|Priority:||If Time Permits||Milestone:||Backlog|
|Component:||UI – In-game||Keywords:|
Buildings like docks, carthaginian shipyard, briton island settlement and the ptolemian lighthouse can only be built in water. Hence showing these buttons in the construction panel is wrong since it will be impossible to build it. Instead the buttons could be hidden.
There is a similar mechanism, the
DisabledTemplates which allows map authors to exclude buildings like the lighthouse, as it might be inappropriate for some maps.
There could be a new optional boolean setting
hasWater specified by the JSON map file.
If it's given and false (i.e. not
undefined), building these water-buildings would become impossible in the gui. (A simulation check could be done in theory, but shouldn't be needed as the buildings can't be built due to the wrong terrain.)
The buildings to be disabled can be identified by
shore (as defined in
(Notice this can change the order of the buttons which may confuse players. But this is already case with the
DisabledTemplates approach and f.e. the tower icon being displayed in another place for the spartan woman than the spartan men.
Hotkeys should also not use the numerical index, but become assigned to actual classes.)