Slightly rework death screen

This commit is contained in:
2025-03-07 23:08:08 -08:00
parent 8a61104868
commit 84570fe87d
9 changed files with 23 additions and 17 deletions

View File

@@ -9,9 +9,9 @@
script = ExtResource("2_oln85")
CurrentHP = 30.0
MaximumHP = 0
CurrentAttack = 12
CurrentAttack = 15
CurrentDefense = 7
MaxAttack = 12
MaxAttack = 15
MaxDefense = 7
ExpFromDefeat = 15
Luck = 0.05

View File

@@ -8,10 +8,10 @@
[sub_resource type="Resource" id="Resource_xhsah"]
script = ExtResource("2_wrps7")
CurrentHP = 50.0
MaximumHP = 50.0
CurrentAttack = 0
MaximumHP = 0
CurrentAttack = 15
CurrentDefense = 0
MaxAttack = 0
MaxAttack = 15
MaxDefense = 0
ExpFromDefeat = 0
Luck = 0.05

View File

@@ -150,6 +150,7 @@ public partial class Player : CharacterBody3D, IPlayer
PlayerLogic.Set(this as IPlayer);
PlayerLogic.Set(Settings);
PlayerLogic.Set(Stats);
PlayerLogic.Set(_gameRepo);
var defaultWeapon = new Weapon();
defaultWeapon.ItemStats = _defaultWeapon;
@@ -387,7 +388,7 @@ public partial class Player : CharacterBody3D, IPlayer
Stats.SetCurrentExp(newCurrentExp);
}
public void Die() => PlayerLogic.Input(new PlayerLogic.Input.Killed());
public void Die() => PlayerLogic.Input(new PlayerLogic.Input.Die());
public override void _UnhandledInput(InputEvent @event)
{