Combine Adventure docs (#9098)

This commit is contained in:
tool4ever
2025-11-06 19:19:58 +01:00
committed by GitHub
parent ec814fc706
commit c765769466
44 changed files with 132 additions and 250 deletions

View File

@@ -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