Hello,
I wanted to increase the dagger's blow damage with skills, items etc, so I created a new stat called blowDmg. It only affects damage done by BLOW skills.
gameserver/model/skills/Stat.java, line 62:
After:
BLOW_RATE("blowRate"),
Add:
BLOW_DAMAGE("blowDmg"),
gameserver/model/skills/Formulas.java, line 1300:
After:
// possible skill power critical hit, based on Official Description:
if (calcCrit(skill.getBaseCritRate() * 10 * BaseStat.DEX.calcBonus(attacker)))
{
damage *= 2;
}
Add:
damage = attacker.calcStat(Stat.BLOW_DAMAGE, damage, target, null);
You can use it like any other stat. For example <mul val="2" order="0x30" stat="blowDmg"/> doubles the damage caused by Blow skills.