This commit is contained in:
waynebian01
2026-06-14 23:21:35 +08:00
parent 5f9443308a
commit 49bbe8315c
28 changed files with 983 additions and 110 deletions

View File

@@ -77,23 +77,6 @@ public sealed class DefaultClassLogic : IClassLogic
public LogicDecision Run(GameState state, string? specName)
{
var oneKeySpell = ModuleSpecialActions.GetOneKeySpell(state, _keymap.GetCurrentOneKeySpells());
if (!string.IsNullOrWhiteSpace(oneKeySpell))
{
var hotkey = _keymap.GetHotkey(0, oneKeySpell);
var info = new Dictionary<string, object?>
{
["命中条件"] = $"一键辅助 == {state.GetInt("")}",
["动作技能"] = oneKeySpell,
["动作按键"] = string.IsNullOrWhiteSpace(hotkey) ? "-" : hotkey,
["动作单位"] = 0
};
var step = string.IsNullOrWhiteSpace(hotkey)
? $"未找到按键 {oneKeySpell}"
: $"施放 {oneKeySpell}";
return new LogicDecision(hotkey, step, info);
}
var oneKeyAssist = state.GetInt("一键辅助");
if (oneKeyAssist == 10)
{

View File

@@ -5,7 +5,7 @@ namespace Shigure;
internal static class ModuleSpecialActions
{
public const string PauseSpell = "暂停";
public const string FailedSpell = "失败法术";
public const string FailedSpell = "插入法术";
public const string OneKeySpell = "一键法术";
public static bool IsPauseSpell(string? spell)

View File

@@ -559,19 +559,6 @@ public static class ModuleLogic
var unitSlots = ResolveDynamicFields(module, state);
var failedSpells = keymap.GetCurrentFailedSpells();
var oneKeySpells = keymap.GetCurrentOneKeySpells();
var oneKeySpell = ModuleSpecialActions.GetOneKeySpell(state, oneKeySpells);
if (!string.IsNullOrWhiteSpace(oneKeySpell))
{
var hotkey = keymap.GetHotkey(0, oneKeySpell);
info["命中条件"] = $"一键辅助 == {state.GetInt("")}";
info["动作技能"] = oneKeySpell;
info["动作按键"] = string.IsNullOrWhiteSpace(hotkey) ? "-" : hotkey;
info["动作单位"] = 0;
var step = string.IsNullOrWhiteSpace(hotkey)
? $"{module.Name}: 未找到按键 {oneKeySpell}"
: $"{module.Name}: 施放 {oneKeySpell}";
return new LogicDecision(hotkey, step, info, module.Name);
}
foreach (var rule in module.Rules.Where(rule => rule.Enabled))
{