From cb7d2e5a347c070edcabcc8583db922daae69706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Gim=C3=A9nez?= Date: Sat, 13 May 2023 20:09:11 +0900 Subject: [PATCH] new function to check if monster is able to summon new monsters --- pkg/data/npc.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/data/npc.go b/pkg/data/npc.go index df3df8e..db64076 100644 --- a/pkg/data/npc.go +++ b/pkg/data/npc.go @@ -123,3 +123,17 @@ func (m Monster) IsGoodNPC() bool { return false } + +// IsMonsterRaiser returns true if the monster is able to spawn new monsters. +func (m Monster) IsMonsterRaiser() bool { + switch m.Name { + case npc.FallenShaman, + npc.CarverShaman, + npc.DevilkinShaman, + npc.DarkShaman, + npc.WarpedShaman: + return true + } + + return false +}