mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
.
This commit is contained in:
@@ -65,7 +65,7 @@ Selection.on_selection(SelectionName, function(event)
|
|||||||
local remaining_tiles = surface.count_tiles_filtered{ area = area, name = "water-mud" }
|
local remaining_tiles = surface.count_tiles_filtered{ area = area, name = "water-mud" }
|
||||||
local t_diff = tile_count - remaining_tiles
|
local t_diff = tile_count - remaining_tiles
|
||||||
|
|
||||||
if item_count_cliff >= area_size then
|
if item_count_cliff >= t_diff then
|
||||||
player.remove_item{ name = "cliff-explosives", count = t_diff }
|
player.remove_item{ name = "cliff-explosives", count = t_diff }
|
||||||
else
|
else
|
||||||
player.remove_item{ name = "explosives", count = 10 * t_diff }
|
player.remove_item{ name = "explosives", count = 10 * t_diff }
|
||||||
|
|||||||
Reference in New Issue
Block a user