CalculateDamageTests CheckResistanceBasedOnWeakType Method Delta Engine Documentation

Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckResistanceBasedOnWeakType()
Examples

[Test, CloseAfterFirstFrame]
public void CheckResistanceBasedOnWeakType()
{
    var creep = new Creep(CreepType.Cloth, Vector3D.Zero);
    var resistance = creep.State.GetVulnerabilityValue(TowerType.Slice);
    Assert.AreEqual(2.0f, resistance);
}
See Also