This commit is contained in:
2025-03-07 01:52:56 -08:00
parent 65e4af8595
commit e7ef669c29
16 changed files with 15 additions and 41 deletions

View File

@@ -380,7 +380,7 @@ public partial class Player : CharacterBody3D, IPlayer
_knockbackDirection = GlobalBasis.Z.Normalized();
}
public void GainExp(int expGained)
public void GainExp(double expGained)
{
Stats.SetCurrentExp(Stats.CurrentExp.Value + expGained);
}
@@ -571,7 +571,7 @@ public partial class Player : CharacterBody3D, IPlayer
Die();
}
private void CurrentEXP_Sync(int newExp)
private void CurrentEXP_Sync(double newExp)
{
if (Stats.CurrentExp.Value >= Stats.ExpToNextLevel.Value)
LevelUp();