aboutsummaryrefslogtreecommitdiff
path: root/internal/game
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-05 00:41:11 -0400
committerhistoria <[not public]>2026-07-05 00:41:11 -0400
commit81f3e3bae7d82f0e0ad72d89ea5a5fdae8804712 (patch)
tree55793d006b42778951d9029aa9aeafac7cdfbc6d /internal/game
parent4385244d39b37d003dbb7a66a2ff3b05079b7047 (diff)
downloadthehouseoficarus-81f3e3bae7d82f0e0ad72d89ea5a5fdae8804712.tar.gz
fix: remove redundant 'quality' on items, fix ranged str on ammo, item admin ui updates
Diffstat (limited to 'internal/game')
-rw-r--r--internal/game/core_utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/core_utils.go b/internal/game/core_utils.go
index 71d0acb..a07e789 100644
--- a/internal/game/core_utils.go
+++ b/internal/game/core_utils.go
@@ -144,7 +144,7 @@ func (g *Game) broadcastAction(sess *net.Session, format string, args ...interfa
func (g *Game) newInventorySlot(itemID string, qty int) *player.InventorySlot {
slot := &player.InventorySlot{ItemID: itemID, Quantity: qty}
if def, err := g.ItemStore.Load(itemID); err == nil && def.MaxQuality > 0 {
- slot.Quality = def.Quality
+ slot.Quality = def.MaxQuality
slot.MaxQuality = def.MaxQuality
}
return slot