summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4502,12,-3179).lua
blob: 27ed074b4f87e4acb619a6908a052e585d750a70 (plain)
1
2
3
4
5
6
7
8
9
if event.type == "train" then
  local rc = get_rc()
  if rc:find("apprentice_unload") ~= nil then
    rc = rc:gsub("apprentice_unload", "apprentice_load")
  elseif rc:find("apprentice_load") ~= nil then
    rc = rc:gsub("apprentice_load", "apprentice_leave")
  end
  set_rc(rc)
end