refactor(pack): type PackChildGachaEntry.TypeDetail as CardPackType enum
This commit is contained in:
@@ -249,7 +249,7 @@ public class GachaPointServiceTests
|
||||
{
|
||||
new PackChildGachaEntry
|
||||
{
|
||||
GachaId = 100081, TypeDetail = 2, Cost = 100, CardCount = 8,
|
||||
GachaId = 100081, TypeDetail = CardPackType.CrystalMulti, Cost = 100, CardCount = 8,
|
||||
OverrideIncreaseGachaPoint = 0,
|
||||
},
|
||||
},
|
||||
@@ -287,7 +287,7 @@ public class GachaPointServiceTests
|
||||
{
|
||||
new PackChildGachaEntry
|
||||
{
|
||||
GachaId = 100085, TypeDetail = 5, Cost = 0, CardCount = 8,
|
||||
GachaId = 100085, TypeDetail = CardPackType.TicketMulti, Cost = 0, CardCount = 8,
|
||||
OverrideIncreaseGachaPoint = 3,
|
||||
},
|
||||
},
|
||||
@@ -318,7 +318,7 @@ public class GachaPointServiceTests
|
||||
Id = 99047, BasePackId = 99047, PackCategory = PackCategory.LegendCardPack,
|
||||
CommenceDate = DateTime.UtcNow.AddDays(-1), CompleteDate = DateTime.UtcNow.AddDays(30),
|
||||
GachaPointConfig = null,
|
||||
ChildGachas = { new PackChildGachaEntry { GachaId = 990475, TypeDetail = 5, Cost = 0, CardCount = 8 } },
|
||||
ChildGachas = { new PackChildGachaEntry { GachaId = 990475, TypeDetail = CardPackType.TicketMulti, Cost = 0, CardCount = 8 } },
|
||||
});
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
@@ -347,7 +347,7 @@ public class GachaPointServiceTests
|
||||
GachaPointConfig = new PackGachaPointConfig { ExchangeablePoint = 400, IncreaseGachaPoint = 1 },
|
||||
ChildGachas =
|
||||
{
|
||||
new PackChildGachaEntry { GachaId = 100087, TypeDetail = 7, Cost = 100, CardCount = 8 },
|
||||
new PackChildGachaEntry { GachaId = 100087, TypeDetail = CardPackType.RupyMulti, Cost = 100, CardCount = 8 },
|
||||
},
|
||||
});
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
Reference in New Issue
Block a user