Added Agriculture tech - no gameplay change, but it does tell the game's story well!

This commit is contained in:
Yair Morgenstern 2018-06-24 21:19:57 +03:00
parent afd712c1c9
commit a56e7e43aa
5 changed files with 19 additions and 4 deletions

View File

@ -1,4 +1,17 @@
[
{
columnNumber: 0,
era:"Ancient",
techCost: 20,
buildingCost:40,
techs:[
{
name:"Agriculture",
row:5,
}
]
},
{
columnNumber: 1,
era:"Ancient",

View File

@ -4,6 +4,7 @@
terrainsCanBeBuiltOn:["Plains","Grassland","Desert","Flood plains"],
food:1,
turnsToBuild:7,
techRequired:"Agriculture",
improvingTech:"Fertilizer",
improvingTechStats:{food:1}
},

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.game"
minSdkVersion 14
targetSdkVersion 26
versionCode 91
versionName "2.5.5.2"
versionCode 92
versionName "2.5.6"
}
buildTypes {
release {

View File

@ -118,6 +118,7 @@ class CivilizationInfo {
constructor(civName: String, startingLocation: Vector2, gameInfo: GameInfo) {
this.civName = civName
this.gameInfo = gameInfo
tech.techsResearched.add("Agriculture")
this.placeUnitNearTile(startingLocation, "Settler")
this.placeUnitNearTile(startingLocation, "Scout")
}

View File

@ -33,10 +33,10 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo) : PickerScreen()
init {
techsToResearch = ArrayList(civTech.techsToResearch)
val techMatrix = Array<Array<Technology?>>(17) { arrayOfNulls(10) } // Divided into columns, then rows
val techMatrix = Array<Array<Technology?>>(18) { arrayOfNulls(10) } // Divided into columns, then rows
for (technology in GameBasics.Technologies.values) {
techMatrix[technology.column!!.columnNumber - 1][technology.row - 1] = technology
techMatrix[technology.column!!.columnNumber][technology.row - 1] = technology
}
for (i in 0..9) {