Skip to content

Commit a095ebe

Browse files
committed
fixed conditions
1 parent 0cfc284 commit a095ebe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/template/crystallize/shield.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ func NewShield(index int, typ attributes.Element, src, lvl int, em float64, expi
1515
s.Tmpl = &shield.Tmpl{}
1616

1717
lvl--
18-
if lvl > 89 {
19-
lvl = 89
18+
if lvl > 99 {
19+
lvl = 99
2020
}
2121
if lvl < 0 {
2222
lvl = 0

pkg/core/combat/reaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type reactionBonusSrc interface {
1111

1212
func CalcReactionBaseDmg(lvl int) float64 {
1313
idx := lvl - 1
14-
idx = min(idx, 89)
14+
idx = min(idx, 99)
1515
idx = max(idx, 0)
1616
return reactionLvlBase[idx]
1717
}

0 commit comments

Comments
 (0)