mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-22 22:12:45 +01:00
refactor(mastery): rename registerDrops
to rebuildDropIndexes
(cherry picked from commit f4ef3cb831
)
This commit is contained in:
parent
fae932280c
commit
dd852f4646
@ -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()
|
||||
|
||||
|
@ -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>(
|
||||
|
Loading…
Reference in New Issue
Block a user