Methods
(async) listOfWeapons() → {Promise}
A method that displays current weapon names available to seach for
- Source:
Returns:
Promise object represents the array of weapons
- Type
- Promise
Example
fire_tracker.listOfWeapons().then(r=>{
console.log(r);
}).catch(e=>{
console.log(e);
});
(async) weaponScrap(name, rarity) → {Promise}
A method that displays a weapon stats with its name given
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the weapon |
rarity |
string | The rarity of the weapon (Common,Uncommon,Rare,Epic,Legandary) . Default is common |
- Source:
Returns:
Promise object represents the array of weapons
- Type
- Promise
Example
fire_tracker.weaponScrap('Pump Shotgun','Rare').then(r=>{ // Not case sensitive
console.log(r);
}).catch(e=>{
console.log(e);
});