mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Combine Adventure docs (#9098)
This commit is contained in:
@@ -27,7 +27,7 @@ import java.util.function.Predicate;
|
||||
*/
|
||||
public class RewardData implements Serializable {
|
||||
private static final long serialVersionUID = 3158932532013393718L;
|
||||
public String type;
|
||||
public String type; // TODO convert to enum
|
||||
public float probability;
|
||||
public int count;
|
||||
public int addMaxCount;
|
||||
@@ -119,6 +119,7 @@ public class RewardData implements Serializable {
|
||||
return false;
|
||||
if (Iterables.contains(input.getRules().getMainPart().getKeywords(), "Remove CARDNAME from your deck before playing if you're not playing for ante."))
|
||||
return false;
|
||||
// TODO check if commander player
|
||||
if (input.getRules().getAiHints().getRemNonCommanderDecks())
|
||||
return false;
|
||||
if (input.getRules().isCustom() &&
|
||||
@@ -155,7 +156,6 @@ public class RewardData implements Serializable {
|
||||
}
|
||||
|
||||
public Array<Reward> generate(boolean isForEnemy, Iterable<PaperCard> cards, boolean useSeedlessRandom, boolean isNoSell) {
|
||||
|
||||
boolean allCardVariants = Config.instance().getSettingData().useAllCardVariants;
|
||||
Random rewardRandom = useSeedlessRandom ? new Random() : WorldSave.getCurrentSave().getWorld().getRandom();
|
||||
//Keep using same generation method for shop rewards, but fully randomize loot drops by not using the instance pre-seeded by the map
|
||||
|
||||
Reference in New Issue
Block a user