Set quest side to scav when generated for fence

This commit is contained in:
Dev 2023-10-16 18:33:09 +01:00
parent b8738474e5
commit f70cbcced7

View File

@ -306,6 +306,12 @@ export class RepeatableQuestGenerator
const quest = this.generateRepeatableTemplate("Elimination", traderId,repeatableConfig.side) as IElimination; const quest = this.generateRepeatableTemplate("Elimination", traderId,repeatableConfig.side) as IElimination;
// ASSUMPTION: All fence quests are for scavs
if (traderId === Traders.FENCE)
{
quest.side = "Scav";
}
quest.conditions.AvailableForFinish[0]._props.counter.id = this.objectId.generate(); quest.conditions.AvailableForFinish[0]._props.counter.id = this.objectId.generate();
quest.conditions.AvailableForFinish[0]._props.counter.conditions = []; quest.conditions.AvailableForFinish[0]._props.counter.conditions = [];
if (locationKey !== "any") if (locationKey !== "any")