Add cliffs
This commit is contained in:
parent
309a2c954a
commit
7dd5dc5eb1
3 changed files with 16 additions and 2 deletions
13
ghelmina/prototypes/content/cliffs.lua
Normal file
13
ghelmina/prototypes/content/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,3 +1,4 @@
|
|||
require("planet/planet")
|
||||
require("pain")
|
||||
require("technology")
|
||||
require("technology")
|
||||
require("cliffs")
|
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
cliff_settings = {
|
||||
name = "cliff-gleba",
|
||||
name = "cliff-ghelmina",
|
||||
control = "gleba_cliff",
|
||||
cliff_elevation_0 = 40,
|
||||
cliff_elevation_interval = 60,
|
||||
|
|
Loading…
Add table
Reference in a new issue