Added workaround for Ref
repeatables not having any description text - force him to use Prapor
text instead
(cherry picked from commit 034c7142fc
)
This commit is contained in:
parent
c705127007
commit
b4a6ee682c
@ -892,35 +892,40 @@ export class RepeatableQuestGenerator
|
||||
// Get template id from config based on side and type of quest
|
||||
questClone.templateId = this.questConfig.questTemplateIds[side.toLowerCase()][type.toLowerCase()];
|
||||
|
||||
// Force REF templates to use prapors ID - solves missing text issue
|
||||
const desiredTraderId = (traderId === Traders.REF)
|
||||
? Traders.PRAPOR
|
||||
: traderId;
|
||||
|
||||
questClone.name = questClone.name
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.note = questClone.note
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.description = questClone.description
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.successMessageText = questClone.successMessageText
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.failMessageText = questClone.failMessageText
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.startedMessageText = questClone.startedMessageText
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.changeQuestMessageText = questClone.changeQuestMessageText
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.acceptPlayerMessage = questClone.acceptPlayerMessage
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.declinePlayerMessage = questClone.declinePlayerMessage
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
questClone.completePlayerMessage = questClone.completePlayerMessage
|
||||
.replace("{traderId}", traderId)
|
||||
.replace("{traderId}", desiredTraderId)
|
||||
.replace("{templateId}", questClone.templateId);
|
||||
|
||||
return questClone;
|
||||
|
Loading…
Reference in New Issue
Block a user