Add LimboConsole plugin with command interpreter and configuration options

This commit is contained in:
2025-08-23 16:48:39 +02:00
parent 9da3b02a46
commit 846c3a6d83
60 changed files with 3201 additions and 16 deletions

View File

@@ -5,6 +5,6 @@ namespace ParasiticGod.Scripts;
[GlobalClass]
public partial class Follower : Node2D
{
public enum FollowerTier { Tier1, Tier2, Tier3, Tier4, Tier5 }
public enum FollowerTier { Tier1, Tier2, Tier3, Tier4, Tier5, Tier6, Tier7, Tier8, Tier9, Tier10 }
[Export] public FollowerTier Tier { get; private set; }
}

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Godot;
using Limbo.Console.Sharp;
using ParasiticGod.Scripts.Core;
using ParasiticGod.Scripts.Core.Effects;
@@ -38,6 +39,11 @@ public partial class GameBus : Node
Instance = null;
}
public override void _Ready()
{
RegisterConsoleCommands();
}
public override void _Process(double delta)
{
_gameLogic.UpdateGameState(_gameState, delta);
@@ -66,7 +72,7 @@ public partial class GameBus : Node
if (AllMiracles.TryGetValue(id, out var def) && !_gameState.IsMiracleUnlocked(id))
{
miraclesToUnlock.Add(def);
_gameState.AddUnlockedMiracle(id);
_gameState.AddUnlockedMiracle(def.Id);
}
}
}
@@ -108,4 +114,7 @@ public partial class GameBus : Node
public void UnsubscribeFromStat(Stat stat, Action<double> listener) => _gameState.Unsubscribe(stat, listener);
public GameState CurrentState => _gameState;
[ConsoleCommand("set_stat", "Sets the value of a specified stat.")]
private void SetStatCommand(Stat stat, double value) => _gameState.Set(stat, value);
}