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

@@ -137,7 +137,7 @@ func (e *EffectNode) PropBefer(in *input.Input, prop int8, level int8) bool {
func (e *EffectNode) ISNaturalEnemy() bool {
t, _ := element.Calculator.GetOffensiveMultiplier(e.Ctx().Opp.CurrentPet[0].Type, e.Ctx().Our.CurrentPet[0].Type)
t, _ := element.Calculator.GetOffensiveMultiplier(e.Ctx().Opp.CurPet[0].Type, e.Ctx().Our.CurPet[0].Type)
if t <= 1 {
return false

View File

@@ -39,7 +39,7 @@ func (e *EffectNode) OnSkill() bool {
func (e *EffectNode) Skill_Can() bool {
return e.Input.CurrentPet[0].HP != 0
return e.Input.CurPet[0].HP != 0
}
func (e *EffectNode) GenSub(t input.Effect, Duration int) input.Effect {
@@ -59,7 +59,7 @@ func (e *EffectNode) GenSub(t input.Effect, Duration int) input.Effect {
// func (e *EffectNode) Skill_Use() bool {
// // if e.Effect != nil {
// // if e.Input.CurrentPet[0].Info.Hp == 0 {
// // if e.Input.CurPet[0].Info.Hp == 0 {
// // e.OnDefeat(ctx.Input, ctx.SkillEntity) //死亡
// // } else {