This commit is contained in:
@@ -22,8 +22,8 @@ type EffectRandomPower struct {
|
||||
// -----------------------------------------------------------
|
||||
func init() {
|
||||
registerRandomPower(61, 50, 150)
|
||||
registerRandomPower(70, 140, 220)
|
||||
registerRandomPower(118, 140, 180)
|
||||
registerRandomPower(70, 150, 220)
|
||||
registerRandomPower(118, 150, 220)
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------
|
||||
@@ -45,13 +45,6 @@ func (e *EffectRandomPower) SkillHit() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// 如果 FightC 没提供随机器,使用 math/rand 兜底
|
||||
// var n int
|
||||
// if e.Input != nil && e.Input.FightC != nil {
|
||||
// n = int(e.Input.FightC.GetRand().Int31n(int32(e.Max-e.Min+1))) + e.Min
|
||||
// } else {
|
||||
// n = grand.Intn(e.Max-e.Min+1) + e.Min
|
||||
// }
|
||||
n := grand.N(e.Min, e.Max)
|
||||
e.Ctx().SkillEntity.XML.Power = n
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user