Floor system

This commit is contained in:
Marco 2025-04-30 16:11:25 +02:00
commit c1afa466d3
14 changed files with 199 additions and 86 deletions

View file

@ -0,0 +1,20 @@
using Godot;
namespace Cirno.Scripts.Resources;
[GlobalClass]
public partial class RogueliteFloorResource : Resource
{
[Export] public int DungeonLength { get; set; } = 3;
[Export] public int MaxBranchLength { get; set; } = 2;
[Export] public int MaxRooms = 12;
[Export] public int MinKeys = 0;
[Export] public int MaxKeys = 2;
[Export] public int MinSecrets = 1;
[Export] public int MaxSecrets = 1;
[Export] public int MinTreasures = 1;
[Export] public int MaxTreasures = 1;
[Export] public int MinShops = 1;
[Export] public int MaxShops = 1;
[Export] public float EnemyHealthMultiplier = 1.1f;
}

View file

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

View file

@ -48,6 +48,9 @@ public partial class RogueliteMapTheme : Resource
[ExportCategory("Rooms")]
[Export] public Array<RogueliteRoomResource> Rooms { get; set; }
[ExportCategory("Floors")]
[Export] public Array<RogueliteFloorResource> Floors { get; set; } = [];
[ExportCategory("Loot Counts")] public int MaxChestLoot { get; set; } = 100;
public Queue<LootItem> ChestLootQueue { get; private set; }