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

Loading…
Cancel
Save