Table of Contents

Interface IScalingFormula

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

Defines the contract for evaluating a scaling formula against one or two entities.

Implementations include:

public interface IScalingFormula

Methods

CalculateValue(EntityCore)

Calculates the final value using only the "self" entity. Assumes the formula has no target-scaling components and uses a fixed base value.

long CalculateValue(EntityCore self)

Parameters

self EntityCore

Returns

long

CalculateValue(EntityCore, EntityCore)

Calculates the final value using both "self" and "target" entities. Assumes the formula uses a fixed base value.

long CalculateValue(EntityCore self, EntityCore target)

Parameters

self EntityCore
target EntityCore

Returns

long

CalculateValue(EntityCore, EntityCore, int)

Calculates the final value using both "self" and "target" entities and a specific level for the base value. Assumes the formula uses a growth-based base value.

long CalculateValue(EntityCore self, EntityCore target, int level)

Parameters

self EntityCore
target EntityCore
level int

Returns

long

CalculateValue(EntityCore, int)

Calculates the final value using only the "self" entity and a specific level for the base value. Assumes the formula has no target-scaling components and uses a growth-based base value.

long CalculateValue(EntityCore self, int level)

Parameters

self EntityCore
level int

Returns

long