1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-16 11:03:30 +01:00

refactor(mastery): rename registerDrops to rebuildDropIndexes

(cherry picked from commit f4ef3cb831)
This commit is contained in:
AnthonyFuller 2024-08-25 20:58:19 +01:00
parent fae932280c
commit dd852f4646
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,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()

View File

@ -935,7 +935,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>(