1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/maps/dickbutt.lua

59 lines
2.2 KiB
Lua
Raw Normal View History

2018-05-08 22:23:07 +02:00
local b = require "map_gen.shared.builders"
local RS = require 'map_gen.shared.redmew_surface'
local MGSP = require 'resources.map_gen_settings'
2018-11-06 14:08:33 +02:00
local degrees = require "utils.math".degrees
2018-01-24 21:52:40 +02:00
RS.set_map_gen_settings(
{
MGSP.ore_none,
MGSP.cliff_none
}
)
2018-05-08 22:23:07 +02:00
local body = b.rotate(b.oval(128,256), degrees(20))
local butt = b.translate(b.rotate(b.oval(180, 128), degrees(30)), 130,100)
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
local shaft = b.translate(b.rotate(b.oval(32, 80), degrees(0)), 220, -80)
local ball1 = b.translate(b.rotate(b.oval(32,16), degrees(10)), 250,-50)
local ball2 = b.translate(b.rotate(b.oval(48,16), degrees(5)), 240,-40)
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
local leg1 = b.translate(b.rotate(b.rectangle(16, 80), degrees(175)), 80, 280)
local leg2 = b.translate(b.rotate(b.rectangle(16, 80), degrees(5)), 180, 250)
local foot1 = b.translate(b.rotate(b.rectangle(16, 40), degrees(65)), 65, 315)
local foot2 = b.translate(b.rotate(b.rectangle(16, 40), degrees(65)), 170, 285)
2018-01-24 21:52:40 +02:00
2018-11-06 14:08:33 +02:00
local eye1 = b.translate(b.circle(32),-130, -100)
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
local dickbutt = b.any({body,butt, shaft, ball1, ball2, leg1, leg2, foot1, foot2, eye1 })
dickbutt = b.translate(dickbutt, -80, 0)
2018-01-24 21:52:40 +02:00
b.scale(dickbutt, 0.15, 0.15)
2018-05-08 22:23:07 +02:00
local iron_patch = b.resource(b.translate(b.scale(dickbutt, 0.15, 0.15), 20, 0), "iron-ore")
local copper_patch = b.resource(b.translate(b.scale(dickbutt, 0.115, 0.115), -125, 50), "copper-ore")
local coal_patch = b.resource(b.translate(b.scale(dickbutt, 0.1, 0.1), -135, -90), "coal")
local stone_patch = b.resource(b.translate(b.scale(dickbutt, 0.075, 0.075), 50, 150), "stone")
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
local patches = b.any({ iron_patch, copper_patch, coal_patch, stone_patch })
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
dickbutt = b.apply_entity(dickbutt, patches)
local dickbutt2 = b.rotate(dickbutt, degrees(45))
local dickbutt3 = b.rotate(dickbutt, degrees(90))
local dickbutt4 = b.rotate(dickbutt, degrees(135))
local dickbutt5 = b.rotate(dickbutt, degrees(180))
2018-01-24 21:52:40 +02:00
2018-11-06 14:08:33 +02:00
local pattern =
2018-01-24 21:52:40 +02:00
{
{ dickbutt, dickbutt2, dickbutt3, dickbutt4, dickbutt5 },
{ dickbutt2, dickbutt3, dickbutt4, dickbutt5, dickbutt },
{ dickbutt3, dickbutt4, dickbutt5, dickbutt, dickbutt2 },
{ dickbutt4, dickbutt5, dickbutt, dickbutt2, dickbutt3 },
{ dickbutt5, dickbutt, dickbutt2, dickbutt3, dickbutt4 },
}
2018-05-08 22:23:07 +02:00
local map = b.grid_pattern(pattern, 5, 5, 650, 650)
map = b.change_tile(map, false, "water")
2018-01-24 21:52:40 +02:00
2018-11-06 14:08:33 +02:00
return map