Skip to content

Conversation

@armed-and-grangerous
Copy link

This branch adds the Unique "Only available <if [Stable] is constructed>" to all units with the "Can only be built <in cities with a [Stable]>" Unique.

Per https://yairm210.github.io/Unciv/Modders/uniques, the difference between the two is that "Only available" will also block Upgrade actions, whereas "Can only be built" will not.

With this, it's impossible to upgrade a Horseman to a Hussar (for example) if the city with the Stable has been lost since the Horseman was constructed.

One note: this uses the "is constructed" conditional, like the Mechanized Worker and Legion and Marine and NBC Infantry and Spec Ops and Black Ops and Cannon and Anti-Tank Gun and Artillery and Machine Gun and Anti-Aircraft Gun and Armored Car and Tank and Rocket Artillery and Missile Vehicle and Helicopter and Fighter and Bomber and Light Drone and Attack Boat and Destroyer and Battleship and Missile Cruiser and Carrier and Submarine. As in those cases, this means that units can be upgraded anywhere in your territory, as long as you have the building constructed somewhere. (The conditionals "<in cities with a [Stable]>", "<in [Horses] tiles>", "<in [Pasture] tiles>". "<in tiles adjacent to [Horses] tiles>". "<in tiles adjacent to [Pasture] tiles>" , and "<within [1] tiles of a [Pasture]>" do not seem to work for restricting further.) (https://yairm210.github.io/Unciv/Modders/uniques)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant