Пример #1
0
        internal static bool MonsterHeroMutualDetection()
        {
            bool monsterSighted = false;

            // Must cycle through each monster to trigger them to notice the hero too.
            foreach (var monster in monsters)
            {
                if (FloorGenerator.WithinSightOf(monster) && !InventoryEffectManager.HeroBlind)
                {
                    monsterSighted     = true;
                    monster.discovered = true;
                }
                if (InventoryEffectManager.HeroDetectsMonsters)
                {
                    monster.discovered = true;
                }
            }
            return(monsterSighted);
        }