public int GetAggroTowardsEntity(LivingEntity otherEntity) { if (aggroLookup.ContainsKey(otherEntity.ID) == false) { return(FractionRelations.GetAggro(this, otherEntity)); } return(aggroLookup[otherEntity.ID]); }
public void ChangeAggroTowardsEntity(LivingEntity otherEntity, int modifier) { if (aggroLookup.ContainsKey(otherEntity.ID) == false) { aggroLookup[otherEntity.ID] = FractionRelations.GetAggro(this, otherEntity); } aggroLookup[otherEntity.ID] += modifier; }