Пример #1
0
        public void AddTempThreat(float threat, bool apply)
        {
            HostileReference refe = GetFirst();

            while (refe != null)
            {
                if (apply)
                {
                    if (refe.GetTempThreatModifier() == 0.0f)
                    {
                        refe.AddTempThreat(threat);
                    }
                }
                else
                {
                    refe.ResetTempThreat();
                }

                refe = refe.Next();
            }
        }