mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-26 10:42:52 +01:00
Issue 12220 stealth tooltip show protected dailies (#12255)
* Issue 12220 - Show dailies protected by Stealth A feature on the old site showed the number of dailies protected by casting Stealth. This is now showing again in the Stealth tooltip. The skillNotes section was not being called. It adds additional skill-specific info: the dailies avoided by stealth, whether stealth no longer needs to be cast (dailies already avoided) and whether frost is no longer useful to cast. Speculation: the spellDisabled method had some commented out code regarding Stealth, which may have broken due to a change in how dailies are referenced. I have fixed this line, so it seemed alright to keep the entirety of the skillNotes function as it had been. However, this includes more than just showing dailies in the tooltip. Behavior changes: - tooltip shows dailies avoided for Stealth - tooltip shows maxed out message for Stealth when all dailies are covered - tooltip shows frost already cast message when frost has already been cast * clean up conditions in skillNotes * use future tense for rogue stealth dailies tooltip * use getter for accurate task length * consider stealth disabled based on incomplete dailies due, not all dailies * Issue 12220 - Show dailies protected by Stealth A feature on the old site showed the number of dailies protected by casting Stealth. This is now showing again in the Stealth tooltip. The skillNotes section was not being called. It adds additional skill-specific info: the dailies avoided by stealth, whether stealth no longer needs to be cast (dailies already avoided) and whether frost is no longer useful to cast. Speculation: the spellDisabled method had some commented out code regarding Stealth, which may have broken due to a change in how dailies are referenced. I have fixed this line, so it seemed alright to keep the entirety of the skillNotes function as it had been. However, this includes more than just showing dailies in the tooltip. Behavior changes: - tooltip shows dailies avoided for Stealth - tooltip shows maxed out message for Stealth when all dailies are covered - tooltip shows frost already cast message when frost has already been cast * factor out stealthBuffsToAdd for casting stealth + tooltip previewing dailies avoided * fix merge conflict
This commit is contained in: