Addition of BonusDropAmount effect.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
@@ -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"),
|
||||
|
||||
|
Reference in New Issue
Block a user