refactor: 重构 CurrentPet 为 CurPet
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-04-04 04:34:43 +08:00
committed by cnb
parent 6439995434
commit 9c6f3988de
395 changed files with 1424 additions and 1424 deletions

View File

@@ -41,7 +41,7 @@ func (e *Effect96) SkillHit() bool {
// ---- 注册所有效果 ----
func init() {
registerStatusFunc(2, func(i, o *input.Input) bool {
return o.CurrentPet[0].Info.Hp < (o.CurrentPet[0].Info.MaxHp / 2)
return o.CurPet[0].Info.Hp < (o.CurPet[0].Info.MaxHp / 2)
})
registerStatusFunc(30, func(i, o *input.Input) bool {
return !i.FightC.IsFirst(i.Player)
@@ -73,13 +73,13 @@ func init() {
initskill(129, &Effect129{})
registerStatusFunc(132, func(i, o *input.Input) bool {
return i.CurrentPet[0].Info.Hp < o.CurrentPet[0].Info.Hp
return i.CurPet[0].Info.Hp < o.CurPet[0].Info.Hp
})
registerStatusFunc(168, func(i, o *input.Input) bool {
return o.StatEffect_Exist(info.PetStatus.Sleep)
})
registerStatusFunc(401, func(i, o *input.Input) bool {
return i.CurrentPet[0].PetInfo.Type == o.CurrentPet[0].PetInfo.Type
return i.CurPet[0].PetInfo.Type == o.CurPet[0].PetInfo.Type
})
registerStatusFunc(431, func(i, o *input.Input) bool {
@@ -95,7 +95,7 @@ type Effect129 struct {
}
func (e *Effect129) SkillHit() bool {
if e.Ctx().Opp.CurrentPet[0].Info.Gender != e.SideEffectArgs[0] {
if e.Ctx().Opp.CurPet[0].Info.Gender != e.SideEffectArgs[0] {
return true
}
e.Ctx().SkillEntity.XML.Power *= 2