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.
This commit is contained in:
randy 2024-11-13 14:23:17 -07:00
parent a6ad4f8f3b
commit e7ed5b0d7a

View file

@ -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("<col=ffd700>Your Wealth enchantment coaxes a rare drop from your opponent.</col>")
return true
} else if (ring != null && ring.id in Items.RING_OF_WEALTH_14638..Items.RING_OF_WEALTH4_14646) {
player.sendMessage("<col=ffd700>Your Ring of Wealth coaxes a rare drop from your opponent.</col>")
player.sendMessage("The magic in the ring reminds you of the High Level Alchemy spell for some reason.")
return true
} else {
return false
}
}
/**