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

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

Properties

int DeclareWarCrimeRatingThreshold [get]
 

Member Enumeration Documentation

◆ PaymentMethod

Enumerator
ExMachina 
Gold 
Influence 
Punishment 
Execution 

Member Function Documentation

◆ GetMaxCrimeRating()

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

◆ GetMinAcceptableCrimeRating()

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

◆ DoesPlayerHaveAnyCrimeRating()

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

◆ IsPlayerCrimeRatingSevere()

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

◆ IsPlayerCrimeRatingModerate()

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

◆ IsPlayerCrimeRatingMild()

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

◆ GetCost()

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

◆ GetDailyCrimeRatingChange()

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

Property Documentation

◆ DeclareWarCrimeRatingThreshold

int TaleWorlds.CampaignSystem.ComponentInterfaces.CrimeModel.DeclareWarCrimeRatingThreshold
getabstract