mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 17:32:57 +07:00
Add observatory requirement.
This commit is contained in:
parent
5045d2c499
commit
1a731a7ec1
@ -360,7 +360,7 @@
|
||||
hurryCostModifier:25,
|
||||
percentStatBonus:{science:50},
|
||||
requiredBuilding:"Library",
|
||||
uniques:[] //todo: "City must be bordering a mountain",
|
||||
uniques:["Must be next to mountain"],
|
||||
requiredTech:"Astronomy"
|
||||
},
|
||||
{
|
||||
|
@ -186,6 +186,9 @@ class Building : NamedStats(), IConstruction{
|
||||
if ("Must be next to desert" in uniques
|
||||
&& !construction.cityInfo.getCenterTile().getTilesInDistance(1).any { it.baseTerrain == "Desert" })
|
||||
return false
|
||||
if ("Must be next to mountain" in uniques
|
||||
&& !construction.cityInfo.getCenterTile().getTilesInDistance(1).any { it.baseTerrain == "Mountain" })
|
||||
return false
|
||||
if("Can only be built in coastal cities" in uniques
|
||||
&& construction.cityInfo.getCenterTile().neighbors.none { it.baseTerrain=="Coast" })
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user