cirnogodot/Scripts/Resources/Loot/LootDrop.cs

17 lines
402 B
C#
Raw Normal View History

2026-03-01 19:14:34 +01:00
using Godot;
2025-03-04 09:43:05 +01:00
namespace Cirno.Scripts.Resources.Loot;
[GlobalClass]
[Tool]
2025-03-04 09:43:05 +01:00
public partial class LootDrop : Resource
{
[Export]
2025-04-25 18:33:20 +02:00
public LootItem Item { get; set; }
2026-03-01 19:14:34 +01:00
2025-03-04 09:43:05 +01:00
[Export(PropertyHint.None, "suffix:%")]
2025-04-25 18:33:20 +02:00
public float Chance { get; set; }
2026-03-01 19:14:34 +01:00
/// <summary>How many pickup instances to spawn when this drop is triggered.</summary>
[Export] public int Count { get; set; } = 1;
2025-03-04 09:43:05 +01:00
}