forked from 2009Scape/Server
Added bonecrusher functionality
If the blessed silver sickle is in the player inventory (not equipped) and they have enabled the feature by using "cast bloom", bones will not drop and instead the player will directly get the prayer experience.
This commit is contained in:
parent
8094465579
commit
d4da75e6ab
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ public final class NPCDropTables {
|
|||
if (bone == null) {
|
||||
return false;
|
||||
}
|
||||
if (!player.getGlobalData().isEnableBoneCrusher()) {
|
||||
if (!player.getInventory().containsItem(new Item(2963, 1)) || !player.getAttribute("bonecrusher:enabled", false)) {
|
||||
return false;
|
||||
}
|
||||
player.getSkills().addExperience(Skills.PRAYER, item.getAmount() * bone.getExperience());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue