Addition of BonusDropAmount effect.

This commit is contained in:
MobiusDev
2017-10-16 14:41:23 +00:00
parent 239ff51f88
commit 64690e989e
28 changed files with 220 additions and 0 deletions

View File

@@ -765,6 +765,13 @@ public final class L2NpcTemplate extends L2CharTemplate implements IIdentifiable
}
}
// bonus drop amount effect
final double dropAmountEffectBonus = killer.getStat().getValue(Stats.BONUS_DROP_AMOUNT, 0);
if (dropAmountEffectBonus > 0)
{
rateAmount += rateAmount * dropAmountEffectBonus;
}
// finally
return new ItemHolder(dropItem.getItemId(), (long) (Rnd.get(dropItem.getMin(), dropItem.getMax()) * rateAmount));
}

View File

@@ -130,6 +130,7 @@ public enum Stats
EXPSP_RATE("rExp"),
BONUS_EXP("bonusExp"),
BONUS_SP("bonusSp"),
BONUS_DROP_AMOUNT("bonusDropAmount"),
BONUS_DROP_RATE("bonusDropRate"),
ATTACK_CANCEL("cancel"),