Revamp item spawn behavior

This commit is contained in:
2026-06-12 18:09:52 -07:00
parent 403b136c5c
commit 8575cd6ddf
154 changed files with 4769 additions and 352 deletions
@@ -20,9 +20,6 @@ public abstract partial class InventoryItemStats : Resource
[Save("equipment_flavor_text")]
public string FlavorText { get; set; }
[Export(PropertyHint.Range, "0, 1, 0.01")]
public float SpawnRate { get; set; } = 0.5f;
[Export]
[Save("weapon_damage")]
public int BonusAttack { get; set; } = 0;
@@ -86,4 +83,13 @@ public abstract partial class InventoryItemStats : Resource
[Export]
[Save("inventory_item_texture")]
public Texture2D Texture { get; set; }
[Export]
public RarityTag RarityTag { get; set; }
[Export(PropertyHint.Range, "0, 1, 0.01")]
public float SpawnRate { get; set; } = 1f;
[Export]
public FloorSpawnTable SpawnsOn { get; set; } = new FloorSpawnTable();
}