cirnogodot/Scripts/Resources/Loot/LootDrop.cs

17 lines
No EOL
402 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}