Refactor all gameItem into one object for easier stats

This commit is contained in:
derek.holloway
2025-12-17 19:13:10 -08:00
parent 063b70a4d5
commit 25e86a6990
201 changed files with 1829 additions and 868 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ public partial class GameHandler : Node3D {
Bullet physicsBullet = ps.Instantiate<Bullet>();
physicsBullet.Name = Guid.NewGuid().ToString();
physicsBullet.Creator = Creator;
physicsBullet.Damage = ((ItemStats)_Reference.ItemSpawnPath).stats[itemID].ToolDamage ;
physicsBullet.Damage = new GameItem(itemID).ItemStats.ToolDamage;
GetNode<Node3D>("/root/GameRoot/Game").AddChild(physicsBullet);
physicsBullet.SetDeferred("global_position", initialPosition);
physicsBullet.CallDeferred("apply_impulse", ImpulseVector);
+2
View File
@@ -17,6 +17,8 @@ public partial class PreGame : Control {
_Reference.PreGame = this;
_AbilityLabel = this.GetChild<Label>(0);
_AbilityLabel.Text = "Current Ability : " + _Ability.ToString();
StatItem.LoadItemStats();
}
public void _on_ability_pressed() {