feat: 完善双版本门控、状态名单分类搜索与YesNo对话自动确认

This commit is contained in:
2026-10-14 01:17:24 +08:00
parent a6cccdbc43
commit c68f5f743a
4 changed files with 121 additions and 14 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ public sealed unsafe class MovementModules(GameContext game, Configuration confi
});
modules.Register(2, scope =>
{
if(game.GameVersion!=AccelerationPolicy.AuditedVersion) throw new InvalidOperationException("最大加速度仅完成 2026.09.15 客户端的字段核对。");
if(!AccelerationPolicy.IsAuditedVersion(game.GameVersion)) throw new InvalidOperationException($"最大加速度仅完成已核对客户端的字段核对,当前为 {game.GameVersion}。");
Hook<Acceleration>? hook = null;
hook = game.Hook<Acceleration>(scope, "40 ?? 48 ?? ?? ?? 80 79 ?? ?? 48 ?? ?? 0f 84 ?? ?? ?? ?? 48 89 7c 24 ?? 48 ?? ?? ??", actor =>
{
@@ -85,7 +85,7 @@ public sealed unsafe class MovementModules(GameContext game, Configuration confi
});
modules.Register(7, scope =>
{
if(game.GameVersion!=AccelerationPolicy.AuditedVersion) throw new InvalidOperationException("强制移动入口参数仅核对了 2026.09.15 客户端");
if(!AccelerationPolicy.IsAuditedVersion(game.GameVersion)) throw new InvalidOperationException($"强制移动入口参数仅核对了已审计客户端,当前为 {game.GameVersion}。");
Hook<Forced>? hook = null;
hook = game.Hook<Forced>(scope, Signatures.FuckBewithAction, (actor,x,y,z,movementParameter,options) =>
{