Table of Contents

Class FixedStatValuesSO

Namespace
ElectricDrill.AstraRpgFramework.Stats
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Standalone asset holding fixed base stat values, reusable across multiple EntityStats components. Mirrors the inline FixedStatValues wrapper's shape but owns its own StatSetSO reference so it's self-contained.

public class FixedStatValuesSO : ScriptableObject, IFixedStatSource, IValueContainer<StatSO>
Inheritance
object
FixedStatValuesSO
Implements

Properties

this[StatSO]

Gets or sets the fixed base value for stat.

public long this[StatSO stat] { get; set; }

Parameters

stat StatSO

Property Value

long

StatSet

The stat set this asset supplies values for. Reassigning it reconciles the value set: values for stats present in both sets are preserved, new stats default to 0. Uses the flattened Stats property, so composed stat sets (_includedStatSets) work the same way here as everywhere else in the framework.

public StatSetSO StatSet { get; set; }

Property Value

StatSetSO

Methods

Contains(StatSO)

Determines whether the container includes the specified value.

public bool Contains(StatSO stat)

Parameters

stat StatSO

Returns

bool

True if the value is found in the container; otherwise, false.

GetBase(StatSO)

Gets the fixed base value for stat. Only called for stats for which Contains(T) returns true.

public long GetBase(StatSO stat)

Parameters

stat StatSO

Returns

long