ReggieB
Chieftain
- Joined
- Mar 28, 2018
- Messages
- 36
Hi all, I'm working on a mod that will allow some, but not all, units to move onto mountain tiles. So I thought a good approach would be to mimic the way units are prevented from entering ocean tiles until certain conditions are met. Allowing all units to move onto mountains is easy enough, simply by changing the "impassable" tag to false. And fortunately, the game modifier "MODIFIER_PLAYER_UNITS_ADJUST_VALID_TERRAIN" can allow some units to move on certain terrain only if the requirements are met, just like ocean tiles.
However, I'm struggling to find the game element that actually prevents units from moving onto ocean tiles in the first place. As far as I can tell, ocean tiles are passable, and there is no modifier preventing units from entering them. So how does the base game actually prevent ocean navigation, and how would I mimic that effect for mountain tiles? I'd appreciate any suggestions, thanks!
However, I'm struggling to find the game element that actually prevents units from moving onto ocean tiles in the first place. As far as I can tell, ocean tiles are passable, and there is no modifier preventing units from entering them. So how does the base game actually prevent ocean navigation, and how would I mimic that effect for mountain tiles? I'd appreciate any suggestions, thanks!