Example #1
0
 private static void CreatePeaceInquiry(Kingdom kingdom, Kingdom faction, int payment, float influenceCost)
 {
     InformationManager.ShowInquiry(new InquiryData(new TextObject("{=BkGSVccZ}Peace Proposal").ToString(), CreateMakePeaceInquiryText(kingdom, faction, payment), true, true, new TextObject("{=3fTqLwkC}Accept").ToString(), new TextObject("{=dRoMejb0}Decline").ToString(), () =>
     {
         KingdomPeaceAction.AcceptPeace(kingdom, faction, payment, influenceCost, false);
     }, () =>
     {
         Events.Instance.OnPeaceProposalSent(kingdom);
     }, ""), true);
 }
Example #2
0
 public static void ApplyPeace(Kingdom kingdomMakingPeace, Kingdom otherKingdom, int payment, float influenceCost, bool forcePlayerCharacterCosts = false)
 {
     if (!otherKingdom.Leader.IsHumanPlayerCharacter)
     {
         KingdomPeaceAction.AcceptPeace(kingdomMakingPeace, otherKingdom, payment, influenceCost, forcePlayerCharacterCosts);
     }
     else if (!CooldownManager.HasPeaceProposalCooldownWithPlayerKingdom(kingdomMakingPeace))
     {
         KingdomPeaceAction.CreatePeaceInquiry(kingdomMakingPeace, otherKingdom, payment, influenceCost);
     }
 }