Correctly parse hours into second for quest code
This commit is contained in:
parent
a09c813358
commit
429d357e89
@ -286,7 +286,7 @@ export class QuestController
|
|||||||
MessageType.QUEST_START,
|
MessageType.QUEST_START,
|
||||||
messageId,
|
messageId,
|
||||||
startedQuestRewards,
|
startedQuestRewards,
|
||||||
this.questConfig.redeemTime);
|
this.timeUtil.getHoursAsSeconds(this.questConfig.redeemTime));
|
||||||
|
|
||||||
acceptQuestResponse.profileChanges[sessionID].quests = this.questHelper.acceptedUnlocked(acceptedQuest.qid, sessionID);
|
acceptQuestResponse.profileChanges[sessionID].quests = this.questHelper.acceptedUnlocked(acceptedQuest.qid, sessionID);
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ export class QuestController
|
|||||||
MessageType.QUEST_START,
|
MessageType.QUEST_START,
|
||||||
questStartedMessageKey,
|
questStartedMessageKey,
|
||||||
questRewards,
|
questRewards,
|
||||||
this.questConfig.redeemTime);
|
this.timeUtil.getHoursAsSeconds(this.questConfig.redeemTime));
|
||||||
|
|
||||||
acceptQuestResponse.profileChanges[sessionID].quests = this.questHelper.acceptedUnlocked(acceptedQuest.qid, sessionID);
|
acceptQuestResponse.profileChanges[sessionID].quests = this.questHelper.acceptedUnlocked(acceptedQuest.qid, sessionID);
|
||||||
return acceptQuestResponse;
|
return acceptQuestResponse;
|
||||||
|
@ -528,7 +528,7 @@ export class QuestHelper
|
|||||||
MessageType.QUEST_FAIL,
|
MessageType.QUEST_FAIL,
|
||||||
quest.failMessageText,
|
quest.failMessageText,
|
||||||
questRewards,
|
questRewards,
|
||||||
this.questConfig.redeemTime
|
this.timeUtil.getHoursAsSeconds(this.questConfig.redeemTime)
|
||||||
);
|
);
|
||||||
|
|
||||||
failedQuestResponse.profileChanges[sessionID].quests = this.failedUnlocked(failRequest.qid, sessionID);
|
failedQuestResponse.profileChanges[sessionID].quests = this.failedUnlocked(failRequest.qid, sessionID);
|
||||||
|
@ -18,6 +18,7 @@ import { MailSendService } from "../services/MailSendService";
|
|||||||
import { HashUtil } from "../utils/HashUtil";
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { RandomUtil } from "../utils/RandomUtil";
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
import { DialogueHelper } from "./DialogueHelper";
|
import { DialogueHelper } from "./DialogueHelper";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
import { ProfileHelper } from "./ProfileHelper";
|
import { ProfileHelper } from "./ProfileHelper";
|
||||||
@ -35,6 +36,7 @@ export class RagfairServerHelper
|
|||||||
constructor(
|
constructor(
|
||||||
@inject("RandomUtil") protected randomUtil: RandomUtil,
|
@inject("RandomUtil") protected randomUtil: RandomUtil,
|
||||||
@inject("HashUtil") protected hashUtil: HashUtil,
|
@inject("HashUtil") protected hashUtil: HashUtil,
|
||||||
|
@inject("timeUtil") protected timeUtil: TimeUtil,
|
||||||
@inject("SaveServer") protected saveServer: SaveServer,
|
@inject("SaveServer") protected saveServer: SaveServer,
|
||||||
@inject("DatabaseServer") protected databaseServer: DatabaseServer,
|
@inject("DatabaseServer") protected databaseServer: DatabaseServer,
|
||||||
@inject("ProfileHelper") protected profileHelper: ProfileHelper,
|
@inject("ProfileHelper") protected profileHelper: ProfileHelper,
|
||||||
@ -157,7 +159,7 @@ export class RagfairServerHelper
|
|||||||
MessageType.MESSAGE_WITH_ITEMS,
|
MessageType.MESSAGE_WITH_ITEMS,
|
||||||
this.localeService.getLocaleDb()[RagfairServerHelper.goodsReturnedTemplate],
|
this.localeService.getLocaleDb()[RagfairServerHelper.goodsReturnedTemplate],
|
||||||
returnedItems,
|
returnedItems,
|
||||||
this.questConfig.redeemTime
|
this.timeUtil.getHoursAsSeconds(this.questConfig.redeemTime)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user