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

recall portal image

git-svn-id: http://svn.net-core.org/repos/t-engine4@2333 51575b47-30f0-44d4-a5cc-537603b46e54
parent cb13c6f1
No related branches found
No related tags found
No related merge requests found
game/modules/tome/data/gfx/shockbolt/npc/canine_rungof.png

11.3 KiB

game/modules/tome/data/gfx/shockbolt/npc/hummerhorn.png

7.8 KiB

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

10.4 KiB | W: | H:

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

10.6 KiB | W: | H:

game/modules/tome/data/gfx/shockbolt/terrain/town1.png
game/modules/tome/data/gfx/shockbolt/terrain/town1.png
game/modules/tome/data/gfx/shockbolt/terrain/town1.png
game/modules/tome/data/gfx/shockbolt/terrain/town1.png
  • 2-up
  • Swipe
  • Onion skin
game/modules/tome/data/gfx/terrain/town1.png

10.6 KiB | W: | H:

game/modules/tome/data/gfx/terrain/town1.png

1.39 KiB | W: | H:

game/modules/tome/data/gfx/terrain/town1.png
game/modules/tome/data/gfx/terrain/town1.png
game/modules/tome/data/gfx/terrain/town1.png
game/modules/tome/data/gfx/terrain/town1.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -338,20 +338,24 @@ on_grant = function(self, who)
-- Spawn the portal, far enough from the escort
local gx, gy = getPortalSpot(npc, 150, 10)
if not gx then return true end
local g = mod.class.Grid.new{
show_tooltip=true,
name="Recall Portal: "..npc.name,
display='&', color=colors.VIOLET,
notice = true,
on_move = function(self, x, y, who)
if not who.escort_quest then return end
game.player:setQuestStatus(who.quest_id, engine.Quest.DONE)
local Chat = require "engine.Chat"
Chat.new("escort-quest", who, game.player, {npc=who}):invoke()
who:disappear()
who:removed()
end,
}
local g = game.level.map(gx, gy, engine.Map.TERRAIN)
g = g:cloneFull()
g.show_tooltip = true
g.name = "Recall Portal: "..npc.name
g.display = '&'
g.color = colors.VIOLET
g.add_displays = g.add_displays or {}
g.add_displays[#g.add_displays+1] = mod.class.Grid.new{image="terrain/maze_teleport.png"}
g.notice = true
g.on_move = function(self, x, y, who)
if not who.escort_quest then return end
game.player:setQuestStatus(who.quest_id, engine.Quest.DONE)
local Chat = require "engine.Chat"
Chat.new("escort-quest", who, game.player, {npc=who}):invoke()
who:disappear()
who:removed()
end
g:resolve() g:resolve(nil, true)
game.zone:addEntity(game.level, g, "terrain", gx, gy)
npc.escort_target = {x=gx, y=gy}
......
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