mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Fixing Planeshift set alter foils in boosters
-Now always foil, and with the (guesstimated) correct chance.
This commit is contained in:
@@ -91,11 +91,12 @@ public class BoosterGenerator {
|
|||||||
// 7 Time Shifted
|
// 7 Time Shifted
|
||||||
// 8 VMA Special
|
// 8 VMA Special
|
||||||
// 9 DFC
|
// 9 DFC
|
||||||
|
// 10 Planeshift alternate art foil
|
||||||
// if result not valid for pack, reroll
|
// if result not valid for pack, reroll
|
||||||
// Other special types of foil slots, add here
|
// Other special types of foil slots, add here
|
||||||
CardRarity foilCard = CardRarity.Unknown;
|
CardRarity foilCard = CardRarity.Unknown;
|
||||||
while (foilCard == CardRarity.Unknown) {
|
while (foilCard == CardRarity.Unknown) {
|
||||||
int randomNum = rand.nextInt(9) + 1;
|
int randomNum = rand.nextInt(10) + 1;
|
||||||
switch (randomNum) {
|
switch (randomNum) {
|
||||||
case 1:
|
case 1:
|
||||||
// Rare or Mythic
|
// Rare or Mythic
|
||||||
@@ -139,6 +140,19 @@ public class BoosterGenerator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 10:
|
||||||
|
if (edition != null) {
|
||||||
|
if (edition.getName().equals("Planeshift")) {
|
||||||
|
// Chance equals chance of getting the same card as non-alter foil rare.
|
||||||
|
// so 3 out of the 53 rares in the set.
|
||||||
|
// while information cannot be found, my personal (subjective) experience from that time was
|
||||||
|
// that they were indeed similar chance, at least not significantly less.
|
||||||
|
if (rand.nextInt(53) <= 3) {
|
||||||
|
foilCard = CardRarity.Special;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
// Insert any additional special rarities/slot types for special
|
// Insert any additional special rarities/slot types for special
|
||||||
// sets here, for 11 and up
|
// sets here, for 11 and up
|
||||||
default:
|
default:
|
||||||
@@ -225,6 +239,17 @@ public class BoosterGenerator {
|
|||||||
numCards--;
|
numCards--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Planeshift foil alternate art replaces rare slot even though it comes from the
|
||||||
|
// special slot that normally has no cards!
|
||||||
|
if (edition != null) {
|
||||||
|
if ((edition.getName().equals("Planeshift")) &&
|
||||||
|
(slotType.startsWith(BoosterSlots.RARE))
|
||||||
|
&& (foilSlot.startsWith(BoosterSlots.SPECIAL))
|
||||||
|
) {
|
||||||
|
numCards--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (replaceCommon && slotType.startsWith(BoosterSlots.COMMON)) {
|
if (replaceCommon && slotType.startsWith(BoosterSlots.COMMON)) {
|
||||||
numCards--;
|
numCards--;
|
||||||
String replaceKey = StaticData.instance().getEditions().contains(setCode)
|
String replaceKey = StaticData.instance().getEditions().contains(setCode)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Code2=PS
|
|||||||
MciCode=ps
|
MciCode=ps
|
||||||
Type=Expansion
|
Type=Expansion
|
||||||
BoosterCovers=1
|
BoosterCovers=1
|
||||||
Booster=11 Common, 3 Uncommon, 1 Rare
|
Booster=11 Common, 3 Uncommon, 1 Rare, 0 Special
|
||||||
Foil=OldStyle
|
Foil=OldStyle
|
||||||
FoilAlwaysInCommonSlot=False
|
FoilAlwaysInCommonSlot=False
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ FoilAlwaysInCommonSlot=False
|
|||||||
106 R Eladamri's Call
|
106 R Eladamri's Call
|
||||||
24 U Ertai's Trickery
|
24 U Ertai's Trickery
|
||||||
107 R Ertai, the Corrupted
|
107 R Ertai, the Corrupted
|
||||||
107 R Ertai, the Corrupted
|
107 S Ertai, the Corrupted
|
||||||
25 C Escape Routes
|
25 C Escape Routes
|
||||||
43 U Exotic Disease
|
43 U Exotic Disease
|
||||||
79 C Falling Timber
|
79 C Falling Timber
|
||||||
@@ -125,7 +125,7 @@ FoilAlwaysInCommonSlot=False
|
|||||||
54 C Sinister Strength
|
54 C Sinister Strength
|
||||||
33 C Sisay's Ingenuity
|
33 C Sisay's Ingenuity
|
||||||
133 R Skyship Weatherlight
|
133 R Skyship Weatherlight
|
||||||
133 R Skyship Weatherlight
|
133 S Skyship Weatherlight
|
||||||
92 U Skyshroud Blessing
|
92 U Skyshroud Blessing
|
||||||
55 U Slay
|
55 U Slay
|
||||||
34 C Sleeping Potion
|
34 C Sleeping Potion
|
||||||
@@ -142,7 +142,7 @@ FoilAlwaysInCommonSlot=False
|
|||||||
16 U Sunscape Battlemage
|
16 U Sunscape Battlemage
|
||||||
17 C Sunscape Familiar
|
17 C Sunscape Familiar
|
||||||
18 U Surprise Deployment
|
18 U Surprise Deployment
|
||||||
74 R Tahngarth, Talruum Hero
|
74 S Tahngarth, Talruum Hero
|
||||||
74 R Tahngarth, Talruum Hero
|
74 R Tahngarth, Talruum Hero
|
||||||
142 U Terminal Moraine
|
142 U Terminal Moraine
|
||||||
128 C Terminate
|
128 C Terminate
|
||||||
|
|||||||
Reference in New Issue
Block a user