Skip to content

Commit

Permalink
Fix loot slots
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 28, 2023
1 parent 9cde610 commit 8af371d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps/mountain_fortress_v3/loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8af371d

Please sign in to comment.