bancho.js 0.12.0 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Version 0.12
|
|
4
4
|
|
|
5
|
+
### Version 0.12.2
|
|
6
|
+
|
|
7
|
+
- Update BanchoMods
|
|
8
|
+
See https://git.cartooncraft.fr/ThePooN/bancho.js/-/commit/799862a6ef404e4068ea35cb8a2a6f319178871c
|
|
9
|
+
|
|
10
|
+
### Version 0.12.1
|
|
11
|
+
|
|
12
|
+
- Only unready affected player on team change
|
|
13
|
+
|
|
5
14
|
### Version 0.12.0
|
|
6
15
|
|
|
7
16
|
- **Support creating lobbies with filtered names by queuing lobby creation**
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://nodei.co/npm/bancho.js/)
|
|
4
4
|
[](https://git.cartooncraft.fr/ThePooN/bancho.js/commits/master)
|
|
5
5
|
|
|
6
|
-
## Current release: 0.12.
|
|
6
|
+
## Current release: 0.12.2
|
|
7
7
|
|
|
8
8
|
# Introduction
|
|
9
9
|
|
|
@@ -177,9 +177,8 @@ class BanchoLobby extends EventEmitter {
|
|
|
177
177
|
if(player.team == BanchoLobbyTeams[ret.team])
|
|
178
178
|
return;
|
|
179
179
|
player.team = BanchoLobbyTeams[ret.team];
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
player.state = BanchoLobbyPlayerStates.NotReady;
|
|
180
|
+
if(player.state == BanchoLobbyPlayerStates.Ready)
|
|
181
|
+
player.state = BanchoLobbyPlayerStates.NotReady;
|
|
183
182
|
this.emit("playerChangedTeam", {
|
|
184
183
|
player: player,
|
|
185
184
|
team: player.team
|
|
@@ -1263,4 +1262,4 @@ class BanchoLobby extends EventEmitter {
|
|
|
1263
1262
|
}
|
|
1264
1263
|
}
|
|
1265
1264
|
|
|
1266
|
-
module.exports = BanchoLobby;
|
|
1265
|
+
module.exports = BanchoLobby;
|
|
@@ -4,6 +4,7 @@ const Enum = Object.freeze({
|
|
|
4
4
|
None: new BanchoMod(0, "none", "None"),
|
|
5
5
|
NoFail: new BanchoMod(1, "nf", "NoFail"),
|
|
6
6
|
Easy: new BanchoMod(2, "ez", "Easy"),
|
|
7
|
+
TouchDevice: new BanchoMod(4, "td", "TouchDevice"),
|
|
7
8
|
Hidden: new BanchoMod(8, "hd", "Hidden"),
|
|
8
9
|
HardRock: new BanchoMod(16, "hr", "HardRock"),
|
|
9
10
|
SuddenDeath: new BanchoMod(32, "sd", "SuddenDeath"),
|
|
@@ -12,7 +13,7 @@ const Enum = Object.freeze({
|
|
|
12
13
|
HalfTime: new BanchoMod(256, "ht", "HalfTime"),
|
|
13
14
|
Nightcore: new BanchoMod(512, "nc", "Nightcore"),
|
|
14
15
|
Flashlight: new BanchoMod(1024, "fl", "Flashlight"),
|
|
15
|
-
Autoplay: new BanchoMod(2048, "at", "
|
|
16
|
+
Autoplay: new BanchoMod(2048, "at", "Autoplay"),
|
|
16
17
|
SpunOut: new BanchoMod(4096, "so", "SpunOut"),
|
|
17
18
|
Relax2: new BanchoMod(8192, "ap", "Relax2"),
|
|
18
19
|
Perfect: new BanchoMod(16384, "pf", "Perfect"),
|
|
@@ -23,12 +24,15 @@ const Enum = Object.freeze({
|
|
|
23
24
|
Key8: new BanchoMod(524288, "k8", "Key8"),
|
|
24
25
|
FadeIn: new BanchoMod(1048576, "fi", "FadeIn"),
|
|
25
26
|
Random: new BanchoMod(2097152, "rn", "Random"),
|
|
26
|
-
|
|
27
|
+
Cinema: new BanchoMod(4194304, "cm", "Cinema"),
|
|
28
|
+
Target: new BanchoMod(8388608, "tp", "Target"),
|
|
27
29
|
Key9: new BanchoMod(16777216, "k9", "Key9"),
|
|
28
|
-
|
|
30
|
+
KeyCoop: new BanchoMod(33554432, "co", "KeyCoop"),
|
|
29
31
|
Key1: new BanchoMod(67108864, "k1", "Key1"),
|
|
30
32
|
Key3: new BanchoMod(134217728, "k3", "Key3"),
|
|
31
|
-
Key2: new BanchoMod(268435456, "k2", "Key2")
|
|
33
|
+
Key2: new BanchoMod(268435456, "k2", "Key2"),
|
|
34
|
+
ScoreV2: new BanchoMod(536870912, "sv2", "ScoreV2"),
|
|
35
|
+
Mirror: new BanchoMod(1073741824, "mr", "Mirror"),
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
/**
|