fix: autoformatting + small changes
This commit is contained in:
parent
d45a7aac0a
commit
23814b1026
|
@ -27,12 +27,12 @@ SECONDARY_COLOR_SLIDER = (380, 380 + TEAM_OFFSET)
|
||||||
ITEM_X = (200, 450, 700)
|
ITEM_X = (200, 450, 700)
|
||||||
ITEM_Y = (300, 580, 860)
|
ITEM_Y = (300, 580, 860)
|
||||||
|
|
||||||
NB_STICKERS = (3, 3, 0, 0)
|
NB_STICKERS = (0, 0, 2, 4)
|
||||||
NB_WHEELS = 23
|
NB_WHEELS = 23
|
||||||
NB_HATS = 23
|
NB_HATS = 23
|
||||||
NB_TEAMS = 2
|
NB_TEAMS = 2
|
||||||
|
|
||||||
DELAY = 0.02
|
DELAY = 0.1
|
||||||
|
|
||||||
NB_PRIMARY_COLORS = 3
|
NB_PRIMARY_COLORS = 3
|
||||||
NB_SECONDARY_COLORS = 1
|
NB_SECONDARY_COLORS = 1
|
||||||
|
@ -179,7 +179,12 @@ def newCar(model: int, sticker: int, wheel: int, hat: int, team: int, primary_co
|
||||||
time.sleep(DELAY)
|
time.sleep(DELAY)
|
||||||
|
|
||||||
# select color, if necessary
|
# select color, if necessary
|
||||||
if team != old_team or primary_color != old_primary_color[team] or secondary_color != old_secondary_color[team] or model != old_model:
|
if (
|
||||||
|
team != old_team
|
||||||
|
or primary_color != old_primary_color[team]
|
||||||
|
or secondary_color != old_secondary_color[team]
|
||||||
|
or model != old_model
|
||||||
|
):
|
||||||
selectColor(team, primary_color, secondary_color)
|
selectColor(team, primary_color, secondary_color)
|
||||||
time.sleep(DELAY)
|
time.sleep(DELAY)
|
||||||
|
|
||||||
|
@ -201,7 +206,6 @@ def newCar(model: int, sticker: int, wheel: int, hat: int, team: int, primary_co
|
||||||
tap(BACK_BTN)
|
tap(BACK_BTN)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def generate_loadouts():
|
def generate_loadouts():
|
||||||
primary_colors = np.linspace(0, 1, NB_PRIMARY_COLORS)
|
primary_colors = np.linspace(0, 1, NB_PRIMARY_COLORS)
|
||||||
secondary_colors = np.linspace(0, 1, NB_SECONDARY_COLORS)
|
secondary_colors = np.linspace(0, 1, NB_SECONDARY_COLORS)
|
||||||
|
|
|
@ -10,7 +10,7 @@ NB_ETA = 25
|
||||||
|
|
||||||
NB_ROTATIONS = 10
|
NB_ROTATIONS = 10
|
||||||
|
|
||||||
N_START = 7023
|
N_START = 0
|
||||||
N_STOP = 0
|
N_STOP = 0
|
||||||
|
|
||||||
DELAY_TRANSITION = 0.3
|
DELAY_TRANSITION = 0.3
|
||||||
|
@ -42,7 +42,7 @@ if __name__ == "__main__":
|
||||||
for (i, loadout) in enumerate(loadouts):
|
for (i, loadout) in enumerate(loadouts):
|
||||||
|
|
||||||
# Sauter les N_START premiers
|
# Sauter les N_START premiers
|
||||||
if N_START and i < N_START:
|
if N_START and i <= N_START:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Skip après N_STOP loadouts
|
# Skip après N_STOP loadouts
|
||||||
|
|
Loading…
Reference in a new issue