This commit is contained in:
parent
ea366cbbd8
commit
8eb33108f9
2 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ export default class GetCardsHelper {
|
|||
.find(x => x.cards.includes(card));
|
||||
|
||||
if (!series) {
|
||||
AppLogger.LogWarn("CardDropHelperMetadata/GetRandomCardByRarity", `Series not found for card ${card.id}`);
|
||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarity", `Series not found for card ${card.id}`);
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ export default class GetUnclaimedCardsHelper {
|
|||
.filter(x => !claimedCards.find(y => y.CardNumber == x.id));
|
||||
|
||||
if (!allCards) {
|
||||
AppLogger.LogWarn("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", "No cards found to randomise from");
|
||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", "No cards found to randomise from");
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
@ -52,7 +52,7 @@ export default class GetUnclaimedCardsHelper {
|
|||
const card = allCards[randomCardIndex];
|
||||
|
||||
if (!card) {
|
||||
AppLogger.LogWarn("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Card not found in index, ${randomCardIndex} of ${allCards.length}`);
|
||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Card not found in index, ${randomCardIndex} of ${allCards.length}`);
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ export default class GetUnclaimedCardsHelper {
|
|||
.find(x => x.cards.includes(card));
|
||||
|
||||
if (!series) {
|
||||
AppLogger.LogWarn("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Series not found for card ${card.id}`);
|
||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Series not found for card ${card.id}`);
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue