Class: Fortnite

Fortnite()

Class representing a Fortnite cog

Constructor

new Fortnite()

Creating the cog
Source:

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

Example about viewing weapons

   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

Example about viewing info about a rare pump shotgun

   fire_tracker.weaponScrap('Pump Shotgun','Rare').then(r=>{ // Not case sensitive
    console.log(r);
   }).catch(e=>{
    console.log(e);
   });