mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-17 20:58:13 +02:00
commit
6143d05d91
@ -213,10 +213,12 @@ local function set_train_final_health(final_damage_amount, repair)
|
||||
if not poison_deployed then
|
||||
local carriages = Public.get('carriages')
|
||||
|
||||
if carriages then
|
||||
for i = 1, #carriages do
|
||||
local entity = carriages[i]
|
||||
Public.enable_poison_defense(entity.position)
|
||||
if WD.get('wave_number') < 501 then
|
||||
if carriages then
|
||||
for i = 1, #carriages do
|
||||
local entity = carriages[i]
|
||||
Public.enable_poison_defense(entity.position)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -142,7 +142,7 @@ function Public.save_logistics(player)
|
||||
|
||||
local slots = {}
|
||||
|
||||
for i = 1, 49 do
|
||||
for i = 1, 100 do
|
||||
local slot = player.get_personal_logistic_slot(i)
|
||||
if slot and slot.name then
|
||||
slots[i] = {name = slot.name, min = slot.min, max = slot.max}
|
||||
|
Loading…
x
Reference in New Issue
Block a user