Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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));
}
}
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));
}
}