Fixed Exhaustion effect persisting after raid

This commit is contained in:
Dev 2024-09-03 18:38:32 +01:00
parent f5dd69f43d
commit 9d923a8b0e
2 changed files with 11 additions and 0 deletions

View File

@ -148,6 +148,16 @@ export class HealthHelper {
// Already exists on server profile, skip // Already exists on server profile, skip
const profileBodyPartEffects = profileData.Health.BodyParts[bodyPartId].Effects; const profileBodyPartEffects = profileData.Health.BodyParts[bodyPartId].Effects;
if (profileBodyPartEffects[effect]) { if (profileBodyPartEffects[effect]) {
if (effect === "Exhaustion") {
// Get rid of existing Exhaustion effect
profileBodyPartEffects[effect] = undefined;
}
continue;
}
if (effect === "Exhaustion") {
// Do not pass exhaustion to out of raid profile
continue; continue;
} }

View File

@ -505,6 +505,7 @@ export class LocationLifecycleService {
/** /**
* Convert post-raid quests into correct format * Convert post-raid quests into correct format
* Quest status comes back as a string version of the enum `Success`, not the expected value of 1
* @param questsToProcess * @param questsToProcess
* @returns IQuestStatus * @returns IQuestStatus
*/ */