Fix pockets being lost on death
This commit is contained in:
parent
fea17cf3db
commit
1858fe5bd5
@ -700,14 +700,13 @@ export class InRaidHelper
|
|||||||
{
|
{
|
||||||
// Check slot id against config, true = delete, false = keep, undefined = delete
|
// Check slot id against config, true = delete, false = keep, undefined = delete
|
||||||
const discard: boolean = this.lostOnDeathConfig.equipment[itemToCheck.slotId];
|
const discard: boolean = this.lostOnDeathConfig.equipment[itemToCheck.slotId];
|
||||||
if (discard === undefined)
|
if (typeof discard === "boolean" && discard === true)
|
||||||
{
|
{
|
||||||
// Not kept after death
|
// Lost on death
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// True === item is lost on death, return the opposite as we return if item is kept after death
|
return true;
|
||||||
return !discard;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is quest item + quest item not lost on death
|
// Is quest item + quest item not lost on death
|
||||||
|
Loading…
x
Reference in New Issue
Block a user