Make chest looting robust with unconditional GO loot + timed retry

This commit is contained in:
Kelsi 2026-02-18 04:13:26 -08:00
parent 1a9cc82248
commit 4a61eeda8a
2 changed files with 30 additions and 8 deletions

View file

@ -1377,6 +1377,12 @@ private:
bool moneyTaken = false;
};
std::unordered_map<uint64_t, LocalLootState> localLootState_;
struct PendingLootRetry {
uint64_t guid = 0;
float timer = 0.0f;
uint8_t remainingRetries = 0;
};
std::vector<PendingLootRetry> pendingGameObjectLootRetries_;
uint64_t pendingLootMoneyGuid_ = 0;
uint32_t pendingLootMoneyAmount_ = 0;
float pendingLootMoneyNotifyTimer_ = 0.0f;