Skip to content

Commit

Permalink
Update for MID (and most of 2021 whoops)
Browse files Browse the repository at this point in the history
  • Loading branch information
Villawhatever committed Sep 23, 2021
1 parent d402151 commit c56709b
Show file tree
Hide file tree
Showing 39 changed files with 48,429 additions and 367 deletions.
342 changes: 342 additions & 0 deletions public/assets/cr-diffs/AFR-MID.json

Large diffs are not rendered by default.

470 changes: 470 additions & 0 deletions public/assets/cr-diffs/CMR-KHM.json

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions public/assets/cr-diffs/Cascade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[
{
"names": {
"old_full": "Kaldheim",
"new_full": "Cascade Update",
"old_setcode": "KHM",
"new_setcode": "KHM"
}
},
{
"new": {
"ruleNum": "120.4a",
"ruleText": "First, if an effect that\u2019s causing damage to be dealt states that excess damage that would be dealt to a permanent is dealt to another permanent or player instead, the damage event is modified accordingly. If the first permanent is a creature, the excess damage is the amount of damage in excess of what would be lethal damage, taking into account damage already marked on the creature and damage from other sources that would be dealt at the same time. (See rule 120.6.) new_start Any amount of damage greater than 1 is excess damage if the source dealing that damage to a creature has deathtouch. (See rule 702.2.) new_end If the first permanent is a planeswalker, the excess damage is the amount of damage in excess of that planeswalker\u2019s loyalty, taking into account damage from other sources that would be dealt at the same time. If the first permanent is both a creature and a planeswalker, the excess damage is the greater of those two amounts."
},
"old": {
"ruleNum": "120.4a",
"ruleText": "First, if an effect that\u2019s causing damage to be dealt states that excess damage that would be dealt to a permanent is dealt to another permanent or player instead, the damage event is modified accordingly. If the first permanent is a creature, the excess damage is the amount of damage in excess of what would be lethal damage, taking into account damage already marked on the creature and damage from other sources that would be dealt at the same time. (See rule 120.6.) If the first permanent is a planeswalker, the excess damage is the amount of damage in excess of that planeswalker\u2019s loyalty, taking into account damage from other sources that would be dealt at the same time. If the first permanent is both a creature and a planeswalker, the excess damage is the greater of those two amounts."
}
},
{
"new": {
"ruleNum": "613.7a",
"ruleText": "A continuous effect generated by a static ability has the same timestamp as the object the static ability is on, or the timestamp of the effect that created the ability, whichever is later. new_start If the effect that created the ability has the later timestamp and the object the ability is on receives a new timestamp, each continuous effect generated by static abilities of that object receives a new timestamp as well, but the relative order of those timestamps remains the same. new_end"
},
"old": {
"ruleNum": "613.7a",
"ruleText": "A continuous effect generated by a static ability has the same timestamp as the object the static ability is on, or the timestamp of the effect that created the ability, whichever is later."
}
},
{
"new": {
"ruleNum": "702.84a",
"ruleText": "Cascade is a triggered ability that functions only while the spell with cascade is on the stack. \u201cCascade\u201d means \u201cWhen you cast this spell, exile cards from the top of your library until you exile a nonland card whose converted mana cost is less than this spell\u2019s converted mana cost. You may cast that card without paying its mana new_start cost if the resulting spell\u2019s converted mana cost is less than this spell\u2019s converted mana new_end cost. Then put all cards exiled this way that weren\u2019t cast on the bottom of your library in a random order.\u201d"
},
"old": {
"ruleNum": "702.84a",
"ruleText": "Cascade is a triggered ability that functions only while the spell with cascade is on the stack. \u201cCascade\u201d means \u201cWhen you cast this spell, exile cards from the top of your library until you exile a nonland card whose converted mana cost is less than this spell\u2019s converted mana cost. You may cast that card without paying its mana cost. Then put all cards exiled this way that weren\u2019t cast on the bottom of your library in a random order.\u201d"
}
}
]
519 changes: 519 additions & 0 deletions public/assets/cr-diffs/KHM-STX.json

Large diffs are not rendered by default.

635 changes: 635 additions & 0 deletions public/assets/cr-diffs/MH2-AFR.json

Large diffs are not rendered by default.

331 changes: 331 additions & 0 deletions public/assets/cr-diffs/STX-MH2.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ app.get('/companion-changes', function(req, res) {
});
});

// Special-case Cascade diff too :(
app.get('/cascade-changes', function(req, res) {
fs.readFile('public/assets/cr-diffs/Cascade.json', 'utf8',
(err, data) => {
let rules = rulesUtils.getRules(data);
res.render('pages/rules', {rules: rules});
});
});

app.get('/about', function(req, res) {
res.render('pages/about');
});
Expand Down
Binary file removed static/ipg/ipg-2008-03-01.doc
Binary file not shown.
Binary file added static/ipg/ipg-2008-03-01.pdf
Binary file not shown.
Binary file added static/ipg/ipg-2021-02-05.pdf
Binary file not shown.
Binary file removed static/mtr/mtr-2003-12-01.doc
Binary file not shown.
Binary file added static/mtr/mtr-2003-12-01.pdf
Binary file not shown.
Loading

0 comments on commit c56709b

Please sign in to comment.