mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Use enum for app id
This commit is contained in:
parent
bba9445ec2
commit
40cc94d99c
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,8 @@ const AppId = {
|
||||||
Bat1944: 489940,
|
Bat1944: 489940,
|
||||||
Ship: 2400,
|
Ship: 2400,
|
||||||
DayZ: 221100,
|
DayZ: 221100,
|
||||||
Rust: 252490
|
Rust: 252490,
|
||||||
|
CSGO: 730
|
||||||
};
|
};
|
||||||
|
|
||||||
class Valve extends Core {
|
class Valve extends Core {
|
||||||
|
@ -226,7 +227,7 @@ class Valve extends Core {
|
||||||
if(!name) continue;
|
if(!name) continue;
|
||||||
|
|
||||||
// CSGO sometimes adds a bot named 'Max Players' if host_players_show is not 2
|
// CSGO sometimes adds a bot named 'Max Players' if host_players_show is not 2
|
||||||
if (state.raw.appId === 730 && name === 'Max Players') continue;
|
if (state.raw.appId === AppId.CSGO && name === 'Max Players') continue;
|
||||||
|
|
||||||
state.raw.players.push({
|
state.raw.players.push({
|
||||||
name:name, score:score, time:time
|
name:name, score:score, time:time
|
||||||
|
|
Loading…
Reference in a new issue