mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
read price for boosters
This commit is contained in:
@@ -20,7 +20,6 @@ import net.slightlymagic.braids.util.lambda.Lambda1;
|
||||
import net.slightlymagic.maxmtg.Predicate;
|
||||
|
||||
import forge.Command;
|
||||
import forge.ReadPriceList;
|
||||
import forge.Singletons;
|
||||
import forge.deck.Deck;
|
||||
import forge.error.ErrorViewer;
|
||||
@@ -32,6 +31,7 @@ import forge.item.CardPrinted;
|
||||
import forge.item.InventoryItem;
|
||||
import forge.item.ItemPoolView;
|
||||
import forge.quest.data.QuestData;
|
||||
import forge.quest.data.ReadPriceList;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
||||
@@ -150,6 +150,8 @@ public interface NewConstants {
|
||||
|
||||
/** Property path for price. */
|
||||
String PRICE = "quest/price";
|
||||
/** Property path for price. */
|
||||
String BOOSTER_PRICE= "quest/boosterprice";
|
||||
/** Property path for quests. */
|
||||
String QUESTS = "quest/quests";
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package forge;
|
||||
package forge.quest.data;
|
||||
|
||||
|
||||
import com.esotericsoftware.minlog.Log;
|
||||
|
||||
import forge.MyRandom;
|
||||
import forge.error.ErrorViewer;
|
||||
import forge.properties.ForgeProps;
|
||||
import forge.properties.NewConstants;
|
||||
@@ -39,6 +41,8 @@ public class ReadPriceList implements NewConstants {
|
||||
*/
|
||||
private void setup() {
|
||||
priceMap = readFile(ForgeProps.getFile(QUEST.PRICE));
|
||||
priceMap.putAll(readFile(ForgeProps.getFile(QUEST.BOOSTER_PRICE)));
|
||||
|
||||
}//setup()
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user