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

Bosses will be marked as purple on the minimap

git-svn-id: http://svn.net-core.org/repos/t-engine4@3233 51575b47-30f0-44d4-a5cc-537603b46e54
parent d866a482
No related branches found
No related tags found
No related merge requests found
......@@ -392,6 +392,18 @@ function _M:act()
return true
end
--- Setup minimap color for this entity
-- You may overload this method to customize your minimap
function _M:setupMinimapInfo(mo, map)
if map.actor_player and not map.actor_player:canSee(self) then return end
if self.rank > 3 then mo:minimap(0xC0, 0x00, 0xAF) return end
local r = map.actor_player and map.actor_player:reactionToward(self) or -100
if r < 0 then mo:minimap(240, 0, 0)
elseif r > 0 then mo:minimap(0, 240, 0)
else mo:minimap(0, 0, 240)
end
end
--- Attach or remove a display callback
-- Defines particles to display
function _M:defineDisplayCallback()
......
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