From e09ec6c1659f8d4feb1a5e315174ac52cabc968a Mon Sep 17 00:00:00 2001 From: Agetian Date: Sun, 9 Feb 2014 04:45:40 +0000 Subject: [PATCH] - Better variable name. --- forge-core/src/main/java/forge/card/BoosterGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forge-core/src/main/java/forge/card/BoosterGenerator.java b/forge-core/src/main/java/forge/card/BoosterGenerator.java index 1a2d3cf3cfc..f0c07f56bea 100644 --- a/forge-core/src/main/java/forge/card/BoosterGenerator.java +++ b/forge-core/src/main/java/forge/card/BoosterGenerator.java @@ -71,7 +71,7 @@ public class BoosterGenerator { CardEdition edition = StaticData.instance().getEditions().get(template.getEdition()); boolean hasFoil = edition != null && MyRandom.getRandom().nextInt(10000) <= edition.getFoilChanceInBooster() && edition.getFoilType() != FoilType.NOT_SUPPORTED; // FoilChanceInBooster is given with 1/10000th precision for a closer 1:6 (16.67%) approximation. - boolean foilAlwaysCommon = !hasFoil ? false : edition.getFoilAlwaysInCommonSlot(); + boolean commonSlotFoil = !hasFoil ? false : edition.getFoilAlwaysInCommonSlot(); String foilSlot = !hasFoil ? null : edition.getFoilAlwaysInCommonSlot() ? BoosterSlots.COMMON : Aggregates.random(template.getSlots()).getKey(); for(Pair slot : template.getSlots()) { @@ -89,12 +89,12 @@ public class BoosterGenerator { result.addAll(ps.random(numCards, true)); sheetsUsed.add(ps); - if (hasFoil && !foilAlwaysCommon && slotType.equals(foilSlot)) { + if (hasFoil && !commonSlotFoil && slotType.equals(foilSlot)) { result.add(generateFoilCard(ps)); } } - if (hasFoil && foilAlwaysCommon) { + if (hasFoil && commonSlotFoil) { PrintSheet foilSheet = Aggregates.random(sheetsUsed); result.add(generateFoilCard(foilSheet)); }