wesnoth/wesnoth-old — pull request #30 by SilverNexus (2013-06-22 13:13:08+00:00)
Title: New WEAPON_SPECIAL_DRAIN_VALUE Macro

This is a macro that allows for any unit to have a drain percentage of any value, and can be used directly in unit definitions. It provides easy support for the new 'value' attribute in the drains WML.

Even the {VALUE} notation in the description works correctly based on my tests, so the hover description for this macro gives the correct percentage for each unit.