From be1816be8dbc3c98fdc3e6af5e3511a3d51c88cf Mon Sep 17 00:00:00 2001 From: 1 <1@72wo.cn> Date: Mon, 22 Sep 2025 04:47:12 +0000 Subject: [PATCH] =?UTF-8?q?refactor(fight):=20=E9=87=8D=E6=9E=84=E4=BC=A4?= =?UTF-8?q?=E5=AE=B3=E6=95=88=E6=9E=9C=E5=88=9D=E5=A7=8B=E5=8C=96=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E5=88=86=E7=A6=BB=E7=8A=B6=E6=80=81=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E4=B8=8E=E4=BC=A4=E5=AE=B3=E6=95=88=E6=9E=9C=E6=B3=A8?= =?UTF-8?q?=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/service/fight/effect/effect_damage.go | 2 +- logic/service/fight/input/nodemanger.go | 27 +++++++-- public/config/bossbuff和特性.xml | 66 ++++++++++----------- 3 files changed, 55 insertions(+), 40 deletions(-) diff --git a/logic/service/fight/effect/effect_damage.go b/logic/service/fight/effect/effect_damage.go index b53fe629..432cfa65 100644 --- a/logic/service/fight/effect/effect_damage.go +++ b/logic/service/fight/effect/effect_damage.go @@ -50,6 +50,6 @@ func (this *Effect0) IsCrit(opp *input.Input, skill *info.SkillEntity) { } func init() { - input.InitSkillEffect(0, &Effect0{}) + input.InitDamageEffect(1, &Effect0{}) } diff --git a/logic/service/fight/input/nodemanger.go b/logic/service/fight/input/nodemanger.go index bb534933..f6fe9d90 100644 --- a/logic/service/fight/input/nodemanger.go +++ b/logic/service/fight/input/nodemanger.go @@ -110,17 +110,25 @@ func (c *Input) GetProp(id int, istue bool) int { return 0 } +func InitDamageEffect(id int, t Effect) { + + NodeM[id+4000000] = t +} + +func (c *Input) GetDamageEffect(id int) (Effect, bool) { + + //todo 获取前GetEffect + ret, ok := NodeM[id+4000000] + + return ret, ok + //todo 获取后GetEffect +} + func InitStatusEffect(id int, t Effect) { NodeM[id+3000000] = t } -func (c *Input) GetCurrAttr(id int) *model.PetInfo { - //todo 获取前GetEffect - return c.CurrentPet.Info - - //todo 获取后GetEffect -} func (c *Input) GetStatusEffect(id int) (Effect, bool) { //todo 获取前GetEffect @@ -129,6 +137,13 @@ func (c *Input) GetStatusEffect(id int) (Effect, bool) { return ret, ok //todo 获取后GetEffect } +func (c *Input) GetCurrAttr(id int) *model.PetInfo { + + //todo 获取前GetEffect + return c.CurrentPet.Info + + //todo 获取后GetEffect +} func getTypeName(v interface{}) string { // 获取类型信息 t := reflect.TypeOf(v) diff --git a/public/config/bossbuff和特性.xml b/public/config/bossbuff和特性.xml index 5920ae0c..4c703e5d 100644 --- a/public/config/bossbuff和特性.xml +++ b/public/config/bossbuff和特性.xml @@ -93,7 +93,7 @@ Args: a1: n (百分比), a2: m点体力 32. 进攻类技能有n%几率秒杀对方; - Args: a1: n (百分比) + Args: a1: n (千分比) 33. 精灵体力降低到 1/n 时有 m% 几率体力回满; Args: a1: 1/n的n, a2: m (百分比) @@ -585,11 +585,11 @@ - - - - - + + + + + @@ -606,27 +606,27 @@ - - - - - + + + + + - - - - - - + + + + + + - - - - - + + + + + @@ -737,12 +737,12 @@ - - - - - - + + + + + + @@ -759,11 +759,11 @@ - - - - - + + + + +