Seeding reorg
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using SVSim.Database.Enums;
|
||||
using SVSim.Database.Models;
|
||||
using SVSim.Database.Models.Config;
|
||||
using SVSim.Database.Services;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Draws cards from a pack's pool using rates from the injected <see cref="GameConfigRoot"/>'s
|
||||
/// Draws cards from a pack's pool using rates from <see cref="IGameConfigService"/>'s
|
||||
/// <see cref="PackRateConfig"/>. Slot rarity selection is unified through one
|
||||
/// <see cref="PickRarity"/> + <see cref="ResolveWeights"/> pair — what was previously a
|
||||
/// hardcoded slot-1-7 vs slot-8 split now reads from <c>PackRateConfig.PerSlot</c>.
|
||||
@@ -19,9 +20,9 @@ public class PackOpenService
|
||||
|
||||
private readonly PackRateConfig _rates;
|
||||
|
||||
public PackOpenService(GameConfigRoot config)
|
||||
public PackOpenService(IGameConfigService config)
|
||||
{
|
||||
_rates = config.PackRates;
|
||||
_rates = config.Get<PackRateConfig>();
|
||||
}
|
||||
|
||||
public DrawResult Draw(
|
||||
|
||||
Reference in New Issue
Block a user