mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Added link to Patreon
Units upgrading to units with built-in promotions now get those promotions
This commit is contained in:
parent
827af89498
commit
f80b0ee777
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 |
@ -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()
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user