Revamped equipment init

This commit is contained in:
Marco 2025-04-07 15:58:43 +02:00
commit 2a016fd30c
16 changed files with 76 additions and 81 deletions

View file

@ -6,6 +6,7 @@ namespace Cirno.Scripts.Resources.DebugMenu;
public partial class DebugMapSelectResource : Resource
{
[Export] public bool Enabled { get; private set; } = true;
[Export] public MapResource Map { get; private set; }
[Export] public string Path { get; private set; }
[Export] private string _name { get; set; }
@ -14,6 +15,8 @@ public partial class DebugMapSelectResource : Resource
[Export] public Texture2D Icon { get; private set; }
public string ScenePath => Map is not null ? Map.ScenePath : Path;
public string DisplayName
{
get

View file

@ -11,8 +11,11 @@ public partial class MapStartDataResource : Resource
public int EggIndex { get; set; }
[Export]
public Array<LootItem> StartingEquipment { get; set; } = new Array<LootItem>();
public Array<LootItem> StartingEquipment { get; set; } = [];
[Export]
public Array<LootItem> RemoveEquipment { get; set; } = [];
public override string ToString()
{
return $"EggIndex: {EggIndex}, Equipment: {string.Join("," ,StartingEquipment.Select(x => x.ItemKey))}";