修改技能效果

This commit is contained in:
1
2025-08-28 02:44:10 +00:00
parent 7dddc0400d
commit 7481182371
2 changed files with 39 additions and 0 deletions

View File

@@ -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 //下降
}

View File

@@ -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 // 伤害值