Fixed Exhaustion
effect persisting after raid
This commit is contained in:
parent
f5dd69f43d
commit
9d923a8b0e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user