Skip to content

Commit 9841e0b

Browse files
authored
pre4: leave username fields blank in automation/bot to use existing name
1 parent acd1f51 commit 9841e0b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

StateFarmClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//3.#.#-release for release
1111
//this ensures that each version of the script is counted as different
1212

13-
// @version 3.3.0-pre3
13+
// @version 3.3.0-pre4
1414

1515
// @match *://shellshock.io/*
1616
// @match *://algebra.best/*
@@ -75,7 +75,7 @@
7575
(function () {
7676
//script info
7777
const name="StateFarm Client";
78-
const version="3.3.0-pre3";
78+
const version="3.3.0-pre4";
7979
//startup sequence
8080
const startUp=function () {
8181
mainLoop()
@@ -1095,7 +1095,7 @@
10951095
const playerSlots = document.querySelectorAll('.playerSlot--name');
10961096
const mapNames = Array.from(playerSlots).map(playerSlot => playerSlot.textContent.trim());
10971097
//console.log("adsknjf--->"mapNames);
1098-
vueApp.externPlayObject((extract("joinCode").length===7)?2:0,2,extract("copyNames") ? mapNames[Math.floor(Math.random() * mapNames.length)] : extract("usernameAutoJoin"),-1,extract("joinCode"));
1098+
vueApp.externPlayObject((extract("joinCode").length===7)?2:0,2,extract("copyNames") ? mapNames[Math.floor(Math.random() * mapNames.length)] : ( (extract("usernameAutoJoin")=="") ? vueApp.playerName : extract("usernameAutoJoin")),-1,extract("joinCode"));
10991099
};
11001100
};
11011101
};

0 commit comments

Comments
 (0)