StatAdjustment Adjustment Property Delta Engine Documentation

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

public float Adjustment { get; }

Property Value

Type: Single
Remarks

Tests: CreepyTowers.Tests.Stats.StatAdjustmentTests
Examples

2 unit tests call CreepyTowers.Stats.StatAdjustment.Adjustment
[Test]
public void Constructor()
{
    var effect = new StatAdjustment("Hp", "Armor", -50);
    Assert.AreEqual("Hp", effect.Attribute);
    Assert.AreEqual("Armor", effect.Resist);
    Assert.AreEqual(-50.0f, effect.Adjustment);
}
[Test]
public void ConstructedFromXml()
{
    var effect = new StatAdjustment("TestAdjustment");
    Assert.AreEqual("Hp", effect.Attribute);
    Assert.AreEqual("", effect.Resist);
    Assert.AreEqual(-100.0f, effect.Adjustment);
}
See Also