Пример #1
0
        public int GetAggroTowardsEntity(LivingEntity otherEntity)
        {
            if (aggroLookup.ContainsKey(otherEntity.ID) == false)
            {
                return(FractionRelations.GetAggro(this, otherEntity));
            }

            return(aggroLookup[otherEntity.ID]);
        }
Пример #2
0
        public void ChangeAggroTowardsEntity(LivingEntity otherEntity, int modifier)
        {
            if (aggroLookup.ContainsKey(otherEntity.ID) == false)
            {
                aggroLookup[otherEntity.ID] = FractionRelations.GetAggro(this, otherEntity);
            }

            aggroLookup[otherEntity.ID] += modifier;
        }