improvements to disenchant all and cast retry logic

This commit is contained in:
avitasia
2025-12-29 13:35:51 -08:00
parent 84520d1c20
commit 0368dd69b2
12 changed files with 9895 additions and 9787 deletions
+3 -3
View File
@@ -65,7 +65,7 @@ namespace Nampower {
uint32_t gBufferTimeMs; // adjusts dynamically depending on errors
uint32_t gDisenchantItemId = 0;
int32_t gDisenchantQuality = -1; // -1 = unset
uint32_t gDisenchantQuality = 0; // 0 = unset
bool gDisenchantIncludeSoulbound = false;
uint32_t gNextDisenchantTimeMs = 0;
@@ -373,7 +373,7 @@ namespace Nampower {
void ResetDisenchantState() {
gDisenchantItemId = 0;
gDisenchantQuality = -1;
gDisenchantQuality = 0;
gDisenchantIncludeSoulbound = false;
gNextDisenchantTimeMs = 0;
}
@@ -534,7 +534,7 @@ namespace Nampower {
}
// Check for disenchant all
if (gDisenchantItemId != 0 || gDisenchantQuality != -1) {
if (gDisenchantItemId != 0 || gDisenchantQuality != 0) {
auto currentTime = GetTime();
// Try to disenchant when timer has elapsed