Set XP decay timer to be one shot
parent
7f7d079bb4
commit
534f9436ee
|
@ -40,6 +40,7 @@ public partial class PlayerStats : CharacterStats
|
||||||
|
|
||||||
_xpDecayTimer = new Timer();
|
_xpDecayTimer = new Timer();
|
||||||
_xpDecayTimer.Timeout += () => _shouldDecayXP = true;
|
_xpDecayTimer.Timeout += () => _shouldDecayXP = true;
|
||||||
|
_xpDecayTimer.OneShot = true;
|
||||||
_xpDecayTimer.Stop();
|
_xpDecayTimer.Stop();
|
||||||
AddChild(_xpDecayTimer);
|
AddChild(_xpDecayTimer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue