Updated forgotten TaskConditionCounters for scav TaskConditionCounters migration code.
This commit is contained in:
parent
f23167389a
commit
f2bcbbf8ab
@ -337,7 +337,7 @@ export class InraidController
|
|||||||
*/
|
*/
|
||||||
protected profileHasConditionCounters(profile: IPmcData): boolean
|
protected profileHasConditionCounters(profile: IPmcData): boolean
|
||||||
{
|
{
|
||||||
if (!profile.TaskConditionCounters?.Counters)
|
if (!profile.TaskConditionCounters)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -391,7 +391,7 @@ export class InraidController
|
|||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
`Processing counter: ${scavCounter.id} value: ${scavCounter.value} quest: ${scavCounter.sourceId}`,
|
`Processing counter: ${scavCounter.id} value: ${scavCounter.value} quest: ${scavCounter.sourceId}`,
|
||||||
);
|
);
|
||||||
const counterInPmcProfile = pmcProfile.TaskConditionCounters.Counters[scavCounter.id];
|
const counterInPmcProfile = pmcProfile.TaskConditionCounters[scavCounter.id];
|
||||||
if (!counterInPmcProfile)
|
if (!counterInPmcProfile)
|
||||||
{
|
{
|
||||||
// Doesn't exist yet, push it straight in
|
// Doesn't exist yet, push it straight in
|
||||||
@ -400,7 +400,7 @@ export class InraidController
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
`Counter id: ${scavCounter.id} already exists in pmc profile! with value: ${counterInPmcProfile.value} for quest: ${counterInPmcProfile.qid}`,
|
`Counter id: ${scavCounter.id} already exists in pmc profile! with value: ${counterInPmcProfile.value} for quest: ${counterInPmcProfile.id}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Only adjust counter value if its changed
|
// Only adjust counter value if its changed
|
||||||
|
Loading…
Reference in New Issue
Block a user