#都市に特定の建造物があり、特定のユニットがいなければ建造物消滅 for BuildingList in TohoUnitList.TohoUnitBuildingList: sBuilding,sStartUnit,sEndUnit = BuildingList if pCity.isHasBuilding(gc.getInfoTypeForString(sBuilding)): if Functions.checkUnit(pCity.getX(),pCity.getY(),[[0,0],],gc.getInfoTypeForString(sStartUnit),gc.getInfoTypeForString(sEndUnit)) == False: if sBuilding == 'BUILDING_SUZURAN': if Functions.checkUnit(pCity.getX(),pCity.getY(),[[0,0],],gc.getInfoTypeForString('UNIT_MEDICINwithSU1'),gc.getInfoTypeForString('UNIT_MEDICINwithSU6')) == False: pCity.setNumRealBuilding(gc.getInfoTypeForString(sBuilding),0) if sBuilding == 'BUILDING_SHUEN': if Functions.checkUnit(pCity.getX(),pCity.getY(),[[0,0],],gc.getInfoTypeForString('UNIT_SUIKA0_YOUKAI'),gc.getInfoTypeForString('UNIT_SUIKA6_YOUKAI')) == False: pCity.setNumRealBuilding(gc.getInfoTypeForString(sBuilding),0) else: pCity.setNumRealBuilding(gc.getInfoTypeForString(sBuilding),0)