Skip to content

Commit

Permalink
Added support for sidearms
Browse files Browse the repository at this point in the history
  • Loading branch information
SunburnedGoose committed May 19, 2015
1 parent 3e4576c commit 27417a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/services/dimStoreService.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@

if (["Pulse Rifle", "Scout Rifle", "Hand Cannon", "Auto Rifle", "Primary Weapon Engram"].indexOf(type) != -1)
return 'Primary';
if (["Sniper Rifle", "Shotgun", "Fusion Rifle", "Special Weapon Engram"].indexOf(type) != -1) {
if (["Sniper Rifle", "Shotgun", "Fusion Rifle", "Sidearm", "Special Weapon Engram"].indexOf(type) != -1) {
// detect special case items that are actually primary weapons.
if (["Vex Mythoclast", "Universal Remote", "No Land Beyond"].indexOf(name) != -1)
return 'Primary';
Expand Down Expand Up @@ -516,7 +516,7 @@
}

function sortItem(type) {
if (["Pulse Rifle", "Sniper Rifle", "Shotgun", "Scout Rifle", "Hand Cannon", "Fusion Rifle", "Rocket Launcher", "Auto Rifle", "Machine Gun", "Primary Weapon Engram", "Special Weapon Engram", "Heavy Weapon Engram"].indexOf(type) != -1)
if (["Pulse Rifle", "Sniper Rifle", "Shotgun", "Scout Rifle", "Sidebarm", "Hand Cannon", "Fusion Rifle", "Rocket Launcher", "Auto Rifle", "Machine Gun", "Primary Weapon Engram", "Special Weapon Engram", "Heavy Weapon Engram"].indexOf(type) != -1)
return 'Weapons';
if (["Titan Mark", "Hunter Cloak", "Warlock Bond", "Helmet Engram", "Leg Armor Engram", "Body Armor Engram", "Gauntlet Engram", "Gauntlets", "Helmet", "Chest Armor", "Leg Armor", "Class Item Engram"].indexOf(type) != -1)
return 'Armor';
Expand Down

0 comments on commit 27417a5

Please sign in to comment.