BuffEffect StructureDelta Engine Documentation
Holds which attribute this buff affects, how much it affects it, and how long the buff lasts View code on GitHub

Namespace: CreepyTowers.Stats
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public struct BuffEffect

The BuffEffect type exposes the following members.

Constructors

  NameDescription
Public methodBuffEffect
Initializes a new instance of the BuffEffect class
Top
Properties

  NameDescription
Public propertyAddition
Public propertyAttribute
Public propertyDuration
Public propertyMultiplier
Top
Remarks

Tests: CreepyTowers.Tests.Stats.BuffEffectTests
Examples

1 unit tests call CreepyTowers.Stats.BuffEffect
[Test]
public void SettingsConstructor()
{
    var goldBuff = new BuffEffect("TestGoldBuff");
    Assert.AreEqual("Gold", goldBuff.Attribute);
    Assert.AreEqual(2.0f, goldBuff.Multiplier);
    Assert.AreEqual(-3.0f, goldBuff.Addition);
    Assert.AreEqual(5.0f, goldBuff.Duration);
}
See Also