mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-10 19:09:06 +07:00
Added Agriculture tech - no gameplay change, but it does tell the game's story well!
This commit is contained in:
parent
afd712c1c9
commit
a56e7e43aa
@ -1,4 +1,17 @@
|
||||
[
|
||||
{
|
||||
columnNumber: 0,
|
||||
era:"Ancient",
|
||||
techCost: 20,
|
||||
buildingCost:40,
|
||||
techs:[
|
||||
{
|
||||
name:"Agriculture",
|
||||
row:5,
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
columnNumber: 1,
|
||||
era:"Ancient",
|
||||
|
@ -4,6 +4,7 @@
|
||||
terrainsCanBeBuiltOn:["Plains","Grassland","Desert","Flood plains"],
|
||||
food:1,
|
||||
turnsToBuild:7,
|
||||
techRequired:"Agriculture",
|
||||
improvingTech:"Fertilizer",
|
||||
improvingTechStats:{food:1}
|
||||
},
|
||||
|
@ -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 {
|
||||
|
@ -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")
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user