mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-03-21 17:34:38 -05:00
This commit is contained in:
parent
b08144d831
commit
ca6d979e5a
|
|
@ -8,10 +8,10 @@
|
|||
"lint": "eslint --cache --max-warnings 0",
|
||||
"build": "npx tsc",
|
||||
"run": "npx tsc && node .dist/src/",
|
||||
"start": "npx tsc && npx pm2 start config/pm2.js",
|
||||
"start": "npx tsc && npx pm2 start loginserver",
|
||||
"test": "npm run lint && npx tsc",
|
||||
"reload": "npx tsc && npx pm2 reload config/pm2.js",
|
||||
"stop": "npx pm2 stop config/pm2.js"
|
||||
"reload": "npx tsc && npx pm2 reload loginserver",
|
||||
"stop": "npx pm2 stop loginserver"
|
||||
},
|
||||
"dependencies": {
|
||||
"bcrypt": "^5.0.1",
|
||||
|
|
|
|||
|
|
@ -115,7 +115,8 @@ export function checkSuspectVerified(
|
|||
const userData: Partial<{ elo: number, gxe: number, coil: number }> = {};
|
||||
const reqKeys = ['elo', 'coil', 'gxe'] as const;
|
||||
for (const k of reqKeys) {
|
||||
if (!suspect[k]) continue;
|
||||
const val = suspect[k];
|
||||
if (!val) continue;
|
||||
reqCount++;
|
||||
switch (k) {
|
||||
case 'coil':
|
||||
|
|
@ -127,7 +128,7 @@ export function checkSuspectVerified(
|
|||
userData.coil = coilNum;
|
||||
break;
|
||||
case 'elo': case 'gxe':
|
||||
if (suspect[k] && rating[k] >= suspect[k]!) {
|
||||
if (rating[k] >= val) {
|
||||
reqsMet++;
|
||||
}
|
||||
userData[k] = rating[k];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user