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

Static Public Member Functions

static TextObject GetLastSeenText (Hero hero)
 
static Settlement GetClosestSettlement (Hero hero)
 
static bool LordWillConspireWithLord (Hero lord, Hero otherLord, bool suggestingBetrayal)
 
static bool UnderPlayerCommand (Hero hero)
 
static TextObject GetTitleInIndefiniteCase (Hero hero)
 
static TextObject GetCharacterTypeName (Hero hero)
 
static TextObject GetOccupiedEventReasonText (Hero hero)
 
static List< string > OrderHeroesOnPlayerSideByPriority ()
 
static bool WillLordAttack ()
 
static void SetPlayerSalutation ()
 
static void SpawnHeroForTheFirstTime (Hero hero, Settlement spawnSettlement)
 
static int DefaultRelation (Hero hero, Hero otherHero)
 
static int CalculateTotalStrength (Hero hero)
 
static bool IsCompanionInPlayerParty (Hero hero)
 
static bool NPCPoliticalDifferencesWithNPC (Hero firstNPC, Hero secondNPC)
 
static int NPCPersonalityClashWithNPC (Hero firstNPC, Hero secondNPC)
 
static int TraitHarmony (Hero considerer, TraitObject trait, Hero consideree, bool sensitive)
 
static float CalculateReliabilityConstant (Hero hero, float maxValueConstant=1.0f)
 
static void SetPropertiesToTextObject (this Hero hero, TextObject textObject, string tagName)
 
static void SetPropertiesToTextObject (this Settlement settlement, TextObject textObject, string tagName)
 
static bool HeroCanRecruitFromHero (Hero buyerHero, Hero sellerHero, int index)
 
static List< CharacterObjectGetVolunteerTroopsOfHeroForRecruitment (Hero hero)
 
static Clan GetRandomClanForNotable (Hero notable)
 
static float GetProbabilityForClan (Clan clan, IEnumerable< Settlement > applicableSettlements, Hero notable)
 
static CampaignTime GetRandomBirthDayForAge (float age)
 
static void GetRandomDeathDayAndBirthDay (int deathAge, out CampaignTime birthday, out CampaignTime deathday)
 
static float StartRecruitingMoneyLimit (Hero hero)
 
static float StartRecruitingMoneyLimitForClanLeader (Hero hero)
 

Member Function Documentation

◆ GetLastSeenText()

static TextObject Helpers.HeroHelper.GetLastSeenText ( Hero hero)
static

◆ GetClosestSettlement()

static Settlement Helpers.HeroHelper.GetClosestSettlement ( Hero hero)
static

◆ LordWillConspireWithLord()

static bool Helpers.HeroHelper.LordWillConspireWithLord ( Hero lord,
Hero otherLord,
bool suggestingBetrayal )
static

◆ UnderPlayerCommand()

static bool Helpers.HeroHelper.UnderPlayerCommand ( Hero hero)
static

◆ GetTitleInIndefiniteCase()

static TextObject Helpers.HeroHelper.GetTitleInIndefiniteCase ( Hero hero)
static

◆ GetCharacterTypeName()

static TextObject Helpers.HeroHelper.GetCharacterTypeName ( Hero hero)
static

◆ GetOccupiedEventReasonText()

static TextObject Helpers.HeroHelper.GetOccupiedEventReasonText ( Hero hero)
static

◆ OrderHeroesOnPlayerSideByPriority()

static List< string > Helpers.HeroHelper.OrderHeroesOnPlayerSideByPriority ( )
static

◆ WillLordAttack()

static bool Helpers.HeroHelper.WillLordAttack ( )
static

◆ SetPlayerSalutation()

static void Helpers.HeroHelper.SetPlayerSalutation ( )
static

◆ SpawnHeroForTheFirstTime()

static void Helpers.HeroHelper.SpawnHeroForTheFirstTime ( Hero hero,
Settlement spawnSettlement )
static

◆ DefaultRelation()

static int Helpers.HeroHelper.DefaultRelation ( Hero hero,
Hero otherHero )
static

◆ CalculateTotalStrength()

static int Helpers.HeroHelper.CalculateTotalStrength ( Hero hero)
static

◆ IsCompanionInPlayerParty()

static bool Helpers.HeroHelper.IsCompanionInPlayerParty ( Hero hero)
static

◆ NPCPoliticalDifferencesWithNPC()

static bool Helpers.HeroHelper.NPCPoliticalDifferencesWithNPC ( Hero firstNPC,
Hero secondNPC )
static

◆ NPCPersonalityClashWithNPC()

static int Helpers.HeroHelper.NPCPersonalityClashWithNPC ( Hero firstNPC,
Hero secondNPC )
static

◆ TraitHarmony()

static int Helpers.HeroHelper.TraitHarmony ( Hero considerer,
TraitObject trait,
Hero consideree,
bool sensitive )
static

◆ CalculateReliabilityConstant()

static float Helpers.HeroHelper.CalculateReliabilityConstant ( Hero hero,
float maxValueConstant = 1::0f )
static

◆ SetPropertiesToTextObject() [1/2]

static void Helpers.HeroHelper.SetPropertiesToTextObject ( this Hero hero,
TextObject textObject,
string tagName )
static

◆ SetPropertiesToTextObject() [2/2]

static void Helpers.HeroHelper.SetPropertiesToTextObject ( this Settlement settlement,
TextObject textObject,
string tagName )
static

◆ HeroCanRecruitFromHero()

static bool Helpers.HeroHelper.HeroCanRecruitFromHero ( Hero buyerHero,
Hero sellerHero,
int index )
static

◆ GetVolunteerTroopsOfHeroForRecruitment()

static List< CharacterObject > Helpers.HeroHelper.GetVolunteerTroopsOfHeroForRecruitment ( Hero hero)
static

◆ GetRandomClanForNotable()

static Clan Helpers.HeroHelper.GetRandomClanForNotable ( Hero notable)
static

◆ GetProbabilityForClan()

static float Helpers.HeroHelper.GetProbabilityForClan ( Clan clan,
IEnumerable< Settlement > applicableSettlements,
Hero notable )
static

◆ GetRandomBirthDayForAge()

static CampaignTime Helpers.HeroHelper.GetRandomBirthDayForAge ( float age)
static

◆ GetRandomDeathDayAndBirthDay()

static void Helpers.HeroHelper.GetRandomDeathDayAndBirthDay ( int deathAge,
out CampaignTime birthday,
out CampaignTime deathday )
static

◆ StartRecruitingMoneyLimit()

static float Helpers.HeroHelper.StartRecruitingMoneyLimit ( Hero hero)
static

◆ StartRecruitingMoneyLimitForClanLeader()

static float Helpers.HeroHelper.StartRecruitingMoneyLimitForClanLeader ( Hero hero)
static