Implemented split combat levels

A split combat level (e.g. 50+5) will be displayed for a player when the player is on a PvP world and does not have a summoning pouch or a familiar summoned.
A split combat level will also be shown if the player is on a world with wilderness PvP enabled, the player is in the wilderness, and does not have a summoning pouch or a familiar summoned.
If the world is a PvP world, display other players' combat levels in white if they are outside of combat range, or shades of green/yellow/orange/red if they are within combat range.
If the world is not a PvP world, always display other players' combat levels in shades of green/yellow/orange/red.
This commit is contained in:
zsrv
2023-07-09 03:54:31 +00:00
committed by Ryan
parent a6d5961226
commit 417db14d5c
5 changed files with 33 additions and 13 deletions
@@ -45,7 +45,7 @@ public final class InventoryListener implements ContainerListener {
}
}
player.getFamiliarManager().setHasPouch(pouch);
if (hadPouch != pouch && player.getSkullManager().isWilderness()) {
if (hadPouch != pouch) {
player.getAppearance().sync();
}
}