M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
Helpers.FactionHelper Class Reference

Static Public Member Functions

static float FindPotentialStrength (IFaction faction)
 
static float GetPowerRatioToEnemies (Kingdom kingdom)
 
static Tuple< bool, string > IsClanNameApplicable (string name)
 
static Tuple< bool, string > IsKingdomNameApplicable (string name)
 
static float GetPowerRatioToTributePayedKingdoms (Kingdom kingdom)
 
static bool CanClanBeGrantedFief (Clan clan)
 
static bool CanPlayerEnterFaction (bool asVassal=false)
 
static float GetTotalEnemyKingdomPower (Kingdom kingdom)
 
static float GetTotalTributePayedKingdomsPower (Kingdom kingdom)
 
static IEnumerable< ArmyGetKingdomArmies (IFaction mapFaction)
 
static float SettlementProsperityEffectOnGarrisonSizeConstant (Town town)
 
static float SettlementFoodPotentialEffectOnGarrisonSizeConstant (Settlement settlement)
 
static float OwnerClanEconomyEffectOnGarrisonSizeConstant (Clan clan)
 
static float FindIdealGarrisonStrengthPerWalledCenter (Kingdom kingdom, Clan clan=null)
 
static void FinishAllRelatedHostileActionsOfNobleToFaction (Hero noble, IFaction faction)
 
static void FinishAllRelatedHostileActionsOfFactionToFaction (IFaction faction1, IFaction faction2)
 
static void FinishAllRelatedHostileActions (Clan clan1, Clan clan2)
 
static void FinishAllRelatedHostileActions (Kingdom kingdom1, Kingdom kingdom2)
 
static void AdjustFactionStancesForClanJoiningKingdom (Clan joiningClan, Kingdom kingdomToJoin)
 
static TextObject GetTermUsedByOtherFaction (IFaction faction, IFaction otherFaction, bool pejorative)
 
static TextObject GetFormalNameForFactionCulture (CultureObject factionCulture)
 
static TextObject GetInformalNameForFactionCulture (CultureObject factionCulture)
 
static TextObject GetAdjectiveForFactionCulture (CultureObject factionCulture)
 
static TextObject GetAdjectiveForFaction (IFaction faction)
 
static TextObject GenerateClanNameforPlayer ()
 
static float GetDistanceToClosestNonAllyFortificationOfFaction (IFaction faction)
 
static Settlement FactionMidSettlement (IFaction faction)
 
static List< IFactionGetPossibleKingdomsToDeclareWar (Kingdom kingdom)
 
static List< IFactionGetPossibleKingdomsToDeclarePeace (Kingdom kingdom)
 
static IEnumerable< ClanGetAllyMinorFactions (CharacterObject otherCharacter)
 
static Clan ChooseHeirClanForFiefs (Clan oldClan)
 
static bool CanPlayerOfferMercenaryService (Kingdom offerKingdom, out List< IFaction > playerWars, out List< IFaction > warsOfFactionToJoin)
 
static bool CanPlayerOfferVassalage (Kingdom offerKingdom, out List< IFaction > playerWars, out List< IFaction > warsOfFactionToJoin)
 
static bool IsMainClanMemberAvailableForRecall (Hero hero, MobileParty targetParty, out TextObject explanation)
 
static bool IsMainClanMemberAvailableForPartyLeaderChange (Hero hero, bool isSend, MobileParty targetParty, out TextObject explanation)
 
static bool IsMainClanMemberAvailableForSendingSettlement (Hero hero, Settlement targetSettlement, out TextObject explanation)
 
static bool IsMainClanMemberAvailableForSendingSettlementAsGovernor (Hero hero, Settlement settlementOfGovernor, out TextObject explanation)
 

Member Function Documentation

◆ FindPotentialStrength()

static float Helpers.FactionHelper.FindPotentialStrength ( IFaction  faction)
static

◆ GetPowerRatioToEnemies()

static float Helpers.FactionHelper.GetPowerRatioToEnemies ( Kingdom  kingdom)
static

◆ IsClanNameApplicable()

static Tuple< bool, string > Helpers.FactionHelper.IsClanNameApplicable ( string  name)
static

◆ IsKingdomNameApplicable()

static Tuple< bool, string > Helpers.FactionHelper.IsKingdomNameApplicable ( string  name)
static

◆ GetPowerRatioToTributePayedKingdoms()

static float Helpers.FactionHelper.GetPowerRatioToTributePayedKingdoms ( Kingdom  kingdom)
static

◆ CanClanBeGrantedFief()

static bool Helpers.FactionHelper.CanClanBeGrantedFief ( Clan  clan)
static

◆ CanPlayerEnterFaction()

static bool Helpers.FactionHelper.CanPlayerEnterFaction ( bool  asVassal = false)
static

◆ GetTotalEnemyKingdomPower()

static float Helpers.FactionHelper.GetTotalEnemyKingdomPower ( Kingdom  kingdom)
static

◆ GetTotalTributePayedKingdomsPower()

static float Helpers.FactionHelper.GetTotalTributePayedKingdomsPower ( Kingdom  kingdom)
static

◆ GetKingdomArmies()

static IEnumerable< Army > Helpers.FactionHelper.GetKingdomArmies ( IFaction  mapFaction)
static

◆ SettlementProsperityEffectOnGarrisonSizeConstant()

static float Helpers.FactionHelper.SettlementProsperityEffectOnGarrisonSizeConstant ( Town  town)
static

◆ SettlementFoodPotentialEffectOnGarrisonSizeConstant()

static float Helpers.FactionHelper.SettlementFoodPotentialEffectOnGarrisonSizeConstant ( Settlement  settlement)
static

◆ OwnerClanEconomyEffectOnGarrisonSizeConstant()

static float Helpers.FactionHelper.OwnerClanEconomyEffectOnGarrisonSizeConstant ( Clan  clan)
static

◆ FindIdealGarrisonStrengthPerWalledCenter()

static float Helpers.FactionHelper.FindIdealGarrisonStrengthPerWalledCenter ( Kingdom  kingdom,
Clan  clan = null 
)
static

◆ FinishAllRelatedHostileActionsOfNobleToFaction()

static void Helpers.FactionHelper.FinishAllRelatedHostileActionsOfNobleToFaction ( Hero  noble,
IFaction  faction 
)
static

◆ FinishAllRelatedHostileActionsOfFactionToFaction()

static void Helpers.FactionHelper.FinishAllRelatedHostileActionsOfFactionToFaction ( IFaction  faction1,
IFaction  faction2 
)
static

◆ FinishAllRelatedHostileActions() [1/2]

static void Helpers.FactionHelper.FinishAllRelatedHostileActions ( Clan  clan1,
Clan  clan2 
)
static

◆ FinishAllRelatedHostileActions() [2/2]

static void Helpers.FactionHelper.FinishAllRelatedHostileActions ( Kingdom  kingdom1,
Kingdom  kingdom2 
)
static

◆ AdjustFactionStancesForClanJoiningKingdom()

static void Helpers.FactionHelper.AdjustFactionStancesForClanJoiningKingdom ( Clan  joiningClan,
Kingdom  kingdomToJoin 
)
static

◆ GetTermUsedByOtherFaction()

static TextObject Helpers.FactionHelper.GetTermUsedByOtherFaction ( IFaction  faction,
IFaction  otherFaction,
bool  pejorative 
)
static

◆ GetFormalNameForFactionCulture()

static TextObject Helpers.FactionHelper.GetFormalNameForFactionCulture ( CultureObject  factionCulture)
static

◆ GetInformalNameForFactionCulture()

static TextObject Helpers.FactionHelper.GetInformalNameForFactionCulture ( CultureObject  factionCulture)
static

◆ GetAdjectiveForFactionCulture()

static TextObject Helpers.FactionHelper.GetAdjectiveForFactionCulture ( CultureObject  factionCulture)
static

◆ GetAdjectiveForFaction()

static TextObject Helpers.FactionHelper.GetAdjectiveForFaction ( IFaction  faction)
static

◆ GenerateClanNameforPlayer()

static TextObject Helpers.FactionHelper.GenerateClanNameforPlayer ( )
static

◆ GetDistanceToClosestNonAllyFortificationOfFaction()

static float Helpers.FactionHelper.GetDistanceToClosestNonAllyFortificationOfFaction ( IFaction  faction)
static

◆ FactionMidSettlement()

static Settlement Helpers.FactionHelper.FactionMidSettlement ( IFaction  faction)
static

◆ GetPossibleKingdomsToDeclareWar()

static List< IFaction > Helpers.FactionHelper.GetPossibleKingdomsToDeclareWar ( Kingdom  kingdom)
static

◆ GetPossibleKingdomsToDeclarePeace()

static List< IFaction > Helpers.FactionHelper.GetPossibleKingdomsToDeclarePeace ( Kingdom  kingdom)
static

◆ GetAllyMinorFactions()

static IEnumerable< Clan > Helpers.FactionHelper.GetAllyMinorFactions ( CharacterObject  otherCharacter)
static

◆ ChooseHeirClanForFiefs()

static Clan Helpers.FactionHelper.ChooseHeirClanForFiefs ( Clan  oldClan)
static

◆ CanPlayerOfferMercenaryService()

static bool Helpers.FactionHelper.CanPlayerOfferMercenaryService ( Kingdom  offerKingdom,
out List< IFaction playerWars,
out List< IFaction warsOfFactionToJoin 
)
static

◆ CanPlayerOfferVassalage()

static bool Helpers.FactionHelper.CanPlayerOfferVassalage ( Kingdom  offerKingdom,
out List< IFaction playerWars,
out List< IFaction warsOfFactionToJoin 
)
static

◆ IsMainClanMemberAvailableForRecall()

static bool Helpers.FactionHelper.IsMainClanMemberAvailableForRecall ( Hero  hero,
MobileParty  targetParty,
out TextObject  explanation 
)
static

◆ IsMainClanMemberAvailableForPartyLeaderChange()

static bool Helpers.FactionHelper.IsMainClanMemberAvailableForPartyLeaderChange ( Hero  hero,
bool  isSend,
MobileParty  targetParty,
out TextObject  explanation 
)
static

◆ IsMainClanMemberAvailableForSendingSettlement()

static bool Helpers.FactionHelper.IsMainClanMemberAvailableForSendingSettlement ( Hero  hero,
Settlement  targetSettlement,
out TextObject  explanation 
)
static

◆ IsMainClanMemberAvailableForSendingSettlementAsGovernor()

static bool Helpers.FactionHelper.IsMainClanMemberAvailableForSendingSettlementAsGovernor ( Hero  hero,
Settlement  settlementOfGovernor,
out TextObject  explanation 
)
static