mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Bugfixes
This commit is contained in:
@ -121,7 +121,7 @@
|
||||
improvingTechStats:{production:1}
|
||||
},
|
||||
{
|
||||
name:"Customs House",
|
||||
name:"Customs house",
|
||||
gold:4,
|
||||
improvingTech:"Economics",
|
||||
improvingTechStats:{gold:1}
|
||||
|
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.game"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 26
|
||||
versionCode 54
|
||||
versionName "2.1.4"
|
||||
versionCode 55
|
||||
versionName "2.1.5"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
@ -39,8 +39,8 @@ class GameInfo {
|
||||
// maybe one of them has a wonder that affects the stats of all the rest of the cities
|
||||
|
||||
for (civInfo in civilizations.filterNot { it.isPlayerCivilization() }){
|
||||
Automation().automateCivMoves(civInfo)
|
||||
civInfo.startTurn()
|
||||
Automation().automateCivMoves(civInfo)
|
||||
}
|
||||
|
||||
if(turns%10 == 0){ // every 10 turns add a barbarian in a random place
|
||||
|
@ -31,7 +31,7 @@ class CityExpansionManager {
|
||||
cultureStored -= getCultureToNextTile()
|
||||
|
||||
val chosenTile = getNewTile()
|
||||
cityInfo.tiles.add(chosenTile!!.position)
|
||||
if(chosenTile!=null) cityInfo.tiles.add(chosenTile!!.position)
|
||||
}
|
||||
|
||||
fun getNewTile(): TileInfo? {
|
||||
|
@ -31,8 +31,7 @@ object ImageGetter {
|
||||
textureRegionByFileName[fileName] = TextureRegion(texture)
|
||||
}
|
||||
} catch (ex: Exception) {
|
||||
print("File $fileName not found!")
|
||||
throw ex
|
||||
throw Exception("File $fileName not found!",ex)
|
||||
}
|
||||
|
||||
return textureRegionByFileName[fileName]!!
|
||||
|
@ -13,6 +13,7 @@ import com.unciv.logic.map.UnitType
|
||||
import com.unciv.ui.cityscreen.addClickListener
|
||||
import com.unciv.ui.tilegroups.WorldTileGroup
|
||||
import com.unciv.ui.utils.HexMath
|
||||
import com.unciv.ui.utils.fromRGB
|
||||
|
||||
class TileMapHolder(internal val worldScreen: WorldScreen, internal val tileMap: TileMap, internal val civInfo: CivilizationInfo) : ScrollPane(null) {
|
||||
internal var selectedTile: TileInfo? = null
|
||||
@ -113,7 +114,7 @@ class TileMapHolder(internal val worldScreen: WorldScreen, internal val tileMap:
|
||||
}
|
||||
|
||||
for (tile in attackableTiles.filter { it.unit!=null && it.unit!!.owner != unit.owner && civViewableTiles.contains(it)})
|
||||
tileGroups[tile]!!.showCircle(Color(237/255f,41/255f,57/255f,1f))
|
||||
tileGroups[tile]!!.showCircle(Color().fromRGB(237,41,57))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ class UnitActions {
|
||||
tile.unit = null // destroy!
|
||||
},unit.currentMovement != 0f)
|
||||
actionList += UnitAction( "Construct Customs House",
|
||||
constructImprovementAndDestroyUnit(tile, "Customs House"),
|
||||
constructImprovementAndDestroyUnit(tile, "Customs house"),
|
||||
unit.currentMovement != 0f)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user