mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 04:15:55 +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
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using Cirno.Scripts.Resources.Roguelite;
|
||||
using Cirno.Scripts.Resources.Loot;
|
||||
using Cirno.Scripts.Resources.Roguelite;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
|
|
@ -7,12 +8,25 @@ namespace Cirno.Scripts.Resources;
|
|||
[GlobalClass]
|
||||
public partial class RogueliteMapTheme : Resource
|
||||
{
|
||||
[ExportGroup("Prefabs")]
|
||||
[Export] public PackedScene HorizontalDoorPrefab { get; set; }
|
||||
[Export] public PackedScene HorizontalWallPrefab { get; set; }
|
||||
[Export] public PackedScene VerticalDoorPrefab { get; set; }
|
||||
[Export] public PackedScene VerticalWallPrefab { get; set; }
|
||||
[Export] public PackedScene DoorLockPrefab { get; set; }
|
||||
[Export] public PackedScene KeyCardPrefab { get; set; }
|
||||
[Export] public PackedScene ChestPrefab { get; set; }
|
||||
[Export] public PackedScene VendingMachinePrefab { get; set; }
|
||||
[Export] public Array<PackedScene> KeyCardsPrefabs { get; set; }
|
||||
[Export] public LootItem PointItemResource { get; set; }
|
||||
|
||||
[ExportGroup("Chances")]
|
||||
[Export] public double ChestChance { get; set; }
|
||||
[Export] public float EnemyDropChance { get; set; }
|
||||
[Export] public LootTable ChestLootTable { get; set; }
|
||||
[Export] public LootTable ShopLootTable { get; set; }
|
||||
[Export] public LootTable EnemiesLootTable { get; set; }
|
||||
|
||||
[ExportCategory("Rooms")]
|
||||
[Export] public Array<RogueliteRoomResource> Rooms { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue