fix: handle login reward not being able to give any recipe #1479
@ -99,6 +99,10 @@ const getRandomLoginReward = (rng: CRng, day: number, inventory: TInventoryDatab
|
||||
eligibleRecipes.push(uniqueName);
|
||||
}
|
||||
}
|
||||
if (eligibleRecipes.length == 0) {
|
||||
// This account has all warframes and weapons already mastered (filthy cheater), need a different reward.
|
||||
return getRandomLoginReward(rng, day, inventory);
|
||||
}
|
||||
reward.StoreItemType = toStoreItem(rng.randomElement(eligibleRecipes));
|
||||
}
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user