From 8af371d61457943ad1cab38a01e9020ac058795d Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Wed, 29 Nov 2023 00:50:55 +0100 Subject: [PATCH] Fix loot slots --- maps/mountain_fortress_v3/loot.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maps/mountain_fortress_v3/loot.lua b/maps/mountain_fortress_v3/loot.lua index 349e58c37..437d386dc 100644 --- a/maps/mountain_fortress_v3/loot.lua +++ b/maps/mountain_fortress_v3/loot.lua @@ -50,7 +50,7 @@ function Public.add_loot(surface, position, chest) local c = game.entity_prototypes[chest] local slots = c.get_inventory_size(defines.inventory.chest) - local item_stacks = LootRaffle.roll(result, slots / 2, blacklist) + local item_stacks = LootRaffle.roll(result, slots, blacklist) local container = surface.create_entity({name = chest, position = position, force = 'neutral', create_build_effect_smoke = false}) for _, item_stack in pairs(item_stacks) do container.insert(item_stack) @@ -102,7 +102,7 @@ function Public.add_loot_rare(surface, position, chest, magic) local c = game.entity_prototypes[chest] local slots = c.get_inventory_size(defines.inventory.chest) - local item_stacks = LootRaffle.roll(result, slots / 2, blacklist) + local item_stacks = LootRaffle.roll(result, slots, blacklist) local container = surface.create_entity({name = chest, position = position, force = 'neutral', create_build_effect_smoke = false}) for _, item_stack in pairs(item_stacks) do container.insert(item_stack)