M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel Class Referenceabstract

Inherits TaleWorlds.Core.GameModel.

Inherited by SandBox.GameComponents.SandboxBattleMoraleModel, TaleWorlds.MountAndBlade.CustomBattleMoraleModel, and TaleWorlds.MountAndBlade.MultiplayerBattleMoraleModel.

Public Member Functions

abstract float float affectorSideMaxMoraleGain CalculateMaxMoraleChangeDueToAgentIncapacitated (Agent affectedAgent, AgentState affectedAgentState, Agent affectorAgent, in KillingBlow killingBlow)
 
abstract float float affectorSideMaxMoraleGain CalculateMaxMoraleChangeDueToAgentPanicked (Agent agent)
 
abstract float CalculateMoraleChangeToCharacter (Agent agent, float maxMoraleChange)
 
abstract float GetEffectiveInitialMorale (Agent agent, float baseMorale)
 
abstract bool CanPanicDueToMorale (Agent agent)
 
abstract float CalculateCasualtiesFactor (BattleSideEnum battleSide)
 
abstract float GetAverageMorale (Formation formation)
 

Public Attributes

abstract float affectedSideMaxMoraleLoss
 

Static Public Attributes

const float BaseMoraleGainOnKill = 3f
 
const float BaseMoraleLossOnKill = 4f
 
const float BaseMoraleGainOnPanic = 2f
 
const float BaseMoraleLossOnPanic = 1.10f
 
const float MeleeWeaponMoraleMultiplier = 0.75f
 
const float RangedWeaponMoraleMultiplier = 0.5f
 
const float SiegeWeaponMoraleMultiplier = 0.25f
 
const float BurningSiegeWeaponMoraleBonus = 0.25f
 
const float CasualtyFactorRate = 2.0f
 

Member Function Documentation

◆ CalculateMaxMoraleChangeDueToAgentIncapacitated()

abstract float float affectorSideMaxMoraleGain TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.CalculateMaxMoraleChangeDueToAgentIncapacitated ( Agent  affectedAgent,
AgentState  affectedAgentState,
Agent  affectorAgent,
in KillingBlow  killingBlow 
)

◆ CalculateMaxMoraleChangeDueToAgentPanicked()

abstract float float affectorSideMaxMoraleGain TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.CalculateMaxMoraleChangeDueToAgentPanicked ( Agent  agent)

◆ CalculateMoraleChangeToCharacter()

abstract float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.CalculateMoraleChangeToCharacter ( Agent  agent,
float  maxMoraleChange 
)
pure virtual

◆ GetEffectiveInitialMorale()

abstract float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.GetEffectiveInitialMorale ( Agent  agent,
float  baseMorale 
)
pure virtual

◆ CanPanicDueToMorale()

abstract bool TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.CanPanicDueToMorale ( Agent  agent)
pure virtual

◆ CalculateCasualtiesFactor()

abstract float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.CalculateCasualtiesFactor ( BattleSideEnum  battleSide)
pure virtual

◆ GetAverageMorale()

abstract float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.GetAverageMorale ( Formation  formation)
pure virtual

Member Data Documentation

◆ BaseMoraleGainOnKill

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.BaseMoraleGainOnKill = 3f
static

◆ BaseMoraleLossOnKill

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.BaseMoraleLossOnKill = 4f
static

◆ BaseMoraleGainOnPanic

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.BaseMoraleGainOnPanic = 2f
static

◆ BaseMoraleLossOnPanic

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.BaseMoraleLossOnPanic = 1.10f
static

◆ MeleeWeaponMoraleMultiplier

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.MeleeWeaponMoraleMultiplier = 0.75f
static

◆ RangedWeaponMoraleMultiplier

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.RangedWeaponMoraleMultiplier = 0.5f
static

◆ SiegeWeaponMoraleMultiplier

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.SiegeWeaponMoraleMultiplier = 0.25f
static

◆ BurningSiegeWeaponMoraleBonus

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.BurningSiegeWeaponMoraleBonus = 0.25f
static

◆ CasualtyFactorRate

const float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.CasualtyFactorRate = 2.0f
static

◆ affectedSideMaxMoraleLoss

abstract float TaleWorlds.MountAndBlade.ComponentInterfaces.BattleMoraleModel.affectedSideMaxMoraleLoss