steamutils 1.2.35 → 1.2.36
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/deployment.xml +21 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/SteamClient.js +6 -3
- package/index.js +1 -1
- package/package.json +1 -1
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
4
|
+
<serverData>
|
5
|
+
<paths name="steamsupport">
|
6
|
+
<serverdata>
|
7
|
+
<mappings>
|
8
|
+
<mapping local="$PROJECT_DIR$" web="/" />
|
9
|
+
</mappings>
|
10
|
+
</serverdata>
|
11
|
+
</paths>
|
12
|
+
<paths name="steamsupportui">
|
13
|
+
<serverdata>
|
14
|
+
<mappings>
|
15
|
+
<mapping local="$PROJECT_DIR$" web="/" />
|
16
|
+
</mappings>
|
17
|
+
</serverdata>
|
18
|
+
</paths>
|
19
|
+
</serverData>
|
20
|
+
</component>
|
21
|
+
</project>
|
package/.idea/steamutils.iml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<module type="WEB_MODULE" version="4">
|
3
3
|
<component name="NewModuleRootManager">
|
4
4
|
<content url="file://$MODULE_DIR$">
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
5
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
7
7
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
8
|
</content>
|
9
9
|
<orderEntry type="inheritedJdk" />
|
package/.idea/vcs.xml
CHANGED
package/SteamClient.js
CHANGED
@@ -1423,6 +1423,9 @@ function SteamClient({
|
|
1423
1423
|
// steamClient.setPersona(SteamUser.EPersonaState.Online)
|
1424
1424
|
await sendHello()
|
1425
1425
|
|
1426
|
+
const isLongGame = true
|
1427
|
+
const maxRound = isLongGame ? 16 : 9
|
1428
|
+
|
1426
1429
|
if (apps.some(a => (a.game_id || a) == 730)) {
|
1427
1430
|
doSetInterval(function () {
|
1428
1431
|
const maps = [
|
@@ -1463,15 +1466,15 @@ function SteamClient({
|
|
1463
1466
|
]
|
1464
1467
|
|
1465
1468
|
if (richPresence.myScore === undefined) {
|
1466
|
-
richPresence.myScore = _.random(0,
|
1469
|
+
richPresence.myScore = _.random(0, maxRound)
|
1467
1470
|
}
|
1468
1471
|
if (richPresence.theirScore === undefined) {
|
1469
|
-
richPresence.theirScore = _.random(0,
|
1472
|
+
richPresence.theirScore = _.random(0, maxRound)
|
1470
1473
|
}
|
1471
1474
|
if (richPresence.map === undefined) {
|
1472
1475
|
richPresence.map = maps[Math.floor(Math.random() * maps.length)]
|
1473
1476
|
}
|
1474
|
-
if (richPresence.myScore ===
|
1477
|
+
if (richPresence.myScore === maxRound || richPresence.theirScore === maxRound) {
|
1475
1478
|
richPresence.myScore = 0
|
1476
1479
|
richPresence.theirScore = 0
|
1477
1480
|
richPresence.map = maps[Math.floor(Math.random() * maps.length)]
|
package/index.js
CHANGED
@@ -5993,7 +5993,7 @@ class SteamUser {
|
|
5993
5993
|
market_headertip_container_warning_el.find('ul.market_restrictions > li').each(function () {
|
5994
5994
|
const el = $(this);
|
5995
5995
|
el.find('a').remove()
|
5996
|
-
market_restrictions.push(el.text()
|
5996
|
+
market_restrictions.push(el.text().replaceAll(/\t/g,' ').replaceAll(/\s+/g,' ').trim())
|
5997
5997
|
})
|
5998
5998
|
return {
|
5999
5999
|
market_warning_header,
|
package/package.json
CHANGED