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

@ -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) {