[v1.3.0+] Displacement Tracking

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2524
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.3.0+] Displacement Tracking

#1 Post by Zizzo »

Displacement Shield is AFAICT the only shield that doesn't indicate in its buffs area display how much of the shield is left. Which is inconvenient, because it's also just about the only shield I consider worth using Aegis to juice back up, so I have to keep checking its tooltip to see how much of the shield has been depleted to know when to replenish it. [The shield overlay on the life meter doesn't help for this if you've got other shields active in addition to Displacement Shield.]

The trick, of course, is how to get all the information we need onto the effect icon. Ideally we'd need the duration, the current power and the maximum power, or at least the ratio of the latter two, and getting it there would mean heavy rewriting of bits of the UI. Fortunately, there's already infrastructure in place for displaying a fractional percentage in the effect icon (it's used by the Wild Speed effect from movement infusions, to show how long you've got left on your speed boost). A little borrowing later, we have my new Displacement Tracking addon.

[Technical info:]

Code: Select all

Hooks:
  ToME:load [to add a get_fractional_percent() method to the Displacement Shield effect]
"Blessed are the yeeks, for they shall inherit Arda..."

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: [v1.3.0+] Displacement Tracking

#2 Post by jenx »

All hail the add on maestro! Another great improvement zizzo, hope it makes the core.
MADNESS rocks

Post Reply