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>();

View File

@@ -31,7 +31,6 @@ public partial class ThrowableItem : Node3D, IInventoryItem
public void OnReady()
{
AnimationPlayer.AnimationFinished += OnAnimationFinished;
Hitbox.Damage = 5;
Sprite.Texture = ThrowableItemInfo.Texture;
Pickup.BodyEntered += OnEntered;
}

View File

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

View File

@@ -5,7 +5,7 @@ using Godot;
public partial class WeaponInfo : InventoryItemInfo
{
[Export]
public int Damage { get; set; } = 1;
public int Damage { get; set; } = 0;
[Export]
public double Luck { get; set; } = 0.05;

View File

@@ -13,7 +13,7 @@ AeolicDamageBonus = 0.0
BaseHydricDamageBonus = 0.0
IgneousDamageBonus = 0.0
FerrumDamageBonus = 0.0
WeaponTags = []
WeaponTags = [0]
Name = "Kubel"
Description = "+9 ATK
A very powerful spear.