File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -77,21 +77,21 @@ public RecipeData(ushort recipeId)
77
77
{
78
78
if ( item . ItemId . RowId == Recipe . ItemResult . RowId )
79
79
{
80
- thresholds = [ 0 , item . CollectabilityMid , item . CollectabilityHigh ] ;
80
+ thresholds = [ item . CollectabilityMid , item . CollectabilityHigh ] ;
81
81
break ;
82
82
}
83
83
}
84
84
}
85
85
else if ( Recipe . CollectableMetadata . GetValueOrDefault < CollectablesRefine > ( ) is { } row6 )
86
+ thresholds = [ row6 . CollectabilityLow , row6 . CollectabilityMid , row6 . CollectabilityHigh ] ;
87
+
88
+ if ( thresholds != null )
86
89
{
87
- if ( row6 . CollectabilityHigh != 0 )
88
- thresholds = [ row6 . CollectabilityLow , row6 . CollectabilityMid , row6 . CollectabilityHigh ] ;
89
- else
90
- thresholds = [ 0 , row6 . CollectabilityLow , row6 . CollectabilityMid ] ;
90
+ var t = thresholds . Where ( t => t != 0 ) . Cast < int ? > ( ) ;
91
+ t = Enumerable . Concat ( Enumerable . Repeat ( ( int ? ) null , 3 - t . Count ( ) ) , t ) ;
92
+ CollectableThresholds = t . ToArray ( ) ;
91
93
}
92
94
93
- CollectableThresholds = thresholds ? . Select < int , int ? > ( t => t == 0 ? null : t ) . ToArray ( ) ;
94
-
95
95
Ingredients = Recipe . Ingredient . Zip ( Recipe . AmountIngredient )
96
96
. Take ( 6 )
97
97
. Where ( i => i . First . IsValid )
You can’t perform that action at this time.
0 commit comments