Chests and Loot Drops

This commit is contained in:
Marco 2025-04-25 18:33:20 +02:00
commit a2a18c69fc
20 changed files with 242 additions and 58 deletions

View file

@ -6,8 +6,8 @@ namespace Cirno.Scripts.Resources.Loot;
public partial class LootDrop : Resource
{
[Export]
public LootItem Item { get; private set; }
public LootItem Item { get; set; }
[Export(PropertyHint.None, "suffix:%")]
public float Chance { get; private set; }
public float Chance { get; set; }
}

View file

@ -0,0 +1,10 @@
using Godot;
using Godot.Collections;
namespace Cirno.Scripts.Resources.Loot;
[GlobalClass]
public partial class LootTable : Resource
{
[Export] public Array<LootItem> Items { get; set; }
}

View file

@ -0,0 +1 @@
uid://rgx0g5iqksnn