Skip to content

Commit

Permalink
PIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Senryoku committed Dec 7, 2024
1 parent 83f49f8 commit 3f5c5d1
Show file tree
Hide file tree
Showing 15 changed files with 678 additions and 583 deletions.
18 changes: 18 additions & 0 deletions ManageCardData.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ def addCard(c):

if c['set'] == "fdn":
selection['in_booster'] = (int(c['collector_number']) > 0 and int(c['collector_number']) < 259) or int(c['collector_number']) == 262 or int(c['collector_number']) == 264 or int(c['collector_number']) == 267

if c['set'] == "pio":
selection['in_booster'] = int(c['collector_number']) < 279

if c['layout'] == "split":
if 'Aftermath' in c['keywords']:
Expand Down Expand Up @@ -911,6 +914,21 @@ def getIcon(mtgset, icon_path):
"isPrimary": True,
})
bonusSheetsIndex += 1

# Pioneer Masters
PrimarySets.append("pio")
for i in range(0,3):
code = f"pio{i}"
PrimarySets.append(code)
setinfos[code] = {}
setinfos[code].update(setinfos["pio"])
setinfos[code].update({"code": code,
"block": "Pioneer Masters",
"isPrimary": True,
})
setinfos["pio0"]["fullName"] = "Pioneer Masters: Devotion"
setinfos["pio1"]["fullName"] = "Pioneer Masters: Planeswalkers"
setinfos["pio2"]["fullName"] = "Pioneer Masters: Spells"

with open(SetsInfosPath, 'w+', encoding="utf8") as setinfosfile:
setinfos_disk = {}
Expand Down
30 changes: 8 additions & 22 deletions client/src/components/News.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<template>
<div class="welcome-section">
<div class="news">
<em>December 7, 2024</em>
<p>
<img src="img/sets/pio.svg" class="set-icon" style="--invertedness: 100%" alt="PIO" /> Pioneer Masters
experimental support.<br />
This set has a rotating bonus sheet. You can select a specific bonus sheet in the "More sets" menu.
</p>
</div>
<div class="news">
<em>November 2, 2024</em>
<ul>
Expand Down Expand Up @@ -38,28 +46,6 @@
Mystery Booster 2 support!
</p>
</div>
<div class="news">
<em>September 14, 2024</em>
<p>
<img src="img/sets/dsk.svg" class="set-icon" style="--invertedness: 100%" alt="DSK" />
Duskmourn: House of Horror is now available!
</p>
</div>
<div class="news">
<em>July 18, 2024</em>
<p>
<img src="img/sets/blb.svg" class="set-icon" style="--invertedness: 100%" alt="BLB" />
Bloomburrow is now available!
</p>
<p>Winston Draft: The number of piles can now be customized.</p>
</div>
<div class="news">
<em>May 30, 2024</em>
<p>
<img src="img/sets/mh3.svg" class="set-icon" style="--invertedness: 100%" alt="MH3" />
Modern Horizons 3 is now available!
</p>
</div>
</div>
</template>

Expand Down
4 changes: 4 additions & 0 deletions client/src/components/SetRestriction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ const blocks = [
name: "Shadows over Innistrad Remastered",
sets: ["sir0", "sir1", "sir2", "sir3"].map((s) => SetsInfos[s]),
}, // Manually added to hoist it
{
name: "Pioneer Masters",
sets: ["pio0", "pio1", "pio2"].map((s) => SetsInfos[s]),
},
{
name: "Masters",
sets: [
Expand Down
Loading

0 comments on commit 3f5c5d1

Please sign in to comment.