Table of Contents

Class GrowthFormulaSO

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

Represents a formula to calculate growth values for different levels, up to a maximum level.

[MovedFrom(true, "ElectricDrill.AstraRpgFramework.Utils", "com.electricdrill.astra-rpg-framework.Runtime", "GrowthFormula")]
public class GrowthFormulaSO : ScriptableObject, ITaggable
Inheritance
object
GrowthFormulaSO
Implements

Properties

GrowthFoValues

Gets the pre-calculated growth formula values for each level. Values are refreshed on validation. The array is indexed from 0 to maxLevel - 1, where index 0 corresponds to level 1.

public double[] GrowthFoValues { get; }

Property Value

double[]

Tags

The tags associated with this object.

public GameTagSet Tags { get; }

Property Value

GameTagSet

ValidationErrors

Gets the validation errors that occurred during the last formula evaluation.

public List<ValidationError> ValidationErrors { get; }

Property Value

List<ValidationError>

Methods

GetGrowthValue(int)

Gets the growth value for a specific level. Levels start from 1.

public long GetGrowthValue(int level)

Parameters

level int

The level for which to get the growth value.

Returns

long

The growth value for the specified level.