Clean up
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user