Add cliffs
This commit is contained in:
parent
309a2c954a
commit
fc7c13e444
4 changed files with 18 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
require("planet/planet")
|
require("planet/planet")
|
||||||
|
require("terrain/terrain")
|
||||||
require("pain")
|
require("pain")
|
||||||
require("technology")
|
require("technology")
|
||||||
|
require("eye-miner")
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
cliff_settings = {
|
cliff_settings = {
|
||||||
name = "cliff-gleba",
|
name = "cliff-ghelmina",
|
||||||
control = "gleba_cliff",
|
control = "gleba_cliff",
|
||||||
cliff_elevation_0 = 40,
|
cliff_elevation_0 = 40,
|
||||||
cliff_elevation_interval = 60,
|
cliff_elevation_interval = 60,
|
||||||
|
|
13
ghelmina/prototypes/content/terrain/cliffs.lua
Normal file
13
ghelmina/prototypes/content/terrain/cliffs.lua
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
local cliffs = table.deepcopy(data.raw.cliff["cliff-gleba"])
|
||||||
|
cliffs.name = "cliff-ghelmina"
|
||||||
|
for _, orientation in pairs(cliffs.orientations) do
|
||||||
|
for _, variation in pairs(table.concat(orientation.pictures or {}, orientation.pictures_lower or {})) do
|
||||||
|
for _, layer in pairs(variation.layers) do
|
||||||
|
layer.filename = layer.filename:gsub("__space%-age__/graphics/terrain/cliffs/gleba/cliff%-gleba", Ghelmina.graphics .. "terrain/cliff/cliff-ghelmina")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
data:extend({
|
||||||
|
cliffs
|
||||||
|
})
|
1
ghelmina/prototypes/content/terrain/terrain.lua
Normal file
1
ghelmina/prototypes/content/terrain/terrain.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require("cliffs")
|
Loading…
Add table
Reference in a new issue