Players can no longer walk where there is no map data

Fixed an issue that prevented teleblock from being used in PvP
Removed redundant code that prevented PvP looting in some instances
Improved strictness of grave generation rules in regards to PvP
Added nothing drop to the RDT (50% chance)
Implemented ring of wealth effect on rare drops (removes nothing drop)
Improved handling of nothing drops, preventing dwarf remains being awarded instead of nothing in some instances
Added impling IDs to the ImplingNPC definition so all implings behave like implings
Crystal shield and crystal bow now degrade
Made cyclops room kickout on disconnect more reliable
Fixed MTA Enchantment Zone items not adhering to the zone's rules
This commit is contained in:
Ceikry
2023-01-29 06:35:42 +00:00
committed by Ryan
parent a100affda2
commit b2f90d3dcc
31 changed files with 212 additions and 1048 deletions
+10
View File
@@ -198,6 +198,16 @@ fun hasGodItem(player: Player, god: God): Boolean {
return false
}
/**
* Check if the given player should have the "remove nothing" RoW effect active.
* @param player the player we are checking
* @return whether we should ignore nothings
*/
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
}
/**
* Remove an item from a player's inventory
* @param player the player whose inventory to remove the item from