CalculateDamageTests CheckResistanceBasedOnImmuneType 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 CheckResistanceBasedOnImmuneType()
Examples

[Test, CloseAfterFirstFrame]
public void CheckResistanceBasedOnImmuneType()
{
    var creep = new Creep(CreepType.Glass, Vector3D.Zero);
    var resistance = creep.State.GetVulnerabilityValue(TowerType.Acid);
    Assert.AreEqual(0.1f, resistance);
}
See Also