From: Olav Bakke Svendsen Date: Wed, 18 Oct 2023 01:24:48 +0000 (+0200) Subject: More debugging X-Git-Tag: stable-steam~3 X-Git-Url: http://git.olavbs.no/?a=commitdiff_plain;h=e718cca4fe53630fb8f419354d0c79be534304f4;p=cc.git More debugging --- diff --git a/steam/temporary-coal-feeder.lua b/steam/temporary-coal-feeder.lua index 3761865..4377d12 100644 --- a/steam/temporary-coal-feeder.lua +++ b/steam/temporary-coal-feeder.lua @@ -175,7 +175,11 @@ while true do os.cancelTimer(spinner_timer) print_spinner(main_monitor, 29,12, "?") local coal_amount, wood_amount, farm_amount, farm_slot = take_stock() - wood_amount, farm_amount, farm_slot = move_wood(wood_amount, farm_amount, farm_slot) + print("take_stock:") + print("coal: "..tostring(coal_amount)) + print("wood: "..tostring(wood_amount)) + print("farm: "..tostring(farm_amount)) +-- wood_amount, farm_amount, farm_slot = move_wood(wood_amount, farm_amount, farm_slot) local coal_online, wood_online = manage_farms(coal_amount, wood_amount, farm_amount) print_spinner(main_monitor, 29,12, "*") coal_amount = feed(coal_amount)