Enhanced loot drops system

This commit is contained in:
MaddoScientisto 2026-03-01 19:14:34 +01:00
commit acc61f9a0e
12 changed files with 661 additions and 443 deletions

View file

@ -1,4 +1,4 @@
using Godot;
using Godot;
namespace Cirno.Scripts.Resources.Loot;
@ -8,7 +8,10 @@ public partial class LootDrop : Resource
{
[Export]
public LootItem Item { get; set; }
[Export(PropertyHint.None, "suffix:%")]
public float Chance { get; set; }
/// <summary>How many pickup instances to spawn when this drop is triggered.</summary>
[Export] public int Count { get; set; } = 1;
}