From d4da75e6abe34de54a0879438ff32cfcafce9ac5 Mon Sep 17 00:00:00 2001 From: randy Date: Thu, 7 Nov 2024 10:05:10 -0700 Subject: [PATCH] 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. --- .../src/main/core/game/node/entity/npc/drop/NPCDropTables.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/game/node/entity/npc/drop/NPCDropTables.java b/Server/src/main/core/game/node/entity/npc/drop/NPCDropTables.java index e4e1cd3b6..5a5db3d49 100644 --- a/Server/src/main/core/game/node/entity/npc/drop/NPCDropTables.java +++ b/Server/src/main/core/game/node/entity/npc/drop/NPCDropTables.java @@ -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());