From d1e4db92e801f9bd7fcd1d76ba3348b529191832 Mon Sep 17 00:00:00 2001 From: 1 <1@72wo.cn> Date: Tue, 23 Sep 2025 22:34:02 +0000 Subject: [PATCH] =?UTF-8?q?refactor(fight/input):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=B6=88=E5=BC=BA=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96GetAction=E6=96=B9=E6=B3=95=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/service/fight/input/attr.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/logic/service/fight/input/attr.go b/logic/service/fight/input/attr.go index 39f820c5..0e29336c 100644 --- a/logic/service/fight/input/attr.go +++ b/logic/service/fight/input/attr.go @@ -10,6 +10,11 @@ func (u *Input) Death() { // 1是添加,-1是减少,0是清除 func (u *Input) SetProp(prop, level int) { + + if level == 0 { //说明是消强 + //todo 消强交互 + + } //todo 待交互 u.AttackValue.Prop[prop] = u.AttackValue.Prop[prop] + int8(level) @@ -18,7 +23,7 @@ func (u *Input) SetProp(prop, level int) { } func (u *Input) GetAction(opp *Input) { - //使用1#技能,实际上要按照四个技能权重去使用 - u.FightC.UseSkill(u.Player, int32(u.FightC.GetCurrPET(u.Player).Skills[0].ID)) + //使用1#技能,实际上要按照四个技能权重去使用 + u.FightC.UseSkill(u.Player, int32(u.FightC.GetCurrPET(u.Player).Skills[0].ID)) }