public static void Postfix(HeroVM __instance, Hero hero)
 {
     if (hero != null)
     {
         __instance.IsChild = hero.Age < 3;
     }
     __instance.RefreshValues();
 }
Exemplo n.º 2
0
 public override void RefreshValues()
 {
     base.RefreshValues();
     Name        = Hero.MainHero.Clan.Name.ToString();
     MembersText = new TextObject("{=wang_learning_skill}LearningSKill").ToString();
     CanvassText = new TextObject("{=wang_information}ClanInformation").ToString();
     IncomeText  = new TextObject("{=wang_mod_setting}ModSetting").ToString();
     FiefsText   = new TextObject("{=wang_log}").ToString();
     DoneLbl     = GameTexts.FindText("str_done").ToString();
     LeaderText  = GameTexts.FindText("str_sort_by_leader_name_label").ToString();
     GameTexts.SetVariable("TIER", Clan.PlayerClan.Tier);
     CurrentRenownText = GameTexts.FindText("str_clan_tier").ToString();
     _clanMembers?.RefreshValues();
     _canvassVM?.RefreshValues();
     _clanFiefs?.RefreshValues();
     _clanIncome?.RefreshValues();
     _leader?.RefreshValues();
 }