Mapping and generation fixes

This commit is contained in:
Marco 2025-04-30 15:09:59 +02:00
commit 8c17738371
18 changed files with 628 additions and 53 deletions

View file

@ -2,6 +2,7 @@ using System;
using System.Collections;
using System.Threading.Tasks;
using Cirno.Scripts.Components.FSM;
using Cirno.Scripts.Enums;
using Cirno.Scripts.Resources;
using Godot;
@ -9,7 +10,7 @@ namespace Cirno.Scripts.Activables;
public partial class LevelTeleporter : Teleporter
{
[Export] public string LevelPath { get; private set; }
[Export] public string LevelPath { get; set; }
[Export] public MapResource Map { get; private set; }
[Export] public bool SaveInventory { get; private set; }
@ -38,6 +39,11 @@ public partial class LevelTeleporter : Teleporter
if (!string.IsNullOrWhiteSpace(LevelPath))
{
if (GlobalState.Instance.SessionSettings.GameMode is GameMode.Roguelite)
{
GlobalState.Instance.SessionSettings.LevelNumber += 1;
}
GlobalState.Instance.GotoScene(LevelPath);
}
else