1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-26 03:52:22 +02:00
ComfyFactorio/maps/biter_hatchery/raffle_tables.lua

52 lines
1.2 KiB
Lua
Raw Normal View History

2021-03-24 18:22:45 +01:00
--luacheck: ignore
2019-11-03 17:46:18 +01:00
local raffle = {
2021-03-24 16:46:00 +01:00
['automation-science-pack'] = {{}, 1},
['logistic-science-pack'] = {{}, 2},
['military-science-pack'] = {{}, 3},
['chemical-science-pack'] = {{}, 4},
['production-science-pack'] = {{}, 5},
['utility-science-pack'] = {{}, 5},
['space-science-pack'] = {{}, 9}
2019-11-03 17:46:18 +01:00
}
2019-11-23 23:27:57 +01:00
local function add_unit(t, size, chance)
2021-03-24 16:46:00 +01:00
for _ = 1, chance, 1 do
table.insert(t, size .. '-spitter')
end
for _ = 1, chance * 6, 1 do
table.insert(t, size .. '-biter')
end
2019-11-23 23:27:57 +01:00
end
2021-03-24 16:46:00 +01:00
local t = raffle['automation-science-pack'][1]
add_unit(t, 'small', 1)
2019-11-03 17:46:18 +01:00
2021-03-24 16:46:00 +01:00
local t = raffle['logistic-science-pack'][1]
add_unit(t, 'small', 5)
add_unit(t, 'medium', 1)
2019-11-03 17:46:18 +01:00
2021-03-24 16:46:00 +01:00
local t = raffle['military-science-pack'][1]
add_unit(t, 'small', 10)
add_unit(t, 'medium', 3)
add_unit(t, 'big', 1)
2019-11-03 17:46:18 +01:00
2021-03-24 16:46:00 +01:00
local t = raffle['chemical-science-pack'][1]
add_unit(t, 'small', 1)
add_unit(t, 'medium', 9)
add_unit(t, 'big', 2)
2019-11-03 17:46:18 +01:00
2021-03-24 16:46:00 +01:00
local t = raffle['production-science-pack'][1]
add_unit(t, 'medium', 1)
add_unit(t, 'big', 12)
add_unit(t, 'behemoth', 2)
2019-11-03 17:46:18 +01:00
2021-03-24 16:46:00 +01:00
local t = raffle['utility-science-pack'][1]
add_unit(t, 'big', 5)
add_unit(t, 'behemoth', 1)
2019-11-06 17:54:54 +01:00
2021-03-24 16:46:00 +01:00
local t = raffle['space-science-pack'][1]
add_unit(t, 'big', 1)
add_unit(t, 'behemoth', 3)
2019-11-03 17:46:18 +01:00
2021-03-24 16:46:00 +01:00
return raffle