From c996975bf1b8350788a379116129ffc3063e66bc Mon Sep 17 00:00:00 2001 From: wish Date: Wed, 29 Nov 2023 21:38:32 +1100 Subject: [PATCH] correct EnumerateShop response --- server/channelserver/handlers_shop_gacha.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/channelserver/handlers_shop_gacha.go b/server/channelserver/handlers_shop_gacha.go index 01c87ffbd..297ebb9a0 100644 --- a/server/channelserver/handlers_shop_gacha.go +++ b/server/channelserver/handlers_shop_gacha.go @@ -10,13 +10,13 @@ import ( type ShopItem struct { ID uint32 `db:"id"` - ItemID uint16 `db:"item_id"` + ItemID uint32 `db:"item_id"` Cost uint32 `db:"cost"` Quantity uint16 `db:"quantity"` MinHR uint16 `db:"min_hr"` MinSR uint16 `db:"min_sr"` MinGR uint16 `db:"min_gr"` - StoreLevel uint16 `db:"store_level"` + StoreLevel uint8 `db:"store_level"` MaxQuantity uint16 `db:"max_quantity"` UsedQuantity uint16 `db:"used_quantity"` RoadFloors uint16 `db:"road_floors"` @@ -62,14 +62,14 @@ func writeShopItems(bf *byteframe.ByteFrame, items []ShopItem) { bf.WriteUint16(uint16(len(items))) for _, item := range items { bf.WriteUint32(item.ID) - bf.WriteUint16(0) - bf.WriteUint16(item.ItemID) + bf.WriteUint32(item.ItemID) bf.WriteUint32(item.Cost) bf.WriteUint16(item.Quantity) bf.WriteUint16(item.MinHR) bf.WriteUint16(item.MinSR) bf.WriteUint16(item.MinGR) - bf.WriteUint16(item.StoreLevel) + bf.WriteUint8(0) // Unk + bf.WriteUint8(item.StoreLevel) bf.WriteUint16(item.MaxQuantity) bf.WriteUint16(item.UsedQuantity) bf.WriteUint16(item.RoadFloors)