Skip to content

Commit

Permalink
refactor(mastery): rename registerDrops to rebuildDropIndexes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyFuller committed Aug 25, 2024
1 parent 9d2dc52 commit f4ef3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/candle/masteryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion components/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(
Expand Down

0 comments on commit f4ef3cb

Please sign in to comment.