new function to check if monster is able to summon new monsters

This commit is contained in:
Héctor Giménez
2023-05-13 20:09:11 +09:00
parent d1017bea61
commit cb7d2e5a34

View File

@@ -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
}