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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 1 month ago

Package Health Score

78 / 100
Full package analysis