mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Resolved #1177 - Great Improvements now provide Strategic resources
APK no longer bundles maps in assets
This commit is contained in:
parent
bde11941c5
commit
8d58702d80
@ -41,7 +41,7 @@ android {
|
|||||||
release {
|
release {
|
||||||
// Don't add local save files and fonts to release, obviously
|
// Don't add local save files and fonts to release, obviously
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
ignoreAssetsPattern "!SaveFiles:!fonts"
|
ignoreAssetsPattern "!SaveFiles:!fonts:!maps"
|
||||||
}
|
}
|
||||||
|
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
@ -51,7 +51,7 @@ android {
|
|||||||
debug {
|
debug {
|
||||||
// Don't add local save files and fonts to release, obviously
|
// Don't add local save files and fonts to release, obviously
|
||||||
aaptOptions {
|
aaptOptions {
|
||||||
ignoreAssetsPattern "!SaveFiles:!fonts"
|
ignoreAssetsPattern "!SaveFiles:!fonts:!maps"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,9 @@ class CityInfo {
|
|||||||
for (tileInfo in getTiles().filter { it.resource != null }) {
|
for (tileInfo in getTiles().filter { it.resource != null }) {
|
||||||
val resource = tileInfo.getTileResource()
|
val resource = tileInfo.getTileResource()
|
||||||
if(resource.revealedBy!=null && !civInfo.tech.isResearched(resource.revealedBy!!)) continue
|
if(resource.revealedBy!=null && !civInfo.tech.isResearched(resource.revealedBy!!)) continue
|
||||||
if (resource.improvement == tileInfo.improvement || tileInfo.isCityCenter()){
|
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())){
|
||||||
var amountToAdd = 1
|
var amountToAdd = 1
|
||||||
if(resource.resourceType == ResourceType.Strategic){
|
if(resource.resourceType == ResourceType.Strategic){
|
||||||
amountToAdd = 2
|
amountToAdd = 2
|
||||||
|
@ -25,7 +25,9 @@ open class PopupTable(val screen: CameraStageBaseScreen): Table(CameraStageBaseS
|
|||||||
screen.stage.addActor(this)
|
screen.stage.addActor(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
open fun close(){ remove() }
|
open fun close() {
|
||||||
|
remove()
|
||||||
|
}
|
||||||
|
|
||||||
fun addGoodSizedLabel(text: String): Cell<Label> {
|
fun addGoodSizedLabel(text: String): Cell<Label> {
|
||||||
val label = text.toLabel()
|
val label = text.toLabel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user