M&B: Bannerlord 1.3.14
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]

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

◆ SpawnLordParty() [2/2]

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

◆ CreateNewClanMobileParty()

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

◆ IsHeroAssignableForScoutInParty()

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

◆ IsHeroAssignableForEngineerInParty()

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

◆ IsHeroAssignableForSurgeonInParty()

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

◆ IsHeroAssignableForQuartermasterInParty()

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

◆ GetHeroWithHighestSkill()

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

◆ GetStrongestAndPriorTroops() [1/2]

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

◆ GetStrongestAndPriorTroops() [2/2]

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

◆ GetMaximumXpAmountPartyCanGet()

int Helpers.MobilePartyHelper.GetMaximumXpAmountPartyCanGet ( MobileParty party)
static

◆ PartyAddSharedXp()

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

◆ WoundNumberOfNonHeroTroopsRandomlyWithChanceOfDeath()

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

◆ CanTroopGainXp()

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

◆ TryMatchPartySpeedWithItemWeight()

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

◆ GetMainPartySkillCounsellor()

Hero Helpers.MobilePartyHelper.GetMainPartySkillCounsellor ( SkillObject skill)
static

◆ GetCurrentSettlementOfMobilePartyForAICalculation()

Settlement Helpers.MobilePartyHelper.GetCurrentSettlementOfMobilePartyForAICalculation ( MobileParty mobileParty)
static

◆ GetPlayerPrisonersPlayerCanSell()

TroopRoster Helpers.MobilePartyHelper.GetPlayerPrisonersPlayerCanSell ( )
static

◆ FillPartyManuallyAfterCreation()

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

◆ CanPartyAttackWithCurrentMorale()

bool Helpers.MobilePartyHelper.CanPartyAttackWithCurrentMorale ( MobileParty mobileParty)
static