Skip to content
Snippets Groups Projects
Commit c6c3fb46 authored by dg's avatar dg
Browse files

Staff of absorption has its own tile

git-svn-id: http://svn.net-core.org/repos/t-engine4@1824 51575b47-30f0-44d4-a5cc-537603b46e54
parent b4a77e94
No related branches found
No related tags found
No related merge requests found
......@@ -686,8 +686,9 @@ function _M:setupCommands()
end,
[{"_g","ctrl"}] = function()
if config.settings.tome.cheat then
local m = game.zone:makeEntityByName(game.level, "actor", "TEST")
game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y+1)
-- local m = game.zone:makeEntityByName(game.level, "actor", "TEST")
-- game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y+1)
self:changeLevel(1, "high-peak")
end
end,
}
......
game/modules/tome/data/gfx/object/staff_absorption.png

2.69 KiB

......@@ -26,7 +26,7 @@ local Stats = require "engine.interface.ActorStats"
newEntity{ define_as = "STAFF_ABSORPTION_AWAKENED", base="BASE_STAFF",
unique = true, godslayer=true,
name = "Awakened Staff of Absorption", identified=true,
display = "\\", color=colors.VIOLET, image = "object/staff_dragonbone.png",
display = "\\", color=colors.VIOLET, image = "object/staff_absorption.png",
encumber = 7,
desc = [[Carved with runes of power, this staff seems to have been made long ago. Yet it bears no signs of tarnishment.
Light around it seems to dim and you can feel its tremendous power simply by touching it.
......@@ -53,8 +53,7 @@ The Sorcerers seem to have awakened its power.
max_power = 500, power_regen = 1,
use_power = { name = "absorb energies", power = 500,
use = function(self, who)
local tg = {type="hit", range=8
}
local tg = {type="hit", range=8}
local x, y = who:getTarget(tg)
if not x or not y then return nil end
local _ _, x, y = who:canProject(tg, x, y)
......
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