Added America civ
This commit is contained in:
parent
4280df329f
commit
50c2ad4573
5 changed files with 15 additions and 1 deletions
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -72,6 +72,15 @@
|
|||
"Aden","Yamama","Muscat","Mansura","Bukhara","Fez","Shiraz","Merw","Balkh","Mosul",
|
||||
"Aydab","Bayt","Suhar","Taif","Hama","Tabuk","Sana'a","Shihr","Tripoli","Tunis"]
|
||||
},
|
||||
{
|
||||
name:"America",
|
||||
mainColor:[ 28,51,119],
|
||||
secondaryColor:[255,255,255],
|
||||
unique:"All land military units have +1 sight, 50% discount when purchasing tiles",
|
||||
cities:["Washington","New York","Boston","Philadelphia","Atlanta","Chicago","Seattle","San Francisco","Los Angeles","Houston",
|
||||
"Portland","St. Louis","Miami","Buffalo","Detroit","New Orleans","Baltimore","Denver","Cincinnati","Dallas","Memphis",
|
||||
"Cleveland","Kansas City","San Diego","Richmond","Las Vegas","Phoenix","Albuquerque","Minneapolis","Pittsburgh"]
|
||||
},
|
||||
{
|
||||
name:"Barbarians",
|
||||
mainColor:[200,200,200],
|
||||
|
|
|
@ -42,7 +42,9 @@ class CityExpansionManager {
|
|||
val baseCost = 50
|
||||
val numTilesClaimed= cityInfo.tiles.size - 7
|
||||
val distanceFromCenter = tileInfo.arialDistanceTo(cityInfo.getCenterTile())
|
||||
val cost = baseCost * (distanceFromCenter-1) + numTilesClaimed*5
|
||||
var cost = baseCost * (distanceFromCenter-1) + numTilesClaimed*5
|
||||
if(cityInfo.civInfo.getNation().unique=="All land military units have +1 sight, 50% discount when purchasing tiles")
|
||||
cost /= 2
|
||||
return cost
|
||||
}
|
||||
|
||||
|
|
|
@ -76,6 +76,8 @@ class MapUnit {
|
|||
var visibilityRange = 2
|
||||
visibilityRange += getUniques().count{it=="+1 Visibility Range"}
|
||||
if(hasUnique("Limited Visibility")) visibilityRange-=1
|
||||
if(civInfo.getNation().unique=="All land military units have +1 sight, 50% discount when purchasing tiles")
|
||||
visibilityRange += 1
|
||||
val tile = getTile()
|
||||
if (tile.baseTerrain == "Hill") visibilityRange += 1
|
||||
return tile.getViewableTiles(visibilityRange)
|
||||
|
@ -222,6 +224,7 @@ class MapUnit {
|
|||
|
||||
class YouCantGetThereFromHereException : Exception()
|
||||
if (!distanceToTiles.containsKey(otherTile))
|
||||
|
||||
throw YouCantGetThereFromHereException()
|
||||
|
||||
class CantEnterThisTileException : Exception()
|
||||
|
|
Loading…
Reference in a new issue