Skip to content

Commit

Permalink
finish store summary.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed May 25, 2024
1 parent 489272d commit 9faea84
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4016,19 +4016,18 @@ void ProtocolGame::sendCyclopediaCharacterStoreSummary() {
msg.addByte(id - 1000);
}

std::vector<uint16_t> m_hOutfits;
/*std::vector<uint16_t> m_hOutfits;
for (const auto &it : g_game().getHirelingOutfits()) {
if (player->kv()->scoped("hireling-outfits")->get(it.second)) {
m_hOutfits.emplace_back(it.first);
g_logger().debug("outfit id: {}, name: {}", it.first, it.second);
}
}
msg.addByte(0x00);
// msg.addByte(m_hOutfits.size());
// for (const auto &id : m_hOutfits) {
// msg.addByte(id - 2000);
// }
msg.addByte(0x00);
msg.addByte(m_hOutfits.size());
for (const auto &id : m_hOutfits) {
msg.addByte(0x01); // TODO need to get the correct id from hireling outfit
}*/
msg.addByte(0x00); // hireling outfit size

auto houseItems = player->cyclopedia()->getResult(static_cast<uint8_t>(Summary_t::HOUSE_ITEMS));
msg.add<uint16_t>(houseItems.size());
Expand Down

0 comments on commit 9faea84

Please sign in to comment.