上传文件至 Cheat

This commit is contained in:
2025-10-13 18:18:32 +08:00
parent dc6087211e
commit 535e955faf
12 changed files with 1334 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using System;
using System.Reflection;
using HarmonyLib;
using Net.Packet;
using Net.Packet.Mai2;
using Net.VO;
using Net.VO.Mai2;
namespace SinmaiAssist.Cheat;
public class SetAllCharacterAsSameAndLock
{
[HarmonyPrefix]
[HarmonyPatch(typeof(PacketGetUserData), "SafeNullMember")]
public static bool SafeNullMember(PacketGetUserData __instance, UserDetailResponseVO src)
{
if (src.userData.charaSlot != null)
{
var newSlot = new[]
{
src.userData.charaSlot[0], src.userData.charaSlot[0], src.userData.charaSlot[0],
src.userData.charaSlot[0], src.userData.charaSlot[0]
};
src.userData.charaSlot = newSlot;
src.userData.charaLockSlot = newSlot;
}
return true;
}
}