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