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

Learning lore stops running

Necrotic minions are worht 0 exp
Recall/Angolwen Teleport only works when the main player is alive


git-svn-id: http://svn.net-core.org/repos/t-engine4@4855 51575b47-30f0-44d4-a5cc-537603b46e54
parent 10fbc370
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ function _M:init(t)
self.actor = assert(t.actor, "no actorframe actor")
self.w = assert(t.w, "no actorframe w")
self.h = assert(t.h, "no actorframe h")
self.tiles = t.tiles or Tiles.new(w, h, nil, nil, true, nil)
self.tiles = t.tiles or Tiles.new(self.w, self.h, nil, nil, true, nil)
Base.init(self, t)
end
......
......@@ -90,4 +90,9 @@ function _M:learnLore(lore, nopopup, silent)
if learnt and not self.additional_lore[lore] and self.registerLoreFound then self:registerLoreFound(lore) end
print("[LORE] learnt", lore)
if learnt then if l.on_learn then l.on_learn(self) end end
if self.runStop then
self:runStop("learnt lore")
self:restStop("learnt lore")
end
end
......@@ -123,6 +123,7 @@ function necroSetupSummon(self, m, x, y, level, no_control)
m.summoner = self
m.summoner_gain_exp = true
m.necrotic_minion = true
m.exp_worth = 0
m.life_regen = 0
m.unused_stats = 0
m.unused_talents = 0
......
......@@ -727,7 +727,7 @@ newEffect{
deactivate = function(self, eff)
if (eff.allow_override or (self:canBe("worldport") and not self:attr("never_move"))) and eff.dur <= 0 then
game:onTickEnd(function()
if eff.leveid == game.zone.short_name.."-"..game.level.level then
if eff.leveid == game.zone.short_name.."-"..game.level.level and game.player.can_change_zone then
game.logPlayer(self, "You are yanked out of this place!")
game:changeLevel(1, eff.where or game.player.last_wilderness)
end
......@@ -764,7 +764,7 @@ newEffect{
if self:canBe("worldport") and not self:attr("never_move") then
game:onTickEnd(function()
if eff.leveid == game.zone.short_name.."-"..game.level.level then
if eff.leveid == game.zone.short_name.."-"..game.level.level and game.player.can_change_zone then
game.logPlayer(self, "You are yanked out of this place!")
game:changeLevel(1, "town-angolwen")
end
......@@ -1391,7 +1391,7 @@ newEffect{
old_eff.physid = self:addTemporaryValue("combat_physresist", old_eff.cur_physical)
old_eff.spellid = self:addTemporaryValue("combat_spellresist", old_eff.cur_spell)
old_eff.mentalid = self:addTemporaryValue("combat_mentalresist", old_eff.cur_mental)
old_eff.dur = new_eff.dur
return old_eff
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