Revamp item spawn behavior
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user