Add basic transport load/unload#936
Conversation
stavrosfa
left a comment
There was a problem hiding this comment.
Good stuff, I can imagine this being a slight pain to work out 😅
I have encountered some bugs and such, but i mostly think these can be attributed to the fact that anything can be loaded into anything with enough capacity. Should be ok once this is implemented.
stavrosfa
left a comment
There was a problem hiding this comment.
Not a whole lot of comments. I think this looks mostly done,
I would still like the Load/Unload special actions to be a part of this, but if you don't intend to add them here, please add a TODO, and you could also link this PR and my comments so it's quite clear what needs to be done in the future.
I agree, would be nice to have these. Happy to look into it, but I think the base ruleset needs cleaning up first. Otherwise it's a bit of a hassle to cherry-pick the right |
# Conflicts: # C7/Lua/game_modes/base-ruleset.json
|
Thanks for taking a look. I'll look into (1) and (2). (3) might one be one for the Civ experts on Discord to weigh in on. I wonder if a test could be created via editor by giving player character a city with transports and units, then setting up the scene in-game, and then back in editor handing over the city and units to opponent. (4) seems like a useful quality of life upgrade. (5) is not implemented, but as you say, I loaded up the flags: feels like a nice first issue for a new contributor. Indeed (4) and (5) together could be nice issue, maybe with (3) as well, if we get agreement on the behaviour. |
|
(1) and (2) implemented |



Add basic support for transport mechanic: loading and unloading units from a vehicle with transport capacity.
move(..)to allow load/unloadmove(..)so transports can move other unitsL/U)Manual
Loading and Unloading
You can have a ship wait until it is loaded to capacity with units by clicking the Load order or pressing [L]. Boarding a
ship uses up all a unit’s movement points for the turn. If you attempt to move a naval unit into a land square that does not contain a port city, any passengers who have not already moved this turn are offered the option to disembark and make landfall. You can also order a ship to unload all its passengers by clicking the Unload order or pressing [L].
Demo