mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 16:30:15 +00:00
feat: parse and display item skill/reputation requirements in tooltips
- Store requiredSkill, requiredSkillRank, allowableClass, allowableRace, requiredReputationFaction, and requiredReputationRank from SMSG_ITEM_QUERY_SINGLE_RESPONSE in ItemQueryResponseData (was discarded) - Show "Requires <Skill> (<rank>)" in item tooltip, highlighted red when the player doesn't have sufficient skill level - Show "Requires <Rank> with <Faction>" for reputation-gated items - Skill names resolved from SkillLine.dbc; faction names from Faction.dbc - Also fix loot window tooltip suppressing items with names starting with 'I'
This commit is contained in:
parent
a6c4f6d2e9
commit
b0b47c354a
6 changed files with 96 additions and 20 deletions
|
|
@ -2868,17 +2868,17 @@ bool ItemQueryResponseParser::parse(network::Packet& packet, ItemQueryResponseDa
|
|||
LOG_ERROR("SMSG_ITEM_QUERY_SINGLE_RESPONSE: truncated before statsCount (entry=", data.entry, ")");
|
||||
return false;
|
||||
}
|
||||
packet.readUInt32(); // AllowableClass
|
||||
packet.readUInt32(); // AllowableRace
|
||||
data.allowableClass = packet.readUInt32(); // AllowableClass
|
||||
data.allowableRace = packet.readUInt32(); // AllowableRace
|
||||
data.itemLevel = packet.readUInt32();
|
||||
data.requiredLevel = packet.readUInt32();
|
||||
packet.readUInt32(); // RequiredSkill
|
||||
packet.readUInt32(); // RequiredSkillRank
|
||||
data.requiredSkill = packet.readUInt32(); // RequiredSkill
|
||||
data.requiredSkillRank = packet.readUInt32(); // RequiredSkillRank
|
||||
packet.readUInt32(); // RequiredSpell
|
||||
packet.readUInt32(); // RequiredHonorRank
|
||||
packet.readUInt32(); // RequiredCityRank
|
||||
packet.readUInt32(); // RequiredReputationFaction
|
||||
packet.readUInt32(); // RequiredReputationRank
|
||||
data.requiredReputationFaction = packet.readUInt32(); // RequiredReputationFaction
|
||||
data.requiredReputationRank = packet.readUInt32(); // RequiredReputationRank
|
||||
packet.readUInt32(); // MaxCount
|
||||
data.maxStack = static_cast<int32_t>(packet.readUInt32()); // Stackable
|
||||
data.containerSlots = packet.readUInt32();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue