mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
.
This commit is contained in:
@@ -74,11 +74,13 @@ Selection.on_selection(SelectionName, function(event)
|
||||
if item_count_cliff >= t_diff then
|
||||
player.remove_item{ name = "cliff-explosives", count = t_diff }
|
||||
else
|
||||
local item_count_needed = t_diff - item_count_cliff
|
||||
player.remove_item{ name = "cliff-explosives", count = item_count_cliff }
|
||||
player.remove_item{ name = "explosives", count = 10 * item_count_needed }
|
||||
player.remove_item{ name = "barrel", count = item_count_needed }
|
||||
player.remove_item{ name = "grenade", count = item_count_needed }
|
||||
local item_count_needed = t_diff - item_count_cliff
|
||||
if item_count_needed > 0 then
|
||||
player.remove_item{ name = "explosives", count = 10 * item_count_needed }
|
||||
player.remove_item{ name = "barrel", count = item_count_needed }
|
||||
player.remove_item{ name = "grenade", count = item_count_needed }
|
||||
end
|
||||
end
|
||||
|
||||
if remaining_tiles > 0 then
|
||||
|
||||
Reference in New Issue
Block a user