PiggyBankTests TriggeringPiggyBankPayDayMakesCreepsDropMoreGold 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 TriggeringPiggyBankPayDayMakesCreepsDropMoreGold()
Examples

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