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

The Rod of Recall can be used again to stop recalling

git-svn-id: http://svn.net-core.org/repos/t-engine4@4405 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5900d936
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,6 @@ newEntity{ base = "BASE_WAND",
desc = [[This rod is made entirely of voratun, infused with raw magical energies that can bend space itself.
You have heard of such items before. They are very useful to adventurers, allowing faster travel.]],
cost = 0, quest=true,
elec_proof = true,
max_power = 400, power_regen = 1,
use_power = { name = "recall the user to the worldmap", power = 202,
......
......@@ -150,8 +150,10 @@ return {
end
local spot = game.level:pickSpotRemove{type="stairs", subtype="stairs"}
local g = game.level.map(spot.x, spot.y, engine.Map.TERRAIN)
game.zone:addEntity(game.level, floor, "terrain", spot.x, spot.y)
if spot then
local g = game.level.map(spot.x, spot.y, engine.Map.TERRAIN)
game.zone:addEntity(game.level, floor, "terrain", spot.x, spot.y)
end
game.log("#YELLOW#You hear all the doors being shattered into pieces.")
end,
......
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