Skip to main content

FB2StatSystem

Overview

  • Stat update system.

Metadata

FieldValue
Kindsystem
EnvironmentB2 - Simulation
Categorysystems
ExtendsFB2Subsystem
Requirerequire('Systems.FB2StatSystem')

Properties (1)

NameTypeDescription
Statstable<string, any>

Functions (22)

FunctionParametersReturnsDescription
CalculateInitAutoMotiveSetDateTime: FDateTime, StatId: stringnumber
CalculateInitValueByStatIdDateTime: FDateTime, StatId: stringnumber
CalculateInitValueWithObjectDateTime: FDateTime, StatId: string, ObjectId: stringnumberTest variant.
CalculateMinMaxValueStatId: string, OutMin: number, OutMax: numberboolean
CalculateMinMaxValueExStatId: string, OutMin: number, OutMax: numberbooleanVariant that takes parameters from the caller as much as possible.
CalculateProbabilityStatId: string, Value: number, GrowthType: EB1GrowthStepnumber
CalculateStatTierStatId: string, Value: number, GrowthType: EB1GrowthStepEB1StatServiceTier
ClampStatId: string, Value: numbernumber
ClampExStatId: string, Value: numbernumberVariant that takes parameters from the caller as much as possible.
GetDecayValueCurrentTime: FDateTime, StatId: string, PivotValue: number, InGameDeltaMinutes: numbernumberReturns Decay Value.
GetRandRangeStatId: string, RandRange: FVector2DnumberReturns Rand Range.
GetStatPercentStatId: string, Value: numbernumberReturns Stat Percent.
GetStatTypeStatId: stringEB1StatTypeReturns Stat Type.
InitValueByStatIdStatId: stringnumberInitializes Value By Stat Id.
InitValueWithDateDateTime: FDateTime, StatId: stringnumberInitializes Value With Date.
IsDesireStatIdStatId: stringbooleanReturns whether Desire Stat Id.
IsStatDecreaseBlocked (static)InStatId: string, InBefore: number, InTarget: number, InGrowthStep: EB1GrowthStepbooleanChecks whether Health stat decrease should be blocked (UnderChild invulnerability handling).
Recache--
SetStatToPercentStatId: string, TargetPercent: number, InOutValue: number-Sets Stat To Percent.
TryGetDecayGoalInStatId: string, InPivotValue: number, OutDecayGoal: number, OutDecayValuePerSeconds: number, InGameDeltaMinutes: numberboolean
ValueChangeScriptIdsStatId: string, Before: number, After: numberstring[]
ValueChangeScriptIdsExStatId: string, Before: number, After: numberstring[]Variant that takes parameters from the caller as much as possible.

Override points (11)

Implement these in Lua as FB2StatSystem.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_CalculateInitAutoMotiveSetDateTime: FDateTime, StatId: stringnumber
Override_CalculateMinMaxValueStatId: string, OutMin: number, OutMax: numberboolean
Override_CalculateMinMaxValueExStatId: string, OutMin: number, OutMax: numberbooleanVariant that takes parameters from the caller as much as possible.
Override_CalculateProbabilityStatId: string, Value: number, GrowthType: EB1GrowthStepnumber
Override_CalculateStatTierStatId: string, Value: number, GrowthType: EB1GrowthStepEB1StatServiceTier
Override_ClampStatId: string, Value: numbernumber
Override_ClampExStatId: string, Value: numbernumberVariant that takes parameters from the caller as much as possible.
Override_Recache--
Override_TryGetDecayGoalInStatId: string, InPivotValue: number, OutDecayGoal: number, OutDecayValuePerSeconds: number, InGameDeltaMinutes: numberboolean
Override_ValueChangeScriptIdsStatId: string, Before: number, After: numberstring[]
Override_ValueChangeScriptIdsExStatId: string, Before: number, After: numberstring[]Variant that takes parameters from the caller as much as possible.