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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user