From f4ef3cb831f84b0624d3c59493b7740d78f30a49 Mon Sep 17 00:00:00 2001 From: AnthonyFuller <24512050+AnthonyFuller@users.noreply.github.com> Date: Sun, 25 Aug 2024 20:58:19 +0100 Subject: [PATCH] refactor(mastery): rename `registerDrops` to `rebuildDropIndexes` --- components/candle/masteryService.ts | 2 +- components/controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/candle/masteryService.ts b/components/candle/masteryService.ts index b804efbd..1cc29968 100644 --- a/components/candle/masteryService.ts +++ b/components/candle/masteryService.ts @@ -96,7 +96,7 @@ export class MasteryService { * location and level based on unlockable ID, avoiding big-O operation for `getMasteryForUnlockable`. * @param gameVersions Game version(s) to process. */ - registerDrops(...gameVersions: GameVersion[]) { + rebuildDropIndexes(...gameVersions: GameVersion[]) { for (const gv of gameVersions) { this.unlockableMasteryData[gv] = new Map() diff --git a/components/controller.ts b/components/controller.ts index fd484fca..10dec82a 100644 --- a/components/controller.ts +++ b/components/controller.ts @@ -930,7 +930,7 @@ export class Controller { ) // Reprocess drops for all versions - this.masteryService.registerDrops("h1", "scpc", "h2", "h3") + this.masteryService.rebuildDropIndexes("h1", "scpc", "h2", "h3") } private async _handleResources(