From 57b60e0449c4f74032ee56ffa1b66250639dff64 Mon Sep 17 00:00:00 2001 From: object <110488133+oobjectt@users.noreply.github.com> Date: Sun, 26 Nov 2023 15:41:14 +0100 Subject: [PATCH] Quests | Change name variables --- .../outgoing/quest/AcceptQuestMessageComposer.ts | 4 ++-- .../quest/ActivateQuestMessageComposer.ts | 4 ++-- .../GetCommunityGoalHallOfFameMessageComposer.ts | 4 ++-- .../quest/GetDailyQuestMessageComposer.ts | 4 ++-- .../quest/StartCampaignMessageComposer.ts | 4 ++-- .../messages/parser/quest/PrizeData.ts | 14 +++++++------- .../messages/parser/quest/QuestMessageData.ts | 16 ++++++++-------- 7 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts index f1c6cb4f..fed6d933 100644 --- a/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts @@ -4,9 +4,9 @@ export class AcceptQuestMessageComposer implements IMessageComposer; - constructor(k: number) + constructor(questId: number) { - this._data = [k]; + this._data = [questId]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts index 907ac6f8..aae29746 100644 --- a/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts @@ -4,9 +4,9 @@ export class ActivateQuestMessageComposer implements IMessageComposer; - constructor(k: number) + constructor(questId: number) { - this._data = [k]; + this._data = [questId]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts index aef7191d..4d084a49 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts @@ -4,9 +4,9 @@ export class GetCommunityGoalHallOfFameMessageComposer implements IMessageCompos { private _data: ConstructorParameters; - constructor(k: string) + constructor(code: string) { - this._data = [k]; + this._data = [code]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts index de6e7dba..16fb0555 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts @@ -4,9 +4,9 @@ export class GetDailyQuestMessageComposer implements IMessageComposer; - constructor(k: boolean, _arg_2: number) + constructor(canRefresh: boolean, index: number) { - this._data = [k, _arg_2]; + this._data = [canRefresh, index]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts index 9fc9ba1b..a3cf821c 100644 --- a/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts @@ -4,9 +4,9 @@ export class StartCampaignMessageComposer implements IMessageComposer; - constructor(k: string) + constructor(campaignName: string) { - this._data = [k]; + this._data = [campaignName]; } public getMessageArray() diff --git a/src/nitro/communication/messages/parser/quest/PrizeData.ts b/src/nitro/communication/messages/parser/quest/PrizeData.ts index d3df2cf7..349e1c3e 100644 --- a/src/nitro/communication/messages/parser/quest/PrizeData.ts +++ b/src/nitro/communication/messages/parser/quest/PrizeData.ts @@ -9,14 +9,14 @@ export class PrizeData private _badge: boolean; private _localizedName: string; - constructor(k: IMessageDataWrapper) + constructor(wrapper: IMessageDataWrapper) { - this._communityGoalId = k.readInt(); - this._communityGoalCode = k.readString(); - this._userRank = k.readInt(); - this._rewardCode = k.readString(); - this._badge = k.readBoolean(); - this._localizedName = k.readString(); + this._communityGoalId = wrapper.readInt(); + this._communityGoalCode = wrapper.readString(); + this._userRank = wrapper.readInt(); + this._rewardCode = wrapper.readString(); + this._badge = wrapper.readBoolean(); + this._localizedName = wrapper.readString(); } public get communityGoalId(): number diff --git a/src/nitro/communication/messages/parser/quest/QuestMessageData.ts b/src/nitro/communication/messages/parser/quest/QuestMessageData.ts index 6151d795..285a4fde 100644 --- a/src/nitro/communication/messages/parser/quest/QuestMessageData.ts +++ b/src/nitro/communication/messages/parser/quest/QuestMessageData.ts @@ -42,9 +42,9 @@ export class QuestMessageData this._easy = wrapper.readBoolean(); } - public static getCampaignLocalizationKeyForCode(k: string): string + public static getCampaignLocalizationKeyForCode(code: string): string { - return 'quests.' + k; + return 'quests.' + code; } public get campaignCode(): string @@ -72,9 +72,9 @@ export class QuestMessageData return this._activityPointType; } - public set accepted(k: boolean) + public set accepted(isAccepted: boolean) { - this._accepted = k; + this._accepted = isAccepted; } public get accepted(): boolean @@ -82,9 +82,9 @@ export class QuestMessageData return this._accepted; } - public set id(k: number) + public set id(id: number) { - this._id = k; + this._id = id; } public get id(): number @@ -122,9 +122,9 @@ export class QuestMessageData return this._completedSteps == this._totalSteps; } - public set waitPeriodSeconds(k: number) + public set waitPeriodSeconds(periodSeconds: number) { - this._waitPeriodSeconds = k; + this._waitPeriodSeconds = periodSeconds; } public get waitPeriodSeconds(): number