Added Iroquois civilization
This commit is contained in:
parent
bad10370de
commit
d645ae4478
16 changed files with 621 additions and 557 deletions
BIN
android/Images/BuildingIcons/Longhouse.png
Normal file
BIN
android/Images/BuildingIcons/Longhouse.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 489 B |
BIN
android/Images/UnitIcons/Mohawk Warrior.png
Normal file
BIN
android/Images/UnitIcons/Mohawk Warrior.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 1 MiB After Width: | Height: | Size: 1 MiB |
|
@ -333,14 +333,14 @@
|
||||||
production:2,
|
production:2,
|
||||||
specialistSlots:{production:1},
|
specialistSlots:{production:1},
|
||||||
hurryCostModifier:25,
|
hurryCostModifier:25,
|
||||||
percentStatBonus:{production:15},
|
percentStatBonus:{production:10},
|
||||||
requiredTech:"Metal Casting"
|
requiredTech:"Metal Casting"
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
{
|
{
|
||||||
name:"Longhouse",
|
name:"Longhouse",
|
||||||
replaces:"Workshop",
|
replaces:"Workshop",
|
||||||
uniqueTo:"Iroquois",
|
uniqueTo:"Iroquois",
|
||||||
|
cost:140,
|
||||||
maintenance:2,
|
maintenance:2,
|
||||||
production:2,
|
production:2,
|
||||||
specialistSlots:{production:1},
|
specialistSlots:{production:1},
|
||||||
|
@ -348,7 +348,6 @@
|
||||||
uniques:["Forests provide +1 production"],
|
uniques:["Forests provide +1 production"],
|
||||||
requiredTech:"Metal Casting"
|
requiredTech:"Metal Casting"
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
{
|
{
|
||||||
name:"Forge",
|
name:"Forge",
|
||||||
maintenance:1,
|
maintenance:1,
|
||||||
|
|
|
@ -542,7 +542,6 @@
|
||||||
"Rason","Gyeongju","Chungju","Sacheon","Gimje","Anju"]
|
"Rason","Gyeongju","Chungju","Sacheon","Gimje","Anju"]
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
|
||||||
{
|
{
|
||||||
name:"Iroquois",
|
name:"Iroquois",
|
||||||
leaderName:"Hiawatha",
|
leaderName:"Hiawatha",
|
||||||
|
@ -571,7 +570,7 @@
|
||||||
afterPeace:"I thank you for your mercy. I pray that we can now be friends."
|
afterPeace:"I thank you for your mercy. I pray that we can now be friends."
|
||||||
tradeRequest:"Does this trade work for you, my friend?"
|
tradeRequest:"Does this trade work for you, my friend?"
|
||||||
|
|
||||||
outerColor:[88,109,109],
|
outerColor:[54,72,72],
|
||||||
innerColor:[246,205,137],
|
innerColor:[246,205,137],
|
||||||
uniqueName:"The Great Warpath"
|
uniqueName:"The Great Warpath"
|
||||||
unique:"All units move through Forest and Jungle tiles in friendly territory as if it is Road. These tiles can be used to establish City Connections upon researching the Wheel.",
|
unique:"All units move through Forest and Jungle tiles in friendly territory as if it is Road. These tiles can be used to establish City Connections upon researching the Wheel.",
|
||||||
|
@ -580,6 +579,8 @@
|
||||||
"Chondote","Canajoharie","Nedrow","Oneida Lake","Kanonwalohale","Green Bay","Southwold","Mohawk Valley",
|
"Chondote","Canajoharie","Nedrow","Oneida Lake","Kanonwalohale","Green Bay","Southwold","Mohawk Valley",
|
||||||
"Schoharie","Bay of Quinte","Kanawale","Kanatsiokareke","Tyendinaga","Hahta"]
|
"Schoharie","Bay of Quinte","Kanawale","Kanatsiokareke","Tyendinaga","Hahta"]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
{
|
{
|
||||||
name:"Australia",
|
name:"Australia",
|
||||||
leaderName:"John Curtin",
|
leaderName:"John Curtin",
|
||||||
|
|
|
@ -744,8 +744,7 @@
|
||||||
Polish:"Warsztat"
|
Polish:"Warsztat"
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
"Longhouse":{ // Iroquois unique
|
||||||
"Longhouse":{ //Irochese unique
|
|
||||||
Italian:"Casa Lunga"
|
Italian:"Casa Lunga"
|
||||||
French:"Longère"
|
French:"Longère"
|
||||||
Polish:"Długi dom"
|
Polish:"Długi dom"
|
||||||
|
@ -756,7 +755,6 @@
|
||||||
French:"+1 production pour chaque cases de forêt exploitées par la ville."
|
French:"+1 production pour chaque cases de forêt exploitées par la ville."
|
||||||
Polish:"+1 do produkcji za każde pracujące pole lasu"
|
Polish:"+1 do produkcji za każde pracujące pole lasu"
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
"Forge":{
|
"Forge":{
|
||||||
Italian:"Fucina"
|
Italian:"Fucina"
|
||||||
|
|
|
@ -1218,7 +1218,6 @@
|
||||||
Russian:"+2 Наука для всех специалистов и улучшений клеток Великими людьми."
|
Russian:"+2 Наука для всех специалистов и улучшений клеток Великими людьми."
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
"Iroquois":{
|
"Iroquois":{
|
||||||
Italian:"Irochese"
|
Italian:"Irochese"
|
||||||
|
@ -1226,12 +1225,16 @@
|
||||||
Portuguese:"Tribo Iroquois" //tribo meaning tribe of course
|
Portuguese:"Tribo Iroquois" //tribo meaning tribe of course
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Hiawatha":{
|
||||||
|
}
|
||||||
|
|
||||||
"Units move through Forest and Jungle in friendly territory as if it is a Road. These tiles can be used to establish Trade Routes upon searching The Wheel.":{
|
"Units move through Forest and Jungle in friendly territory as if it is a Road. These tiles can be used to establish Trade Routes upon searching The Wheel.":{
|
||||||
Italian:"Le caselle di Foreste e Giungle in territorio amico agiscono come strade, e sono usate per stabilire Rotte Commerciali quando si scopre la Ruota."
|
Italian:"Le caselle di Foreste e Giungle in territorio amico agiscono come strade, e sono usate per stabilire Rotte Commerciali quando si scopre la Ruota."
|
||||||
Portuguese:"Mova-se por florestas e selvas em território amigo como se fossem estradas. Estas terras podem ser usadas para estabelecer rotas de comércio após pesquisar a roda."
|
Portuguese:"Mova-se por florestas e selvas em território amigo como se fossem estradas. Estas terras podem ser usadas para estabelecer rotas de comércio após pesquisar a roda."
|
||||||
French:"Les Forêt et les Jungles en territoire alliés ont les mêmes attributs que les routes. A la découverte de la Roue, elles peuvent établir des routes commerciales."
|
French:"Les Forêt et les Jungles en territoire alliés ont les mêmes attributs que les routes. A la découverte de la Roue, elles peuvent établir des routes commerciales."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
"Aztecs":{
|
"Aztecs":{
|
||||||
Italian:"Azteca"
|
Italian:"Azteca"
|
||||||
French:"Aztèques"
|
French:"Aztèques"
|
||||||
|
|
|
@ -439,6 +439,12 @@
|
||||||
German:"Schwertkämpfer"
|
German:"Schwertkämpfer"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Mohawk Warrior":{
|
||||||
|
}
|
||||||
|
|
||||||
|
"+33% combat bonus in Forest/Jungle":{
|
||||||
|
}
|
||||||
|
|
||||||
"Legion":{
|
"Legion":{
|
||||||
Italian:"Legionario"
|
Italian:"Legionario"
|
||||||
Romanian:"Legionar"
|
Romanian:"Legionar"
|
||||||
|
|
|
@ -322,6 +322,21 @@
|
||||||
hurryCostModifier:20,
|
hurryCostModifier:20,
|
||||||
attackSound:"metalhit"
|
attackSound:"metalhit"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name:"Mohawk Warrior",
|
||||||
|
unitType:"Melee",
|
||||||
|
replaces:"Swordsman",
|
||||||
|
uniqueTo:"Iroquois",
|
||||||
|
movement:2,
|
||||||
|
strength:14,
|
||||||
|
cost: 75,
|
||||||
|
requiredTech:"Iron Working",
|
||||||
|
upgradesTo:"Longswordsman",
|
||||||
|
obsoleteTech:"Steel",
|
||||||
|
uniques:["+33% combat bonus in Forest/Jungle"]
|
||||||
|
hurryCostModifier:20,
|
||||||
|
attackSound:"metalhit"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name:"Legion",
|
name:"Legion",
|
||||||
unitType:"Melee",
|
unitType:"Melee",
|
||||||
|
|
|
@ -146,6 +146,9 @@ open class TileInfo {
|
||||||
if (terrainFeature == "Oasis" && city != null
|
if (terrainFeature == "Oasis" && city != null
|
||||||
&& city.containsBuildingUnique("+2 Gold for each source of Oil and oasis"))
|
&& city.containsBuildingUnique("+2 Gold for each source of Oil and oasis"))
|
||||||
stats.gold += 2
|
stats.gold += 2
|
||||||
|
if (terrainFeature == Constants.forest && city != null
|
||||||
|
&& city.containsBuildingUnique("Forests provide +1 production"))
|
||||||
|
stats.production += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasViewableResource(observingCiv)) {
|
if (hasViewableResource(observingCiv)) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
|
||||||
if (from.roadStatus === RoadStatus.Railroad && to.roadStatus === RoadStatus.Railroad)
|
if (from.roadStatus === RoadStatus.Railroad && to.roadStatus === RoadStatus.Railroad)
|
||||||
return 1 / 10f + extraCost
|
return 1 / 10f + extraCost
|
||||||
|
|
||||||
if (from.roadStatus !== RoadStatus.None && to.roadStatus !== RoadStatus.None) //Road
|
if (hasRoad(from,civInfo) && hasRoad(to,civInfo))
|
||||||
{
|
{
|
||||||
if (unit.civInfo.tech.movementSpeedOnRoadsImproved) return 1 / 3f + extraCost
|
if (unit.civInfo.tech.movementSpeedOnRoadsImproved) return 1 / 3f + extraCost
|
||||||
else return 1 / 2f + extraCost
|
else return 1 / 2f + extraCost
|
||||||
|
@ -40,6 +40,13 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
|
||||||
return to.getLastTerrain().movementCost.toFloat() + extraCost // no road
|
return to.getLastTerrain().movementCost.toFloat() + extraCost // no road
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun hasRoad(tileInfo:TileInfo, civInfo: CivilizationInfo): Boolean {
|
||||||
|
if(tileInfo.roadStatus!==RoadStatus.None) return true
|
||||||
|
if(civInfo.nation.forestsAndJunglesAreRoads && tileInfo.terrainFeature!=null
|
||||||
|
&& (tileInfo.terrainFeature==Constants.jungle || tileInfo.terrainFeature==Constants.forest)) return true
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
class ParentTileAndTotalDistance(val parentTile:TileInfo, val totalDistance: Float)
|
class ParentTileAndTotalDistance(val parentTile:TileInfo, val totalDistance: Float)
|
||||||
|
|
||||||
fun getDistanceToTilesWithinTurn(origin: Vector2, unitMovement: Float): PathsToTilesWithinTurn {
|
fun getDistanceToTilesWithinTurn(origin: Vector2, unitMovement: Float): PathsToTilesWithinTurn {
|
||||||
|
|
|
@ -38,16 +38,6 @@ object GameBasics {
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
Buildings += createHashmap(getFromJson(Array<Building>::class.java, "Buildings"))
|
|
||||||
Terrains += createHashmap(getFromJson(Array<Terrain>::class.java, "Terrains"))
|
|
||||||
TileResources += createHashmap(getFromJson(Array<TileResource>::class.java, "TileResources"))
|
|
||||||
TileImprovements += createHashmap(getFromJson(Array<TileImprovement>::class.java, "TileImprovements"))
|
|
||||||
Units += createHashmap(getFromJson(Array<BaseUnit>::class.java, "Units"))
|
|
||||||
UnitPromotions += createHashmap(getFromJson(Array<Promotion>::class.java, "UnitPromotions"))
|
|
||||||
PolicyBranches += createHashmap(getFromJson(Array<PolicyBranch>::class.java, "Policies"))
|
|
||||||
Nations += createHashmap(getFromJson(Array<Nation>::class.java, "Nations/Nations"))
|
|
||||||
Difficulties += createHashmap(getFromJson(Array<Difficulty>::class.java, "Difficulties"))
|
|
||||||
|
|
||||||
val techColumns = getFromJson(Array<TechColumn>::class.java, "Techs")
|
val techColumns = getFromJson(Array<TechColumn>::class.java, "Techs")
|
||||||
for (techColumn in techColumns) {
|
for (techColumn in techColumns) {
|
||||||
for (tech in techColumn.techs) {
|
for (tech in techColumn.techs) {
|
||||||
|
@ -56,6 +46,8 @@ object GameBasics {
|
||||||
Technologies[tech.name] = tech
|
Technologies[tech.name] = tech
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Buildings += createHashmap(getFromJson(Array<Building>::class.java, "Buildings"))
|
||||||
for (building in Buildings.values) {
|
for (building in Buildings.values) {
|
||||||
if (building.requiredTech == null) continue
|
if (building.requiredTech == null) continue
|
||||||
val column = building.getRequiredTech().column
|
val column = building.getRequiredTech().column
|
||||||
|
@ -63,6 +55,13 @@ object GameBasics {
|
||||||
building.cost = if (building.isWonder || building.isNationalWonder) column!!.wonderCost else column!!.buildingCost
|
building.cost = if (building.isWonder || building.isNationalWonder) column!!.wonderCost else column!!.buildingCost
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Terrains += createHashmap(getFromJson(Array<Terrain>::class.java, "Terrains"))
|
||||||
|
TileResources += createHashmap(getFromJson(Array<TileResource>::class.java, "TileResources"))
|
||||||
|
TileImprovements += createHashmap(getFromJson(Array<TileImprovement>::class.java, "TileImprovements"))
|
||||||
|
Units += createHashmap(getFromJson(Array<BaseUnit>::class.java, "Units"))
|
||||||
|
UnitPromotions += createHashmap(getFromJson(Array<Promotion>::class.java, "UnitPromotions"))
|
||||||
|
|
||||||
|
PolicyBranches += createHashmap(getFromJson(Array<PolicyBranch>::class.java, "Policies"))
|
||||||
for (branch in PolicyBranches.values) {
|
for (branch in PolicyBranches.values) {
|
||||||
branch.requires = ArrayList()
|
branch.requires = ArrayList()
|
||||||
branch.branch = branch.name
|
branch.branch = branch.name
|
||||||
|
@ -73,6 +72,13 @@ object GameBasics {
|
||||||
branch.policies.last().name = branch.name + " Complete"
|
branch.policies.last().name = branch.name + " Complete"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Nations += createHashmap(getFromJson(Array<Nation>::class.java, "Nations/Nations"))
|
||||||
|
for(nation in Nations.values) nation.setTransients()
|
||||||
|
|
||||||
|
Difficulties += createHashmap(getFromJson(Array<Difficulty>::class.java, "Difficulties"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (file in Gdx.files.internal("jsons/Translations").list())
|
for (file in Gdx.files.internal("jsons/Translations").list())
|
||||||
Translations.add(file.readString())
|
Translations.add(file.readString())
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,19 +50,29 @@ class Nation : INamed {
|
||||||
var innerColor: List<Int>?=null
|
var innerColor: List<Int>?=null
|
||||||
var startBias = ArrayList<String>()
|
var startBias = ArrayList<String>()
|
||||||
|
|
||||||
|
@Transient private lateinit var outerColorObject:Color
|
||||||
|
fun getOuterColor(): Color = outerColorObject
|
||||||
|
|
||||||
fun getOuterColor(): Color {
|
@Transient private lateinit var innerColorObject:Color
|
||||||
return colorFromRGB(outerColor[0], outerColor[1], outerColor[2])
|
|
||||||
}
|
|
||||||
|
|
||||||
fun getInnerColor(): Color {
|
fun getInnerColor(): Color = innerColorObject
|
||||||
if(innerColor==null) return Color.BLACK
|
|
||||||
return colorFromRGB(innerColor!![0], innerColor!![1], innerColor!![2])
|
|
||||||
}
|
|
||||||
|
|
||||||
fun isCityState()= cityStateType != null
|
fun isCityState()= cityStateType != null
|
||||||
fun isMajorCiv() = !isBarbarian() && !isCityState()
|
fun isMajorCiv() = !isBarbarian() && !isCityState()
|
||||||
fun isBarbarian() = name=="Barbarians"
|
fun isBarbarian() = name=="Barbarians"
|
||||||
|
|
||||||
|
// This is its own transient because we'll need to check this for every tile-to-tile movement which is harsh
|
||||||
|
@Transient var forestsAndJunglesAreRoads = false
|
||||||
|
|
||||||
|
fun setTransients(){
|
||||||
|
outerColorObject = colorFromRGB(outerColor[0], outerColor[1], outerColor[2])
|
||||||
|
|
||||||
|
if(innerColor==null) innerColorObject = Color.BLACK
|
||||||
|
else innerColorObject = colorFromRGB(innerColor!![0], innerColor!![1], innerColor!![2])
|
||||||
|
|
||||||
|
if(unique == "All units move through Forest and Jungle tiles in friendly territory as if it is Road. These tiles can be used to establish City Connections upon researching the Wheel.")
|
||||||
|
forestsAndJunglesAreRoads = true
|
||||||
|
}
|
||||||
|
|
||||||
lateinit var cities: List<String>
|
lateinit var cities: List<String>
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ Unless otherwise specified, all the following are from [the Noun Project](https:
|
||||||
* [Catapult](https://thenounproject.com/search/?q=Spear&i=1233840) By Jakub Ukrop
|
* [Catapult](https://thenounproject.com/search/?q=Spear&i=1233840) By Jakub Ukrop
|
||||||
* [Unloaded Crossbow](https://thenounproject.com/term/unloaded-crossbow/815992/) By Hamish as Ballista
|
* [Unloaded Crossbow](https://thenounproject.com/term/unloaded-crossbow/815992/) By Hamish as Ballista
|
||||||
* [Sword](https://thenounproject.com/search/?q=Sword&i=1215443) By Guilherme Furtado for Swordsman
|
* [Sword](https://thenounproject.com/search/?q=Sword&i=1215443) By Guilherme Furtado for Swordsman
|
||||||
|
* [Mohawk](https://thenounproject.com/search/?q=mohawk&i=1426649) By Dairy Free Design for Mohawk Warrior
|
||||||
* [Roman Helmet](https://thenounproject.com/search/?q=legion&i=440134) By parkjisun for Legion
|
* [Roman Helmet](https://thenounproject.com/search/?q=legion&i=440134) By parkjisun for Legion
|
||||||
* [Horse](https://thenounproject.com/search/?q=Horse&i=1373793) By AFY Studio for Horseman
|
* [Horse](https://thenounproject.com/search/?q=Horse&i=1373793) By AFY Studio for Horseman
|
||||||
* [Horse Head](https://thenounproject.com/search/?q=Cavalry&i=374037) By Juan Pablo Bravo for Companion Cavalry
|
* [Horse Head](https://thenounproject.com/search/?q=Cavalry&i=374037) By Juan Pablo Bravo for Companion Cavalry
|
||||||
|
@ -189,6 +190,7 @@ Unless otherwise specified, all the following are from [the Noun Project](https:
|
||||||
* [Forge](https://thenounproject.com/term/forge/1044767/) By Monjin Friends
|
* [Forge](https://thenounproject.com/term/forge/1044767/) By Monjin Friends
|
||||||
* [Anchor](https://thenounproject.com/term/anchor/1258518/) By Saeful Muslim for Harbor
|
* [Anchor](https://thenounproject.com/term/anchor/1258518/) By Saeful Muslim for Harbor
|
||||||
* [Hand saw](https://thenounproject.com/term/hand-saw/990902/) By b farias for Workshop
|
* [Hand saw](https://thenounproject.com/term/hand-saw/990902/) By b farias for Workshop
|
||||||
|
* [House](https://thenounproject.com/search/?q=house&i=1651759) By sofy for Longhouse
|
||||||
* [Hagia Sophia](https://thenounproject.com/term/hagia-sophia/1907752/) By Felipe Alvarado
|
* [Hagia Sophia](https://thenounproject.com/term/hagia-sophia/1907752/) By Felipe Alvarado
|
||||||
* [Factory](https://thenounproject.com/term/factory/1624235/) By Maxim Kulikov for Ironworks
|
* [Factory](https://thenounproject.com/term/factory/1624235/) By Maxim Kulikov for Ironworks
|
||||||
* [Notre Dame](https://thenounproject.com/term/notre-dame/1361725/) By Marco Livolsi
|
* [Notre Dame](https://thenounproject.com/term/notre-dame/1361725/) By Marco Livolsi
|
||||||
|
|
Loading…
Reference in a new issue