Skip to content

Commit

Permalink
Add intolerant hunt mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHib committed Jan 15, 2025
1 parent aa80792 commit 8529afd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions data/definitions/hunt-modes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ aggressive:
aggressive_npcs:
<<: *aggressive
type: npc
aggressive_intolerant:
<<: *aggressive
check_afk: false
not_busy:
<<: *aggressive
check_not_busy: true
Expand Down
2 changes: 1 addition & 1 deletion data/definitions/npcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,7 @@ skeleton_mace_shield:
wander_radius: 8
attack_radius: 4
max_hit_melee: 40
hunt_mode: aggressive
hunt_mode: aggressive_intolerant
style: slash
height: 30
respawn_delay: 60
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import world.gregs.voidps.engine.inject

val areas: AreaDefinitions by inject()

huntPlayer(mode = "aggressive") { npc ->
huntPlayer(mode = "aggressive*") { npc ->
if (!Settings["world.npcs.aggression", true] || attacking(npc, target)) {
return@huntPlayer
}
Expand All @@ -34,7 +34,7 @@ huntPlayer(mode = "cowardly") { npc ->
npc.mode = Interact(npc, target, PlayerOption(npc, target, "Attack"))
}

huntNPC(mode = "aggressive") { npc ->
huntNPC(mode = "aggressive*") { npc ->
if (attacking(npc, target)) {
return@huntNPC
}
Expand Down

0 comments on commit 8529afd

Please sign in to comment.