Consolidation
This commit is contained in:
@@ -59,6 +59,9 @@ public class CardInventoryRepository : ICardInventoryRepository
|
||||
totalVials += (ulong)owned.Card.CollectionInfo!.DustReward * (ulong)num;
|
||||
postCounts[cardId] = owned.Count;
|
||||
}
|
||||
// Direct credit (not via RewardGrantService.ApplyAsync) because destruct is a debit-pair
|
||||
// operation (destroy cards + credit vials) handled atomically here. ApplyAsync is the
|
||||
// standard path for one-shot reward grants — see RewardGrantService for that pattern.
|
||||
viewer.Currency.RedEther += totalVials;
|
||||
|
||||
// Deck auto-strip: any deck holding more copies of a destructed card than the viewer now owns
|
||||
|
||||
Reference in New Issue
Block a user