diff options
| author | historia <[not public]> | 2026-07-05 00:41:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-05 00:41:11 -0400 |
| commit | 81f3e3bae7d82f0e0ad72d89ea5a5fdae8804712 (patch) | |
| tree | 55793d006b42778951d9029aa9aeafac7cdfbc6d /internal/game | |
| parent | 4385244d39b37d003dbb7a66a2ff3b05079b7047 (diff) | |
| download | thehouseoficarus-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.go | 2 |
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 |
