修改技能效果
This commit is contained in:
38
logic/service/fight/battle/effect/effect_stat.go
Normal file
38
logic/service/fight/battle/effect/effect_stat.go
Normal 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 //下降
|
||||
}
|
||||
@@ -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 // 伤害值
|
||||
|
||||
|
||||
Reference in New Issue
Block a user