Archers now require Archery (as should be!)

This commit is contained in:
Yair Morgenstern 2018-06-14 21:00:44 +03:00
parent 2df88c8517
commit c815863124
4 changed files with 11 additions and 11 deletions

View file

@ -13,7 +13,7 @@
Romanian:"Runda"
}
"in "{ // As in "Opera House in 3 turns"
"in ":{ // As in "Opera House in 3 turns"
}
@ -97,7 +97,7 @@
}
"Science":{
Italian:"Scienza"
Russian:"Наука
Russian:"Наука"
French:"Science"
Romanian:"Ştiinţă"
}
@ -205,22 +205,22 @@
}
// Notifications
" has grown"{ // eg Alexandria has grown
" has grown":{ // eg Alexandria has grown
}
" is starving"{
" is starving":{
}
" has expanded its borders"{ // eg Alexandria has grown
" has expanded its borders":{ // eg Alexandria has grown
}
"An enemy "{
"An enemy ":{
}
" has attacked our "{ // eg Alexandria has grown
" has attacked our ":{ // eg Alexandria has grown
}
" has destroyed our "{ // eg Alexandria has grown
" has destroyed our ":{ // eg Alexandria has grown
}

View file

@ -45,7 +45,7 @@
rangedStrength:7,
cost: 40,
hurryCostModifier:20
requiredTech:"Ranged",
requiredTech:"Archery",
obsoleteTech:"Machinery",
upgradesTo:"Crossbowman"
},

View file

@ -85,7 +85,7 @@ class Automation {
chosenUnit = combatUnits.filter { it.unitType== UnitType.Ranged }.maxBy { it.cost }!!
else{ // randomize type of unit and takee the most expensive of its kind
val chosenUnitType = combatUnits.map { it.unitType }.distinct().getRandom()
val chosenUnitType = combatUnits.map { it.unitType }.distinct().filterNot{it==UnitType.Scout}.getRandom()
chosenUnit = combatUnits.filter { it.unitType==chosenUnitType }.maxBy { it.cost }!!
}

View file

@ -74,7 +74,7 @@ class CivilopediaScreen : CameraStageBaseScreen() {
buttonClicked()
}
buttonTable.add(button).width(button.width * 0.7f)
buttonTable.add(button)
}
val sp = ScrollPane(nameList)