From 0386ced675b2b648a02c74ab130ba10f47ae8112 Mon Sep 17 00:00:00 2001 From: object <110488133+oobjectt@users.noreply.github.com> Date: Sat, 25 Nov 2023 19:16:23 +0100 Subject: [PATCH] Inventory | Change name variables --- .../badges/GetIsBadgeRequestFulfilledComposer.ts | 4 ++-- .../parser/inventory/badges/BadgeAndPointLimit.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nitro/communication/messages/outgoing/inventory/badges/GetIsBadgeRequestFulfilledComposer.ts b/src/nitro/communication/messages/outgoing/inventory/badges/GetIsBadgeRequestFulfilledComposer.ts index 8ab55d25..74796340 100644 --- a/src/nitro/communication/messages/outgoing/inventory/badges/GetIsBadgeRequestFulfilledComposer.ts +++ b/src/nitro/communication/messages/outgoing/inventory/badges/GetIsBadgeRequestFulfilledComposer.ts @@ -4,9 +4,9 @@ export class GetIsBadgeRequestFulfilledComposer implements IMessageComposer; - constructor(k: string) + constructor(requestCode: string) { - this._data = [ k ]; + this._data = [ requestCode ]; } dispose(): void diff --git a/src/nitro/communication/messages/parser/inventory/badges/BadgeAndPointLimit.ts b/src/nitro/communication/messages/parser/inventory/badges/BadgeAndPointLimit.ts index 65dcad44..ec4f3248 100644 --- a/src/nitro/communication/messages/parser/inventory/badges/BadgeAndPointLimit.ts +++ b/src/nitro/communication/messages/parser/inventory/badges/BadgeAndPointLimit.ts @@ -5,12 +5,12 @@ export class BadgeAndPointLimit private _badgeId: string; private _limit: number; - constructor(k: string, _arg_2: IMessageDataWrapper) + constructor(badgeId: string, limit: IMessageDataWrapper) { - if(!_arg_2) throw new Error('invalid_parser'); + if(!limit) throw new Error('invalid_parser'); - this._badgeId = (('ACH_' + k) + _arg_2.readInt()); - this._limit = _arg_2.readInt(); + this._badgeId = (('ACH_' + badgeId) + limit.readInt()); + this._limit = limit.readInt(); } public get badgeId(): string