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
PartyBasecharacter
CharacterObjectgainableMaxXp
int
Returns
CreateNewClanMobileParty(Hero, Clan, out bool)
public static void CreateNewClanMobileParty(Hero partyLeader, Clan clan, out bool leaderCameFromMainParty)
Parameters
DesertTroopsFromParty(MobileParty, int, int, int, ref TroopRoster)
public static void DesertTroopsFromParty(MobileParty party, int stackNo, int numberOfDeserters, int numberOfWoundedDeserters, ref TroopRoster desertedTroopList)
Parameters
party
MobilePartystackNo
intnumberOfDeserters
intnumberOfWoundedDeserters
intdesertedTroopList
TroopRoster
FindReachablePointAroundPosition(Vec2, float, float)
public static Vec2 FindReachablePointAroundPosition(Vec2 centerPosition, float maxDistance, float minDistance = 0)
Parameters
Returns
GetCurrentSettlementOfMobilePartyForAICalculation(MobileParty)
public static Settlement GetCurrentSettlementOfMobilePartyForAICalculation(MobileParty mobileParty)
Parameters
mobileParty
MobileParty
Returns
GetHeroWithHighestSkill(MobileParty, SkillObject)
public static Hero GetHeroWithHighestSkill(MobileParty party, SkillObject skill)
Parameters
party
MobilePartyskill
SkillObject
Returns
GetMainPartySkillCounsellor(SkillObject)
public static Hero GetMainPartySkillCounsellor(SkillObject skill)
Parameters
skill
SkillObject
Returns
GetMaximumXpAmountPartyCanGet(MobileParty)
public static int GetMaximumXpAmountPartyCanGet(MobileParty party)
Parameters
party
MobileParty
Returns
GetPlayerPrisonersPlayerCanSell()
public static TroopRoster GetPlayerPrisonersPlayerCanSell()
Returns
GetStrongestAndPriorTroops(MobileParty, int, bool)
public static TroopRoster GetStrongestAndPriorTroops(MobileParty mobileParty, int maxTroopCount, bool includePlayer)
Parameters
mobileParty
MobilePartymaxTroopCount
intincludePlayer
bool
Returns
GetStrongestAndPriorTroops(FlattenedTroopRoster, int, bool)
public static TroopRoster GetStrongestAndPriorTroops(FlattenedTroopRoster roster, int maxTroopCount, bool includePlayer)
Parameters
roster
FlattenedTroopRostermaxTroopCount
intincludePlayer
bool
Returns
IsHeroAssignableForEngineerInParty(Hero, MobileParty)
public static bool IsHeroAssignableForEngineerInParty(Hero hero, MobileParty party)
Parameters
hero
Heroparty
MobileParty
Returns
IsHeroAssignableForQuartermasterInParty(Hero, MobileParty)
public static bool IsHeroAssignableForQuartermasterInParty(Hero hero, MobileParty party)
Parameters
hero
Heroparty
MobileParty
Returns
IsHeroAssignableForScoutInParty(Hero, MobileParty)
public static bool IsHeroAssignableForScoutInParty(Hero hero, MobileParty party)
Parameters
hero
Heroparty
MobileParty
Returns
IsHeroAssignableForSurgeonInParty(Hero, MobileParty)
public static bool IsHeroAssignableForSurgeonInParty(Hero hero, MobileParty party)
Parameters
hero
Heroparty
MobileParty
Returns
PartyAddSharedXp(MobileParty, float)
public static void PartyAddSharedXp(MobileParty party, float xpToDistribute)
Parameters
party
MobilePartyxpToDistribute
float
SpawnLordParty(Hero, Settlement)
public static MobileParty SpawnLordParty(Hero hero, Settlement spawnSettlement)
Parameters
hero
HerospawnSettlement
Settlement
Returns
SpawnLordParty(Hero, Vec2, float)
public static MobileParty SpawnLordParty(Hero hero, Vec2 position, float spawnRadius)
Parameters
Returns
TryMatchPartySpeedWithItemWeight(MobileParty, float, ItemObject)
public static void TryMatchPartySpeedWithItemWeight(MobileParty party, float targetPartySpeed, ItemObject itemToUse = null)
Parameters
party
MobilePartytargetPartySpeed
floatitemToUse
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
MobilePartyescortParty
MobilePartyisWaitingForEscortParty
boolinnerRadius
floatouterRadius
floatonPartyEscortBehaviorResumed
MobilePartyHelper.ResumePartyEscortBehaviorDelegateshowDebugSpheres
bool
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).