Пример #1
0
        public void modifyThreatPercent(Unit victim, int percent)
        {
            HostileReference refe = getReferenceByTarget(victim);

            if (refe != null)
            {
                refe.addThreatPercent(percent);
            }
        }
Пример #2
0
        void addThreatPercent(int percent)
        {
            HostileReference refe = getFirst();

            while (refe != null)
            {
                refe.addThreatPercent(percent);
                refe = refe.next();
            }
        }