From e7ed5b0d7ae58283824138f91d11ba7a43513f71 Mon Sep 17 00:00:00 2001 From: randy Date: Wed, 13 Nov 2024 14:23:17 -0700 Subject: [PATCH] Added check to allow permanant unlock to act as a worn ring of wealth This only affects NPC drops, not gem drops from mining. Due to this affecting the rare drop table only, this has not been tested. --- Server/src/main/core/api/ContentAPI.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Server/src/main/core/api/ContentAPI.kt b/Server/src/main/core/api/ContentAPI.kt index 84d41d69a..daf3c8625 100644 --- a/Server/src/main/core/api/ContentAPI.kt +++ b/Server/src/main/core/api/ContentAPI.kt @@ -279,7 +279,16 @@ fun hasGodItem(player: Player, god: God): Boolean { */ fun shouldRemoveNothings(player: Player) : Boolean { val ring = getItemFromEquipment(player, EquipmentSlot.RING) - return ring != null && ring.id in Items.RING_OF_WEALTH_14638..Items.RING_OF_WEALTH4_14646 + if (getAttribute(player, "ringofwealth:unlocked", false)){ + player.sendMessage("Your Wealth enchantment coaxes a rare drop from your opponent.") + return true + } else if (ring != null && ring.id in Items.RING_OF_WEALTH_14638..Items.RING_OF_WEALTH4_14646) { + player.sendMessage("Your Ring of Wealth coaxes a rare drop from your opponent.") + player.sendMessage("The magic in the ring reminds you of the High Level Alchemy spell for some reason.") + return true + } else { + return false + } } /**