Class GrowthFormula
- Namespace
- ElectricDrill.SoapRpgFramework.Utils
- Assembly
- com.electricdrill.soap-rpg-framework.Runtime.dll
Represents a formula to calculate growth values for different levels, up to a maximum level.
public class GrowthFormula : ScriptableObject
- Inheritance
-
objectGrowthFormula
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[]
Methods
GetGrowthValue(int)
Gets the growth value for a specific level. Levels start from 1.
public long GetGrowthValue(int level)
Parameters
levelintThe level for which to get the growth value.
Returns
- long
The growth value for the specified level.