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

When the Master resurrects he gloats a bit

git-svn-id: http://svn.net-core.org/repos/t-engine4@6371 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1298c847
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ require "engine.class"
local ActorAI = require "engine.interface.ActorAI"
local Faction = require "engine.Faction"
local Emote = require("engine.Emote")
local Chat = require "engine.Chat"
require "mod.class.Actor"
module(..., package.seeall, class.inherit(mod.class.Actor, engine.interface.ActorAI))
......@@ -330,6 +331,12 @@ function _M:die(src, death_note)
self:check("on_resurrect", "basic_resurrect")
if self:attr("self_resurrect_chat") then
local chat = Chat.new(self.self_resurrect_chat, self, game.player)
chat:invoke()
self.self_resurrect_chat = nil
end
return
end
......
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011, 2012 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
newChat{ id="welcome",
text = [[#LIGHT_GREEN#*The Master crumbles before you, vanquished. Yet in the blink of an eye you see his form recreating from dust; unharmed and ready to fight again!*#WHITE#
Ahah you fool! See how even death has no meaning for me; for I am the Master and you are my toy, now and forever.]],
answers = {
{"Never! Die!"},
}
}
return "welcome"
......@@ -68,6 +68,7 @@ newEntity{ define_as = "THE_MASTER",
see_invisible = 20,
undead = 1,
self_resurrect = 1,
self_resurrect_chat = "the-master-resurrect",
open_door = 1,
necrotic_aura_base_souls = 10,
......
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