Implement even more inventory/UI stuff

This commit is contained in:
2024-09-10 01:22:34 -07:00
parent 911f75da14
commit 62a9f99b81
18 changed files with 79 additions and 51 deletions

View File

@@ -18,7 +18,7 @@ public partial class Accessory : Node3D, IInventoryItem, IEquipable
public InventoryItemInfo Info => AccessoryInfo;
[Export]
public AccessoryInfo AccessoryInfo { get; set; }
public AccessoryInfo AccessoryInfo { get; set; } = new AccessoryInfo();
[Node] public Sprite3D Sprite { get; set; } = default!;

View File

@@ -7,19 +7,19 @@ namespace GameJamDungeon;
public partial class AccessoryInfo : InventoryItemInfo
{
[Export]
public int ATKUp { get; set; }
public int ATKUp { get; set; } = 0;
[Export]
public int DEFUp { get; set; }
public int DEFUp { get; set; } = 0;
[Export]
public double LUCKUp { get; set; }
public double LUCKUp { get; set; } = 0;
[Export]
public int MaxHPUp { get; set; }
public int MaxHPUp { get; set; } = 0;
[Export]
public int MaxVTUp { get; set; }
public int MaxVTUp { get; set; } = 0;
[Export]
public Godot.Collections.Array<AccessoryTag> AccessoryTags { get; set; } = new Godot.Collections.Array<AccessoryTag>();