You've already forked obsidian-visualiser
Homebrew manager completed !
This commit is contained in:
@@ -58,6 +58,7 @@ export default defineEventHandler(async (e) => {
|
||||
modifiers: true,
|
||||
spells: true,
|
||||
training: true,
|
||||
choices: true,
|
||||
user: {
|
||||
columns: { username: true }
|
||||
}
|
||||
@@ -80,9 +81,10 @@ export default defineEventHandler(async (e) => {
|
||||
|
||||
training: character.training.reduce((p, v) => { if(!(v.stat in p)) p[v.stat] = []; p[v.stat].push([v.level as TrainingLevel, v.choice]); return p; }, {} as Record<MainStat, DoubleIndex<TrainingLevel>[]>),
|
||||
leveling: character.levels.map(e => [e.level as Level, e.choice] as DoubleIndex<Level>),
|
||||
abilities: group(character.abilities.map(e => ({ ...e, value: [e.value, e.max] as [number, number] })), "ability", "value"),
|
||||
abilities: group(character.abilities, "ability", "value"),
|
||||
spells: character.spells.map(e => e.value),
|
||||
modifiers: group(character.modifiers, "modifier", "value"),
|
||||
choices: character.choices.reduce((p, v) => { p[v.id] ??= []; p[v.id]?.push(v.choice); return p; }, {} as Record<string, number[]>),
|
||||
|
||||
owner: character.owner,
|
||||
username: character.user.username,
|
||||
|
||||
Reference in New Issue
Block a user