From 7f3bfff54238d5c77b0bbf1941d1bcc6cd3f44bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Thu, 12 Mar 2026 01:16:26 +0800 Subject: [PATCH] =?UTF-8?q?```=20feat(fight):=20=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E6=95=88=E6=9E=9C93=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除alpacadecimal依赖包导入 - 简化Effect93初始化代码 - 重命名OnSkill方法为Skill_Use以提高语义清晰度 - 直接使用Args()[1]替换SideEffectArgs避免额外参数传递 ``` --- logic/service/fight/effect/effect_93.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/logic/service/fight/effect/effect_93.go b/logic/service/fight/effect/effect_93.go index f8c73efb4..896f14330 100644 --- a/logic/service/fight/effect/effect_93.go +++ b/logic/service/fight/effect/effect_93.go @@ -4,8 +4,6 @@ import ( "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" "blazing/logic/service/fight/node" - - "github.com/alpacahq/alpacadecimal" ) /** @@ -13,9 +11,7 @@ import ( */ func init() { - input.InitEffect(input.EffectType.Skill, 93, &Effect93{ - EffectNode: node.EffectNode{}, - }) + input.InitEffect(input.EffectType.Skill, 93, &Effect93{}) } @@ -23,7 +19,7 @@ type Effect93 struct { node.EffectNode } -func (e *Effect93) OnSkill() bool { +func (e *Effect93) Skill_Use() bool { // 概率判定 ok, _, _ := e.Input.Player.Roll(int(e.Args()[0].IntPart()), 100) @@ -32,7 +28,7 @@ func (e *Effect93) OnSkill() bool { } e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{ Type: info.DamageType.Fixed, - Damage: alpacadecimal.NewFromInt(int64(e.SideEffectArgs[1])), + Damage: e.Args()[1], }) return true }