- add: script abilities

This commit is contained in:
2025-07-13 10:08:07 +03:00
parent a475148543
commit 138b769f81
10 changed files with 287 additions and 64 deletions

View File

@@ -1,11 +1,10 @@
using System.Data;
using HarmonyLib;
using Nebula.Shared;
namespace Nebula.Runner.Services;
[ServiceRegister]
public class HarmonyService(ReflectionService reflectionService)
public class HarmonyService
{
private HarmonyInstance? _instance;
@@ -25,21 +24,6 @@ public class HarmonyService(ReflectionService reflectionService)
throw new Exception();
_instance = new HarmonyInstance();
UnShittyWizard();
}
/// <summary>
/// Я помню пенис большой,Я помню пенис большой, Я помню пенис большой, я помню....
/// </summary>
private void UnShittyWizard()
{
var method = reflectionService.GetType("Robust.Client.GameController").TypeInitializer;
_instance!.Harmony.Patch(method, new HarmonyMethod(Prefix));
}
static bool Prefix()
{
return false;
}
}