mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 06:45:33 +00:00
17 lines
No EOL
402 B
C#
17 lines
No EOL
402 B
C#
using Godot;
|
||
|
||
namespace Cirno.Scripts.Resources.Loot;
|
||
|
||
[GlobalClass]
|
||
[Tool]
|
||
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;
|
||
} |