From e90920079939bfcb4926c459f293ae5a9eee41ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Wed, 24 Sep 2025 19:56:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(logic/service/fight/input/nodemanger.go):?= =?UTF-8?q?=20=E4=BF=AE=E6=AD=A3=E6=8A=80=E8=83=BD=E3=80=81=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E3=80=81=E4=BC=A4=E5=AE=B3=E5=92=8C=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E7=9A=84ID=E5=81=8F=E7=A7=BB=E9=87=8F?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了多余的 `-1` 操作,使ID映射逻辑更加准确。 涉及的函数包括:InitSkillEffect、InitPropEffect、InitDamageEffect 和 InitStatusEffect。 --- logic/service/fight/input/nodemanger.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logic/service/fight/input/nodemanger.go b/logic/service/fight/input/nodemanger.go index f3ec8b01b..f340cb132 100644 --- a/logic/service/fight/input/nodemanger.go +++ b/logic/service/fight/input/nodemanger.go @@ -79,7 +79,7 @@ var NodeM = make(map[int]Effect, 0) func InitSkillEffect(id int, t Effect) { - NodeM[id+1000000-1] = t + NodeM[id+1000000] = t } func Geteffect(id int) (Effect, bool) { @@ -95,7 +95,7 @@ func Geteffect(id int) (Effect, bool) { func InitPropEffect(id int, t Effect) { - NodeM[id+2000000-1] = t + NodeM[id+2000000] = t } // * battle_lv: atk(0), def(1), sp_atk(2), sp_def(3), spd(4), accuracy(5) @@ -125,7 +125,7 @@ func (c *Input) GetProp(id int, istue bool) int { } func InitDamageEffect(id int, t Effect) { - NodeM[id+4000000-1] = t + NodeM[id+4000000] = t } // 1为红伤 @@ -183,7 +183,7 @@ func GetPropEffect(id int) Effect { } func InitStatusEffect(id int, t Effect) { - NodeM[id+3000000-1] = t + NodeM[id+3000000] = t } func GetStatusEffect(id int) (Effect, bool) {