Skip to content
Snippets Groups Projects
Commit 395a64b6 authored by DarkGod's avatar DarkGod
Browse files

Rares/Uniques/Bosses/Elite Bosses/Gods now have distinctive markers on them to easily notice them

parent ff51b1ec
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 0 deletions
......@@ -1162,6 +1162,14 @@ function _M:bigTacticalFrame(x, y, w, h, zoom, on_map, tlx, tly)
end
end
local boss_rank_circles = {
[3.2] = { back="npc/boss_indicators/rare_circle_back.png", front="npc/boss_indicators/rare_circle_front.png" },
[3.5] = { back="npc/boss_indicators/unique_circle_back.png", front="npc/boss_indicators/unique_circle_front.png" },
[4] = { back="npc/boss_indicators/boss_circle_back.png", front="npc/boss_indicators/boss_circle_front.png" },
[5] = { back="npc/boss_indicators/elite_boss_circle_back.png", front="npc/boss_indicators/elite_boss_circle_front.png" },
[10] = { back="npc/boss_indicators/god_circle_back.png", front="npc/boss_indicators/god_circle_front.png" },
}
--- Attach or remove a display callback
-- Defines particles to display
function _M:defineDisplayCallback()
......@@ -1216,6 +1224,12 @@ function _M:defineDisplayCallback()
else self:removeParticles(e)
end
end
if boss_rank_circles[self.rank or 1] then
local b = boss_rank_circles[self.rank]
if not b.ifront then b.ifront = game.level.map.tilesTactic:get('', 0,0,0, 0,0,0, b.front) end
b.ifront:toScreen(x, y + h - w * (0.616 - 0.5), w, w / 2)
end
end
local function backparticles(x, y, w, h, zoom, on_map)
......@@ -1232,6 +1246,12 @@ function _M:defineDisplayCallback()
else self:removeParticles(e)
end
end
if boss_rank_circles[self.rank or 1] then
local b = boss_rank_circles[self.rank]
if not b.iback then b.iback = game.level.map.tilesTactic:get('', 0,0,0, 0,0,0, b.back) end
b.iback:toScreen(x, y + h - w * 0.616, w, w / 2)
end
end
if self._mo == self._last_mo or not self._last_mo then
......
......@@ -22,6 +22,7 @@ local ActorAI = require "engine.interface.ActorAI"
local Faction = require "engine.Faction"
local Emote = require("engine.Emote")
local Chat = require "engine.Chat"
local Particles = require "engine.Particles"
require "mod.class.Actor"
module(..., package.seeall, class.inherit(mod.class.Actor, engine.interface.ActorAI))
......
game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/boss_circle_back.png

20.6 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/boss_circle_front.png

20.6 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/elite_boss_circle_back.png

20.6 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/elite_boss_circle_front.png

20.5 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/god_circle_back.png

20.9 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/god_circle_front.png

20.9 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/rare_circle_back.png

4.55 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/rare_circle_front.png

4.01 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/unique_circle_back.png

20.4 KiB

game/modules/tome/data/gfx/shockbolt/npc/boss_indicators/unique_circle_front.png

20.3 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