aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_bank.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 20:03:13 -0400
committerhistoria <[not public]>2026-09-18 20:03:13 -0400
commit79764732406d6484f67d3dec045483dcb5d08c28 (patch)
tree7a64e8581a540b97ed554f5723e2d587424ab1c6 /internal/game/cmd_bank.go
parentf1e461ab6aec6b9bf056bbe2daa88a251e0f21da (diff)
downloadthehouseoficarus-79764732406d6484f67d3dec045483dcb5d08c28.tar.gz
feat: better card ascii art
Diffstat (limited to 'internal/game/cmd_bank.go')
-rw-r--r--internal/game/cmd_bank.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_bank.go b/internal/game/cmd_bank.go
index 0bfc2a3..1ec0b7c 100644
--- a/internal/game/cmd_bank.go
+++ b/internal/game/cmd_bank.go
@@ -182,7 +182,7 @@ func (g *Game) doBankDepositAll(sess *net.Session) {
p := sess.Player
var deposited int
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot == nil {
continue
@@ -299,7 +299,7 @@ func (g *Game) withdrawBankItem(sess *net.Session, p *player.Player, bankSlotIdx
// means the exact same item instance: merging two different-quality
// stacks would silently destroy the withdrawn stack's properties.
if def != nil && def.Stackable {
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
if slot := p.InvSlot(i); slot != nil && slot.ItemID == bs.ItemID &&
slot.Quality == bs.Quality && slot.MaxQuality == bs.MaxQuality {
slot.Quantity += bs.Quantity