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]