## Ice Hotel Start ##
if iBuildingType == gc.getInfoTypeForString("BUILDING_ICE_HOTEL"):
iPlayer = pCity.getOwner()
pPlayer = gc.getPlayer(iPlayer)
pTeam = gc.getTeam(pPlayer.getTeam())
iX = pCity.getX()
iY = pCity.getY()
tt_snow = gc.getInfoTypeForString("TERRAIN_SNOW")
tt_tundra = gc.getInfoTypeForString("TERRAIN_TUNDRA")
for x in range(iX - 2, iX + 3, 1):
for y in range(iY - 2, iY + 3, 1):
pPlot = CyMap().plot(x,y)
if abs(x - iX) != 2 or abs(y - iY) != 2:
if pPlot.isWater():
if pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_FISH") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_CLAM") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_CRAB"):
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_FISHING_BOATS"))
CyGame().setPlotExtraYield(x, y, YieldTypes.YIELD_FOOD, 1)
elif pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_OIL") and pTeam.isHasTech(gc.getInfoTypeForString("TECH_PLASTICS")):
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_OFFSHORE_PLATFORM"))
elif pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_WHALE"):
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_WHALING_BOATS"))
CyGame().setPlotExtraYield(x, y, YieldTypes.YIELD_FOOD, 1)
if pPlot.getFeatureType() == gc.getInfoTypeForString("FEATURE_ICE"):
pPlot.setFeatureType(-1, 0)
else:
if pPlot.getTerrainType() == tt_desert or pPlot.getTerrainType() == tt_tundra:
CyGame().setPlotExtraYield(x, y, YieldTypes.YIELD_COMMERCE, 2)
if pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_MARBLE") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_STONE"):
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_QUARRY"))
elif pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_OIL"):
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_WELL"))
elif pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_ALUMINUM") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_COAL") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_COPPER") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_IRON") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_URANIUM") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_GEMS") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_GOLD") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_SILVER"):
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_MINE"))
elif pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_DEER") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_FUR") or pPlot.getBonusType(-1) == gc.getInfoTypeForString("BONUS_IVORY"):
CyGame().setPlotExtraYield(x, y, YieldTypes.YIELD_FOOD, 1)
pPlot.setImprovementType(gc.getInfoTypeForString("IMPROVEMENT_CAMP"))
pPlot.setFeatureType(gc.getInfoTypeForString("FEATURE_FOREST"), 1)
elif pPlot.getImprovementType() == -1:
pPlot.setFeatureType(gc.getInfoTypeForString("FEATURE_FOREST"), 1)
CyInterface().addMessage(iPlayer,false,15,CyTranslator().getText("TXT_KEY_ICE_HOTEL_PYTHON",()),'',0,'Art/Ice Hotel/Ice Hotel.dds',ColorTypes(44), iX, iY, True,True)
## Ice Hotel End ##