Upgrades a weapon's enhancement bonus.
Weapon to upgrade.
Upgrade weapon's enhancement bonus by this much.
Shortcut function to upgrade the enhancement bonus of a weapon by the number specified in nUpgradeBy. If the resulting new enhancement bonus would be out of bounds (>+20), it will be set to +20.
You can also use this function to degrade a weapon's enhancement bonus by providing a negative number as nUpgradeBy. If the enhancement bonus would then be set to lower than 1, it is set to 1 instead.
Only melee weapons can have enhancement bonuses - neither ranged weapons nor ammunition can hold such an itemproperty.
#include " x2_inc_itemprop "
author: Lilac Soul, additional contributor(s): hbunny