mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 13:17:46 +00:00
Read correct slot data
Now you can view more than just shirts!
This commit is contained in:
parent
1c77a0b06e
commit
6c691ae630
3 changed files with 19 additions and 5 deletions
2
libxiv
2
libxiv
|
@ -1 +1 @@
|
|||
Subproject commit ce7c99c3de4853758bd37d46b3e582b27681797a
|
||||
Subproject commit 8139f399fdcfd8b57f5a399ee2aa2d92baa7bf4a
|
|
@ -6,8 +6,15 @@
|
|||
#include "renderer.hpp"
|
||||
|
||||
enum class Slot {
|
||||
Body,
|
||||
Legs
|
||||
Head = 3,
|
||||
Hands = 5,
|
||||
Legs = 7,
|
||||
Feet = 8,
|
||||
Body = 4,
|
||||
Earring = 9,
|
||||
Neck = 10,
|
||||
Rings = 12,
|
||||
Wrists = 11
|
||||
};
|
||||
|
||||
enum class Race {
|
||||
|
@ -36,8 +43,15 @@ struct GearInfo {
|
|||
};
|
||||
|
||||
inline std::unordered_map<Slot, std::string_view> slotToName = {
|
||||
{Slot::Head, "met"},
|
||||
{Slot::Hands, "glv"},
|
||||
{Slot::Legs, "dwn"},
|
||||
{Slot::Feet, "sho"},
|
||||
{Slot::Body, "top"},
|
||||
{Slot::Legs, "dwn"}
|
||||
{Slot::Earring, "ear"},
|
||||
{Slot::Neck, "nek"},
|
||||
{Slot::Rings, "rir"},
|
||||
{Slot::Wrists, "wrs"}
|
||||
};
|
||||
|
||||
class GameData;
|
||||
|
|
|
@ -117,7 +117,7 @@ MainWindow::MainWindow(GameData& data) : data(data) {
|
|||
|
||||
GearInfo info = {};
|
||||
info.name = row.data[9].data;
|
||||
info.slot = Slot::Body;
|
||||
info.slot = (Slot)row.data[17].uint64Data;
|
||||
info.modelInfo.primaryID = parts[0];
|
||||
|
||||
gears.push_back(info);
|
||||
|
|
Loading…
Add table
Reference in a new issue