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

Pheonix egg got a tile

git-svn-id: http://svn.net-core.org/repos/t-engine4@3693 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1502c292
No related branches found
No related tags found
No related merge requests found
......@@ -319,7 +319,7 @@ function _M:getMapObjects(tiles, mos, z)
end
function _M:removeAllMOs()
self._mo:invalidate()
if self._mo then self._mo:invalidate() end
self._mo = nil
if not self.add_displays then return end
......
......@@ -1729,7 +1729,7 @@ function _M:checkEncumbrance()
end
end
--- Update tile
--- Update tile for races that can handle it
function _M:updateModdableTile()
if not self.moddable_tile then return end
self:removeAllMOs()
......
......@@ -33,6 +33,7 @@ newEntity{
size_category = 3,
open_door = true,
-- moddable_tile = "yeek",
}
newEntity{ base = "BASE_NPC_HUMANOID_RANDOM_BOSS",
......
game/modules/tome/data/gfx/shockbolt/object/egg_dragons_egg_02_64.png

6.26 KiB

game/modules/tome/data/gfx/shockbolt/object/egg_dragons_egg_03_64.png

6.17 KiB

game/modules/tome/data/gfx/shockbolt/object/egg_dragons_egg_04_64.png

6.13 KiB

game/modules/tome/data/gfx/shockbolt/object/egg_dragons_egg_05_64.png

6.22 KiB

game/modules/tome/data/gfx/shockbolt/object/egg_dragons_egg_06_64.png

5.95 KiB

......@@ -2235,10 +2235,9 @@ newEffect{
on_lose = function(self, err) return "#Target# bursts out from the egg.", "-Phoenix" end,
activate = function(self, eff)
self.display = "O" -- change the display of the phoenix to an egg, maybe later make it a fiery orb image
if self._mo then
self._mo:invalidate()
game.level.map:updateMap(self.x, self.y)
end
eff.old_image = self.image
self.image = "object/egg_dragons_egg_06_64.png"
self:removeAllMOs()
eff.life_regen = self:addTemporaryValue("life_regen", 25) -- gives it a 10 life regen, should I increase this?
eff.mana_regen = self:addTemporaryValue("mana_regen", -9.75) -- makes the mana regen realistic
eff.never_move = self:addTemporaryValue("never_move", 1) -- egg form should not move
......@@ -2248,10 +2247,8 @@ newEffect{
end,
deactivate = function(self, eff)
self.display = "B"
if self._mo then
self._mo:invalidate()
game.level.map:updateMap(self.x, self.y)
end
self.image = eff.old_image
self:removeAllMOs()
self:removeTemporaryValue("life_regen", eff.life_regen)
self:removeTemporaryValue("mana_regen", eff.mana_regen)
self:removeTemporaryValue("never_move", eff.never_move)
......
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