Fix loot money notifications fallback and chest loot trigger

This commit is contained in:
Kelsi 2026-02-18 04:11:00 -08:00
parent f706733e99
commit 6dc111f13f
2 changed files with 69 additions and 2 deletions

View file

@ -1377,6 +1377,10 @@ private:
bool moneyTaken = false;
};
std::unordered_map<uint64_t, LocalLootState> localLootState_;
uint64_t pendingLootMoneyGuid_ = 0;
uint32_t pendingLootMoneyAmount_ = 0;
float pendingLootMoneyNotifyTimer_ = 0.0f;
std::unordered_map<uint64_t, float> recentLootMoneyAnnounceCooldowns_;
uint64_t playerMoneyCopper_ = 0;
// Some servers/custom clients shift update field indices. We can auto-detect coinage by correlating
// money-notify deltas with update-field diffs and then overriding UF::PLAYER_FIELD_COINAGE at runtime.