Page 1 of 1

War tiring

Posted: Thu Dec 14, 2017 12:24 pm
by Lachu
The idea is about make citizen unhappy due to war.

There should exist new code, which makes n citizens unhappy for some turns, when:
- City lost military unit (for example n = 3)
- Military unit, which home is some city, is far away (n = 1 per 10 title) (maybe restrict this effect only to situation, when military unit is placed outside borders)
- Enemy's in city border (for example n = 4 per one aggressive unit)

Re: War tiring

Posted: Thu Dec 14, 2017 8:13 pm
by GriffonSpade
Yeah, I suggested something like this some time ago. Citizens being unhappy, panicky, and violent just makes sense when you've got enemies in striking range of your city.
As for unhappiness from losing military units, there's sadly no infrastructure to support it. How would the game remember for X turns that a unit from city Y was killed? We need some kind of floating temporary property holders that can be used by effects. Achievements are a good start, but they only work for permanent things. The next step would be achievement-type tokens that have an expiration after X number of turns and whose expirations are refreshed each time they are achieved.

Re: War tiring

Posted: Thu Dec 14, 2017 10:52 pm
by Lachu
Thanks for replying.

I think implementing second point wouldn't be so difficult. Only calculate distance of unit from home city or from city where unit was build. We makes citizens unhappy for distance only if unit is not in friendly territory and can double effect if unit are in another continent.