SWY1985 / CivOne

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

Game keeps resetting city shield placement every turn #387

Closed axx0 closed 7 years ago

axx0 commented 7 years ago

In just one city.

AlexFolland commented 7 years ago

I am guessing this happens when an enemy unit is near that city. Was an enemy unit near that city?

Anyway, this doesn't happen in Civilization unless the enemy unit ends its turn on top of a worker-assigned tile, and Civilization only relocates that one tile to the most optimal tile among available tiles.

axx0 commented 7 years ago

No enemy was there. I placed production from 3 tiles to 3 other tiles and the game resets this every turn. This didn't happen in my 2nd city.

SWY1985 commented 7 years ago

The mechanism is still not working correctly... sorry about that. At the moment, the game resets the resources when an enemy is moving nearby. This is obviously not correct. I will try to implement it more like @AlexFolland says here.