Autofill art studio requests from wantlist
This commit is contained in:
parent
18e0ad1dfb
commit
cf2a6185e3
1 changed files with 10 additions and 5 deletions
15
tools.py
15
tools.py
|
@ -698,7 +698,7 @@ def studio():
|
||||||
tradenormal = []
|
tradenormal = []
|
||||||
tradespecial = []
|
tradespecial = []
|
||||||
for card in colors.cardlist:
|
for card in colors.cardlist:
|
||||||
if card["priority"] == 4 and card["dupe"] == False:
|
if card["priority"] == 4:
|
||||||
if card["colour"] != "sig" and card["colour"] != "limited":
|
if card["colour"] != "sig" and card["colour"] != "limited":
|
||||||
if card["dupe"]:
|
if card["dupe"]:
|
||||||
if len(card["mass"]) == 0:
|
if len(card["mass"]) == 0:
|
||||||
|
@ -785,10 +785,15 @@ def studio():
|
||||||
give.extend(random.sample(tradenormal,needednormal))
|
give.extend(random.sample(tradenormal,needednormal))
|
||||||
if neededspecial > 0:
|
if neededspecial > 0:
|
||||||
give.extend(random.sample(tradespecial,neededspecial))
|
give.extend(random.sample(tradespecial,neededspecial))
|
||||||
if choicewant > 0:
|
allwantch = []
|
||||||
choicelist = input(str(choicewant) + " choice character cards: ").split(", ")
|
allwantsp = []
|
||||||
if specialwant > 0:
|
for card in colors.wantedlist:
|
||||||
speciallist = input(str(specialwant) + " choice special cards: ").split(", ")
|
if card["colour"] == "special":
|
||||||
|
allwantsp.append(card["name"])
|
||||||
|
else:
|
||||||
|
allwantch.append(card["name"])
|
||||||
|
choicelist = allwantch[:choicewant]
|
||||||
|
speciallist = allwantsp[:specialwant]
|
||||||
allwants = []
|
allwants = []
|
||||||
if dupeswant > 1:
|
if dupeswant > 1:
|
||||||
allwants.append(str(dupeswant) + " random cards")
|
allwants.append(str(dupeswant) + " random cards")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue