Another Update
This commit is contained in:
parent
30280bc279
commit
4875860f86
10
trucknim.py
10
trucknim.py
@ -75,7 +75,7 @@ powerBox_Heigth = 22
|
|||||||
|
|
||||||
min_shards = 3
|
min_shards = 3
|
||||||
min_shards_for_kor_chat = 3
|
min_shards_for_kor_chat = 3
|
||||||
isServer = False
|
checkServer = False
|
||||||
serverString = '#1004'
|
serverString = '#1004'
|
||||||
|
|
||||||
foundTrucks = []
|
foundTrucks = []
|
||||||
@ -221,7 +221,7 @@ def analyse_static_Truck(foundTrucks):
|
|||||||
checkedLocations = []
|
checkedLocations = []
|
||||||
|
|
||||||
for location in truckLocations:
|
for location in truckLocations:
|
||||||
|
isServer = False
|
||||||
if pointInRange(location,checkedLocations):
|
if pointInRange(location,checkedLocations):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -268,14 +268,14 @@ def analyse_static_Truck(foundTrucks):
|
|||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
print(count)
|
print(count)
|
||||||
|
global checkServer
|
||||||
if isServer:
|
if checkServer:
|
||||||
isServer = serverString in truckstring
|
isServer = serverString in truckstring
|
||||||
|
|
||||||
if count >= min_shards:
|
if count >= min_shards:
|
||||||
#click(shareTruck_X,shareTruck_Y,True)
|
#click(shareTruck_X,shareTruck_Y,True)
|
||||||
share_Truck(count,isServer)
|
share_Truck(count,isServer)
|
||||||
time.sleep(0.5)
|
time.sleep(1)
|
||||||
keyboard.send('esc')
|
keyboard.send('esc')
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user