Example #1
0
 public bool LevelUp()
 {
     if (!SubstractGuildPoints(CharacterFormulas.GuildLevelUpCost[Level]))
     {
         return(false);
     }
     Level++;
     AddHistoryMessage(Asda2GuildHistoryType.GuildLevelNowIs, Level, "system", DateTime.Now.ToLongTimeString());
     Asda2GuildHandler.SendUpdateGuildInfoResponse(this, GuildInfoMode.GuildLevelChanged);
     foreach (var character in GetCharacters())
     {
         GlobalHandler.SendCharactrerInfoClanNameToAllNearbyCharacters(character);
     }
     return(true);
 }