SWY1985 / CivOne

An open source implementation of Sid Meier's Civilization.
http://www.civone.org/
Creative Commons Zero v1.0 Universal
245 stars 49 forks source link

Moving from city built on top of railroad to railroad tile costs movement points #335

Closed AlexFolland closed 7 years ago

AlexFolland commented 7 years ago

In Civilization, if a city is built on top of a railroad, the railroad remains and moving from or to that tile from or to a railroad tile does not cost movement points.

SWY1985 commented 7 years ago

Are you sure? I'm pretty sure you lose 1/3 moves after exiting a city.

AlexFolland commented 7 years ago

This is specifically a city built on top of a railroad; that is, one that already had a railroad on the tile before the city was built. The city does not destroy that railroad tile and you get the full benefit from it. The city only adds irrigation in that case, as it can't add a road.

AlexFolland commented 7 years ago

I made a little demonstration video with one of my old saves. It shows building a city on top of a railroad area, moving around on it without losing movement points, and that "RailRoad" is displayed in the tile information when the unit is on it. The version depicted is 475.01.

http://lex.clansfx.co.uk/requested/CivOnerailroadcity.mkv

Sorry that it's ~11MB instead of lower. I forgot to use point scaling in OBS for the DOSBox window. Future captures will be smaller.

AlexFolland commented 7 years ago

Oh, the video also shows that the city tile gains the extra resources benefit from the railroad improvement, gaining 4 food per turn instead of 3. That's related to https://github.com/SWY1985/CivOne/issues/331.

AlexFolland commented 7 years ago

I noticed another component of this issue is that cities with railroad connected to them say "RailRoad" when a unit is standing on them, even if a railroad was not built on that tile before the city was founded.

SWY1985 commented 7 years ago

It's an observation misinterpretation on my side, I'm looking at the best way to solve this... I believe the eventual solution will be less complex that the current implementation.

AlexFolland commented 7 years ago

I'm sure this would be solved with your simpler implementation, but I've just observed that another symptom is that a city with railroad built beside it that dies leaves a railroad on the tile where it was built, even if no railroad was built there before it was founded.

Edit: Oh, and those railroads don't count as railroads or even roads. They are just dead slowing tiles that can't be upgraded with roads any more.