From 0d952a54bdd76bb2fe41c7b629c98ac37f6e46e4 Mon Sep 17 00:00:00 2001 From: Heitor Bittencourt Date: Mon, 17 Mar 2025 11:06:58 -0300 Subject: [PATCH] feat/adventure: 4 new booster packs,spawn rate changed, removed colorless packs --- .../src/forge/adventure/data/RewardData.java | 13 ++++- .../res/adventure/Shandalar/world/shops.json | 57 ++++++++++++++++++- .../maps/map/main_story/forest_capital.tmx | 20 +++---- .../maps/map/main_story/island_capital.tmx | 20 +++---- .../maps/map/main_story/mountain_capital.tmx | 20 +++---- .../maps/map/main_story/plains_capital.tmx | 20 +++---- .../maps/map/main_story/swamp_capital.tmx | 20 +++---- .../common/maps/map/towns/forest_town.tmx | 12 ++-- .../maps/map/towns/forest_town_generic.tmx | 16 +++--- .../maps/map/towns/forest_town_identity.tmx | 14 ++--- .../maps/map/towns/forest_town_tribal.tmx | 16 +++--- .../common/maps/map/towns/island_town.tmx | 12 ++-- .../maps/map/towns/island_town_generic.tmx | 16 +++--- .../maps/map/towns/island_town_identity.tmx | 14 ++--- .../maps/map/towns/island_town_tribal.tmx | 16 +++--- .../common/maps/map/towns/mountain_town.tmx | 12 ++-- .../maps/map/towns/mountain_town_generic.tmx | 16 +++--- .../maps/map/towns/mountain_town_identity.tmx | 14 ++--- .../maps/map/towns/mountain_town_tribal.tmx | 17 +++--- .../common/maps/map/towns/plains_town.tmx | 16 +++--- .../maps/map/towns/plains_town_generic.tmx | 16 +++--- .../maps/map/towns/plains_town_identity.tmx | 16 +++--- .../maps/map/towns/plains_town_tribal.tmx | 19 +++---- .../common/maps/map/towns/swamp_town.tmx | 12 ++-- .../maps/map/towns/swamp_town_generic.tmx | 16 +++--- .../maps/map/towns/swamp_town_identity.tmx | 14 ++--- .../maps/map/towns/swamp_town_tribal.tmx | 16 +++--- .../common/maps/map/towns/waste_town.tmx | 18 +++--- .../maps/map/towns/waste_town_generic.tmx | 16 +++--- .../maps/map/towns/waste_town_identity.tmx | 20 +++---- .../maps/map/towns/waste_town_tribal.tmx | 19 ++++--- 31 files changed, 303 insertions(+), 240 deletions(-) diff --git a/forge-gui-mobile/src/forge/adventure/data/RewardData.java b/forge-gui-mobile/src/forge/adventure/data/RewardData.java index 350d20095c8..0f14a80411d 100644 --- a/forge-gui-mobile/src/forge/adventure/data/RewardData.java +++ b/forge-gui-mobile/src/forge/adventure/data/RewardData.java @@ -36,6 +36,8 @@ public class RewardData implements Serializable { public String[] itemNames; public String[] editions; public String[] colors; + public int startDate; + public int endDate; public String[] rarity; public String[] subTypes; public String[] cardTypes; @@ -65,6 +67,8 @@ public class RewardData implements Serializable { addMaxCount =rewardData.addMaxCount; cardName =rewardData.cardName; itemName =rewardData.itemName; + startDate =rewardData.startDate; + endDate =rewardData.endDate; itemNames =rewardData.itemNames==null?null:rewardData.itemNames.clone(); editions =rewardData.editions==null?null:rewardData.editions.clone(); colors =rewardData.colors==null?null:rewardData.colors.clone(); @@ -102,7 +106,7 @@ public class RewardData implements Serializable { if(input == null) 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; + return false; if(input.getRules().getAiHints().getRemNonCommanderDecks()) return false; if(configData.allowedEditions != null) { @@ -238,11 +242,14 @@ public class RewardData implements Serializable { { allEditions.removeIf( cardEdition -> cardEdition.getAllCardsInSet().stream().anyMatch( - o -> o.name.equals(restrictedCard)) + o -> o.name.equals(restrictedCard)) ); } + + endDate = endDate == 0 ? 9999 : endDate; + allEditions.removeIf(q -> q.getDate().getYear()+1900 < startDate || q.getDate().getYear()+1900 > endDate); for(int i=0;i - + @@ -78,7 +78,7 @@ - + @@ -87,7 +87,7 @@ - + @@ -96,7 +96,7 @@ - + @@ -105,7 +105,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -132,7 +132,7 @@ - + @@ -209,7 +209,7 @@ - + @@ -219,7 +219,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/main_story/island_capital.tmx b/forge-gui/res/adventure/common/maps/map/main_story/island_capital.tmx index eafa323d078..8b89ecf9dc7 100644 --- a/forge-gui/res/adventure/common/maps/map/main_story/island_capital.tmx +++ b/forge-gui/res/adventure/common/maps/map/main_story/island_capital.tmx @@ -42,7 +42,7 @@ - + @@ -51,7 +51,7 @@ - + @@ -60,7 +60,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -79,7 +79,7 @@ - + @@ -88,7 +88,7 @@ - + @@ -97,7 +97,7 @@ - + @@ -106,7 +106,7 @@ - + @@ -209,7 +209,7 @@ - + @@ -218,7 +218,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/main_story/mountain_capital.tmx b/forge-gui/res/adventure/common/maps/map/main_story/mountain_capital.tmx index 25e8e297476..ea59f1630c1 100644 --- a/forge-gui/res/adventure/common/maps/map/main_story/mountain_capital.tmx +++ b/forge-gui/res/adventure/common/maps/map/main_story/mountain_capital.tmx @@ -37,7 +37,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -55,7 +55,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -199,7 +199,7 @@ - + @@ -219,7 +219,7 @@ - + @@ -228,7 +228,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/main_story/plains_capital.tmx b/forge-gui/res/adventure/common/maps/map/main_story/plains_capital.tmx index 3f37a23d04f..27700a37978 100644 --- a/forge-gui/res/adventure/common/maps/map/main_story/plains_capital.tmx +++ b/forge-gui/res/adventure/common/maps/map/main_story/plains_capital.tmx @@ -37,7 +37,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -55,7 +55,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -222,7 +222,7 @@ - + @@ -231,7 +231,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/main_story/swamp_capital.tmx b/forge-gui/res/adventure/common/maps/map/main_story/swamp_capital.tmx index 36ff4478d1d..0366e4b2ca5 100644 --- a/forge-gui/res/adventure/common/maps/map/main_story/swamp_capital.tmx +++ b/forge-gui/res/adventure/common/maps/map/main_story/swamp_capital.tmx @@ -125,7 +125,7 @@ - + @@ -134,7 +134,7 @@ - + @@ -143,7 +143,7 @@ - + @@ -153,7 +153,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -171,7 +171,7 @@ - + @@ -180,7 +180,7 @@ - + @@ -189,7 +189,7 @@ - + @@ -203,7 +203,7 @@ - + @@ -212,7 +212,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/forest_town.tmx b/forge-gui/res/adventure/common/maps/map/towns/forest_town.tmx index 6c433602229..ac8e87e54eb 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/forest_town.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/forest_town.tmx @@ -32,32 +32,32 @@ - + - + - + - + - + - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/forest_town_generic.tmx b/forge-gui/res/adventure/common/maps/map/towns/forest_town_generic.tmx index c22c5691593..29a9eb2af59 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/forest_town_generic.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/forest_town_generic.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -102,7 +102,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/forest_town_identity.tmx b/forge-gui/res/adventure/common/maps/map/towns/forest_town_identity.tmx index 794d1371420..412e7eade9c 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/forest_town_identity.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/forest_town_identity.tmx @@ -32,7 +32,7 @@ - + @@ -40,7 +40,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -72,7 +72,7 @@ - + @@ -93,7 +93,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/forest_town_tribal.tmx b/forge-gui/res/adventure/common/maps/map/towns/forest_town_tribal.tmx index ec1ea2fb704..9bf4384ff7e 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/forest_town_tribal.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/forest_town_tribal.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -102,7 +102,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/island_town.tmx b/forge-gui/res/adventure/common/maps/map/towns/island_town.tmx index bc7a34478ed..717949a067f 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/island_town.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/island_town.tmx @@ -32,32 +32,32 @@ - + - + - + - + - + - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/island_town_generic.tmx b/forge-gui/res/adventure/common/maps/map/towns/island_town_generic.tmx index b4adcf3bf03..2c01d6c4598 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/island_town_generic.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/island_town_generic.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -102,7 +102,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/island_town_identity.tmx b/forge-gui/res/adventure/common/maps/map/towns/island_town_identity.tmx index b5ba5fafc62..73db45f5119 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/island_town_identity.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/island_town_identity.tmx @@ -32,7 +32,7 @@ - + @@ -40,7 +40,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -72,7 +72,7 @@ - + @@ -93,7 +93,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/island_town_tribal.tmx b/forge-gui/res/adventure/common/maps/map/towns/island_town_tribal.tmx index 49b26437dd7..0eaabd30f6e 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/island_town_tribal.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/island_town_tribal.tmx @@ -33,7 +33,7 @@ - @@ -42,7 +42,7 @@ - @@ -51,7 +51,7 @@ - @@ -60,7 +60,7 @@ - @@ -69,7 +69,7 @@ - @@ -78,7 +78,7 @@ - @@ -100,7 +100,7 @@ - @@ -109,7 +109,7 @@ - diff --git a/forge-gui/res/adventure/common/maps/map/towns/mountain_town.tmx b/forge-gui/res/adventure/common/maps/map/towns/mountain_town.tmx index 74ae6986b1a..7511f26f0f3 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/mountain_town.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/mountain_town.tmx @@ -32,32 +32,32 @@ - + - + - + - + - + - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/mountain_town_generic.tmx b/forge-gui/res/adventure/common/maps/map/towns/mountain_town_generic.tmx index 44bd0afb270..b8f0f4c1877 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/mountain_town_generic.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/mountain_town_generic.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -99,7 +99,7 @@ - + @@ -107,7 +107,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/mountain_town_identity.tmx b/forge-gui/res/adventure/common/maps/map/towns/mountain_town_identity.tmx index 15f7d856c89..edc0710e62c 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/mountain_town_identity.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/mountain_town_identity.tmx @@ -32,7 +32,7 @@ - + @@ -40,7 +40,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -72,7 +72,7 @@ - + @@ -104,7 +104,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/mountain_town_tribal.tmx b/forge-gui/res/adventure/common/maps/map/towns/mountain_town_tribal.tmx index a43b2f50df2..e93a55e46df 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/mountain_town_tribal.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/mountain_town_tribal.tmx @@ -33,7 +33,7 @@ - @@ -42,7 +42,7 @@ - @@ -51,7 +51,7 @@ - @@ -60,7 +60,7 @@ - @@ -69,7 +69,7 @@ - @@ -78,7 +78,7 @@ - @@ -105,7 +105,7 @@ - @@ -114,7 +114,8 @@ - diff --git a/forge-gui/res/adventure/common/maps/map/towns/plains_town.tmx b/forge-gui/res/adventure/common/maps/map/towns/plains_town.tmx index 5bcda622c41..5fdc306e0e4 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/plains_town.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/plains_town.tmx @@ -32,22 +32,22 @@ - + - + - + - + @@ -60,22 +60,22 @@ - + - + - + - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/plains_town_generic.tmx b/forge-gui/res/adventure/common/maps/map/towns/plains_town_generic.tmx index 1864f1d9550..4c2c09ade38 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/plains_town_generic.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/plains_town_generic.tmx @@ -33,15 +33,15 @@ - - - + + + - + @@ -49,7 +49,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -82,7 +82,7 @@ - + @@ -98,7 +98,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/plains_town_identity.tmx b/forge-gui/res/adventure/common/maps/map/towns/plains_town_identity.tmx index 543a32fbccb..fffdade7685 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/plains_town_identity.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/plains_town_identity.tmx @@ -1,5 +1,5 @@ - + @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -82,7 +82,7 @@ - + @@ -90,7 +90,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/plains_town_tribal.tmx b/forge-gui/res/adventure/common/maps/map/towns/plains_town_tribal.tmx index b764f604f92..0036ba48cc1 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/plains_town_tribal.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/plains_town_tribal.tmx @@ -1,5 +1,5 @@ - + @@ -33,8 +33,7 @@ - + @@ -42,7 +41,7 @@ - + @@ -50,7 +49,7 @@ - + @@ -58,7 +57,7 @@ - + @@ -75,7 +74,7 @@ - + @@ -83,7 +82,7 @@ - + @@ -91,7 +90,7 @@ - + @@ -99,7 +98,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/swamp_town.tmx b/forge-gui/res/adventure/common/maps/map/towns/swamp_town.tmx index 22adf5631a3..f16b37d15e2 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/swamp_town.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/swamp_town.tmx @@ -32,32 +32,32 @@ - + - + - + - + - + - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/swamp_town_generic.tmx b/forge-gui/res/adventure/common/maps/map/towns/swamp_town_generic.tmx index 40cbd22cf00..8943cf89e6b 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/swamp_town_generic.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/swamp_town_generic.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -103,7 +103,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/swamp_town_identity.tmx b/forge-gui/res/adventure/common/maps/map/towns/swamp_town_identity.tmx index f0473389ffa..371bcdb1b9c 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/swamp_town_identity.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/swamp_town_identity.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -94,7 +94,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/swamp_town_tribal.tmx b/forge-gui/res/adventure/common/maps/map/towns/swamp_town_tribal.tmx index c638bfe52a6..88c8f0b81b9 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/swamp_town_tribal.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/swamp_town_tribal.tmx @@ -33,7 +33,7 @@ - @@ -42,7 +42,7 @@ - + @@ -50,7 +50,7 @@ - + @@ -58,7 +58,7 @@ - + @@ -66,7 +66,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -104,7 +104,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/waste_town.tmx b/forge-gui/res/adventure/common/maps/map/towns/waste_town.tmx index de84487811c..cce1547831c 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/waste_town.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/waste_town.tmx @@ -32,44 +32,44 @@ - - + - + - + - + - + - + - + @@ -80,7 +80,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/waste_town_generic.tmx b/forge-gui/res/adventure/common/maps/map/towns/waste_town_generic.tmx index b1d46cc2ef7..1f207e37af7 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/waste_town_generic.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/waste_town_generic.tmx @@ -36,7 +36,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -60,7 +60,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -81,7 +81,7 @@ - @@ -90,7 +90,7 @@ - + @@ -105,7 +105,7 @@ - + diff --git a/forge-gui/res/adventure/common/maps/map/towns/waste_town_identity.tmx b/forge-gui/res/adventure/common/maps/map/towns/waste_town_identity.tmx index 92c971d4eab..e1e2af77f06 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/waste_town_identity.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/waste_town_identity.tmx @@ -33,7 +33,7 @@ - + @@ -60,7 +60,7 @@ - + @@ -68,7 +68,7 @@ - + @@ -76,7 +76,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -104,10 +104,10 @@ - - - - + + + + diff --git a/forge-gui/res/adventure/common/maps/map/towns/waste_town_tribal.tmx b/forge-gui/res/adventure/common/maps/map/towns/waste_town_tribal.tmx index 79bdbb6e7d1..3bb94579d26 100644 --- a/forge-gui/res/adventure/common/maps/map/towns/waste_town_tribal.tmx +++ b/forge-gui/res/adventure/common/maps/map/towns/waste_town_tribal.tmx @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -81,7 +81,7 @@ - + @@ -89,7 +89,7 @@ - + @@ -104,7 +104,8 @@ - +