Deep wilderness threats now continue at next login if present when logging out

Decreased brawler gloves and PvP gear drop rate from ordinary deep wilderness NPCs (does not apply to revenants or chaos elemental)
Brawler gloves and PvP gear drops from ordinary deep wilderness NPCs now require at least 100k high alchemy risk (does not apply to revenants or chaos elemental)
This commit is contained in:
Avi Weinstock
2023-08-29 07:41:59 +00:00
committed by Ryan
parent 4276ed731d
commit a0435fb890
8 changed files with 159 additions and 21 deletions
@@ -4,6 +4,7 @@ import core.game.node.Node;
import core.game.node.entity.Entity;
import core.game.node.entity.impl.WalkingQueue;
import core.game.node.entity.npc.NPC;
import core.game.node.entity.npc.NPCBehavior;
import core.game.node.entity.player.Player;
import core.game.system.task.Pulse;
import core.game.world.map.Direction;
@@ -175,6 +176,11 @@ public abstract class MovementPulse extends Pulse {
if (pathfinder == null) {
if (mover instanceof Player) {
this.pathfinder = Pathfinder.SMART;
} else if (mover instanceof NPC) {
NPC npc = (NPC)mover;
NPCBehavior behavior = npc.behavior;
Pathfinder pf = behavior != null ? behavior.getPathfinderOverride(npc) : null;
this.pathfinder = pf != null ? pf : Pathfinder.DUMB;
} else {
this.pathfinder = Pathfinder.DUMB;
}