How to use the warframe-worldstate-data.solNodes function in warframe-worldstate-data

To help you get started, we’ve selected a few warframe-worldstate-data examples, based on popular ways it is used in public projects.

github WFCD / warframe-worldstate-parser / src / modules / voidFissure.js View on Github external
var VoidFissure = function(data) {
  try{
    this.id = data._id.$id;
    this.location = dsUtil.getSolNodeValue(data.Node, nodes);
    this.missionType = dsUtil.getSolNodeType(data.Node, nodes);
    this.voidTier = modifiers[data.Modifier] ? modifiers[data.Modifier].value : data.Modifier;
    this.tierNum = modifiers[data.Modifier] ? modifiers[data.Modifier].num : 0;
    this.enemy =  dsUtil.getSolNodeEnemy(data.Node, nodes);
    if(data.Activation) {
      this.startTime = new Date(1000 * data.Activation.sec);
    }
    if(data.Expiry) {
      this.endTime = new Date(1000 * data.Expiry.sec);
    }
  } catch (err) {
    console.log("Mission: " + err.message);
    console.log(JSON.stringify(data));
  }
}
github WFCD / warframe-worldstate-parser / src / modules / voidFissure.js View on Github external
var VoidFissure = function(data) {
  try{
    this.id = data._id.$id;
    this.location = dsUtil.getSolNodeValue(data.Node, nodes);
    this.missionType = dsUtil.getSolNodeType(data.Node, nodes);
    this.voidTier = modifiers[data.Modifier] ? modifiers[data.Modifier].value : data.Modifier;
    this.tierNum = modifiers[data.Modifier] ? modifiers[data.Modifier].num : 0;
    this.enemy =  dsUtil.getSolNodeEnemy(data.Node, nodes);
    if(data.Activation) {
      this.startTime = new Date(1000 * data.Activation.sec);
    }
    if(data.Expiry) {
      this.endTime = new Date(1000 * data.Expiry.sec);
    }
  } catch (err) {
    console.log("Mission: " + err.message);
    console.log(JSON.stringify(data));
  }
}

warframe-worldstate-data

Warframe data for use with warframe-worldstate-parser

MIT
Latest version published 3 days ago

Package Health Score

75 / 100
Full package analysis

Similar packages