2022-06-01 19:50:36 +01:00
|
|
|
-- This file is part of thesixthroc's Pirate Ship softmod, licensed under GPLv3 and stored at https://github.com/danielmartin0/ComfyFactorio-Pirates.
|
|
|
|
|
2021-10-13 09:21:53 +01:00
|
|
|
|
2022-03-19 21:20:55 +00:00
|
|
|
-- local Memory = require 'maps.pirates.memory'
|
|
|
|
-- local Math = require 'maps.pirates.math'
|
|
|
|
-- local Balance = require 'maps.pirates.balance'
|
|
|
|
-- local Structures = require 'maps.pirates.structures.structures'
|
|
|
|
-- local Boats = require 'maps.pirates.structures.boats.boats'
|
|
|
|
-- local Common = require 'maps.pirates.common'
|
|
|
|
-- local Utils = require 'maps.pirates.utils_local'
|
|
|
|
local _inspect = require 'utils.inspect'.inspect
|
2021-10-13 09:21:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
local Public = {}
|
|
|
|
Public.Data = require 'maps.pirates.surfaces.channel.data'
|
|
|
|
|
|
|
|
Public.info = {
|
|
|
|
display_name = 'Channel'
|
|
|
|
}
|
|
|
|
|
|
|
|
function Public.terrain(args)
|
|
|
|
|
|
|
|
if (args.p.y>30 or args.p.y<-20) and args.p.x>-80 and args.p.x<80 then
|
|
|
|
args.tiles[#args.tiles + 1] = {name = 'sand-1', position = args.p}
|
|
|
|
else
|
|
|
|
args.tiles[#args.tiles + 1] = {name = 'deepwater', position = args.p}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2022-03-19 21:20:55 +00:00
|
|
|
function Public.chunk_structures()
|
2022-03-04 17:57:58 +00:00
|
|
|
return nil
|
2021-10-13 09:21:53 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return Public
|