Can someone please explain to me how the chests for the Supply challenge Scenario are created?
I only see this code:
Code: Select all
global.chests = {}
for k, chest in pairs (game.surfaces[1].find_entities_filtered{name = "red-chest"}) do
chest.minable = false
chest.destructible = false
global.chests[chest.unit_number] = chest
end
What would be the best way to re-produce some starting chests that will work with the challenge code?
Thanks.