mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
Upgrade syntax of everything to more modern javascript
This commit is contained in:
parent
f8d903b982
commit
69288baebc
43 changed files with 1499 additions and 1521 deletions
|
|
@ -1,12 +1,13 @@
|
|||
module.exports = require('./quake3').extend({
|
||||
finalizeState: function(state) {
|
||||
this._super(state);
|
||||
class Warsow extends require('./quake3') {
|
||||
finalizeState(state) {
|
||||
super.finalizeState(state);
|
||||
if(state.players) {
|
||||
for(var i = 0; i < state.players.length; i++) {
|
||||
var player = state.players[i];
|
||||
for(const player of state.players) {
|
||||
player.team = player.address;
|
||||
delete player.address;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = Warsow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue