public override void ApplyAvatarChange(AllianceMemberEntry memberEntry) { if (this.VillageType == 1) { memberEntry.SetDuelScore(memberEntry.GetDuelScore() - this.ScoreChange); } else { memberEntry.SetScore(memberEntry.GetScore() - this.ScoreChange); } }
public static void SetLogicClientAvatarToAllianceMemberEntry(LogicClientAvatar avatar, AllianceMemberEntry allianceMemberEntry, Alliance alliance = null) { bool updateScoring = avatar.GetScore() != avatar.GetScore(); allianceMemberEntry.SetAvatarId(avatar.GetId()); allianceMemberEntry.SetHomeId(avatar.GetCurrentHomeId()); allianceMemberEntry.SetName(avatar.GetName()); allianceMemberEntry.SetExpLevel(avatar.GetExpLevel()); allianceMemberEntry.SetLeagueType(avatar.GetLeagueType()); allianceMemberEntry.SetScore(avatar.GetScore()); allianceMemberEntry.SetDuelScore(avatar.GetDuelScore()); allianceMemberEntry.SetWarPreference(avatar.GetWarPreference()); if (alliance != null) { if (updateScoring) { alliance.UpdateScoring(); } } }
public override void ApplyAvatarChange(AllianceMemberEntry memberEntry) { memberEntry.SetDuelScore(memberEntry.GetDuelScore() + this.DuelScoreGain); }