Skip to content
Snippets Groups Projects
Commit 0c30a6c4 authored by DarkGod's avatar DarkGod
Browse files

New tiles for Stone Wall spell

parent 75e7a3c7
No related branches found
No related tags found
No related merge requests found
Pipeline #
game/modules/tome/data/gfx/shockbolt/terrain/spell_stonewall_02.png

11 KiB

game/modules/tome/data/gfx/shockbolt/terrain/spell_stonewall_03.png

11.6 KiB

......@@ -18,6 +18,7 @@
-- darkgod@te4.org
local Object = require "mod.class.Object"
local Grid = require "mod.class.Grid"
newTalent{
name = "Pulverizing Auger", short_name="DIG",
......@@ -207,7 +208,10 @@ newTalent{
local e = Object.new{
old_feat = oe,
name = "stone wall", image = "terrain/marble_floor.png", add_mos={{image="terrain/spell_stonewall_0"..rng.range(1,3)..".png"}},
name = "stone wall",
image = oe.image,
add_mos = table.clone(oe.add_mos or {}, true),
add_displays = table.clone(oe.add_displays or {}),
display = '#', color_r=255, color_g=255, color_b=255, back_color=colors.GREY,
desc = "a summoned wall of stone",
type = "wall", --subtype = "floor",
......@@ -238,6 +242,7 @@ newTalent{
summoner_gain_exp = true,
summoner = self,
}
e.add_displays[#e.add_displays+1] = Grid.new{image="terrain/spell_stonewall_0"..rng.range(1,3)..".png", z=19}
e.tooltip = mod.class.Grid.tooltip
game.level:addEntity(e)
game.level.map(x + i, y + j, Map.TERRAIN, e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment