mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 06:45:24 +01:00
* rename `getShinyMultiplier` * simplify methods to use first active event instead of sometimes using all active events * change remaining methods to use first event * use `ModifierTypeKeys` instead of `string` for wave rewards * rename `shinyMultiplier` to `shinyEncounterMultiplier` and add `shinyCatchMultiplier` * update comments * add comment * Fix capitalization of variable, remove comment --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
20 lines
662 B
TypeScript
20 lines
662 B
TypeScript
import { TimedEventManager } from "#app/timed-event-manager";
|
|
import { CLASSIC_CANDY_FRIENDSHIP_MULTIPLIER } from "#balance/starters";
|
|
|
|
/** Mock TimedEventManager so that ongoing events don't impact tests */
|
|
export class MockTimedEventManager extends TimedEventManager {
|
|
// biome-ignore lint/nursery/noUselessUndefined: Changes return type to void instead of undefined
|
|
override activeEvent(): undefined {
|
|
return;
|
|
}
|
|
override isEventActive(): boolean {
|
|
return false;
|
|
}
|
|
override getClassicFriendshipMultiplier(): number {
|
|
return CLASSIC_CANDY_FRIENDSHIP_MULTIPLIER;
|
|
}
|
|
override getShinyEncounterMultiplier(): number {
|
|
return 1;
|
|
}
|
|
}
|