Namespace: CreepyTowers.Stats
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Tests: CreepyTowers.Tests.Stats.StatTests
2 unit tests call CreepyTowers.Stats.Stat.ApplyBuff(CreepyTowers.Stats.BuffEffect)
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- effect
- Type: CreepyTowers.Stats BuffEffect
Remarks
Examples
[Test] public void AddBuff() { stat.ApplyBuff(new BuffEffect("TestHpBuff")); Assert.AreEqual(304.0f, stat.Value); Assert.AreEqual(304.0f, stat.MaxValue); }
[Test] public void RemoveBuff() { stat.ApplyBuff(new BuffEffect("TestHpBuff")); stat.RemoveBuff(new BuffEffect("TestHpBuff")); Assert.AreEqual(100.0f, stat.Value); Assert.AreEqual(100.0f, stat.MaxValue); }
See Also