-
-
Notifications
You must be signed in to change notification settings - Fork 4
Added cantrips and blessings to activatable prereqs #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
16de03d
6737a32
7ac029a
9652cda
0b93f01
baa37e0
739620d
fbe85e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ich hätte jetzt grundsätzlich |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import * as DB from "tsondb/schema/dsl" | ||
| import { BlessingIdentifier } from "../../_Identifier.js" | ||
| import { DisplayOption } from "../DisplayOption.js" | ||
|
|
||
| export const BlessingPrerequisite = DB.TypeAlias(import.meta.url, { | ||
| name: "BlessingPrerequisite", | ||
| comment: "Requires a specific blessing.", | ||
| type: () => | ||
| DB.Object({ | ||
| blessing: DB.Required({ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typischerweise wird der Key, der den Eintrag definiert,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Du kannst aber trotzdem einen Display Name für die Property verwenden, wenn er im Editor anders heißen soll. |
||
| comment: "The required blessing.", | ||
| type: BlessingIdentifier(), | ||
| }), | ||
| display_option: DB.Optional({ | ||
| type: DB.IncludeIdentifier(DisplayOption), | ||
| }), | ||
| }), | ||
| }) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import * as DB from "tsondb/schema/dsl" | ||
| import { CantripIdentifier } from "../../_Identifier.js" | ||
| import { DisplayOption } from "../DisplayOption.js" | ||
|
|
||
| export const CantripPrerequisite = DB.TypeAlias(import.meta.url, { | ||
| name: "CantripPrerequisite", | ||
| comment: "Requires a specific cantrip.", | ||
| type: () => | ||
| DB.Object({ | ||
| cantrip: DB.Required({ | ||
| comment: "The required cantrip.", | ||
| type: CantripIdentifier(), | ||
| }), | ||
| display_option: DB.Optional({ | ||
| type: DB.IncludeIdentifier(DisplayOption), | ||
| }), | ||
| }), | ||
| }) |
Uh oh!
There was an error while loading. Please reload this page.