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

Non-hostile boss-level creatures will now have their own tactical border

git-svn-id: http://svn.net-core.org/repos/t-engine4@3386 51575b47-30f0-44d4-a5cc-537603b46e54
parent cdab6cb7
No related branches found
No related tags found
No related merge requests found
game/engines/default/data/gfx/tactical_powerful.png

398 B

......@@ -65,6 +65,7 @@ faction_friend = "tactical_friend.png"
faction_neutral = "tactical_neutral.png"
faction_enemy = "tactical_enemy.png"
faction_danger = "tactical_danger.png"
faction_powerful = "tactical_powerful.png"
faction_self = "tactical_self.png"
faction_danger_check = function(self, e) return e.unique end
......
......@@ -422,6 +422,7 @@ function _M:defineDisplayCallback()
local f_self = nil
local f_danger = nil
local f_powerful = nil
local f_friend = nil
local f_enemy = nil
local f_neutral = nil
......@@ -447,6 +448,7 @@ function _M:defineDisplayCallback()
if not f_self then
f_self = game.level.map.tilesTactic:get(nil, 0,0,0, 0,0,0, map.faction_self)
f_powerful = game.level.map.tilesTactic:get(nil, 0,0,0, 0,0,0, map.faction_powerful)
f_danger = game.level.map.tilesTactic:get(nil, 0,0,0, 0,0,0, map.faction_danger)
f_friend = game.level.map.tilesTactic:get(nil, 0,0,0, 0,0,0, map.faction_friend)
f_enemy = game.level.map.tilesTactic:get(nil, 0,0,0, 0,0,0, map.faction_enemy)
......@@ -461,7 +463,8 @@ function _M:defineDisplayCallback()
if self == map.actor_player then
f_self:toScreen(x, y, w, h)
elseif map:faction_danger_check(self) then
f_danger:toScreen(x, y, w, h)
if friend >= 0 then f_powerful:toScreen(x, y, w, h)
else f_danger:toScreen(x, y, w, h) end
elseif friend > 0 then
f_friend:toScreen(x, y, w, h)
elseif friend < 0 then
......
game/modules/tome/data/gfx/shockbolt/tactical_powerful.png

6.31 KiB

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