Namespace: CreepyTowers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Tests: CreepyTowers.Tests.AgentTests
2 unit tests call CreepyTowers.Agent.AdjustStat(CreepyTowers.Stats.StatAdjustment)
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- adjustment
- Type: CreepyTowers.Stats StatAdjustment
Remarks
Examples
[Test, CloseAfterFirstFrame] public void AdjustStatDownwards() { creep.AdjustStat(new StatAdjustment("Hp", "", -50.0f)); Assert.AreEqual(50.0f, creep.GetStatValue("Hp")); }
[Test, CloseAfterFirstFrame] public void AdjustStatUpwards() { creep.AdjustStat(new StatAdjustment("Hp", "", -50.0f)); creep.AdjustStat(new StatAdjustment("Hp", "", 20.0f)); Assert.AreEqual(70.0f, creep.GetStatValue("Hp")); }
See Also