|
|
@ -16,10 +16,10 @@ public class WaterEvent implements Event{ |
|
|
|
char val2=RabiClone.CURRENT_MAP.getMap().getDataTileValue(x/Tile.TILE_WIDTH, y/Tile.TILE_HEIGHT+1); |
|
|
|
char val2=RabiClone.CURRENT_MAP.getMap().getDataTileValue(x/Tile.TILE_WIDTH, y/Tile.TILE_HEIGHT+1); |
|
|
|
if (val1!=Character.MAX_VALUE) { |
|
|
|
if (val1!=Character.MAX_VALUE) { |
|
|
|
RabiClone.CURRENT_MAP.getMap().setWaterLevel(val1); |
|
|
|
RabiClone.CURRENT_MAP.getMap().setWaterLevel(val1); |
|
|
|
System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel()); |
|
|
|
//System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel());
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
RabiClone.CURRENT_MAP.getMap().setWaterLevel(val2); |
|
|
|
RabiClone.CURRENT_MAP.getMap().setWaterLevel(val2); |
|
|
|
System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel()); |
|
|
|
//System.out.println("Water level set to "+(int)RabiClone.CURRENT_MAP.getMap().getWaterLevel());
|
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|