public static bool ConsiderWar(Clan clan, Kingdom kingdom, IFaction otherFaction) { int num = Campaign.Current.Models.DiplomacyModel.GetInfluenceCostOfProposingWar(kingdom) / 2; if (clan.Influence < (float)num) { return(false); } DeclareWarDecision declareWarDecision = new DeclareWarDecision(clan, otherFaction); if (declareWarDecision.CalculateSupport(clan) > 50f) { float kingdomSupportForDecision = GetKingdomSupportForDecision(declareWarDecision); if ((double)MBRandom.RandomFloat < (double)kingdomSupportForDecision - 0.55) { return(true); } } return(false); }