mirror of
https://github.com/waynebian01/Shigure.git
synced 2026-09-03 07:15:24 +08:00
改进9
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user