Skip to content

Commit

Permalink
bombardiers are neutral
Browse files Browse the repository at this point in the history
  • Loading branch information
delphiactual committed Jun 2, 2024
1 parent d363faa commit 0dc6691
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 0 additions & 9 deletions output/exotic-synergy.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,6 @@
3
]
},
"1219761634": {
"damageType": [
2,
3,
4,
6,
7
]
},
"1321354573": {
"damageType": [
3
Expand Down
7 changes: 6 additions & 1 deletion src/generate-exotic-armor-synergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { burns, synergies } from '../data/exotic-synergies.js';
import { writeFile, sortWithoutArticles } from './helpers.js';
import { DamageType } from 'bungie-api-ts/destiny2/interfaces.js';

const debug = false;
const debug = true;

const inventoryItems = getAllDefs('InventoryItem');
const exoticSynergy = {} as Record<number, { subclass?: number[]; damageType?: number[] }>;
Expand Down Expand Up @@ -54,6 +54,11 @@ inventoryItems.filter(
}
}

// if an exotic matches all subclass damageTypes it is a neutral exotic
if (damageType.length === 5) {
damageType.length = 0;
}

if (damageType.length > 0) {
if (!exoticSynergy[item.hash]) {
exoticSynergy[item.hash] = {};
Expand Down

0 comments on commit 0dc6691

Please sign in to comment.