Fix taxi node names and add flight path cost display

TaxiNodes.dbc name was read from field 6 (Korean locale, empty) instead
of field 5 (enUS). Add BFS-based cost computation from TaxiPath.dbc
edges and display gold/silver/copper next to each destination.
This commit is contained in:
Kelsi 2026-02-07 19:04:15 -08:00
parent 0d94bca896
commit 8bdf0a2e79
3 changed files with 55 additions and 2 deletions

View file

@ -482,6 +482,7 @@ public:
uint32_t cost = 0;
};
const std::unordered_map<uint32_t, TaxiNode>& getTaxiNodes() const { return taxiNodes_; }
uint32_t getTaxiCostTo(uint32_t destNodeId) const;
// Vendor
void openVendor(uint64_t npcGuid);
@ -856,6 +857,8 @@ private:
bool onTaxiFlight_ = false;
uint32_t knownTaxiMask_[12] = {}; // Track previously known nodes for discovery alerts
bool taxiMaskInitialized_ = false; // First SMSG_SHOWTAXINODES seeds mask without alerts
std::unordered_map<uint32_t, uint32_t> taxiCostMap_; // destNodeId -> total cost in copper
void buildTaxiCostMap();
// Vendor
bool vendorWindowOpen = false;