Added Walls of Babylon unique building

Added Chu-Ko-Nu unique unit
This commit is contained in:
Yair Morgenstern 2019-04-09 23:31:16 +03:00
parent 9b9b21fe28
commit 6af749b77b
9 changed files with 337 additions and 323 deletions

View file

@ -136,6 +136,7 @@ All the following are from [the Noun Project](https://thenounproject.com) licenc
* [Storehouse](https://thenounproject.com/term/storehouse/966786/) By Pedro Santos for Granary
* [Great Wall Of China](https://thenounproject.com/term/great-wall-of-china/146039/) By Arthur Shlain for Walls
* [Markadan Tower](https://thenounproject.com/search/?q=fortification&i=2107694) by Vectors Market for Walls of Babylon
* [Block](https://thenounproject.com/term/block/1711553/) By Monjin Friends for Stone Works
* [korean palace](https://thenounproject.com/term/korean-palace/1797542/) By 1516 for Palace
* [Obelisk](https://thenounproject.com/term/obelisk/749104/) By Eliricon for Monument

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 KiB

After

Width:  |  Height:  |  Size: 959 KiB

View file

@ -82,18 +82,16 @@
hurryCostModifier:25,
requiredTech:"Masonry"
},
/*
{
name:"Walls of Babylon",
replaces:"Walls",
cost:65,
uniqueTo:"Babylon",
cityStrength:6,
cityHealth:100,
hurryCostModifier:25,
requiredTech:"Masonry"
//Babylonian unique building that replaces Walls.
},
*/
{
name:"The Pyramids",
culture:1,

View file

@ -29,14 +29,6 @@
Simplified_Chinese:"下一回合"
Portuguese:"Proximo turno"
Japanese:"次のターン"
Polish:"Następna tura"
Indonesian:"Giliran berikutnya"
Philippino:"Susunod na pagliko"
Czech:"Další otočení"
Slovak:"Ďalšie otočenie"
Sloven:"Naslednji zavoj"
Croatian:"Sljedeći red"
Danish:"Næste tur"
}
"Working...":{ // Displayed when next turn is being...turned
@ -5172,6 +5164,7 @@
Portuguese:"Muralhas"
German:"Mauern"
}
"Walls of Babylon":{}
"The Pyramids":{
Italian:"Grandi Piramidi"
@ -6613,6 +6606,9 @@
German:"Kamel-Bogenschütze"
French:"Archer méhariste"
}
"Samurai":{}
"Combat very likely to create Great Generals":{}
// Renaissance units
"Caravel":{

View file

@ -431,9 +431,8 @@
hurryCostModifier:20,
attackSound:"arrow"
},
/*
{
name:"Chu-ko-nu",
name:"Chu-Ko-Nu",
unitType:"Ranged",
uniqueTo:"China",
movement:2,
@ -444,11 +443,10 @@
requiredTech:"Machinery",
upgradesTo:"Gatling Gun",
obsoleteTech:"Industrialization",
promotions:["Logistics"],
hurryCostModifier:20,
attackSound:"arrow"
//Chinese unique unit. It is weaker than Crossbowman but can attack twice.
},
*/
{
name:"Longbowman",
unitType:"Ranged",

View file

@ -60,6 +60,12 @@ class NationTable(val nation: Nation, val newGameParameters: GameParameters, ski
textList += " "+unique.tr()
if (building.maintenance != originalBuilding.maintenance)
textList += " {Maintenance} " + building.maintenance + " vs " + originalBuilding.maintenance
if(building.cost != originalBuilding.cost)
textList += " {Cost} " + building.cost + " vs " + originalBuilding.cost
if(building.cityStrength != originalBuilding.cityStrength)
textList += " {City strength} " + building.cityStrength+ " vs " + originalBuilding.cityStrength
if(building.cityHealth!= originalBuilding.cityHealth)
textList += " {City health} " + building.cityHealth+ " vs " + originalBuilding.cityHealth
textList+=""
}
@ -78,8 +84,9 @@ class NationTable(val nation: Nation, val newGameParameters: GameParameters, ski
textList+= " {Movement} " + unit.movement+ " vs " + originalUnit.movement
for(unique in unit.uniques.filterNot { it in originalUnit.uniques })
textList += " "+Translations.translateBonusOrPenalty(unique)
for(promotions in unit.promotions.filter { it !in originalUnit.promotions})
textList += " "+promotions.tr()
for(promotion in unit.promotions.filter { it !in originalUnit.promotions})
textList += " "+promotion.tr()+ " ("+Translations.translateBonusOrPenalty(GameBasics.UnitPromotions[promotion]!!.effect)+")"
textList+=""
}