steamutils 1.2.35 → 1.2.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -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>
@@ -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
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
5
  </component>
6
6
  </project>
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, 9)
1469
+ richPresence.myScore = _.random(0, maxRound)
1467
1470
  }
1468
1471
  if (richPresence.theirScore === undefined) {
1469
- richPresence.theirScore = _.random(0, 9)
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 === 9 || richPresence.theirScore === 9) {
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()?.trim())
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.35",
3
+ "version": "1.2.36",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.4.0",
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>