mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
Chests and Loot Drops
This commit is contained in:
parent
8ec057faf7
commit
a2a18c69fc
20 changed files with 242 additions and 58 deletions
|
|
@ -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; }
|
||||
}
|
||||
10
Scripts/Resources/Loot/LootTable.cs
Normal file
10
Scripts/Resources/Loot/LootTable.cs
Normal 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; }
|
||||
}
|
||||
1
Scripts/Resources/Loot/LootTable.cs.uid
Normal file
1
Scripts/Resources/Loot/LootTable.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://rgx0g5iqksnn
|
||||
Loading…
Add table
Add a link
Reference in a new issue