add artifacts
This commit is contained in:
parent
7a0efe22c9
commit
d57c78cc0b
|
@ -12,6 +12,7 @@ wordsLeft = k + extra
|
||||||
imagesLeft = k
|
imagesLeft = k
|
||||||
maxRounds = 20
|
maxRounds = 20
|
||||||
whichGuesser = 'counterspell'
|
whichGuesser = 'counterspell'
|
||||||
|
wordCategory = 'Unused Card Names: '
|
||||||
un = false
|
un = false
|
||||||
ub = false
|
ub = false
|
||||||
online = false
|
online = false
|
||||||
|
@ -70,12 +71,18 @@ function putIntoMapAndFetch(data) {
|
||||||
document.getElementById('guess-type').innerText = 'Finding Fantastic Beasts'
|
document.getElementById('guess-type').innerText = 'Finding Fantastic Beasts'
|
||||||
} else if (whichGuesser === 'basic') {
|
} else if (whichGuesser === 'basic') {
|
||||||
document.getElementById('guess-type').innerText = 'How Basic'
|
document.getElementById('guess-type').innerText = 'How Basic'
|
||||||
|
wordCategory = 'Unused Set Names: '
|
||||||
} else if (whichGuesser === 'commander') {
|
} else if (whichGuesser === 'commander') {
|
||||||
document.getElementById('guess-type').innerText = 'General Knowledge'
|
document.getElementById('guess-type').innerText = 'General Knowledge'
|
||||||
} else if (whichGuesser === 'watermark') {
|
} else if (whichGuesser === 'watermark') {
|
||||||
document.getElementById('guess-type').innerText = 'Watermark It'
|
document.getElementById('guess-type').innerText = 'Watermark It'
|
||||||
|
wordCategory = 'Unused Watermarks: '
|
||||||
} else if (whichGuesser === 'artist') {
|
} else if (whichGuesser === 'artist') {
|
||||||
document.getElementById('guess-type').innerText = 'Aesthetic Consultation'
|
document.getElementById('guess-type').innerText = 'Aesthetic Consultation'
|
||||||
|
wordCategory = 'Unused Artist Names: '
|
||||||
|
} else if (whichGuesser === 'artifact') {
|
||||||
|
document.getElementById('guess-type').innerText = 'Archaeological Dating'
|
||||||
|
wordCategory = 'Unused Dates: '
|
||||||
}
|
}
|
||||||
window.console.log(whichGuesser)
|
window.console.log(whichGuesser)
|
||||||
setUpNewGame()
|
setUpNewGame()
|
||||||
|
@ -483,10 +490,6 @@ function dropOnCard(id, data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setWordsLeft() {
|
function setWordsLeft() {
|
||||||
cardName = 'Unused Card Names: '
|
|
||||||
if (whichGuesser === 'basic') {
|
|
||||||
cardName = 'Unused Set Names: '
|
|
||||||
}
|
|
||||||
document.getElementById('words-left').innerText =
|
document.getElementById('words-left').innerText =
|
||||||
cardName + wordsLeft + '/Images: ' + imagesLeft
|
wordCategory + wordsLeft + '/Images: ' + imagesLeft
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ import math
|
||||||
|
|
||||||
# queued categories: 'terror', 'wrath', 'zombie', 'artifact']
|
# queued categories: 'terror', 'wrath', 'zombie', 'artifact']
|
||||||
# add category name here
|
# add category name here
|
||||||
allCategories = ['counterspell', 'beast', 'burn', 'commander']
|
allCategories = ['counterspell', 'beast', 'burn', 'commander', 'artifact']
|
||||||
specialCategories = ['set', 'basic', 'watermark']
|
specialCategories = ['set', 'basic', 'watermark']
|
||||||
artist_denylist = '-a%3A"jason+felix"+-a%3A“Harold+McNeill”+-a%3A"Terese+Nielsen"+-a%3A“Noah+Bradley”'
|
artist_denylist = '-a%3A"jason+felix"+-a%3A“Harold+McNeill”+-a%3A"Terese+Nielsen"+-a%3A“Noah+Bradley”'
|
||||||
artist_allowlist = {'David Martin', 'V\u00e9ronique Meignaud', 'Christopher Rush', 'Rebecca Guay', 'DiTerlizzi',
|
artist_allowlist = {'David Martin', 'V\u00e9ronique Meignaud', 'Christopher Rush', 'Rebecca Guay', 'DiTerlizzi',
|
||||||
|
@ -33,8 +33,8 @@ def generate_initial_query(category):
|
||||||
'+or+legal%3Acommander+or+legal%3Abrawl%29'
|
'+or+legal%3Acommander+or+legal%3Abrawl%29'
|
||||||
# elif category == 'zombie':
|
# elif category == 'zombie':
|
||||||
# string_query += '-type%3Alegendary+type%3Azombie+-type%3Atoken+not%3Adfc'
|
# string_query += '-type%3Alegendary+type%3Azombie+-type%3Atoken+not%3Adfc'
|
||||||
# elif category == 'artifact':
|
elif category == 'artifact':
|
||||||
# string_query += 't%3Aartifact+not%3Adatestamped+not%3Adfc&order=released&dir=asc&unique=prints&page='
|
string_query += 't%3Aartifact+not%3Adatestamped+-type%3Atoken+-art%3Acreation-date+not%3Adfc'
|
||||||
# add category string query here
|
# add category string query here
|
||||||
string_query += '+-%28set%3Asld+%28cn>%3D231+cn<%3D233+or+cn>%3D436+cn<%3D440+or+cn>%3D321+cn<%3D324+or' \
|
string_query += '+-%28set%3Asld+%28cn>%3D231+cn<%3D233+or+cn>%3D436+cn<%3D440+or+cn>%3D321+cn<%3D324+or' \
|
||||||
'+cn>%3D185+cn<%3D189+or+cn>%3D138+cn<%3D142+or+cn>%3D364+cn<%3D368+or+cn%3A669+or+cn%3A670%29%29+' \
|
'+cn>%3D185+cn<%3D189+or+cn>%3D138+cn<%3D142+or+cn>%3D364+cn<%3D368+or+cn%3A669+or+cn%3A670%29%29+' \
|
||||||
|
@ -194,9 +194,9 @@ def to_compact_write_form(smallJson, art_names, response, category):
|
||||||
continue
|
continue
|
||||||
write_card = dict()
|
write_card = dict()
|
||||||
for field in fieldsInCard:
|
for field in fieldsInCard:
|
||||||
# if field == 'name' and category == 'artifact':
|
if field == 'name' and category == 'artifact':
|
||||||
# write_card['name'] = card['released_at'].split('-')[0]
|
write_card['name'] = card['released_at'].split('-')[0]
|
||||||
if field == 'name' and 'card_faces' in card:
|
elif field == 'name' and 'card_faces' in card:
|
||||||
write_card['name'] = card['card_faces'][0]['name']
|
write_card['name'] = card['card_faces'][0]['name']
|
||||||
elif field == 'image_uris':
|
elif field == 'image_uris':
|
||||||
if 'card_faces' in card and 'image_uris' in card['card_faces'][0]:
|
if 'card_faces' in card and 'image_uris' in card['card_faces'][0]:
|
||||||
|
@ -366,7 +366,7 @@ def write_image_uris(card_image_uris):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# uncomment this once in a while, but it's expensive to run
|
# uncomment this once in a while, but it's expensive to run
|
||||||
fetch_and_write_initial_artist_query()
|
# fetch_and_write_initial_artist_query()
|
||||||
|
|
||||||
for category in allCategories:
|
for category in allCategories:
|
||||||
print(category)
|
print(category)
|
||||||
|
|
|
@ -302,6 +302,28 @@
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
<div class="option-row">
|
||||||
|
<input
|
||||||
|
type="radio"
|
||||||
|
id="artifact"
|
||||||
|
name="whichguesser"
|
||||||
|
value="artifact"
|
||||||
|
onchange="updateSettingDefault(true, true, false, true, 'only first printing')"
|
||||||
|
/>
|
||||||
|
<label class="radio-label" for="artifact">
|
||||||
|
<img
|
||||||
|
class="thumbnail"
|
||||||
|
src="https://cards.scryfall.io/art_crop/front/3/a/3a10650e-58f7-4a99-a77d-3f42d61ecf93.jpg?1664926303"
|
||||||
|
/>
|
||||||
|
<h3>Archaeological Dating</h3></label
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
class="level-badge"
|
||||||
|
src="https://static.wikia.nocookie.net/mtgsalvation_gamepedia/images/a/af/Expert_level.jpg"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
|
||||||
<details id="addl-options">
|
<details id="addl-options">
|
||||||
<summary>
|
<summary>
|
||||||
<img
|
<img
|
||||||
|
|
1
web/public/mtg/jsons/artifact.json
Normal file
1
web/public/mtg/jsons/artifact.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -91,7 +91,7 @@
|
||||||
"904ed2e7-9850-4472-802f-2657c53dd4d8": ["Darek Zabrocki", 38],
|
"904ed2e7-9850-4472-802f-2657c53dd4d8": ["Darek Zabrocki", 38],
|
||||||
"7da1a585-c875-45e4-b322-5da9e8e1f651": ["Daren Bader", 21],
|
"7da1a585-c875-45e4-b322-5da9e8e1f651": ["Daren Bader", 21],
|
||||||
"262c8e55-4efc-467b-a042-6f734b9d2e01": ["Darrell Riche", 54],
|
"262c8e55-4efc-467b-a042-6f734b9d2e01": ["Darrell Riche", 54],
|
||||||
"14c7f83c-d0fb-43f0-90f3-703f910f8bb9": ["Darren Tan", 11],
|
"14c7f83c-d0fb-43f0-90f3-703f910f8bb9": ["Darren Tan", 12],
|
||||||
"99b8310a-4fd6-4ded-8ab7-3b5185821cbe": ["Dave Allsop", 55],
|
"99b8310a-4fd6-4ded-8ab7-3b5185821cbe": ["Dave Allsop", 55],
|
||||||
"9235458b-ce92-45bd-a430-a72ecd8e6176": ["Dave Dorman", 14],
|
"9235458b-ce92-45bd-a430-a72ecd8e6176": ["Dave Dorman", 14],
|
||||||
"8a5540a8-18c9-4fa9-802c-59d6866114d5": ["Dave Kendall", 124],
|
"8a5540a8-18c9-4fa9-802c-59d6866114d5": ["Dave Kendall", 124],
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user