Added link to Patreon

Units upgrading to units with built-in promotions now get those promotions
This commit is contained in:
Yair Morgenstern 2019-10-28 21:24:04 +02:00
parent 827af89498
commit f80b0ee777
5 changed files with 501 additions and 482 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -146,6 +146,11 @@ class WorldScreenCommunityTable(val worldScreen: WorldScreen) : PopupTable(world
remove() remove()
} }
addButton("Patreon"){
Gdx.net.openURI("https://github.com/yairm210/UnCiv")
remove()
}
addCloseButton() addCloseButton()
open() open()

View File

@ -94,7 +94,7 @@ class UnitActions {
newunit.health = unit.health newunit.health = unit.health
newunit.promotions = unit.promotions newunit.promotions = unit.promotions
for(promotion in unit.baseUnit.promotions) for(promotion in newunit.baseUnit.promotions)
if(promotion !in newunit.promotions.promotions) if(promotion !in newunit.promotions.promotions)
newunit.promotions.addPromotion(promotion, true) newunit.promotions.addPromotion(promotion, true)