mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 01:35:54 +00:00
New maps and chests
This commit is contained in:
parent
7c7588c1a4
commit
26a0f51168
28 changed files with 645 additions and 233 deletions
|
|
@ -1,6 +1,9 @@
|
|||
using Cirno.Scripts.Activables;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Cirno.Scripts.Activables;
|
||||
using Cirno.Scripts.Resources.Loot;
|
||||
using Cirno.Scripts.Resources.Roguelite;
|
||||
using Cirno.Scripts.Utils;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
|
|
@ -39,4 +42,15 @@ public partial class RogueliteMapTheme : Resource
|
|||
|
||||
[ExportCategory("Rooms")]
|
||||
[Export] public Array<RogueliteRoomResource> Rooms { get; set; }
|
||||
|
||||
[ExportCategory("Loot Counts")] public int MaxChestLoot { get; set; } = 100;
|
||||
|
||||
public Queue<LootItem> ChestLootQueue { get; private set; }
|
||||
|
||||
public Queue<LootItem> MakeChestLootQueue()
|
||||
{
|
||||
ChestLootQueue = new Queue<LootItem>().EnqueueRange(ChestLootTable.Items.ToList().Shuffle(MaxChestLoot));
|
||||
|
||||
return ChestLootQueue;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue