Skip to content

Commit aba741d

Browse files
committed
Backend for rogue card upgrading
1 parent 02a1eee commit aba741d

File tree

27 files changed

+929
-21
lines changed

27 files changed

+929
-21
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "Aftermath Spirits",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "RARE",
6+
"description": "When you play a unit, give it Aftermath: Summon a 1/1 Spirit.",
7+
"trigger": {
8+
"eventTrigger": {
9+
"class": "MinionPlayedTrigger",
10+
"targetPlayer": "SELF"
11+
},
12+
"spell": {
13+
"class": "AddDeathrattleSpell",
14+
"spell": {
15+
"class": "SummonSpell",
16+
"card": "token_spirit"
17+
}
18+
}
19+
},
20+
"gameTriggers": [
21+
{
22+
"eventTrigger": {
23+
"class": "PreGameStartTrigger",
24+
"targetPlayer": "SELF"
25+
},
26+
"spell": {
27+
"class": "MetaSpell",
28+
"spells": [
29+
{
30+
"class": "AddEnchantmentSpell",
31+
"target": "FRIENDLY_PLAYER",
32+
"card": "equipment_aftermath_spirits"
33+
},
34+
{
35+
"class": "RemoveCardSpell",
36+
"target": "SELF"
37+
}
38+
]
39+
}
40+
}
41+
],
42+
"attributes": {
43+
"EQUIPMENT": true,
44+
"NEVER_MULLIGANS": true,
45+
"UPGRADE": "equipment_aftermath_spirits_2"
46+
},
47+
"collectible": false,
48+
"set": "ROGUE",
49+
"fileFormatVersion": 1
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "Aftermath Spirits II",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "EPIC",
6+
"description": "When you play a unit, give it Aftermath: Summon two 1/1 Spirits.",
7+
"trigger": {
8+
"eventTrigger": {
9+
"class": "MinionPlayedTrigger",
10+
"targetPlayer": "SELF"
11+
},
12+
"spell": {
13+
"class": "AddDeathrattleSpell",
14+
"spell": {
15+
"class": "SummonSpell",
16+
"card": "token_spirit",
17+
"value": 2
18+
}
19+
}
20+
},
21+
"gameTriggers": [
22+
{
23+
"eventTrigger": {
24+
"class": "PreGameStartTrigger",
25+
"targetPlayer": "SELF"
26+
},
27+
"spell": {
28+
"class": "MetaSpell",
29+
"spells": [
30+
{
31+
"class": "AddEnchantmentSpell",
32+
"target": "FRIENDLY_PLAYER",
33+
"card": "equipment_aftermath_spirits_2"
34+
},
35+
{
36+
"class": "RemoveCardSpell",
37+
"target": "SELF"
38+
}
39+
]
40+
}
41+
}
42+
],
43+
"attributes": {
44+
"EQUIPMENT": true,
45+
"NEVER_MULLIGANS": true
46+
},
47+
"collectible": false,
48+
"set": "ROGUE",
49+
"fileFormatVersion": 1
50+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "Armor",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "RARE",
6+
"description": "Whenever an allied unit takes damage, gain 1 Armor.",
7+
"trigger": {
8+
"eventTrigger": {
9+
"class": "DamageReceivedTrigger",
10+
"targetEntityType": "MINION",
11+
"targetPlayer": "SELF"
12+
},
13+
"spell": {
14+
"class": "BuffSpell",
15+
"target": "FRIENDLY_HERO",
16+
"armorBonus": 1
17+
}
18+
},
19+
"gameTriggers": [
20+
{
21+
"eventTrigger": {
22+
"class": "PreGameStartTrigger",
23+
"targetPlayer": "SELF"
24+
},
25+
"spell": {
26+
"class": "MetaSpell",
27+
"spells": [
28+
{
29+
"class": "AddEnchantmentSpell",
30+
"target": "FRIENDLY_PLAYER",
31+
"card": "equipment_armor"
32+
},
33+
{
34+
"class": "RemoveCardSpell",
35+
"target": "SELF"
36+
}
37+
]
38+
}
39+
}
40+
],
41+
"attributes": {
42+
"EQUIPMENT": true,
43+
"NEVER_MULLIGANS": true
44+
},
45+
"collectible": false,
46+
"set": "ROGUE",
47+
"fileFormatVersion": 1
48+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "Auctioneer",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "EPIC",
6+
"description": "Whenever you cast a spell, draw.",
7+
"trigger": {
8+
"eventTrigger": {
9+
"class": "SpellCastedTrigger",
10+
"sourcePlayer": "SELF"
11+
},
12+
"spell": {
13+
"class": "DrawCardSpell",
14+
"value": 1
15+
}
16+
},
17+
"gameTriggers": [
18+
{
19+
"eventTrigger": {
20+
"class": "PreGameStartTrigger",
21+
"targetPlayer": "SELF"
22+
},
23+
"spell": {
24+
"class": "MetaSpell",
25+
"spells": [
26+
{
27+
"class": "AddEnchantmentSpell",
28+
"target": "FRIENDLY_PLAYER",
29+
"card": "equipment_auctioneer"
30+
},
31+
{
32+
"class": "RemoveCardSpell",
33+
"target": "SELF"
34+
}
35+
]
36+
}
37+
}
38+
],
39+
"attributes": {
40+
"EQUIPMENT": true,
41+
"NEVER_MULLIGANS": true
42+
},
43+
"collectible": false,
44+
"set": "ROGUE",
45+
"fileFormatVersion": 1
46+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "Boom",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "EPIC",
6+
"description": "When you play a unit, give it Aftermath: Deal 1-4 damage to a random enemy.",
7+
"trigger": {
8+
"eventTrigger": {
9+
"class": "MinionPlayedTrigger",
10+
"targetPlayer": "SELF"
11+
},
12+
"spell": {
13+
"class": "AddDeathrattleSpell",
14+
"spell": {
15+
"class": "MissilesSpell",
16+
"target": "ENEMY_CHARACTERS",
17+
"value": {
18+
"class": "RandomValueProvider",
19+
"max": 4,
20+
"min": 1
21+
},
22+
"howMany": 1
23+
}
24+
}
25+
},
26+
"gameTriggers": [
27+
{
28+
"eventTrigger": {
29+
"class": "PreGameStartTrigger",
30+
"targetPlayer": "SELF"
31+
},
32+
"spell": {
33+
"class": "MetaSpell",
34+
"spells": [
35+
{
36+
"class": "AddEnchantmentSpell",
37+
"target": "FRIENDLY_PLAYER",
38+
"card": "equipment_boom"
39+
},
40+
{
41+
"class": "RemoveCardSpell",
42+
"target": "SELF"
43+
}
44+
]
45+
}
46+
}
47+
],
48+
"attributes": {
49+
"EQUIPMENT": true,
50+
"NEVER_MULLIGANS": true,
51+
"UPGRADE": "equipment_boom_2"
52+
},
53+
"collectible": false,
54+
"set": "ROGUE",
55+
"fileFormatVersion": 1
56+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "Boom II",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "EPIC",
6+
"description": "After you summon a unit, give it Aftermath: Deal 1-4 damage to a random enemy.",
7+
"trigger": {
8+
"eventTrigger": {
9+
"class": "MinionSummonedTrigger",
10+
"targetPlayer": "SELF"
11+
},
12+
"spell": {
13+
"class": "AddDeathrattleSpell",
14+
"spell": {
15+
"class": "MissilesSpell",
16+
"target": "ENEMY_CHARACTERS",
17+
"value": {
18+
"class": "RandomValueProvider",
19+
"max": 4,
20+
"min": 1
21+
},
22+
"howMany": 1
23+
}
24+
}
25+
},
26+
"gameTriggers": [
27+
{
28+
"eventTrigger": {
29+
"class": "PreGameStartTrigger",
30+
"targetPlayer": "SELF"
31+
},
32+
"spell": {
33+
"class": "MetaSpell",
34+
"spells": [
35+
{
36+
"class": "AddEnchantmentSpell",
37+
"target": "FRIENDLY_PLAYER",
38+
"card": "equipment_boom_2"
39+
},
40+
{
41+
"class": "RemoveCardSpell",
42+
"target": "SELF"
43+
}
44+
]
45+
}
46+
}
47+
],
48+
"attributes": {
49+
"EQUIPMENT": true,
50+
"NEVER_MULLIGANS": true
51+
},
52+
"collectible": false,
53+
"set": "ROGUE",
54+
"fileFormatVersion": 1
55+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "Cheaper Small Units",
3+
"type": "ENCHANTMENT",
4+
"heroClass": "ANY",
5+
"rarity": "RARE",
6+
"description": "Your units cost (2) less, but not less than (1).",
7+
"cardCostModifier": {
8+
"class": "CardCostModifier",
9+
"value": -2,
10+
"cardType": "MINION",
11+
"minValue": 1
12+
},
13+
"gameTriggers": [
14+
{
15+
"eventTrigger": {
16+
"class": "PreGameStartTrigger",
17+
"targetPlayer": "SELF"
18+
},
19+
"spell": {
20+
"class": "MetaSpell",
21+
"spells": [
22+
{
23+
"class": "AddEnchantmentSpell",
24+
"target": "FRIENDLY_PLAYER",
25+
"card": "equipment_cheaper_small_units"
26+
},
27+
{
28+
"class": "RemoveCardSpell",
29+
"target": "SELF"
30+
}
31+
]
32+
}
33+
}
34+
],
35+
"attributes": {
36+
"EQUIPMENT": true,
37+
"NEVER_MULLIGANS": true
38+
},
39+
"collectible": false,
40+
"set": "ROGUE",
41+
"fileFormatVersion": 1
42+
}

0 commit comments

Comments
 (0)