diff --git a/pack.go b/pack.go index 113d44b..ba63e77 100644 --- a/pack.go +++ b/pack.go @@ -34,8 +34,14 @@ type AlternateProvider struct { } // MakePack makes a booster pack from a given set +// It's a shortcut to `MakePackWithSchema(set.PackSchema())` func MakePack(set Set) Pack { schema := set.PackSchema() + return MakePackWithSchema(schema) +} + +// MakePackWithSchema makes a booster pack from a given schema +func MakePackWithSchema(schema PackSchema) Pack { pack := make(Pack, 0) for _, slot := range schema.Slots { // Default provider