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

Public Member Functions

delegate void ResumePartyEscortBehaviorDelegate ()
 

Static Public Member Functions

static MobileParty SpawnLordParty (Hero hero, Settlement spawnSettlement)
 
static MobileParty SpawnLordParty (Hero hero, CampaignVec2 position, float spawnRadius)
 
static MobileParty CreateNewClanMobileParty (Hero hero, Clan clan)
 
static bool IsHeroAssignableForScoutInParty (Hero hero, MobileParty party)
 
static bool IsHeroAssignableForEngineerInParty (Hero hero, MobileParty party)
 
static bool IsHeroAssignableForSurgeonInParty (Hero hero, MobileParty party)
 
static bool IsHeroAssignableForQuartermasterInParty (Hero hero, MobileParty party)
 
static Hero GetHeroWithHighestSkill (MobileParty party, SkillObject skill)
 
static TroopRoster GetStrongestAndPriorTroops (MobileParty mobileParty, int maxTroopCount, bool includePlayer)
 
static TroopRoster GetStrongestAndPriorTroops (FlattenedTroopRoster roster, int maxTroopCount, bool includePlayer)
 
static int GetMaximumXpAmountPartyCanGet (MobileParty party)
 
static void PartyAddSharedXp (MobileParty party, float xpToDistribute)
 
static void WoundNumberOfNonHeroTroopsRandomlyWithChanceOfDeath (TroopRoster roster, int numberOfMen, float chanceOfDeathPerUnit, out int deathAmount)
 
static bool CanTroopGainXp (PartyBase owner, CharacterObject character, out int gainableMaxXp)
 
static void TryMatchPartySpeedWithItemWeight (MobileParty party, float targetPartySpeed, ItemObject itemToUse=null)
 Adds or removes counts of the specified or default item object in an effort to match target party speed.
 
static Hero GetMainPartySkillCounsellor (SkillObject skill)
 
static Settlement GetCurrentSettlementOfMobilePartyForAICalculation (MobileParty mobileParty)
 
static TroopRoster GetPlayerPrisonersPlayerCanSell ()
 
static void FillPartyManuallyAfterCreation (MobileParty mobileParty, PartyTemplateObject partyTemplate, int desiredMenCount)
 
static bool CanPartyAttackWithCurrentMorale (MobileParty mobileParty)
 

Member Function Documentation

◆ ResumePartyEscortBehaviorDelegate()

delegate void Helpers.MobilePartyHelper.ResumePartyEscortBehaviorDelegate ( )

◆ SpawnLordParty() [1/2]

static MobileParty Helpers.MobilePartyHelper.SpawnLordParty ( Hero hero,
Settlement spawnSettlement )
static

◆ SpawnLordParty() [2/2]

static MobileParty Helpers.MobilePartyHelper.SpawnLordParty ( Hero hero,
CampaignVec2 position,
float spawnRadius )
static

◆ CreateNewClanMobileParty()

static MobileParty Helpers.MobilePartyHelper.CreateNewClanMobileParty ( Hero hero,
Clan clan )
static

◆ IsHeroAssignableForScoutInParty()

static bool Helpers.MobilePartyHelper.IsHeroAssignableForScoutInParty ( Hero hero,
MobileParty party )
static

◆ IsHeroAssignableForEngineerInParty()

static bool Helpers.MobilePartyHelper.IsHeroAssignableForEngineerInParty ( Hero hero,
MobileParty party )
static

◆ IsHeroAssignableForSurgeonInParty()

static bool Helpers.MobilePartyHelper.IsHeroAssignableForSurgeonInParty ( Hero hero,
MobileParty party )
static

◆ IsHeroAssignableForQuartermasterInParty()

static bool Helpers.MobilePartyHelper.IsHeroAssignableForQuartermasterInParty ( Hero hero,
MobileParty party )
static

◆ GetHeroWithHighestSkill()

static Hero Helpers.MobilePartyHelper.GetHeroWithHighestSkill ( MobileParty party,
SkillObject skill )
static

◆ GetStrongestAndPriorTroops() [1/2]

static TroopRoster Helpers.MobilePartyHelper.GetStrongestAndPriorTroops ( MobileParty mobileParty,
int maxTroopCount,
bool includePlayer )
static

◆ GetStrongestAndPriorTroops() [2/2]

static TroopRoster Helpers.MobilePartyHelper.GetStrongestAndPriorTroops ( FlattenedTroopRoster roster,
int maxTroopCount,
bool includePlayer )
static

◆ GetMaximumXpAmountPartyCanGet()

static int Helpers.MobilePartyHelper.GetMaximumXpAmountPartyCanGet ( MobileParty party)
static

◆ PartyAddSharedXp()

static void Helpers.MobilePartyHelper.PartyAddSharedXp ( MobileParty party,
float xpToDistribute )
static

◆ WoundNumberOfNonHeroTroopsRandomlyWithChanceOfDeath()

static void Helpers.MobilePartyHelper.WoundNumberOfNonHeroTroopsRandomlyWithChanceOfDeath ( TroopRoster roster,
int numberOfMen,
float chanceOfDeathPerUnit,
out int deathAmount )
static

◆ CanTroopGainXp()

static bool Helpers.MobilePartyHelper.CanTroopGainXp ( PartyBase owner,
CharacterObject character,
out int gainableMaxXp )
static

◆ TryMatchPartySpeedWithItemWeight()

static void Helpers.MobilePartyHelper.TryMatchPartySpeedWithItemWeight ( MobileParty party,
float targetPartySpeed,
ItemObject itemToUse = null )
static

◆ GetMainPartySkillCounsellor()

static Hero Helpers.MobilePartyHelper.GetMainPartySkillCounsellor ( SkillObject skill)
static

◆ GetCurrentSettlementOfMobilePartyForAICalculation()

static Settlement Helpers.MobilePartyHelper.GetCurrentSettlementOfMobilePartyForAICalculation ( MobileParty mobileParty)
static

◆ GetPlayerPrisonersPlayerCanSell()

static TroopRoster Helpers.MobilePartyHelper.GetPlayerPrisonersPlayerCanSell ( )
static

◆ FillPartyManuallyAfterCreation()

static void Helpers.MobilePartyHelper.FillPartyManuallyAfterCreation ( MobileParty mobileParty,
PartyTemplateObject partyTemplate,
int desiredMenCount )
static

◆ CanPartyAttackWithCurrentMorale()

static bool Helpers.MobilePartyHelper.CanPartyAttackWithCurrentMorale ( MobileParty mobileParty)
static