public void ModValue(Reputation rep, int value) { if (rep.SetValue(rep.Value + value)) { if (rep.StandingLevel >= StandingLevel.Honored) { this.Owner.Achievements.CheckPossibleAchievementUpdates( AchievementCriteriaType.GainHonoredReputation, 0U, 0U, (Unit)null); } if (rep.StandingLevel >= StandingLevel.Revered) { this.Owner.Achievements.CheckPossibleAchievementUpdates( AchievementCriteriaType.GainReveredReputation, 0U, 0U, (Unit)null); } if (rep.StandingLevel >= StandingLevel.Exalted) { this.Owner.Achievements.CheckPossibleAchievementUpdates( AchievementCriteriaType.GainExaltedReputation, 0U, 0U, (Unit)null); } if (value > 0) { this.Owner.Achievements.CheckPossibleAchievementUpdates(AchievementCriteriaType.GainReputation, 0U, 0U, (Unit)null); } } FactionHandler.SendReputationStandingUpdate((IPacketReceiver)this.m_owner.Client, rep); }
public void SetValue(Reputation rep, int value) { if (rep.SetValue(value)) { //UpdateHostile(rep, rep.Hostile); } FactionHandler.SendReputationStandingUpdate(m_owner.Client, rep); }
public void ModValue(Reputation rep, int value) { if (rep.SetValue(rep.Value + value)) { //UpdateHostile(rep, rep.Hostile); } FactionHandler.SendReputationStandingUpdate(m_owner.Client, rep); }
public void ModValue(Reputation rep, int value) { if (rep.SetValue(rep.Value + value)) { if (rep.StandingLevel >= StandingLevel.Honored) { Owner.Achievements.CheckPossibleAchievementUpdates(AchievementCriteriaType.GainHonoredReputation); } if (rep.StandingLevel >= StandingLevel.Revered) { Owner.Achievements.CheckPossibleAchievementUpdates(AchievementCriteriaType.GainReveredReputation); } if (rep.StandingLevel >= StandingLevel.Exalted) { Owner.Achievements.CheckPossibleAchievementUpdates(AchievementCriteriaType.GainExaltedReputation); } if (value > 0) { Owner.Achievements.CheckPossibleAchievementUpdates(AchievementCriteriaType.GainReputation); } } FactionHandler.SendReputationStandingUpdate(m_owner.Client, rep); }
public void SetValue(Reputation rep, int value) { rep.SetValue(value); FactionHandler.SendReputationStandingUpdate((IPacketReceiver)this.m_owner.Client, rep); }
public void SetValue(Reputation rep, int value) { rep.SetValue(value); FactionHandler.SendReputationStandingUpdate(m_owner.Client, rep); }