mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Added Water Mill building
This commit is contained in:
parent
0c7d4b296a
commit
e179f1a472
BIN
android/Images/BuildingIcons/Water Mill.png
Normal file
BIN
android/Images/BuildingIcons/Water Mill.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 460 KiB After Width: | Height: | Size: 468 KiB |
@ -78,6 +78,15 @@
|
||||
"hurryCostModifier": 25,
|
||||
"requiredTech": "Trapping"
|
||||
},
|
||||
{
|
||||
"name": "Water Mill",
|
||||
"maintenance": 2,
|
||||
"food": 2,
|
||||
"production": 1,
|
||||
"hurryCostModifier": 25,
|
||||
"uniques": ["Must be next to river"],
|
||||
"requiredTech": "The Wheel"
|
||||
},
|
||||
|
||||
/*
|
||||
{
|
||||
|
@ -248,6 +248,9 @@ class Building : NamedStats(), IConstruction{
|
||||
&& !cityCenter.neighbors.any { it.baseTerrain == Constants.mountain })
|
||||
return "Must be next to mountain"
|
||||
|
||||
if("Must be next to river" in uniques && !cityCenter.isAdjacentToRiver())
|
||||
return "Must be next to river"
|
||||
|
||||
if("Must have an owned mountain within 2 tiles" in uniques
|
||||
&& !cityCenter.getTilesInDistance(2)
|
||||
.any { it.baseTerrain==Constants.mountain && it.getOwner()==construction.cityInfo.civInfo })
|
||||
|
Loading…
x
Reference in New Issue
Block a user