mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-09 19:41:37 +00:00
* disable timed events in tests * Take weight into account when getting the tier of modifiers * Apply suggestions from code review Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com> --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import { TimedEventManager } from "#app/timed-event-manager";
|
|
|
|
/** Mock TimedEventManager so that ongoing events don't impact tests */
|
|
export class MockTimedEventManager extends TimedEventManager {
|
|
override activeEvent() {
|
|
return undefined;
|
|
}
|
|
override isEventActive(): boolean {
|
|
return false;
|
|
}
|
|
override getFriendshipMultiplier(): number {
|
|
return 1;
|
|
}
|
|
override getShinyMultiplier(): number {
|
|
return 1;
|
|
}
|
|
}
|