Table of Contents

Class MobilePartyHelper

Namespace
Helpers
Assembly
TaleWorlds.CampaignSystem.dll
public static class MobilePartyHelper
Inheritance
MobilePartyHelper
Inherited Members

Methods

CanTroopGainXp(PartyBase, CharacterObject, out int)

public static bool CanTroopGainXp(PartyBase owner, CharacterObject character, out int gainableMaxXp)

Parameters

owner PartyBase
character CharacterObject
gainableMaxXp int

Returns

bool

CreateNewClanMobileParty(Hero, Clan, out bool)

public static void CreateNewClanMobileParty(Hero partyLeader, Clan clan, out bool leaderCameFromMainParty)

Parameters

partyLeader Hero
clan Clan
leaderCameFromMainParty bool

DesertTroopsFromParty(MobileParty, int, int, int, ref TroopRoster)

public static void DesertTroopsFromParty(MobileParty party, int stackNo, int numberOfDeserters, int numberOfWoundedDeserters, ref TroopRoster desertedTroopList)

Parameters

party MobileParty
stackNo int
numberOfDeserters int
numberOfWoundedDeserters int
desertedTroopList TroopRoster

FindReachablePointAroundPosition(Vec2, float, float)

public static Vec2 FindReachablePointAroundPosition(Vec2 centerPosition, float maxDistance, float minDistance = 0)

Parameters

centerPosition Vec2
maxDistance float
minDistance float

Returns

Vec2

GetCurrentSettlementOfMobilePartyForAICalculation(MobileParty)

public static Settlement GetCurrentSettlementOfMobilePartyForAICalculation(MobileParty mobileParty)

Parameters

mobileParty MobileParty

Returns

Settlement

GetHeroWithHighestSkill(MobileParty, SkillObject)

public static Hero GetHeroWithHighestSkill(MobileParty party, SkillObject skill)

Parameters

party MobileParty
skill SkillObject

Returns

Hero

GetMainPartySkillCounsellor(SkillObject)

public static Hero GetMainPartySkillCounsellor(SkillObject skill)

Parameters

skill SkillObject

Returns

Hero

GetMaximumXpAmountPartyCanGet(MobileParty)

public static int GetMaximumXpAmountPartyCanGet(MobileParty party)

Parameters

party MobileParty

Returns

int

GetPlayerPrisonersPlayerCanSell()

public static TroopRoster GetPlayerPrisonersPlayerCanSell()

Returns

TroopRoster

GetStrongestAndPriorTroops(MobileParty, int, bool)

public static TroopRoster GetStrongestAndPriorTroops(MobileParty mobileParty, int maxTroopCount, bool includePlayer)

Parameters

mobileParty MobileParty
maxTroopCount int
includePlayer bool

Returns

TroopRoster

GetStrongestAndPriorTroops(FlattenedTroopRoster, int, bool)

public static TroopRoster GetStrongestAndPriorTroops(FlattenedTroopRoster roster, int maxTroopCount, bool includePlayer)

Parameters

roster FlattenedTroopRoster
maxTroopCount int
includePlayer bool

Returns

TroopRoster

IsHeroAssignableForEngineerInParty(Hero, MobileParty)

public static bool IsHeroAssignableForEngineerInParty(Hero hero, MobileParty party)

Parameters

hero Hero
party MobileParty

Returns

bool

IsHeroAssignableForQuartermasterInParty(Hero, MobileParty)

public static bool IsHeroAssignableForQuartermasterInParty(Hero hero, MobileParty party)

Parameters

hero Hero
party MobileParty

Returns

bool

IsHeroAssignableForScoutInParty(Hero, MobileParty)

public static bool IsHeroAssignableForScoutInParty(Hero hero, MobileParty party)

Parameters

hero Hero
party MobileParty

Returns

bool

IsHeroAssignableForSurgeonInParty(Hero, MobileParty)

public static bool IsHeroAssignableForSurgeonInParty(Hero hero, MobileParty party)

Parameters

hero Hero
party MobileParty

Returns

bool

PartyAddSharedXp(MobileParty, float)

public static void PartyAddSharedXp(MobileParty party, float xpToDistribute)

Parameters

party MobileParty
xpToDistribute float

SpawnLordParty(Hero, Settlement)

public static MobileParty SpawnLordParty(Hero hero, Settlement spawnSettlement)

Parameters

hero Hero
spawnSettlement Settlement

Returns

MobileParty

SpawnLordParty(Hero, Vec2, float)

public static MobileParty SpawnLordParty(Hero hero, Vec2 position, float spawnRadius)

Parameters

hero Hero
position Vec2
spawnRadius float

Returns

MobileParty

TryMatchPartySpeedWithItemWeight(MobileParty, float, ItemObject)

public static void TryMatchPartySpeedWithItemWeight(MobileParty party, float targetPartySpeed, ItemObject itemToUse = null)

Parameters

party MobileParty
targetPartySpeed float
itemToUse ItemObject

UtilizePartyEscortBehavior(MobileParty, MobileParty, ref bool, float, float, ResumePartyEscortBehaviorDelegate, bool)

public static void UtilizePartyEscortBehavior(MobileParty escortedParty, MobileParty escortParty, ref bool isWaitingForEscortParty, float innerRadius, float outerRadius, MobilePartyHelper.ResumePartyEscortBehaviorDelegate onPartyEscortBehaviorResumed, bool showDebugSpheres = false)

Parameters

escortedParty MobileParty
escortParty MobileParty
isWaitingForEscortParty bool
innerRadius float
outerRadius float
onPartyEscortBehaviorResumed MobilePartyHelper.ResumePartyEscortBehaviorDelegate
showDebugSpheres bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).