Ejemplo n.º 1
0
 public EncyclopediaHeroPageVMExtensionVM(EncyclopediaPageArgs args) : base(args)
 {
     this._grantFiefInterface = new GrantFiefInterface();
     _hero = (base.Obj as Hero);
     this.SendMessengerInfluenceCost = (int)DiplomacyCostCalculator.DetermineInfluenceCostForSendingMessenger();
     this.SendMessengerActionName    = new TextObject("{=cXfcwzPp}Send Messenger").ToString();
     this.GrantFiefActionName        = new TextObject("{=LpoyhORp}Grant Fief").ToString();
     this.CanGrantFief = GrantFiefAction.CanGrantFief(this._hero.Clan, out _);
     base.RefreshValues();
 }
Ejemplo n.º 2
0
 private void OnMessengerSent(Hero hero)
 {
     _messengerManager.SendMessengerWithInfluenceCost(hero, DiplomacyCostCalculator.DetermineInfluenceCostForSendingMessenger());
 }