This holds which stat is to be adjusted, how much to adjust by, and which stat is used to
resist the adjustment.
View code on GitHub
Namespace: CreepyTowers.StatsAssembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The StatAdjustment type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StatAdjustment(String) | Initializes a new instance of the StatAdjustment class | |
StatAdjustment(String, String, Single) | Initializes a new instance of the StatAdjustment class |
Properties
Name | Description | |
---|---|---|
Adjustment | ||
Attribute | ||
Resist |
Remarks
Examples
[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