Files
bl/logic/service/fight/effect/effect_61_70_118.go
2025-10-05 07:13:43 +00:00

40 lines
792 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
*威力随机随机范围50~150
*/
type Effect61 struct {
node.EffectNode
Min int
Max int
}
func init() {
input.InitEffect(input.EffectType.Skill, 61, &Effect61{
EffectNode: node.EffectNode{},
Min: 50,
Max: 150,
})
input.InitEffect(input.EffectType.Skill, 70, &Effect61{
EffectNode: node.EffectNode{},
Min: 140,
Max: 220,
})
input.InitEffect(input.EffectType.Skill, 118, &Effect61{
EffectNode: node.EffectNode{},
Min: 140,
Max: 180,
})
}
func (e *Effect61) Skill_Hit(ctx input.Ctx) bool {
ctx.SkillEntity.Power = int(e.Input.FightC.GetRand().Int31n(int32(e.Max)-int32(e.Min)+1) + int32(e.Min))
return true
}