aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_identify.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_identify.go')
-rw-r--r--internal/game/act_identify.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/act_identify.go b/internal/game/act_identify.go
index 6ff4d61..89bef35 100644
--- a/internal/game/act_identify.go
+++ b/internal/game/act_identify.go
@@ -29,7 +29,7 @@ func (g *Game) advanceIdentify(sess *net.Session, p *player.Player) {
totalJunk := scrapCount * multiplier
hasExistingStack := false
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot != nil && slot.ItemID == junkID {
hasExistingStack = true
@@ -42,7 +42,7 @@ func (g *Game) advanceIdentify(sess *net.Session, p *player.Player) {
return
}
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot != nil && slot.ItemID == "scrap" {
p.SetInvSlot(i, nil)
@@ -50,7 +50,7 @@ func (g *Game) advanceIdentify(sess *net.Session, p *player.Player) {
}
placed := false
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot != nil && slot.ItemID == junkID {
slot.Quantity += totalJunk