``` feat(fight): 新增多种技能效果实现(110/125/128/131/145/151),优化状态判断逻辑并重构随机数生成方式
This commit is contained in:
@@ -83,6 +83,19 @@ func init() {
|
||||
|
||||
}
|
||||
|
||||
type Effect129 struct {
|
||||
node.EffectNode
|
||||
StatusID int
|
||||
}
|
||||
|
||||
func (e *Effect129) Skill_Hit() bool {
|
||||
if e.Ctx().Opp.CurrentPet.Gender != e.SideEffectArgs[0] {
|
||||
return true
|
||||
}
|
||||
e.Ctx().SkillEntity.Power *= 2
|
||||
return true
|
||||
}
|
||||
|
||||
// 小助手函数,让注册看起来更自然
|
||||
func registerStatusFunc(id int, fn func(*input.Input, *input.Input) bool) {
|
||||
statusFuncRegistry.Register(id, fn)
|
||||
|
||||
Reference in New Issue
Block a user