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) {