|
@@ -274,6 +274,23 @@ for (var i = 0; i < cards.length; i++) {
|
|
|
|
|
|
##### javascript to filter Market for good buys for needed cards
|
|
|
```javascript
|
|
|
+buyThreshold = {};
|
|
|
+buyThreshold["2000"] = 1000;
|
|
|
+buyThreshold["350"] = 155;
|
|
|
+buyThreshold["250"] = 100;
|
|
|
+buyThreshold["200"] = 65;
|
|
|
+buyThreshold["150"] = 85;
|
|
|
+buyThreshold["115"] = 60;
|
|
|
+buyThreshold["75"] = 25;
|
|
|
+buyThreshold["50"] = 18;
|
|
|
+buyThreshold["40"] = 25;
|
|
|
+buyThreshold["20"] = 15;
|
|
|
+buyThreshold["15"] = 8;
|
|
|
+buyThreshold["10"] = 5;
|
|
|
+buyThreshold["4"] = 6;
|
|
|
+buyThreshold["3"] = 1;
|
|
|
+buyThreshold["2"] = 1;
|
|
|
+buyThreshold["1"] = 1;
|
|
|
playerStock=[];
|
|
|
for (var i = 0; i < 153; i++) {x={};x["extra"]=0;x["status"]="NORMAL";playerStock.push(x);}
|
|
|
let player = document.createElement('div');
|
|
@@ -328,7 +345,7 @@ for (var i = 0; i < cards.length; i++) {
|
|
|
if (playerStock[cardNum].status == 'CRYSTAL'){
|
|
|
cards.item(i).style.setProperty('Display','None');
|
|
|
}
|
|
|
- if (cardPPG < 2){
|
|
|
+ if (cardCost > buyThreshold[cardVal.valueOf()]){
|
|
|
cards.item(i).style.setProperty('Display','None');
|
|
|
}
|
|
|
} //filter Market for good buys for needed cards
|