-- This file is part of thesixthroc's Pirate Ship softmod, licensed under GPLv3 and stored at https://github.com/ComfyFactory/ComfyFactorio and https://github.com/danielmartin0/ComfyFactorio-Pirates.

local Public = {}

-- NOTE:

Public.display_name = 'sloop'
Public.tile_areas = {
	{ { -1, -1 }, { 0, 1 } },
	{ { -2, -2 }, { -1, 2 } },
	{ { -3, -3 }, { -2, 3 } },
	{ { -4, -4 }, { -3, 4 } },
	{ { -5, -5 }, { -4, 5 } },
	{ { -6, -6 }, { -5, 6 } },
	{ { -7, -7 }, { -6, 7 } },
	{ { -8, -8 }, { -7, 8 } },
	{ { -9, -9 }, { -8, 9 } },
	{ { -10, -10 }, { -9, 10 } },
	{ { -11, -11 }, { -10, 11 } },
	{ { -67, -12 }, { -11, 12 } },

	{ { -41, -13 }, { -38, -12 } },
	{ { -41, 12 }, { -38, 13 } },
}
Public.width = 67
Public.height = 24
Public.spawn_point = { x = -47.5, y = 0 }
Public.parrot_resting_position = { x = -69, y = 0 }
Public.right_gate_tile_areas = {
	{ { -53, 11 }, { -44, 12 } },
	{ { -24, 11 }, { -15, 12 } },
}
Public.left_gate_tile_areas = {
	{ { -53, -12 }, { -44, -11 } },
	{ { -24, -12 }, { -15, -11 } },
}
Public.leftmost_gate_position = -53
Public.rightmost_gate_position = -15
Public.upmost_gate_position = -12
Public.downmost_gate_position = 12
Public.areas_infront = {
	{ { 0, -1 }, { 1, 1 } },

	{ { -1, -2 }, { 0, -1 } },
	{ { -1, 1 }, { 0, 2 } },
	{ { -2, -3 }, { -1, -2 } },
	{ { -2, 2 }, { -1, 3 } },
	{ { -3, -4 }, { -2, -3 } },
	{ { -3, 3 }, { -2, 4 } },
	{ { -4, -5 }, { -3, -4 } },
	{ { -4, 4 }, { -3, 5 } },
	{ { -5, -6 }, { -4, -5 } },
	{ { -5, 5 }, { -4, 6 } },
	{ { -6, -7 }, { -5, -6 } },
	{ { -6, 6 }, { -5, 7 } },
	{ { -7, -8 }, { -6, -7 } },
	{ { -7, 7 }, { -6, 8 } },
	{ { -8, -9 }, { -7, -8 } },
	{ { -8, 8 }, { -7, 9 } },
	{ { -9, -10 }, { -8, -9 } },
	{ { -9, 9 }, { -8, 10 } },
	{ { -10, -11 }, { -9, -10 } },
	{ { -10, 10 }, { -9, 11 } },
	{ { -11, -12 }, { -10, -11 } },
	{ { -11, 11 }, { -10, 12 } },

	{ { -38, -13 }, { -37, -12 } },
	{ { -38, 12 }, { -37, 13 } },
}
Public.areas_behind = {
	{ { -68, -12 }, { -67, 12 } },

	{ { -42, -13 }, { -41, -12 } },
	{ { -42, 12 }, { -41, 13 } },
}
Public.areas_offright = {
	{ { -1, 1 }, { 0, 2 } },
	{ { -2, 2 }, { -1, 3 } },
	{ { -3, 3 }, { -2, 4 } },
	{ { -4, 4 }, { -3, 5 } },
	{ { -5, 5 }, { -4, 6 } },
	{ { -6, 6 }, { -5, 7 } },
	{ { -7, 7 }, { -6, 8 } },
	{ { -8, 8 }, { -7, 9 } },
	{ { -9, 9 }, { -8, 10 } },
	{ { -10, 10 }, { -9, 11 } },
	{ { -11, 11 }, { -10, 12 } },

	{ { -38, 12 }, { -11, 13 } },
	{ { -67, 12 }, { -41, 13 } },

	{ { -41, 13 }, { -38, 14 } },
}
Public.areas_offleft = {
	{ { -1, -2 }, { 0, -1 } },
	{ { -2, -3 }, { -1, -2 } },
	{ { -3, -4 }, { -2, -3 } },
	{ { -4, -5 }, { -3, -4 } },
	{ { -5, -6 }, { -4, -5 } },
	{ { -6, -7 }, { -5, -6 } },
	{ { -7, -8 }, { -6, -7 } },
	{ { -8, -9 }, { -7, -8 } },
	{ { -9, -10 }, { -8, -9 } },
	{ { -10, -11 }, { -9, -10 } },
	{ { -11, -12 }, { -10, -11 } },

	{ { -38, -13 }, { -11, -12 } },
	{ { -67, -13 }, { -41, -12 } },

	{ { -41, -14 }, { -38, -13 } },
}
Public.entities = {
	static = {
		pos = { x = -34, y = 0 },
		-- This bp should only contain boxes, otherwise upgrading boxes (in harder difficulties won't work)
		bp_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uIIDCZVcQoGk5o4CINJXZyFgSS6k+lNGdC9TG/qgO5melMIdD/Tm0qgW5rBRmV1oAWjijpkg1FVnY7BqKaOtWBUV0dtIIpucEZTV3SPM5pioLuc0VxBus8ZTV3Rnc6/szIYldVpGYwqamUCo6pamsCoptYmMKqrxQmIovueyVQ73fnMptrp5me2rYpyuAdRSR3EeUPdDm9zyKsPU82D267vpu3y3ecP3/2YDsdXTGiL9HqouSx/qZ3PvwGS43Tx]],
	},
	inaccessible = {
		pos = { x = -60, y = 0 },
		bp_str = [[]],
	},
}
Public.EEIs = {
	{ x = -64, y = -10 },
	{ x = -64, y = 10 },
}
Public.upstairs_poles = {
	{ x = -39.0, y = -5.0 },
	{ x = -39.0, y = 5.0 },
}
Public.power1_rendering_position = { x = -64, y = 9.5 }
Public.power2_rendering_position = { x = -64, y = -10.5 }
Public.upstairs_fluid_storages = {
	{ x = -58.5, y = -10.5 },
	{ x = -58.5, y = 10.5 },
}

Public.cannons = {
	{ x = -39.5, y = 11.5 },
	{ x = -39.5, y = -11.5 },
}
Public.cabin_car = { x = -51, y = 0 }
Public.steering_boxes = {
	left = { x = -2.5, y = -1.5 },
	right = { x = -2.5, y = 1.5 },
}
Public.crowsnest_center = { x = -26.5, y = 0 }
Public.entercrowsnest_cars = {
	left = { x = -25, y = 0 },
	right = { x = -28, y = 0 },
}
Public.loco_pos = { x = -39, y = 0 }
Public.deck_whitebelts_lrtp_order = {
	{ x = -52.5, y = -11.5, direction = defines.direction.north, type = 'input' },
	{ x = -51.5, y = -11.5, direction = defines.direction.north, type = 'input' },
	{ x = -50.5, y = -11.5, direction = defines.direction.north, type = 'input' },
	{ x = -49.5, y = -11.5, direction = defines.direction.north, type = 'input' },
	{ x = -18.5, y = -11.5, direction = defines.direction.south, type = 'input' },
	{ x = -17.5, y = -11.5, direction = defines.direction.south, type = 'input' },
	{ x = -16.5, y = -11.5, direction = defines.direction.south, type = 'input' },
	{ x = -15.5, y = -11.5, direction = defines.direction.south, type = 'input' },
	{ x = -52.5, y = -2.5, direction = defines.direction.south, type = 'output' },
	{ x = -51.5, y = -2.5, direction = defines.direction.south, type = 'output' },
	{ x = -50.5, y = -2.5, direction = defines.direction.south, type = 'output' },
	{ x = -49.5, y = -2.5, direction = defines.direction.south, type = 'output' },
	{ x = -52.5, y = 2.5, direction = defines.direction.north, type = 'input' },
	{ x = -51.5, y = 2.5, direction = defines.direction.north, type = 'input' },
	{ x = -50.5, y = 2.5, direction = defines.direction.north, type = 'input' },
	{ x = -49.5, y = 2.5, direction = defines.direction.north, type = 'input' },
	{ x = -52.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -51.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -50.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -49.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -18.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -17.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -16.5, y = 11.5, direction = defines.direction.south, type = 'output' },
	{ x = -15.5, y = 11.5, direction = defines.direction.south, type = 'output' },
}

Public.crewname_rendering_position = { x = -67, y = -18.5 }
Public.comfy_rendering_position = { x = -59.5, y = 0 }

Public.landingtrack = {
	offset = { x = -17, y = 0 },
	bp = [[[encoded data, 6553 characters]]],
}

Public.upgrade_chests = {
	pos = { x = -67, y = -12 },
	-- bp_str = [[0eNqVmt1qG0EMRt9lrjdlNZpfX/Y1SihOsrQGZ23sTdsQ/O61k9IE2s/SB4Fg4xykneOJZqSXcLd9mvaHzbyE1Us4zuv9zbK7+XbYPFxe/wqrUofwHFYxnYawud/Nx7D6cv7g5tu83l4+sjzvp7AKm2V6DEOY14+XVz93u4dpvrn/Ph2XcPnD+WE6s+R0O4RpXjbLZnrjvL54/jo/Pd5Nh/MH/k8Ywn53PP/Rbv4T1Pgpv0Z1/n06Df9gohMj1zHqxMTrmOTE6HVMdmLSdUxxYvJ1THViynVM866UseLdyzGWXEYv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