File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 18
18
// https://www.reddit.com/r/destinythegame/comments/3n6pox/python_infusion_calculator
19
19
getThreshold : function ( target , source ) {
20
20
if ( source . tier === 'Exotic' ) {
21
- // upgrade exotic with rare or legendary, threshold = 4
22
- if ( target . tier === 'Rare' || target . tier === 'Legendary' ) return 4 ;
23
-
24
21
// upgrade exotic with an exotic, threshold = 5
25
- if ( target . tier === 'Exotic' ) return 5 ;
22
+ // else we're upgrading exotic with rare or legendary, threshold = 4
23
+ return target . tier === 'Exotic' ? 5 : 4 ;
26
24
}
27
25
28
26
// infusing a rare or legendary with a rare or legendary, threshold = 6
29
27
if ( ( source . tier === 'Rare' || source . tier === 'Legendary' ) &&
30
- ( source . tier === 'Rare' || source . tier === 'Legendary' ) ) return 6 ;
28
+ ( target . tier === 'Rare' || target . tier === 'Legendary' ) ) return 6 ;
31
29
32
30
// otherwise we're upgradeing a rare/legendary with an exotic, threshold = 7
33
31
return 7 ;
You can’t perform that action at this time.
0 commit comments