Skip to content

Commit ea81e93

Browse files
committed
Fix golangci-lint issues
1 parent 04e4f59 commit ea81e93

3 files changed

Lines changed: 2 additions & 16 deletions

File tree

internal/characters/jahoda/burst.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ func (c *char) Burst(p map[string]int) (action.Info, error) {
125125
Bonus: c.Stat(attributes.Heal),
126126
})
127127
}
128-
129128
}
130129
}, i)
131130
}
@@ -173,7 +172,7 @@ func (c *char) lowestHPChar() int {
173172
return lowestIdx
174173
}
175174

176-
func (c *char) absorbCheck(src int, robot int, ai info.AttackInfo) func() {
175+
func (c *char) absorbCheck(src, robot int, ai info.AttackInfo) func() {
177176
return func() {
178177
if src != c.burstSrc || !c.StatusIsActive(burstKey) {
179178
return

internal/characters/jahoda/cons.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@ func (c *char) makeA1CB(a info.AttackCB) {
2222

2323
// 50% to bounce
2424
if c.Core.Rand.Float64() < 0.5 {
25-
triggered := false
26-
27-
if triggered {
28-
return
29-
}
3025
if a.Target.Type() != info.TargettableEnemy {
3126
return
3227
}
33-
triggered = true
3428

3529
// default to bounce onto the original enemy
36-
var target info.Target = a.Target
30+
target := a.Target
3731

3832
// prefer a different nearby enemy when one exists, the exact radius of detection is unknown
3933
next := c.Core.Combat.RandomEnemyWithinArea(combat.NewCircleHitOnTarget(a.Target, nil, 8), func(t info.Enemy) bool {
@@ -66,14 +60,12 @@ func (c *char) makeA1CB(a info.AttackCB) {
6660
nil,
6761
)
6862
}
69-
7063
}
7164

7265
func (c *char) c4() {
7366
if c.Base.Cons < 4 {
7467
return
7568
}
76-
7769
c.AddEnergy(c4Key, 4)
7870
}
7971

@@ -114,6 +106,5 @@ func (c *char) c6() {
114106
Write("cr", c.c6Buff[attributes.CR]).
115107
Write("cd", c.c6Buff[attributes.CD]).
116108
Write("expiry", c.Core.F+20*60)
117-
118109
}
119110
}

internal/characters/jahoda/skill.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ func (c *char) Skill(p map[string]int) (action.Info, error) {
101101
c.drainFlask(c.skillSrc),
102102
shadowPursuitMaxDuration,
103103
)
104-
105104
}, skillWindup)
106-
107105
return action.Info{
108106
Frames: frames.NewAbilFunc(skillFrames),
109107
AnimationLength: skillFrames[action.InvalidAction],
@@ -265,7 +263,6 @@ func (c *char) drainFlask(src int) func() {
265263
false,
266264
)
267265
}
268-
269266
} else {
270267
// if the flask is not full (early cancel or the duration expired), do unfill damage
271268
ai := info.AttackInfo{
@@ -333,6 +330,5 @@ func (c *char) meowballTick(src int) func() {
333330
c.meowballEnergyCB,
334331
c.makeA1CB,
335332
)
336-
337333
}
338334
}

0 commit comments

Comments
 (0)