diff options
Diffstat (limited to 'auto_yards/nodes/(-588,26,2504).lua')
-rw-r--r-- | auto_yards/nodes/(-588,26,2504).lua | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/auto_yards/nodes/(-588,26,2504).lua b/auto_yards/nodes/(-588,26,2504).lua index cb800d9..5382804 100644 --- a/auto_yards/nodes/(-588,26,2504).lua +++ b/auto_yards/nodes/(-588,26,2504).lua @@ -1,26 +1,27 @@ -function tprint (tbl, indent) - local s = "" - if not indent then indent = 0 end - for k, v in pairs(tbl) do - local formatting = string.rep(" ", indent) .. "['"..k .. "']= " - if type(v) == "table" then - s = s .. formatting .. "{"..tprint(v, indent+1).."}" - else - s = s .. formatting .. tostring(v) - end - s = s .. ", " - end - return s -end +-- Cannery Dirt Loading Lane Modified +local sand_indicator = POS(-572,26,2515) --sand indicator -local str = "CAN_SB!S27!SAND_UNLOAD!DIRT_LOAD!S27_NB!CANNERY!DIRT_UNLOAD!SAND_LOAD" -local fc_table = {""} -for i=2,train_length() do -table.insert(fc_table,str) +if F.has_rc("CAN_INTRA_SHUFFLE") then + if not atc_arrow then return end + if F.has_rc("CAN_CLASS_DIRT_UNLOAD") then -- remove wagons, step the fc, return the wagons + F.remove_rc("CAN_CLASS_DIRT_UNLOAD") + F.add_rc({ + "CAN_HS_W", + "CAN_CLASS_SAND_LOAD" + }) + step_fc() + return + end + if F.has_rc("CAN_CLASS_SAND_LOAD") then -- remove wagons, step the fc, move wagons to departures + F.remove_rc("CAN_CLASS_SAND_LOAD") + F.add_rc({ + "CAN_HS_W", --departures track has Cpl function built in + "CAN_CLASS_DEPARTURES" + }) + step_fc() + F.indicator(sand_indicator, false) + return + end + return end -set_fc(fc_table, true) -print(tprint(get_fc())) - - --- EOL ---F.lane_EOL("CAN",true)
\ No newline at end of file +F.lane_EOL("CAN",true)
\ No newline at end of file |