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 00000000..e21d6940 --- /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 abb1290a..d7c7b4e1 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 // 伤害值