Unciv/android
Aron de Jong cd58f6ace8
Refund wasted production as gold (#4058)
* Refund wasted production as gold

Any wasted production, from for instance a partially completed wonder or
obsolete units, will now be refunded as gold (in a 1:1 ratio).

We update both at the start and end of the user turn. Updating at the
start to account for wonders completed after our previous turn and
updating at the end to account for obsolete buildings/units as a
consequence of our own turn.

When obsolete units get replaced by their upgraded version (as in civ 5)
this code should probably be updated.

* Implement wonder refund and obsolete unit upgrade

If a wonder is built somewhere else but the user has production in this
wonder, the production will be refunded as gold in a 1:1 ratio. A
notification will be shown to indicate this. This reflects the behaviour
in Civ 5.

If a unit becomes obsolete and an upgrade is available, the production
put into this unit will now be transferred to the upgraded version. If
the unit is queued, the queued unit will also be changed to the new
version and the user will be notified via notification.

* Shorten notification messages

* Update alerts: been obsolete -> become obsolete
2021-06-07 22:04:33 +03:00
..
assets Refund wasted production as gold (#4058) 2021-06-07 22:04:33 +03:00
Images Unit swapping (#4049) 2021-06-06 22:56:25 +03:00
ImagesToNotAddToGame Organized non-game images (icon, feature and promo graphics etc) 2019-02-14 21:44:25 +02:00
ImagesToPackSeparately Added the paratrooper unit (#4025) 2021-06-03 07:33:38 +03:00
res First attempt at making Unciv Android-TV-compatible 2020-12-01 23:26:01 +02:00
src/com/unciv/app Follow screen rotation even to Portrait on Android with Opt-in (#3936) 2021-05-19 23:27:23 +03:00
AndroidManifest.xml Follow screen rotation even to Portrait on Android with Opt-in (#3936) 2021-05-19 23:27:23 +03:00
build.gradle.kts New SDK versions, gradle properties, and androidx - this seems to solve the previous problems! 2021-05-08 23:24:57 +03:00
ic_launcher-web.png
proguard-rules.pro Remove gdx-box2d from build files because it isn't used (#2595) 2020-05-08 08:05:26 +03:00
project.properties Initial commit 2017-11-22 00:09:35 +02:00