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

@ -132,7 +132,7 @@ class CityInfo {
val improvement = GameBasics.TileImprovements[resource.improvement!!]!!
if(improvement.techRequired!=null && !civInfo.tech.isResearched(improvement.techRequired!!)) continue
}
if (resource.improvement == tileInfo.improvement || tileInfo.isCityCenter()
// Per https://gaming.stackexchange.com/questions/53155/do-manufactories-and-customs-houses-sacrifice-the-strategic-or-luxury-resources
|| (resource.resourceType==ResourceType.Strategic && tileInfo.containsGreatImprovement())){

View File

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

View File

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