PiggyBankTests PiggyBankPayDayBuffLasts5Seconds Method Delta Engine Documentation

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

public void PiggyBankPayDayBuffLasts5Seconds()
Examples

[Test]
public void PiggyBankPayDayBuffLasts5Seconds()
{
    var creep = new Creep(CreepType.Cloth, new Vector2D(0.5f, 1.5f));
    var gold = creep.GetStatValue("Gold");
    pig.PerformAttack(AvatarAttack.PiggyBankPayDay, Vector2D.Unused);
    AdvanceTimeAndUpdateEntities(5.1f);
    Assert.GreaterOrEqual(creep.GetStatValue("Gold"), gold);
}
See Also