aboutsummaryrefslogtreecommitdiff
path: root/po/tr/minetest.po
diff options
context:
space:
mode:
Diffstat (limited to 'po/tr/minetest.po')
0 files changed, 0 insertions, 0 deletions
60'>60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
-- Cannery Loco Storage
local notification_id = "CAN"
local ind = POS(-594,26,2488) --notification indicator
local sand_indicator = POS(-572,26,2515) --sand loaded indicator
local clay_indicator = POS(-570,26,2515) --clay loaded indicator
local print_notification = true

local sections = {
	clay_loading = "769966",
	sand_loading = "199126",
	dirt_unloading = "541313",
	departures = "484515"
}

local function send_train()
	if F.indicator(S.yards[notification_id].active_indicator_pos) then -- another train already in the yard. wait for it to exit first
		print("yard still active")
		schedule_in("0;2","send_train")
		return
	end
	print("Sending Train")
	local base_rc = {
		"FREIGHT",
		"CAN_LOCOSTORE",
		"EWL-W",
		"EWL",
		"S23",
		"ARC_AUTO",
		"ARC_COLLECT_CANNERY",
		"ARC_AUTO_S23N",
		"CANNERY",
		"CAN_COLLECT_DEPARTURES"
	}
	if section_occupancy(sections.clay_loading)[1] and F.indicator(clay_indicator) then -- move the loaded clay wagons to the departures track when requested
		base_rc[#base_rc+1] = "CAN_INTRA_SHUFFLE"
		base_rc[#base_rc+1] = "CAN_HS_W"
		base_rc[#base_rc+1] = "CAN_HS_W_AC"
		base_rc[#base_rc+1] = "CAN_CLASS_CLAY_LOAD"
		F.indicator(S.yards.CAN.active_indicator_pos, true) --activate the yard to prevent other trains entering while we're moving around
		print("Collecting loaded clay wagons")
	elseif section_occupancy(sections.sand_loading)[1] and F.indicator(sand_indicator) then -- move the loaded sand wagons to the departures track when requested
		base_rc[#base_rc+1] = "CAN_INTRA_SHUFFLE"
		base_rc[#base_rc+1] = "CAN_HS_W"
		base_rc[#base_rc+1] = "CAN_HS_W_AC"
		base_rc[#base_rc+1] = "CAN_CLASS_SAND_LOAD"