Add rules-aware lookup dice rolling
This commit is contained in:
@@ -18,7 +18,12 @@ public sealed class LookupService(IDbContextFactory<RolemasterDbContext> dbConte
|
||||
var attackTables = await dbContext.AttackTables
|
||||
.AsNoTracking()
|
||||
.OrderBy(item => item.DisplayName)
|
||||
.Select(item => new LookupOption(item.Slug, item.DisplayName))
|
||||
.Select(item => new AttackTableReference(
|
||||
item.Slug,
|
||||
item.DisplayName,
|
||||
item.AttackKind,
|
||||
item.FumbleMinRoll,
|
||||
item.FumbleMaxRoll))
|
||||
.ToListAsync(cancellationToken);
|
||||
|
||||
var armorTypes = await dbContext.ArmorTypes
|
||||
|
||||
Reference in New Issue
Block a user