Added shard counts and excluded extraneous data from the tracker

master
sigonasr2 2 years ago
parent 176f6cbdca
commit 5405eef237
  1. 615
      FINAL FANTASY XIV.CT
  2. 2
      amt
  3. 1
      goalamt.txt
  4. 10
      inventory_monitor.js

File diff suppressed because it is too large Load Diff

2
amt

@ -1 +1 @@
Wind Crystal: 2587/3550 (72%)

@ -0,0 +1 @@
3550

@ -86,7 +86,7 @@ function update(){
async(err,data)=>{
var fileContents = data.toString().split("\n");
if (fileContents.length>=387){
for (i=0;i<fileContents.length;i++){
for (var i=0;i<fileContents.length;i++){
line=fileContents[i]
item=line.split(" ")
if (i==385){
@ -100,7 +100,11 @@ function update(){
if (fileContents[387].split(" ")[0]!=0){
var tempLine=fileContents[387].split(" ")[0]
var tempLineAmt=fileContents[386].split(" ")[0]
var itemObj={id:Number(tempLine)}
var itemID=Number(tempLine);
if (itemID>1000000){
itemID-=1000000
}
var itemObj={id:itemID}
await getItemData(itemObj)
var fileData=fs.readFileSync("goalamt.txt")
if (fileData!=0){
@ -128,6 +132,7 @@ function update(){
itemHQ=hq==="0"?false:true
newItem={"id":Number(itemID),"amt":Number(itemAmt),"hq":itemHQ}
//console.log(itemID+" x"+itemAmt+" "+(itemHQ))
if (i<=384){
if(firstLoad){
await getItemData(newItem)
finalData=[...finalData,newItem]
@ -141,6 +146,7 @@ function update(){
}
}
}
}
if (changed){
console.log("Changes occurred...")
finalArr=[finalData.slice(0,210)]

Loading…
Cancel
Save