Set XP decay timer to be one shot

master
John Montagu, the 4th Earl of Sandvich 2024-10-18 15:05:37 -07:00
parent 7f7d079bb4
commit 534f9436ee
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ public partial class PlayerStats : CharacterStats
_xpDecayTimer = new Timer();
_xpDecayTimer.Timeout += () => _shouldDecayXP = true;
_xpDecayTimer.OneShot = true;
_xpDecayTimer.Stop();
AddChild(_xpDecayTimer);