mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 00:45:53 +00:00
Floor system
This commit is contained in:
parent
8c17738371
commit
c1afa466d3
14 changed files with 199 additions and 86 deletions
20
Scripts/Resources/RogueliteFloorResource.cs
Normal file
20
Scripts/Resources/RogueliteFloorResource.cs
Normal 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;
|
||||
}
|
||||
1
Scripts/Resources/RogueliteFloorResource.cs.uid
Normal file
1
Scripts/Resources/RogueliteFloorResource.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b1mvbcwsip0mv
|
||||
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue