summaryrefslogtreecommitdiff
path: root/durt/nodes/(446,-4,-201).lua
blob: 028a50e0ab3aa839f0bec638db3225f78d99de5a (plain)
1
2
3
4
5
6
7
8
9
if event.type == "train" then
  local rc = get_rc()
  if rc:find("d23a_unload") ~= nil then
    rc = rc:gsub("d23a_unload", "d23a_load")
  elseif rc:find("d23a_load") ~= nil then
    rc = rc:gsub("d23a_load", "d23a_leave")
  end
  set_rc(rc)
end