Skip to content

Commit 3d7369c

Browse files
committed
Fix linting issues
1 parent fd74485 commit 3d7369c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pkg/enemy/attack.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ var particleIDToElement = []attributes.Element{
2424
}
2525

2626
func (e *Enemy) HandleAttack(atk *info.AttackEvent) float64 {
27-
grp_mult := 1.0
27+
grpMult := 1.0
2828

2929
if !atk.Info.SourceIsSim {
30-
grp_mult = e.GroupTagDamageMult(atk.Info.ICDTag, atk.Info.ICDGroup, atk.Info.ActorIndex)
30+
grpMult = e.GroupTagDamageMult(atk.Info.ICDTag, atk.Info.ICDGroup, atk.Info.ActorIndex)
3131
}
3232

33-
if grp_mult > 0 {
33+
if grpMult > 0 {
3434
e.Core.Combat.Events.Emit(event.OnEnemyHit, e, atk)
3535
}
3636

@@ -59,7 +59,7 @@ func (e *Enemy) HandleAttack(atk *info.AttackEvent) float64 {
5959
evt.Write("pre_damage_mods", preDmgModDebug)
6060
}
6161

62-
dmg, crit = e.attack(atk, evt, grp_mult)
62+
dmg, crit = e.attack(atk, evt, grpMult)
6363

6464
// delay damage event to end of the frame
6565
e.Core.Combat.Tasks.Add(func() {
@@ -91,7 +91,7 @@ func (e *Enemy) HandleAttack(atk *info.AttackEvent) float64 {
9191
return dmg
9292
}
9393

94-
func (e *Enemy) attack(atk *info.AttackEvent, evt glog.Event, grp_mult float64) (float64, bool) {
94+
func (e *Enemy) attack(atk *info.AttackEvent, evt glog.Event, grpMult float64) (float64, bool) {
9595
// if target is frozen prior to attack landing, set impulse to 0
9696
// let the break freeze attack to trigger actual impulse
9797
if e.GetAuraDurability(info.ReactionModKeyFrozen) > info.ZeroDur {
@@ -142,7 +142,7 @@ func (e *Enemy) attack(atk *info.AttackEvent, evt glog.Event, grp_mult float64)
142142
}
143143
}
144144

145-
damage, isCrit := e.calc(atk, evt, grp_mult)
145+
damage, isCrit := e.calc(atk, evt, grpMult)
146146

147147
// check for hitlag
148148
if e.Core.Combat.EnableHitlag {

pkg/enemy/damage.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/genshinsim/gcsim/pkg/core/info"
88
)
99

10-
func (e *Enemy) calc(atk *info.AttackEvent, evt glog.Event, grp_mult float64) (float64, bool) {
10+
func (e *Enemy) calc(atk *info.AttackEvent, evt glog.Event, grpMult float64) (float64, bool) {
1111
var isCrit bool
1212

1313
if attacks.AttackTagIsDirectLunar(atk.Info.AttackTag) {
@@ -113,7 +113,7 @@ func (e *Enemy) calc(atk *info.AttackEvent, evt glog.Event, grp_mult float64) (f
113113
elevation := atk.Info.Elevation
114114
damage *= 1 + elevation
115115

116-
damage *= grp_mult
116+
damage *= grpMult
117117

118118
if e.Core.Flags.LogDebug {
119119
evt := e.Core.Log.NewEvent(
@@ -122,7 +122,7 @@ func (e *Enemy) calc(atk *info.AttackEvent, evt glog.Event, grp_mult float64) (f
122122
atk.Info.ActorIndex,
123123
).
124124
Write("src_frame", atk.SourceFrame).
125-
Write("damage_grp_mult", grp_mult).
125+
Write("damage_grp_mult", grpMult).
126126
Write("damage", damage).
127127
Write("abil", atk.Info.Abil)
128128
addScalingInfo(evt, atk).

0 commit comments

Comments
 (0)