mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
unnecessary check
This commit is contained in:
parent
27e5ea3cc5
commit
bf9af1c07b
1 changed files with 1 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
import * as TestLogic from "../test/test-logic";
|
||||
import * as ThemeColors from "./theme-colors";
|
||||
import * as TestTimer from "../test/test-timer";
|
||||
import * as UI from "../ui";
|
||||
|
@ -177,12 +176,7 @@ function randomColor() {
|
|||
* @param {boolean} good Good power or not?
|
||||
*/
|
||||
export async function addPower(good = true, extra = false) {
|
||||
if (
|
||||
!TestLogic.active ||
|
||||
Config.monkeyPowerLevel === "off" ||
|
||||
TestTimer.slowTimer
|
||||
)
|
||||
return;
|
||||
if (Config.monkeyPowerLevel === "off" || TestTimer.slowTimer) return;
|
||||
|
||||
// Shake
|
||||
if (["3", "4"].includes(Config.monkeyPowerLevel)) {
|
||||
|
|
Loading…
Reference in a new issue