Add InitialDelay to CashTrickler
This commit is contained in:
committed by
reaperrr
parent
dfe2076826
commit
049096efd7
@@ -21,6 +21,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Desc("Number of ticks to wait between giving money.")]
|
[Desc("Number of ticks to wait between giving money.")]
|
||||||
public readonly int Interval = 50;
|
public readonly int Interval = 50;
|
||||||
|
|
||||||
|
[Desc("Number of ticks to wait before giving first money.")]
|
||||||
|
public readonly int InitialDelay = 0;
|
||||||
|
|
||||||
[Desc("Amount of money to give each time.")]
|
[Desc("Amount of money to give each time.")]
|
||||||
public readonly int Amount = 15;
|
public readonly int Amount = 15;
|
||||||
|
|
||||||
@@ -43,6 +46,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
: base(info)
|
: base(info)
|
||||||
{
|
{
|
||||||
this.info = info;
|
this.info = info;
|
||||||
|
ticks = info.InitialDelay;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Created(Actor self)
|
protected override void Created(Actor self)
|
||||||
|
|||||||
Reference in New Issue
Block a user