HomeWildfire Games

Generalise attack tooltips after D2092/rP22754.

Description

Generalise attack tooltips after D2092/rP22754.

This allows attacks with both capture and damage effects to show both, and centralises display between regular attack and Splash.
It also reverts a change from r14954 which incorrectly switched 'Interval' and 'Rate'.

Patch By: Freagarach

Reviewed By: wraitii

Differential Revision: https://code.wildfiregames.com/D2138

Event Timeline

bb raised a concern with this commit.Jun 20 2020, 12:58 PM
bb added a subscriber: bb.

Working on a fix...

/ps/trunk/binaries/data/mods/public/gui/common/tooltips.js
301–302

These lines have broken translations, since every language will now show "Melee", "Ranged" etc.

This commit now has outstanding concerns.Jun 20 2020, 12:58 PM
wraitii added inline comments.Jun 20 2020, 1:22 PM
/ps/trunk/binaries/data/mods/public/gui/common/tooltips.js
301–302

AH, yeah, similar issues to Damage types and status effects :/

Feel free to suggest a better fix than those, or re-use a similar approach

This commit no longer requires audit.Dec 28 2020, 10:53 AM