Class LevelRulesData

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

Level-wide economy and flow rules, baked into LevelRulesDef.

public sealed class LevelRulesData
Inheritance
LevelRulesData
Inherited Members

Constructors

LevelRulesData()

public LevelRulesData()

Fields

earlyCallCutThreshold

The remaining time must exceed this many seconds for the spell cut to apply.

[Min(0)]
public float earlyCallCutThreshold

Field Value

float

earlyCallRewardRate

Gold per rounded remaining second when calling a wave early.

[Min(0)]
public float earlyCallRewardRate

Field Value

float

earlyCallSpellCooldownCut

Calling a wave early also shortens cooling spells by the remaining time.

public bool earlyCallSpellCooldownCut

Field Value

bool

leakBountyShare

Share of an enemy's bounty still paid when it leaks.

[Range(0, 1)]
public float leakBountyShare

Field Value

float

overrideEarlyCallRate

Uses earlyCallRewardRate instead of each wave's own early gold rate.

public bool overrideEarlyCallRate

Field Value

bool

refundShare

Share of total investment refunded when selling after the first wave has started.

[Range(0, 1)]
public float refundShare

Field Value

float

victoryRating

Victory star bands, rated by the simulation (GameState.VictoryStars, Victory event IntValue).

public VictoryRatingData victoryRating

Field Value

VictoryRatingData

Methods

ToDef(SpellDef[])

Bakes the rules with the level's spell definitions.

public LevelRulesDef ToDef(SpellDef[] spells)

Parameters

spells SpellDef[]

Returns

LevelRulesDef