From 748118237131a789ae86f08b738f9c14d033bd45 Mon Sep 17 00:00:00 2001 From: 1 <1@72wo.cn> Date: Thu, 28 Aug 2025 02:44:10 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=80=E8=83=BD=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fight/battle/effect/effect_stat.go | 38 +++++++++++++++++++ logic/service/fight/info/BattleSkillEntity.go | 1 + 2 files changed, 39 insertions(+) create mode 100644 logic/service/fight/battle/effect/effect_stat.go diff --git a/logic/service/fight/battle/effect/effect_stat.go b/logic/service/fight/battle/effect/effect_stat.go new file mode 100644 index 000000000..e21d6940b --- /dev/null +++ b/logic/service/fight/battle/effect/effect_stat.go @@ -0,0 +1,38 @@ +package effect + +import ( + "blazing/logic/service/fight/battle/node" + "blazing/logic/service/fight/info" +) + +func init() { + //技能使用成功时,m%自身XX等级+/-n + info.NodeM.AddEffect(&Effect4{}) //注册4 + //技能使用成功时,m%对方XX等级+/-n + info.NodeM.AddEffect(&Effect5{}) //注册5 +} + +type EffectStat struct { + node.EffectNode + etype bool +} + +func (this *EffectStat) TYPE() bool { + return this.etype +} + +type Effect4 struct { + EffectStat +} + +func (this *Effect4) TYPE() bool { + return true //提升 +} + +type Effect5 struct { + EffectStat +} + +func (this *Effect5) TYPE() bool { + return false //下降 +} diff --git a/logic/service/fight/info/BattleSkillEntity.go b/logic/service/fight/info/BattleSkillEntity.go index abb1290a8..d7c7b4e1f 100644 --- a/logic/service/fight/info/BattleSkillEntity.go +++ b/logic/service/fight/info/BattleSkillEntity.go @@ -43,6 +43,7 @@ type BattleSkillEntity struct { InfinityPP bool DamageZone map[EnumCategory]map[EnumsZoneType]map[EnumsZoneType][]float64 // 三维map 伤害类型-》增还是减-》加还是乘-》值 isCritical bool //技能是否暴击 + isHIt bool //技能是否命中 ATTACK_COUNT_ZONE int //攻击次数 DamageValue decimal.Decimal // 伤害值