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:
randy 2024-11-07 10:05:10 -07:00
parent 8094465579
commit d4da75e6ab

View file

@ -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());