mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:05:34 +00:00
Enhanced loot drops system
This commit is contained in:
parent
ddde409dbf
commit
acc61f9a0e
12 changed files with 661 additions and 443 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue