mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Added link to Patreon
Units upgrading to units with built-in promotions now get those promotions
This commit is contained in:
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 |
@ -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())){
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user