Add missing properties to templates

This commit is contained in:
Dev 2023-10-19 20:51:16 +01:00
parent 79dc3cca1b
commit 489189bd81
3 changed files with 12 additions and 1 deletions

View File

@ -59,6 +59,9 @@
"failMessageText": "{templateId} failMessageText {traderId} 0",
"startedMessageText": "{templateId} startedMessageText {traderId} 0",
"changeQuestMessageText": "{templateId} changeQuestMessageText {traderId} 0",
"acceptPlayerMessage": "{templateId} acceptPlayerMessage {traderId}",
"declinePlayerMessage": "{templateId} declinePlayerMessage {traderId}",
"completePlayerMessage": "{templateId} completePlayerMessage {traderId}",
"templateId": "{templateId}",
"changeCost": [{
"templateId": "5449016a4bdc2d6f028b456f",
@ -95,6 +98,9 @@
"failMessageText": "{templateId} failMessageText {traderId} 0",
"startedMessageText": "{templateId} startedMessageText {traderId} 0",
"changeQuestMessageText": "{templateId} changeQuestMessageText {traderId} 0",
"acceptPlayerMessage": "{templateId} acceptPlayerMessage {traderId}",
"declinePlayerMessage": "{templateId} declinePlayerMessage {traderId}",
"completePlayerMessage": "{templateId} completePlayerMessage {traderId}",
"templateId": "{templateId}",
"changeCost": [{
"templateId": "5449016a4bdc2d6f028b456f",

View File

@ -1023,7 +1023,9 @@ export class RepeatableQuestGenerator
quest.successMessageText = quest.successMessageText.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
quest.failMessageText = quest.failMessageText.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
quest.startedMessageText = quest.startedMessageText.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
quest.changeQuestMessageText = quest.changeQuestMessageText.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
quest.acceptPlayerMessage = quest.acceptPlayerMessage.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
quest.declinePlayerMessage = quest.declinePlayerMessage.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
quest.completePlayerMessage = quest.completePlayerMessage.replace("{traderId}", traderId).replace("{templateId}",quest.templateId);
return quest;
}

View File

@ -70,6 +70,9 @@ export interface IRepeatableQuest
failMessageText: string
startedMessageText: string
changeQuestMessageText: string
acceptPlayerMessage: string
declinePlayerMessage: string
completePlayerMessage: string
templateId: string
changeCost: IChangeCost[]
changeStandingCost: number