M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel Class Referenceabstract

Inherits TaleWorlds.Core.GameModel.

Inherited by TaleWorlds.CampaignSystem.GameComponents.DefaultCrimeModel.

Public Types

enum  PaymentMethod : UInt32 {
  ExMachina = 0x1000 ,
  Gold = 0x0001 ,
  Influence = 0x0002 ,
  Punishment = 0x0004 ,
  Execution = 0x0008
}
 

Public Member Functions

abstract float GetMaxCrimeRating ()
 
abstract float GetMinAcceptableCrimeRating (IFaction faction)
 
abstract bool DoesPlayerHaveAnyCrimeRating (IFaction faction)
 
abstract bool IsPlayerCrimeRatingSevere (IFaction faction)
 
abstract bool IsPlayerCrimeRatingModerate (IFaction faction)
 
abstract bool IsPlayerCrimeRatingMild (IFaction faction)
 
abstract float GetCost (IFaction faction, PaymentMethod paymentMethod, float minimumCrimeRating)
 
abstract ExplainedNumber GetDailyCrimeRatingChange (IFaction faction, bool includeDescriptions=false)
 

Properties

abstract int DeclareWarCrimeRatingThreshold [get]
 

Member Enumeration Documentation

◆ PaymentMethod

Enumerator
ExMachina 
Gold 
Influence 
Punishment 
Execution 

Member Function Documentation

◆ GetMaxCrimeRating()

abstract float TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.GetMaxCrimeRating ( )
pure virtual

◆ GetMinAcceptableCrimeRating()

abstract float TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.GetMinAcceptableCrimeRating ( IFaction  faction)
pure virtual

◆ DoesPlayerHaveAnyCrimeRating()

abstract bool TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.DoesPlayerHaveAnyCrimeRating ( IFaction  faction)
pure virtual

◆ IsPlayerCrimeRatingSevere()

abstract bool TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.IsPlayerCrimeRatingSevere ( IFaction  faction)
pure virtual

◆ IsPlayerCrimeRatingModerate()

abstract bool TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.IsPlayerCrimeRatingModerate ( IFaction  faction)
pure virtual

◆ IsPlayerCrimeRatingMild()

abstract bool TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.IsPlayerCrimeRatingMild ( IFaction  faction)
pure virtual

◆ GetCost()

abstract float TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.GetCost ( IFaction  faction,
PaymentMethod  paymentMethod,
float  minimumCrimeRating 
)
pure virtual

◆ GetDailyCrimeRatingChange()

abstract ExplainedNumber TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.GetDailyCrimeRatingChange ( IFaction  faction,
bool  includeDescriptions = false 
)
pure virtual

Property Documentation

◆ DeclareWarCrimeRatingThreshold

abstract int TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.DeclareWarCrimeRatingThreshold
get