Files
bl/logic/service/fight/effect/2325_2325.go
昔念 e037539123 ```
docs(effects): 移除已完成的技能效果任务文档

移除 effects 956-1005、1263-1312、1695-1734 等范围内的未实现技能效果任务文档,
这些任务已经完成实现,相关文档不再需要维护。
```
2026-03-31 00:38:50 +08:00

34 lines
719 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/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 2325: 己方场下每存活一只浪浪山小妖怪威力提升50点
type Effect2325 struct{ node.EffectNode }
func (e *Effect2325) SkillHit() bool {
if e.Ctx().SkillEntity == nil || e.Ctx().SkillEntity.Category() == info.Category.STATUS {
return true
}
count := 0
if e.Ctx().Our.AllPet != nil {
for _, pet := range e.Ctx().Our.AllPet {
if pet != nil && pet.Info.Hp > 0 {
count++
}
}
}
if count > 0 {
e.Ctx().SkillEntity.XML.Power += 50 * count
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 2325, &Effect2325{})
}