Skip to content

Commit a30672d

Browse files
committed
mtgjson ogw
1 parent b472741 commit a30672d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ custom:
2323
node src/make custom
2424

2525
data/AllSets.json:
26-
curl -so data/AllSets.json http://mtgjson.com/json/AllSets.json
26+
curl -so data/AllSets.json https://mtgjson.com/json/AllSets.json
2727

2828
score:
2929
-node src/make score #ignore errors

src/make/cards.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function before() {
6969
// Each sample deck has several cards numbered 270 and higher that do not
7070
// appear in Magic 2015 booster packs.
7171
raw.M15.cards = raw.M15.cards.filter(x => parseInt(x.number) < 270)
72+
73+
raw.OGW.cards.find(x => x.name === 'Wastes').rarity = 'Common'
7274
}
7375

7476
function after() {
@@ -106,6 +108,8 @@ function after() {
106108
]
107109
}
108110
alias(FRF.special.fetch, 'FRF')
111+
112+
Sets.OGW.common.push('wastes')// wastes are twice as common
109113
}
110114

111115
function alias(arr, code) {

src/make/custom.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,5 @@ cards.forEach(rawCard => {
5353
}
5454
})
5555

56-
//XXX ideally this would be done when generating the set, but that generator
57-
//keys by name
58-
if (code === 'OGW')
59-
set.common.push('wastes')
60-
6156
fs.writeFileSync('data/cards.json', JSON.stringify(Cards, null, 2))
6257
fs.writeFileSync('data/sets.json', JSON.stringify(Sets, null, 2))

0 commit comments

Comments
 (0)