Rewrite and simplify Inventory Menu, various fixes for item effects

This commit is contained in:
2025-11-04 01:12:16 -08:00
parent 7b7fc910bd
commit a5846e08dc
49 changed files with 1070 additions and 826 deletions
@@ -9,9 +9,11 @@ namespace Zennysoft.Game.Ma;
public abstract partial class InventoryItemStats : Resource
{
[Export]
[Save("equipment_name")]
public string Name { get; set; }
[Export(PropertyHint.MultilineText)]
[Save("equipment_description")]
public string Description { get; set; }
[Export(PropertyHint.Range, "0, 1, 0.01")]
@@ -30,33 +32,43 @@ public abstract partial class InventoryItemStats : Resource
public double BonusLuck { get; set; } = 0.05;
[Export]
[Save("equipment_bonus_hp")]
public int BonusHP { get; set; } = 0;
[Export]
[Save("equipment_bonus_vt")]
public int BonusVT { get; set; } = 0;
[Export]
[Save("equipment_aeolic_resist")]
public int AeolicResistance { get; set; } = 0;
[Export]
[Save("equipment_telluric_resist")]
public int TelluricResistance { get; set; } = 0;
[Export]
[Save("equipment_hydric_resist")]
public int HydricResistance { get; set; } = 0;
[Export]
[Save("equipment_igneous_resist")]
public int IgneousResistance { get; set; } = 0;
[Export]
[Save("equipment_ferrum_resist")]
public int FerrumResistance { get; set; } = 0;
[Export(PropertyHint.Range, "0, 25, 0.1")]
[Save("equipment_throw_speed")]
public float ThrowSpeed { get; set; } = 12.0f;
[Export(PropertyHint.Range, "0, 999, 1")]
public int IncreaseMaxHPAmount { get; set; }
[Export(PropertyHint.Range, "0, 999, 1")]
public int IncreaseMaxVTAmount { get; set; }
[Export(PropertyHint.Range, "0, 999, 1")]
[Save("equipment_throw_damage")]
public int ThrowDamage { get; set; } = 5;
[Export]
[Save("equipment_item_tag")]
public ItemTag ItemTag { get; set; } = ItemTag.None;
[Export]