``` feat(fight): 新增多种技能效果实现(110/125/128/131/145/151),优化状态判断逻辑并重构随机数生成方式

This commit is contained in:
1
2025-12-11 20:05:00 +00:00
parent 5ca43fe21f
commit 4c69e578dd
13 changed files with 328 additions and 33 deletions

View File

@@ -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)