From 619d1253783809d4fa3426231f437e4292a5d0c3 Mon Sep 17 00:00:00 2001 From: CarlPoppa Date: Wed, 18 Feb 2026 08:17:46 +0000 Subject: [PATCH] Amend monster categorisation Ignore monsters with alignment != 0 (non-hostile) --- pkg/data/npc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/data/npc.go b/pkg/data/npc.go index eb3774a..8eb390f 100644 --- a/pkg/data/npc.go +++ b/pkg/data/npc.go @@ -82,7 +82,7 @@ func (m Monsters) FindOne(id npc.ID, t MonsterType) (Monster, bool) { func (m Monsters) Enemies(filters ...MonsterFilter) []Monster { monsters := make([]Monster, 0) for _, mo := range m { - if !mo.IsMerc() && !mo.IsSkip() && !mo.IsGoodNPC() && !mo.IsPet() && mo.Stats[stat.Life] > 0 { + if !mo.IsMerc() && !mo.IsSkip() && !mo.IsGoodNPC() && !mo.IsPet() && mo.Stats[stat.Life] > 0 && mo.Stats[stat.Alignment] == 0 { monsters = append(monsters, mo) } }