init
This commit is contained in:
commit
e2903b96dc
3828 files changed
+188535
No files matched your search
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"promptDelete": false,
|
||||
"readableLineLength": false,
|
||||
"alwaysUpdateLinks": true,
|
||||
"showLineNumber": true
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"theme": "obsidian",
|
||||
"accentColor": "#00bf56",
|
||||
"enabledCssSnippets": [
|
||||
"custom-admonitions.375981",
|
||||
"dnd5e-compendium"
|
||||
],
|
||||
"cssTheme": "AnuPpuccin"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"theme": "obsidian",
|
||||
"accentColor": "#00bf56",
|
||||
"enabledCssSnippets": [
|
||||
"custom-admonitions.375981",
|
||||
"dnd5e-compendium"
|
||||
],
|
||||
"cssTheme": "Ink Paper"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"theme": "obsidian",
|
||||
"accentColor": "#00bf56",
|
||||
"enabledCssSnippets": [
|
||||
"custom-admonitions.375981",
|
||||
"dnd5e-compendium"
|
||||
],
|
||||
"cssTheme": "Ink Paper"
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
[
|
||||
"obsidian-admonition",
|
||||
"dataview",
|
||||
"obsidian-leaflet-plugin",
|
||||
"templater-obsidian",
|
||||
"table-editor-obsidian",
|
||||
"editing-toolbar",
|
||||
"obsidian-timeline",
|
||||
"obsidian-5e-statblocks",
|
||||
"initiative-tracker",
|
||||
"obsidian-dice-roller",
|
||||
"image-window",
|
||||
"markdown-attributes"
|
||||
]
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": true,
|
||||
"graph": false,
|
||||
"backlink": true,
|
||||
"canvas": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"properties": false,
|
||||
"page-preview": true,
|
||||
"daily-notes": false,
|
||||
"templates": true,
|
||||
"note-composer": false,
|
||||
"command-palette": true,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"bookmarks": true,
|
||||
"markdown-importer": false,
|
||||
"zk-prefixer": false,
|
||||
"random-note": false,
|
||||
"outline": false,
|
||||
"word-count": false,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": true,
|
||||
"publish": false,
|
||||
"sync": false,
|
||||
"webviewer": false,
|
||||
"footnotes": false,
|
||||
"bases": true
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": false,
|
||||
"graph": true,
|
||||
"backlink": true,
|
||||
"canvas": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"properties": false,
|
||||
"page-preview": true,
|
||||
"daily-notes": false,
|
||||
"templates": true,
|
||||
"note-composer": false,
|
||||
"command-palette": false,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"bookmarks": true,
|
||||
"markdown-importer": false,
|
||||
"zk-prefixer": false,
|
||||
"random-note": false,
|
||||
"outline": true,
|
||||
"word-count": false,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": true,
|
||||
"publish": false,
|
||||
"sync": false,
|
||||
"webviewer": false,
|
||||
"footnotes": false,
|
||||
"bases": true
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": false,
|
||||
"graph": true,
|
||||
"backlink": true,
|
||||
"canvas": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"properties": false,
|
||||
"page-preview": true,
|
||||
"daily-notes": false,
|
||||
"templates": true,
|
||||
"note-composer": false,
|
||||
"command-palette": false,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"bookmarks": true,
|
||||
"markdown-importer": false,
|
||||
"zk-prefixer": false,
|
||||
"random-note": false,
|
||||
"outline": true,
|
||||
"word-count": false,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": true,
|
||||
"publish": false,
|
||||
"sync": false,
|
||||
"webviewer": false,
|
||||
"footnotes": false,
|
||||
"bases": true
|
||||
}
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"collapse-filter": false,
|
||||
"search": "tag: #npc",
|
||||
"showTags": true,
|
||||
"showAttachments": false,
|
||||
"hideUnresolved": false,
|
||||
"showOrphans": false,
|
||||
"collapse-color-groups": false,
|
||||
"colorGroups": [],
|
||||
"collapse-display": false,
|
||||
"showArrow": false,
|
||||
"textFadeMultiplier": 0,
|
||||
"nodeSizeMultiplier": 1,
|
||||
"lineSizeMultiplier": 1,
|
||||
"collapse-forces": false,
|
||||
"centerStrength": 0.518713248970312,
|
||||
"repelStrength": 10,
|
||||
"linkStrength": 1,
|
||||
"linkDistance": 250,
|
||||
"scale": 0.45050811767578125,
|
||||
"close": true
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"obsidian-5e-statblocks": true,
|
||||
"preview": true,
|
||||
"obsidian-leaflet-plugin": true
|
||||
}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"renderNullAs": "\\-",
|
||||
"taskCompletionTracking": false,
|
||||
"taskCompletionUseEmojiShorthand": false,
|
||||
"taskCompletionText": "completion",
|
||||
"taskCompletionDateFormat": "yyyy-MM-dd",
|
||||
"recursiveSubTaskCompletion": false,
|
||||
"warnOnEmptyResult": true,
|
||||
"refreshEnabled": true,
|
||||
"refreshInterval": 2500,
|
||||
"defaultDateFormat": "MMMM dd, yyyy",
|
||||
"defaultDateTimeFormat": "h:mm a - MMMM dd, yyyy",
|
||||
"maxRecursiveRenderDepth": 4,
|
||||
"tableIdColumnName": "File",
|
||||
"tableGroupColumnName": "Group",
|
||||
"showResultCount": true,
|
||||
"allowHtml": true,
|
||||
"inlineQueryPrefix": "=",
|
||||
"inlineJsQueryPrefix": "$=",
|
||||
"inlineQueriesInCodeblocks": true,
|
||||
"enableInlineDataview": true,
|
||||
"enableDataviewJs": true,
|
||||
"enableInlineDataviewJs": true,
|
||||
"prettyRenderInlineFields": true,
|
||||
"prettyRenderInlineFieldsInLivePreview": true,
|
||||
"dataviewJsKeyword": "dataviewjs"
|
||||
}
|
||||
Vendored
+20876
File diff suppressed because it is too large.
Load diff
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "dataview",
|
||||
"name": "Dataview",
|
||||
"version": "0.5.68",
|
||||
"minAppVersion": "0.13.11",
|
||||
"description": "Complex data views for the data-obsessed.",
|
||||
"author": "Michael Brenan <blacksmithgu@gmail.com>",
|
||||
"authorUrl": "https://github.com/blacksmithgu",
|
||||
"helpUrl": "https://blacksmithgu.github.io/obsidian-dataview/",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
.block-language-dataview {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/*****************/
|
||||
/** Table Views **/
|
||||
/*****************/
|
||||
|
||||
/* List View Default Styling; rendered internally as a table. */
|
||||
.table-view-table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.table-view-table > thead > tr, .table-view-table > tbody > tr {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.table-view-table > tbody > tr:hover {
|
||||
background-color: var(--table-row-background-hover);
|
||||
}
|
||||
|
||||
.table-view-table > thead > tr > th {
|
||||
font-weight: 700;
|
||||
font-size: larger;
|
||||
border-top: none;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
border-bottom: solid;
|
||||
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.table-view-table > tbody > tr > td {
|
||||
text-align: left;
|
||||
border: none;
|
||||
font-weight: 400;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.table-view-table ul, .table-view-table ol {
|
||||
margin-block-start: 0.2em !important;
|
||||
margin-block-end: 0.2em !important;
|
||||
}
|
||||
|
||||
/** Rendered value styling for any view. */
|
||||
.dataview-result-list-root-ul {
|
||||
padding: 0em !important;
|
||||
margin: 0em !important;
|
||||
}
|
||||
|
||||
.dataview-result-list-ul {
|
||||
margin-block-start: 0.2em !important;
|
||||
margin-block-end: 0.2em !important;
|
||||
}
|
||||
|
||||
/** Generic grouping styling. */
|
||||
.dataview.result-group {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
/*******************/
|
||||
/** Inline Fields **/
|
||||
/*******************/
|
||||
|
||||
.dataview.inline-field-key {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
font-family: var(--font-monospace);
|
||||
background-color: var(--background-primary-alt);
|
||||
color: var(--nav-item-color-selected);
|
||||
}
|
||||
|
||||
.dataview.inline-field-value {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
font-family: var(--font-monospace);
|
||||
background-color: var(--background-secondary-alt);
|
||||
color: var(--nav-item-color-selected);
|
||||
}
|
||||
|
||||
.dataview.inline-field-standalone-value {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
font-family: var(--font-monospace);
|
||||
background-color: var(--background-secondary-alt);
|
||||
color: var(--nav-item-color-selected);
|
||||
}
|
||||
|
||||
/***************/
|
||||
/** Task View **/
|
||||
/***************/
|
||||
|
||||
.dataview.task-list-item, .dataview.task-list-basic-item {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
transition: 0.4s;
|
||||
}
|
||||
|
||||
.dataview.task-list-item:hover, .dataview.task-list-basic-item:hover {
|
||||
background-color: var(--text-selection);
|
||||
box-shadow: -40px 0 0 var(--text-selection);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*****************/
|
||||
/** Error Views **/
|
||||
/*****************/
|
||||
|
||||
div.dataview-error-box {
|
||||
width: 100%;
|
||||
min-height: 150px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 4px dashed var(--background-secondary);
|
||||
}
|
||||
|
||||
.dataview-error-message {
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*************************/
|
||||
/** Additional Metadata **/
|
||||
/*************************/
|
||||
|
||||
.dataview.small-text {
|
||||
font-size: smaller;
|
||||
color: var(--text-muted);
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.dataview.small-text::before {
|
||||
content: "(";
|
||||
}
|
||||
|
||||
.dataview.small-text::after {
|
||||
content: ")";
|
||||
}
|
||||
+328
@@ -0,0 +1,328 @@
|
||||
{
|
||||
"lastVersion": "3.1.16",
|
||||
"aestheticStyle": "default",
|
||||
"positionStyle": "top",
|
||||
"menuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:editor-undo",
|
||||
"name": "Undo editor",
|
||||
"icon": "undo-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor-redo",
|
||||
"name": "Redo editor",
|
||||
"icon": "redo-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-format-brush",
|
||||
"name": "Format Brush",
|
||||
"icon": "paintbrush"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:format-eraser",
|
||||
"name": "Clear text formatting",
|
||||
"icon": "eraser"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:header2-text",
|
||||
"name": "Header 2",
|
||||
"icon": "header-2"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:header3-text",
|
||||
"name": "Header 3",
|
||||
"icon": "header-3"
|
||||
},
|
||||
{
|
||||
"id": "SubmenuCommands-header",
|
||||
"name": "submenu",
|
||||
"icon": "header-n",
|
||||
"SubmenuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:header1-text",
|
||||
"name": "Header 1",
|
||||
"icon": "header-1"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:header4-text",
|
||||
"name": "Header 4",
|
||||
"icon": "header-4"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:header5-text",
|
||||
"name": "Header 5",
|
||||
"icon": "header-5"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:header6-text",
|
||||
"name": "Header 6",
|
||||
"icon": "header-6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-bold",
|
||||
"name": "Bold",
|
||||
"icon": "bold-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-italics",
|
||||
"name": "Italics",
|
||||
"icon": "italic-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-strikethrough",
|
||||
"name": "Strikethrough",
|
||||
"icon": "strikethrough-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:underline",
|
||||
"name": "Underline",
|
||||
"icon": "underline-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-highlight",
|
||||
"name": "==Highlight==",
|
||||
"icon": "highlight-glyph"
|
||||
},
|
||||
{
|
||||
"id": "SubmenuCommands-lucdf3en5",
|
||||
"name": "submenu",
|
||||
"icon": "edit",
|
||||
"SubmenuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:editor-copy",
|
||||
"name": "Copy",
|
||||
"icon": "lucide-copy"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor-cut",
|
||||
"name": "Cut",
|
||||
"icon": "lucide-scissors"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor-paste",
|
||||
"name": "Paste",
|
||||
"icon": "lucide-clipboard-type"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:swap-line-down",
|
||||
"name": "Swap line down",
|
||||
"icon": "lucide-corner-right-down"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:swap-line-up",
|
||||
"name": "Swap line up",
|
||||
"icon": "lucide-corner-right-up"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:attach-file",
|
||||
"name": "Attach file",
|
||||
"icon": "lucide-paperclip"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:insert-table",
|
||||
"name": "Insert Table",
|
||||
"icon": "lucide-table"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:cycle-list-checklist",
|
||||
"name": "Cycle list checklist",
|
||||
"icon": "check-circle"
|
||||
},
|
||||
{
|
||||
"id": "SubmenuCommands-luc8efull",
|
||||
"name": "submenu",
|
||||
"icon": "message-square",
|
||||
"SubmenuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:editor:toggle-blockquote",
|
||||
"name": "Blockquote",
|
||||
"icon": "lucide-text-quote"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:insert-callout",
|
||||
"name": "Insert Callout ",
|
||||
"icon": "lucide-quote"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "SubmenuCommands-mdcmder",
|
||||
"name": "submenu",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M464 608 l0 -568 q0 -3 -2.5 -5.5 q-2.5 -2.5 -5.5 -2.5 l-80 0 q-3 0 -5.5 2.5 q-2.5 2.5 -2.5 5.5 l0 568 l-232 0 q-3 0 -5.5 2.5 q-2.5 2.5 -2.5 5.5 l0 80 q0 3 2.5 5.5 q2.5 2.5 5.5 2.5 l560 0 q3 0 5.5 -2.5 q2.5 -2.5 2.5 -5.5 l0 -80 q0 -3 -2.5 -5.5 q-2.5 -2.5 -5.5 -2.5 l-232 0 ZM864 696 q17 0 28.5 11.5 q11.5 11.5 11.5 28.5 q0 17 -11.5 28.5 q-11.5 11.5 -28.5 11.5 q-17 0 -28.5 -11.5 q-11.5 -11.5 -11.5 -28.5 q0 -17 11.5 -28.5 q11.5 -11.5 28.5 -11.5 ZM864 640 q-40 0 -68 28 q-28 28 -28 68 q0 40 28 68 q28 28 68 28 q40 0 68 -28 q28 -28 28 -68 q0 -40 -28 -68 q-28 -28 -68 -28 ZM576 322 l0 -63 q0 -3 2 -5 l89 -70 l-89 -70 q-2 -2 -2 -5 l0 -63 q0 -4 3.5 -5.5 q3.5 -1.5 6.5 0.5 l170 133 q4 3 4.5 8.5 q0.5 5.5 -2.5 9.5 l-2 2 l-170 133 q-3 2 -6.5 0.5 q-3.5 -1.5 -3.5 -5.5 ZM256 322 l0 -63 q0 -3 -2 -5 l-89 -70 l89 -70 q2 -2 2 -5 l0 -63 q0 -4 -3.5 -5.5 q-3.5 -1.5 -6.5 0.5 l-170 133 q-4 3 -4.5 8.5 q-0.5 5.5 2.5 9.5 l2 2 l170 133 q3 2 6.5 0.5 q3.5 -1.5 3.5 -5.5 Z\"></path></g></svg>",
|
||||
"SubmenuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:superscript",
|
||||
"name": "Superscript",
|
||||
"icon": "superscript-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:subscript",
|
||||
"name": "Subscript",
|
||||
"icon": "subscript-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:toggle-code",
|
||||
"name": "Inline code",
|
||||
"icon": "code-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:codeblock",
|
||||
"name": "Code block",
|
||||
"icon": "codeblock-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:insert-wikilink",
|
||||
"name": "Insert wikilink [[]]",
|
||||
"icon": "<svg width=\"15\" height=\"15\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M306 134 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 7 q0 -8 -5 -8 l-45 0 q-5 0 -5 8 l0 784 q0 8 5 8 l45 0 q5 0 5 -8 q0 8 1 8 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 -623 q0 8 1 8 ZM139 134 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 7 q0 -8 -5 -8 l-45 0 q-5 0 -5 8 l0 784 q0 8 5 8 l45 0 q5 0 5 -8 q0 8 1 8 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 -623 q0 8 1 8 ZM711 134 q1 0 1 -8 l0 623 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 q1 0 1 -8 q0 8 4 8 l46 0 q4 0 4 -8 l0 -784 q0 -8 -4 -8 l-46 0 q-4 0 -4 8 q0 -7 -1 -7 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 ZM878 134 q1 0 1 -8 l0 623 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 q1 0 1 -8 q0 8 5 8 l45 0 q4 0 4 -8 l0 -784 q0 -8 -4 -8 l-45 0 q-5 0 -5 8 q0 -7 -1 -7 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:insert-embed",
|
||||
"name": "Insert embed ![[]]",
|
||||
"icon": "note-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:insert-link",
|
||||
"name": "Insert link []()",
|
||||
"icon": "link-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:hrline",
|
||||
"name": "Horizontal divider",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M912 424 l0 -80 q0 -3 -2.5 -5.5 q-2.5 -2.5 -5.5 -2.5 l-784 0 q-3 0 -5.5 2.5 q-2.5 2.5 -2.5 5.5 l0 80 q0 3 2.5 5.5 q2.5 2.5 5.5 2.5 l784 0 q3 0 5.5 -2.5 q2.5 -2.5 2.5 -5.5 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-inline-math",
|
||||
"name": "Inline math",
|
||||
"icon": "lucide-sigma"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:editor:insert-mathblock",
|
||||
"name": "MathBlock",
|
||||
"icon": "lucide-sigma-square"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "SubmenuCommands-list",
|
||||
"name": "submenu-list",
|
||||
"icon": "bullet-list-glyph",
|
||||
"SubmenuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:editor:toggle-checklist-status",
|
||||
"name": "Checklist",
|
||||
"icon": "checkbox-glyph"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:renumber-ordered-list",
|
||||
"name": "Renumber ordered list",
|
||||
"icon": "list-restart"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-numbered-list",
|
||||
"name": "Numbered list",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M860 424 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-457 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l457 0 ZM860 756 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-457 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l457 0 ZM860 92 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-457 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l457 0 ZM264 136 l-3 -3 l-51 -57 l56 0 q14 0 24.5 -10 q10.5 -10 11.5 -25 l0 -1 q0 -15 -10.5 -25.5 q-10.5 -10.5 -24.5 -10.5 l-137 0 q-15 0 -25 10 q-10 10 -11 24.5 q-1 14.5 9 25.5 l63 70 l49 54 q7 7 7 16.5 q0 9.5 -7.5 16.5 q-7.5 7 -18.5 7 q-11 0 -18.5 -6.5 q-7.5 -6.5 -8.5 -16.5 l0 0 q0 -15 -10.5 -25.5 q-10.5 -10.5 -25.5 -10.5 q-15 0 -25.5 10.5 q-10.5 10.5 -10.5 25.5 q0 26 13.5 47.5 q13.5 21.5 36 34.5 q22.5 13 49 13 q26.5 0 49.5 -13 q23 -13 36 -34.5 q13 -21.5 13 -47.5 q0 -20 -7.5 -37.5 q-7.5 -17.5 -21.5 -30.5 l-1 -1 ZM173 794 q11 11 25 10.5 q14 -0.5 24.5 -10.5 q10.5 -10 10.5 -25 l0 -293 q0 -15 -10 -25.5 q-10 -10.5 -25 -10.5 q-15 0 -25.5 10 q-10.5 10 -11.5 25 l0 211 q-10 -8 -23.5 -7 q-13.5 1 -22.5 11 l-1 0 q-10 11 -9.5 25.5 q0.5 14.5 10.5 24.5 l58 54 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:toggle-bullet-list",
|
||||
"name": "Bullet list",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M860 424 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-477 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l477 0 ZM860 756 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-477 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l477 0 ZM860 92 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-477 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l477 0 ZM176 716 l0 0 ZM112 716 q0 -27 18.5 -45.5 q18.5 -18.5 45.5 -18.5 q27 0 45.5 18.5 q18.5 18.5 18.5 45.5 q0 27 -18.5 45.5 q-18.5 18.5 -45.5 18.5 q-27 0 -45.5 -18.5 q-18.5 -18.5 -18.5 -45.5 ZM176 384 l0 0 ZM112 384 q0 -27 18.5 -45.5 q18.5 -18.5 45.5 -18.5 q27 0 45.5 18.5 q18.5 18.5 18.5 45.5 q0 27 -18.5 45.5 q-18.5 18.5 -45.5 18.5 q-27 0 -45.5 -18.5 q-18.5 -18.5 -18.5 -45.5 ZM176 52 l0 0 ZM112 52 q0 -27 18.5 -45.5 q18.5 -18.5 45.5 -18.5 q27 0 45.5 18.5 q18.5 18.5 18.5 45.5 q0 27 -18.5 45.5 q-18.5 18.5 -45.5 18.5 q-27 0 -45.5 -18.5 q-18.5 -18.5 -18.5 -45.5 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:undent-list",
|
||||
"name": "Unindent-list",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M872 302 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 542 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 784 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM872 62 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM244 534 l-123 -122 q-8 -7 -8 -18 q0 -11 8 -18 l123 -122 q8 -7 19 -7 q11 0 18.5 7.5 q7.5 7.5 7.5 18.5 l0 242 q0 11 -7.5 18.5 q-7.5 7.5 -18.5 7.5 q-11 0 -19 -7 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:indent-list",
|
||||
"name": "Indent list",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M872 302 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 542 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 784 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM872 62 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM158 534 l124 -122 q7 -7 7 -18 q0 -11 -7 -18 l-124 -122 q-7 -7 -18 -7 q-11 0 -19 7.5 q-8 7.5 -8 18.5 l0 242 q0 11 8 18.5 q8 7.5 19 7.5 q11 0 18 -7 Z\"></path></g></svg>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "SubmenuCommands-aligin",
|
||||
"name": "submenu-aligin",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M724 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM724 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>",
|
||||
"SubmenuCommands": [
|
||||
{
|
||||
"id": "editing-toolbar:justify",
|
||||
"name": "<p aligin=\"justify\"></p>",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M112 736 l0 0 ZM120 736 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 ZM112 331 l0 0 ZM120 331 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 ZM112 128 l0 0 ZM120 128 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 ZM112 533 l0 0 ZM120 533 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:left",
|
||||
"name": "<p aligin=\"left\"></p>",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M572 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM572 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:center",
|
||||
"name": "<center>",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M724 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM724 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:right",
|
||||
"name": "<p aligin=\"right\"></p>",
|
||||
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M872 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM872 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:change-font-color",
|
||||
"name": "Change font color[html]",
|
||||
"icon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" focusable=\"false\" fill=\"currentColor\"><g fill-rule=\"evenodd\"><path id=\"change-font-color-icon\" d=\"M3 18h18v3H3z\" style=\"fill:#2DC26B\"></path><path d=\"M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z\"></path></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:change-background-color",
|
||||
"name": "Change Backgroundcolor[html]",
|
||||
"icon": "<svg width=\"18\" height=\"24\" viewBox=\"0 0 256 256\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><g stroke=\"none\" stroke-width=\"1\" fill=\"currentColor\" fill-rule=\"evenodd\"><g ><g fill=\"currentColor\"><g transform=\"translate(119.502295, 137.878331) rotate(-135.000000) translate(-119.502295, -137.878331) translate(48.002295, 31.757731)\" ><path d=\"M100.946943,60.8084699 L43.7469427,60.8084699 C37.2852111,60.8084699 32.0469427,66.0467383 32.0469427,72.5084699 L32.0469427,118.70847 C32.0469427,125.170201 37.2852111,130.40847 43.7469427,130.40847 L100.946943,130.40847 C107.408674,130.40847 112.646943,125.170201 112.646943,118.70847 L112.646943,72.5084699 C112.646943,66.0467383 107.408674,60.8084699 100.946943,60.8084699 Z M93.646,79.808 L93.646,111.408 L51.046,111.408 L51.046,79.808 L93.646,79.808 Z\" fill-rule=\"nonzero\"></path><path d=\"M87.9366521,16.90916 L87.9194966,68.2000001 C87.9183543,69.4147389 86.9334998,70.399264 85.7187607,70.4 L56.9423078,70.4 C55.7272813,70.4 54.7423078,69.4150264 54.7423078,68.2 L54.7423078,39.4621057 C54.7423078,37.2523513 55.5736632,35.1234748 57.0711706,33.4985176 L76.4832996,12.4342613 C78.9534987,9.75382857 83.1289108,9.5834005 85.8093436,12.0535996 C87.1658473,13.303709 87.9372691,15.0644715 87.9366521,16.90916 Z\" fill-rule=\"evenodd\"></path><path d=\"M131.3,111.241199 L11.7,111.241199 C5.23826843,111.241199 0,116.479467 0,122.941199 L0,200.541199 C0,207.002931 5.23826843,212.241199 11.7,212.241199 L131.3,212.241199 C137.761732,212.241199 143,207.002931 143,200.541199 L143,122.941199 C143,116.479467 137.761732,111.241199 131.3,111.241199 Z M124,130.241 L124,193.241 L19,193.241 L19,130.241 L124,130.241 Z\" fill-rule=\"nonzero\"></path></g></g><path d=\"M51,218 L205,218 C211.075132,218 216,222.924868 216,229 C216,235.075132 211.075132,240 205,240 L51,240 C44.9248678,240 40,235.075132 40,229 C40,222.924868 44.9248678,218 51,218 Z\" id=\"change-background-color-icon\" style=\"fill:#FA541C\"></path></g></g></svg>"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:fullscreen-focus",
|
||||
"name": "Fullscreen focus mode",
|
||||
"icon": "fullscreen"
|
||||
},
|
||||
{
|
||||
"id": "editing-toolbar:workplace-fullscreen-focus",
|
||||
"name": "Workplace-Fullscreen ",
|
||||
"icon": "exit-fullscreen"
|
||||
}
|
||||
],
|
||||
"followingCommands": [],
|
||||
"topCommands": [],
|
||||
"fixedCommands": [],
|
||||
"mobileCommands": [],
|
||||
"enableMultipleConfig": false,
|
||||
"appendMethod": "workspace",
|
||||
"shouldShowMenuOnSelect": false,
|
||||
"cMenuVisibility": true,
|
||||
"cMenuBottomValue": 4.25,
|
||||
"cMenuNumRows": 12,
|
||||
"cMenuWidth": 610,
|
||||
"cMenuFontColor": "#2DC26B",
|
||||
"cMenuBackgroundColor": "#d3f8b6",
|
||||
"autohide": false,
|
||||
"Iscentered": false,
|
||||
"custom_bg1": "#FFB78B8C",
|
||||
"custom_bg2": "#CDF4698C",
|
||||
"custom_bg3": "#A0CCF68C",
|
||||
"custom_bg4": "#F0A7D88C",
|
||||
"custom_bg5": "#ADEFEF8C",
|
||||
"custom_fc1": "#D83931",
|
||||
"custom_fc2": "#DE7802",
|
||||
"custom_fc3": "#245BDB",
|
||||
"custom_fc4": "#6425D0",
|
||||
"custom_fc5": "#646A73",
|
||||
"isLoadOnMobile": false,
|
||||
"horizontalPosition": 0,
|
||||
"verticalPosition": 0,
|
||||
"formatBrushes": {},
|
||||
"customCommands": [],
|
||||
"viewTypeSettings": {},
|
||||
"toolbarBackgroundColor": "rgba(var(--background-secondary-rgb), 0.7)",
|
||||
"toolbarIconColor": "var(--text-normal)",
|
||||
"toolbarIconSize": 18
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";var t=require("obsidian");function e(t,e,i,n){return new(i||(i=Promise))((function(o,s){function r(t){try{a(n.next(t))}catch(t){s(t)}}function l(t){try{a(n.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,l)}a((n=n.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const i=["Custom","editingToolbar","editingToolbarSub","editingToolbarAdd","editingToolbarDelete","editingToolbarReload","codeblock-glyph","underline-glyph","superscript-glyph","subscript-glyph","bot-glyph","header-1","header-2","header-3","header-4","header-5","header-6","header-n","obsidian","obsidian-new","accessibility","activity","air-vent","airplay","alarm-check","alarm-clock-off","alarm-clock","alarm-minus","alarm-plus","album","alert-circle","alert-octagon","alert-triangle","align-center-horizontal","align-center-vertical","align-center","align-end-horizontal","align-end-vertical","align-horizontal-distribute-center","align-horizontal-distribute-end","align-horizontal-distribute-start","align-horizontal-justify-center","align-horizontal-justify-end","align-horizontal-justify-start","align-horizontal-space-around","align-horizontal-space-between","align-justify","align-left","align-right","align-start-horizontal","align-start-vertical","align-vertical-distribute-center","align-vertical-distribute-end","align-vertical-distribute-start","align-vertical-justify-center","align-vertical-justify-end","align-vertical-justify-start","align-vertical-space-around","align-vertical-space-between","anchor","angry","annoyed","aperture","apple","archive-restore","archive","armchair","arrow-big-down","arrow-big-left","arrow-big-right","arrow-big-up","arrow-down-circle","arrow-down-left","arrow-down-right","arrow-down","arrow-left-circle","arrow-left-right","arrow-left","arrow-right-circle","arrow-right","arrow-up-circle","arrow-up-left","arrow-up-right","arrow-up","asterisk","at-sign","award","axe","axis-3d","baby","backpack","baggage-claim","banana","banknote","bar-chart-2","bar-chart-3","bar-chart-4","bar-chart-horizontal","bar-chart","baseline","bath","battery-charging","battery-full","battery-low","battery-medium","battery","beaker","bed-double","bed-single","bed","beer","bell-minus","bell-off","bell-plus","bell-ring","bell","bike","binary","bitcoin","bluetooth-connected","bluetooth-off","bluetooth-searching","bluetooth","bold","bomb","bone","book-open","book","bookmark-minus","bookmark-plus","bookmark","bot","box-select","box","boxes","briefcase","brush","bug","building-2","building","bus","cake","calculator","calendar-check-2","calendar-check","calendar-clock","calendar-days","calendar-heart","calendar-minus","calendar-off","calendar-plus","calendar-range","calendar-search","calendar-x2","calendar-x","calendar","camera-off","camera","car","carrot","cast","check-circle-2","check-circle","check-square","check","chef-hat","cherry","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down-up","chevrons-down","chevrons-left-right","chevrons-left","chevrons-right-left","chevrons-right","chevrons-up-down","chevrons-up","chrome","cigarette-off","cigarette","circle-dot","circle-ellipsis","circle-slashed","circle","citrus","clapperboard","clipboard-check","clipboard-copy","clipboard-edit","clipboard-list","clipboard-signature","clipboard-type","clipboard-x","clipboard","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","clock","cloud-cog","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon-rain","cloud-moon","cloud-off","cloud-rain-wind","cloud-rain","cloud-snow","cloud-sun-rain","cloud-sun","cloud","cloudy","clover","code-2","code","codepen","codesandbox","coffee","cog","coins","columns","command","compass","component","contact","contrast","cookie","copy","copyleft","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","croissant","crop","cross","crosshair","crown","cup-soda","curly-braces","currency","database","delete","diamond","dice-1","dice-2","dice-3","dice-4","dice-5","dice-6","dices","diff","disc","divide-circle","divide-square","divide","dollar-sign","download-cloud","download","dribbble","droplet","droplets","drumstick","edit-2","edit-3","edit","egg-fried","egg","equal-not","equal","eraser","euro","expand","external-link","eye-off","eye","facebook","factory","fast-forward","feather","figma","file-archive","file-audio-2","file-audio","file-axis-3d","file-badge-2","file-badge","file-bar-chart-2","file-bar-chart","file-box","file-check-2","file-check","file-clock","file-code","file-cog-2","file-cog","file-diff","file-digit","file-down","file-edit","file-heart","file-image","file-input","file-json-2","file-json","file-key-2","file-key","file-line-chart","file-lock-2","file-locLine truncated
|
||||
/**!
|
||||
* Sortable 1.15.6
|
||||
* @author RubaXa <trash@rubaxa.org>
|
||||
* @author owenm <owen23355@gmail.com>
|
||||
* @license MIT
|
||||
*/(n.cMenuFontColor,n.cMenuBackgroundColor)))}()}function gl(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function fl(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?gl(Object(i),!0).forEach((function(e){vl(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):gl(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function bl(t){return bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(t)}function vl(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function yl(){return yl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},yl.apply(this,arguments)}function wl(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function Cl(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var xl=Cl(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kl=Cl(/Edge/i),Sl=Cl(/firefox/i),Tl=Cl(/safari/i)&&!Cl(/chrome/i)&&!Cl(/android/i),El=Cl(/iP(ad|od|hone)/i),Ml=Cl(/chrome/i)&&Cl(/android/i),Al={capture:!1,passive:!1};function Dl(t,e,i){t.addEventListener(e,i,!xl&&Al)}function Il(t,e,i){t.removeEventListener(e,i,!xl&&Al)}function Ol(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function Bl(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function ql(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&Ol(t,e):Ol(t,e))||n&&t===i)return t;if(t===i)break}while(t=Bl(t))}return null}var Nl,Ll=/\s+/g;function Rl(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(Ll," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(Ll," ")}}function Pl(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function _l(t,e){var i="";if("string"==typeof t)i=t;else do{var n=Pl(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function Fl(t,e,i){if(t){var n=t.getElementsByTagName(e),o=0,s=n.length;if(i)for(;o<s;o++)i(n[o],o);return n}return[]}function Vl(){var t=document.scrollingElement;return t||document.documentElement}function Hl(t,e,i,n,o){if(t.getBoundingClientRect||t===window){var s,r,l,a,c,h,d;if(t!==window&&t.parentNode&&t!==Vl()?(r=(s=t.getBoundingClientRect()).top,l=s.left,a=s.bottom,c=s.right,h=s.height,d=s.width):(r=0,l=0,a=window.innerHeight,c=window.innerWidth,h=window.innerHeight,d=window.innerWidth),(e||i)&&t!==window&&(o=o||t.parentNode,!xl))do{if(o&&o.getBoundingClientRect&&("none"!==Pl(o,"transform")||i&&"static"!==Pl(o,"position"))){var u=o.getBoundingClientRect();r-=u.top+parseInt(Pl(o,"border-top-width")),l-=u.left+parseInt(Pl(o,"border-left-width")),a=r+s.height,c=l+s.width;break}}while(o=o.parentNode);if(n&&t!==window){var p=_l(o||t),m=p&&p.a,g=p&&p.d;p&&(a=(r/=g)+(h/=g),c=(l/=m)+(d/=m))}return{top:r,left:l,bottom:a,right:c,width:d,height:h}}}function zl(t,e,i){for(var n=Yl(t,!0),o=Hl(t)[e];n;){var s=Hl(n)[i];if(!("top"===i||"left"===i?o>=s:o<=s))return n;if(n===Vl())break;n=Yl(n,!1)}return!1}function $l(t,e,i,n){for(var o=0,s=0,r=t.children;s<r.length;){if("none"!==r[s].style.display&&r[s]!==Xa.ghost&&(n||r[s]!==Xa.dragged)&&ql(r[s],i.draggable,t,!1)){if(o===e)return r[s];o++}s++}return null}function Wl(t,e){for(var i=t.lastElementChild;i&&(i===Xa.ghost||"none"===Pl(i,"display")||e&&!Ol(i,e));)i=i.previousElementSibling;return i||null}function Ul(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Xa.clone||e&&!Ol(t,e)||i++;return i}function jl(t){var e=0,i=0,n=Vl();if(t)do{var o=_l(t),s=o.a,r=o.d;e+=t.scrollLeft*s,i+=t.scrollTop*r}while(t!==n&&(t=Line truncated
|
||||
/*! Pickr 1.8.4 MIT | https://github.com/Simonwep/pickr */
|
||||
var Cc=function(t){var e={exports:{}};return t(e,e.exports),e.exports}((function(t,e){self,t.exports=(()=>{var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.d(e,{default:()=>O});var i={};function n(t,e,i,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(i)||(i=[i]);for(const s of e)for(const e of i)s[t](e,n,{capture:!1,...o});return Array.prototype.slice.call(arguments,1)}t.r(i),t.d(i,{adjustableInputNumbers:()=>h,createElementFromString:()=>r,createFromTemplate:()=>l,eventPath:()=>a,off:()=>s,on:()=>o,resolveElement:()=>c});const o=n.bind(null,"addEventListener"),s=n.bind(null,"removeEventListener");function r(t){const e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild}function l(t){const e=(t,e)=>{const i=t.getAttribute(e);return t.removeAttribute(e),i},i=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=e(t,":obj"),s=e(t,":ref"),r=o?n[o]={}:n;s&&(n[s]=t);for(const n of Array.from(t.children)){const t=e(n,":arr"),o=i(n,t?{}:r);t&&(r[t]||(r[t]=[])).push(Object.keys(o).length?o:n)}return n};return i(r(t))}function a(t){let e=t.path||t.composedPath&&t.composedPath();if(e)return e;let i=t.target.parentElement;for(e=[t.target,i];i=i.parentElement;)e.push(i);return e.push(document,window),e}function c(t){return t instanceof Element?t:"string"==typeof t?t.split(/>>/g).reduce(((t,e,i,n)=>(t=t.querySelector(e),i<n.length-1?t.shadowRoot:t)),document):null}function h(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;function i(i){const n=[.001,.01,.1][Number(i.shiftKey||2*i.ctrlKey)]*(i.deltaY<0?1:-1);let o=0,s=t.selectionStart;t.value=t.value.replace(/[\d.]+/g,((t,i)=>i<=s&&i+t.length>=s?(s=i,e(Number(t),n,o)):(o++,t))),t.focus(),t.setSelectionRange(s,s),i.preventDefault(),t.dispatchEvent(new Event("input"))}o(t,"focus",(()=>o(window,"wheel",i,{passive:!1}))),o(t,"blur",(()=>s(window,"wheel",i)))}const{min:d,max:u,floor:p,round:m}=Math;function g(t,e,i){e/=100,i/=100;const n=p(t=t/360*6),o=t-n,s=i*(1-e),r=i*(1-o*e),l=i*(1-(1-o)*e),a=n%6;return[255*[i,r,s,s,l,i][a],255*[l,i,i,r,s,s][a],255*[s,s,l,i,i,r][a]]}function f(t,e,i){return g(t,e,i).map((t=>m(t).toString(16).padStart(2,"0")))}function b(t,e,i){const n=g(t,e,i),o=n[0]/255,s=n[1]/255,r=n[2]/255,l=d(1-o,1-s,1-r);return[100*(1===l?0:(1-o-l)/(1-l)),100*(1===l?0:(1-s-l)/(1-l)),100*(1===l?0:(1-r-l)/(1-l)),100*l]}function v(t,e,i){const n=(2-(e/=100))*(i/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*i/(2*n):e*i/(2-2*n)),[t,100*e,100*n]}function y(t,e,i){const n=d(t/=255,e/=255,i/=255),o=u(t,e,i),s=o-n;let r,l;if(0===s)r=l=0;else{l=s/o;const n=((o-t)/6+s/2)/s,a=((o-e)/6+s/2)/s,c=((o-i)/6+s/2)/s;t===o?r=c-a:e===o?r=1/3+n-c:i===o&&(r=2/3+a-n),r<0?r+=1:r>1&&(r-=1)}return[360*r,100*l,100*o]}function w(t,e,i,n){return e/=100,i/=100,[...y(255*(1-d(1,(t/=100)*(1-(n/=100))+n)),255*(1-d(1,e*(1-n)+n)),255*(1-d(1,i*(1-n)+n)))]}function C(t,e,i){e/=100;const n=2*(e*=(i/=100)<.5?i:1-i)/(i+e)*100,o=100*(i+e);return[t,isNaN(n)?0:n,o]}function x(t){return y(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function k(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},i=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let n;t:for(const o in e){if(!(n=e[o].exec(t)))continue;const s=t=>!!n[2]==("number"==typeof t);switch(o){case"cmyk":{const[,t,e,s,r]=i(n);if(t>100||e>100||s>100||r>100)break t;return{values:w(t,e,s,r),type:o}}case"rgba":{const[,,,t,e,r,l]=i(n);if(t>255||e>255||r>255||l<0||l>1||!s(l))break t;return{values:[...y(t,e,r),l],a:l,type:o}}case"hexa":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let i=t.substring(6);return i=i?parseInt(i,16)/255:void 0,{values:[...x(e),i],a:i,type:o}}case"hsla":{const[,,,t,e,r,l]=i(n);if(t>360||e>100||r>100||l<0||l>1||!s(l))break t;return{values:[...C(t,e,r),l],a:l,type:o}}case"hsva":{const[,,,t,e,r,l]=i(n);if(t>360||e>100||r>100||l<0||l>1||!s(l))break t;return{values:[t,e,r,l],a:l,type:o}}}}return{values:null,type:null}}function S(){const t=(t,e)=>function(){let i=arguments.length>0&&void 0!==Line truncated
|
||||
|
||||
|
||||
/* nosourcemap */
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "editing-toolbar",
|
||||
"name": "Editing Toolbar",
|
||||
"version": "3.1.16",
|
||||
"minAppVersion": "0.14.0",
|
||||
"description": "The Obsidian Editing Toolbar is modified from cmenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.",
|
||||
"author": "Cuman",
|
||||
"authorUrl": "https://github.com/cumany/obsidian-editing-toolbar",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+1332
File diff suppressed because it is too large.
Load diff
+8
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var I=Object.create;var u=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var R=(t,i,e)=>i in t?u(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e;var f=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),$=(t,i)=>{for(var e in i)u(t,e,{get:i[e],enumerable:!0})},E=(t,i,e,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of B(i))!V.call(t,a)&&a!==e&&u(t,a,{get:()=>i[a],enumerable:!(o=U(i,a))||o.enumerable});return t};var j=(t,i,e)=>(e=t!=null?I(H(t)):{},E(i||!t||!t.__esModule?u(e,"default",{value:t,enumerable:!0}):e,t)),J=t=>E(u({},"__esModule",{value:!0}),t);var w=(t,i,e)=>(R(t,typeof i!="symbol"?i+"":i,e),e);var L=f((se,T)=>{"use strict";function x(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}x.prototype.define=function(t,i){for(let e in t){let o=t[e].map(function(a){return a.toLowerCase()});e=e.toLowerCase();for(let a=0;a<o.length;a++){let s=o[a];if(s[0]!=="*"){if(!i&&s in this._types)throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+e+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+e+'".');this._types[s]=e}}if(i||!this._extensions[e]){let a=o[0];this._extensions[e]=a[0]!=="*"?a:a.substr(1)}}};x.prototype.getType=function(t){t=String(t);let i=t.replace(/^.*[/\\]/,"").toLowerCase(),e=i.replace(/^.*\./,"").toLowerCase(),o=i.length<t.length;return(e.length<i.length-1||!o)&&this._types[e]||null};x.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null};T.exports=x});var F=f((ne,O)=>{O.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pLine truncated
|
||||
|
||||
/* nosourcemap */
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "image-window",
|
||||
"name": "Second Window",
|
||||
"version": "1.2.0",
|
||||
"minAppVersion": "0.12.0",
|
||||
"author": "Jeremy Valentine",
|
||||
"description": "Allow images & notes to be viewed in new Obsidian windows.",
|
||||
"authorUrl": "",
|
||||
"isDesktopOnly": true
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
.second-window-settings .additional-container>.additional>.setting-item{border-top:0;padding-top:9px}.second-window-settings .additional-container>.additional>.setting-item>.setting-item-control>*:first-child{margin:0 6px}.second-window-settings .additional-container .additional{margin:6px 12px}.second-window-settings details>summary{outline:none;display:block!important;list-style:none!important;list-style-type:none!important;min-height:1rem;border-top-left-radius:.1rem;border-top-right-radius:.1rem;cursor:pointer;position:relative}.second-window-settings details>summary::-webkit-details-marker,.second-window-settings details>summary::marker{display:none!important}.second-window-settings details>summary>.collapser{position:absolute;top:50%;right:8px;transform:translateY(-50%);content:""}.second-window-settings details>summary>.collapser>.handle{transform:rotate(0);transition:transform .25s;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-image:var(--admonition-details-icon);mask-image:var(--admonition-details-icon);width:20px;height:20px}.second-window-settings details[open]>summary>.collapser>.handle{transform:rotate(90deg)}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"players": [],
|
||||
"parties": [],
|
||||
"defaultParty": null,
|
||||
"statuses": [
|
||||
{
|
||||
"name": "Blinded",
|
||||
"id": "Blinded",
|
||||
"description": "A blinded creature can’t see and automatically fails any ability check that requires sight.\nAttack rolls against the creature have advantage, and the creature’s Attack rolls have disadvantage."
|
||||
},
|
||||
{
|
||||
"name": "Charmed",
|
||||
"id": "Charmed",
|
||||
"description": "A charmed creature can’t Attack the charmer or target the charmer with harmful Abilities or magical Effects.\nThe charmer has advantage on any ability check to interact socially with the creature."
|
||||
},
|
||||
{
|
||||
"name": "Concentrating",
|
||||
"id": "Concentrating",
|
||||
"description": "Some spells require you to maintain concentration in order to keep their magic active. If you lose concentration, such a spell ends.\nA creature loses concentration when: it casts another spell that requires concentration, is incapacitated, or dies.\nWhen a creature takes damage, it must make a constitution saving throw with a DC of 10 or half the damage it took, whichever is higher. On a failure, concentration is lost."
|
||||
},
|
||||
{
|
||||
"name": "Deafened",
|
||||
"id": "Deafened",
|
||||
"description": "A deafened creature can’t hear and automatically fails any ability check that requires hearing."
|
||||
},
|
||||
{
|
||||
"name": "Frightened",
|
||||
"id": "Frightened",
|
||||
"description": "A frightened creature has disadvantage on Ability Checks and Attack rolls while the source of its fear is within Line of Sight.\nThe creature can’t willingly move closer to the source of its fear."
|
||||
},
|
||||
{
|
||||
"name": "Grappled",
|
||||
"id": "Grappled",
|
||||
"description": "A grappled creature’s speed becomes 0, and it can’t benefit from any bonus to its speed.\nThe condition ends if the Grappler is incapacitated.\nThe condition also ends if an Effect removes the grappled creature from the reach of the Grappler or Grappling Effect, such as when a creature is hurled away by the Thunderwave spell."
|
||||
},
|
||||
{
|
||||
"name": "Incapacitated",
|
||||
"id": "Incapacitated",
|
||||
"description": "An incapacitated creature can’t take Actions or Reactions."
|
||||
},
|
||||
{
|
||||
"name": "Invisible",
|
||||
"id": "Invisible",
|
||||
"description": "An invisible creature is impossible to see without the aid of magic or a Special sense. For the Purpose of Hiding, the creature is heavily obscured. The creature’s Location can be detected by any noise it makes or any tracks it leaves.\nAttack rolls against the creature have disadvantage, and the creature’s Attack rolls have advantage."
|
||||
},
|
||||
{
|
||||
"name": "Paralyzed",
|
||||
"id": "Paralyzed",
|
||||
"description": "A paralyzed creature is incapacitated and can’t move or speak.\nThe creature automatically fails Strength and Dexterity Saving Throws.\nAttack rolls against the creature have advantage.\nAny Attack that hits the creature is a critical hit if the attacker is within 5 feet of the creature."
|
||||
},
|
||||
{
|
||||
"name": "Petrified",
|
||||
"id": "Petrified",
|
||||
"description": "A petrified creature is transformed, along with any nonmagical object it is wearing or carrying, into a solid inanimate substance (usually stone). Its weight increases by a factor of ten, and it ceases aging.\nThe creature is incapacitated, can’t move or speak, and is unaware of its surroundings.\nAttack rolls against the creature have advantage.\nThe creature automatically fails Strength and Dexterity Saving Throws.\nThe creature has Resistance to all damage.\nThe creature is immune to poison and disease, although a poison or disease already in its system is suspended, not neutralized."
|
||||
},
|
||||
{
|
||||
"name": "Poisoned",
|
||||
"id": "Poisoned",
|
||||
"description": "A poisoned creature has disadvantage on Attack rolls and Ability Checks."
|
||||
},
|
||||
{
|
||||
"name": "Prone",
|
||||
"id": "Prone",
|
||||
"description": "A prone creature’s only Movement option is to crawl, unless it stands up and thereby ends the condition.\nThe creature has disadvantage on Attack rolls.\nAn Attack roll against the creature has advantage if the attacker is within 5 feet of the creature. Otherwise, the Attack roll has disadvantage."
|
||||
},
|
||||
{
|
||||
"name": "Reacted",
|
||||
"id": "Reacted",
|
||||
"description": "A creature, unless otherwise specified, gets one reaction per round of combat.\nA reaction is an instant response to a trigger of some kind, which can occur on your turn or on someone else’s.\nA reaction can be spent to make an opportunity attack, do a readied action, or use an ability that requires a reaction.\nA creature that has already reacted cannot use a reaction until the start of its turn."
|
||||
},
|
||||
{
|
||||
"name": "Restrained",
|
||||
"id": "Restrained",
|
||||
"description": "A restrained creature’s speed becomes 0, and it can’t benefit from any bonus to its speed.\nAttack rolls against the creature have advantage, and the creature’s Attack rolls have disadvantage.\nThe creature has disadvantage on Dexterity Saving Throws."
|
||||
},
|
||||
{
|
||||
"name": "Stunned",
|
||||
"id": "Stunned",
|
||||
"description": "A stunned creature is incapacitated, can’t move, and can speak only falteringly.\nThe creature automatically fails Strength and Dexterity Saving Throws.\nAttack rolls against the creature have advantage."
|
||||
},
|
||||
{
|
||||
"name": "Unconscious",
|
||||
"id": "Unconscious",
|
||||
"description": "An unconscious creature is incapacitated, can’t move or speak, and is unaware of its surroundings.\nThe creature drops whatever it’s holding and falls prone.\nThe creature automatically fails Strength and Dexterity Saving Throws.\nAttack rolls against the creature have advantage.\nAny Attack that hits the creature is a critical hit if the attacker is within 5 feet of the creature."
|
||||
}
|
||||
],
|
||||
"unconsciousId": "Unconscious",
|
||||
"version": [
|
||||
13,
|
||||
0,
|
||||
17
|
||||
],
|
||||
"canUseDiceRoll": false,
|
||||
"preferStatblockLink": false,
|
||||
"initiative": "1d20 + %mod%",
|
||||
"modifier": null,
|
||||
"sync": false,
|
||||
"playerMarker": "default",
|
||||
"monsterMarker": "default",
|
||||
"state": {
|
||||
"creatures": [],
|
||||
"state": false,
|
||||
"name": null,
|
||||
"round": 1,
|
||||
"logFile": "",
|
||||
"rollHP": false
|
||||
},
|
||||
"condense": false,
|
||||
"clamp": true,
|
||||
"autoStatus": true,
|
||||
"beginnerTips": true,
|
||||
"displayDifficulty": true,
|
||||
"encounters": {},
|
||||
"warnedAboutImports": false,
|
||||
"openState": {
|
||||
"battle": true,
|
||||
"party": true,
|
||||
"status": true,
|
||||
"plugin": true,
|
||||
"player": true,
|
||||
"builder": true
|
||||
},
|
||||
"hpOverflow": "ignore",
|
||||
"additiveTemp": false,
|
||||
"rpgSystem": "dnd5e",
|
||||
"logging": false,
|
||||
"logFolder": "/",
|
||||
"resolveTies": "playerFirst",
|
||||
"useLegacy": false,
|
||||
"diplayPlayerHPValues": true,
|
||||
"rollHP": false,
|
||||
"descending": true,
|
||||
"builder": {
|
||||
"showParty": true,
|
||||
"showXP": true,
|
||||
"sidebarIcon": true,
|
||||
"headers": [
|
||||
{
|
||||
"text": "CR",
|
||||
"field": "cr",
|
||||
"type": 1
|
||||
},
|
||||
{
|
||||
"text": "Type",
|
||||
"field": "type",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"text": "Size",
|
||||
"field": "size",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"text": "Alignment",
|
||||
"field": "alignment",
|
||||
"type": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"rollPlayerInitiatives": 0
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
"use strict";var vC=Object.create;var xl=Object.defineProperty;var yC=Object.getOwnPropertyDescriptor;var bC=Object.getOwnPropertyNames;var _C=Object.getPrototypeOf,wC=Object.prototype.hasOwnProperty;var kC=(i,e,t)=>e in i?xl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var De=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),SC=(i,e)=>{for(var t in e)xl(i,t,{get:e[t],enumerable:!0})},dy=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of bC(e))!wC.call(i,r)&&r!==t&&xl(i,r,{get:()=>e[r],enumerable:!(n=yC(e,r))||n.enumerable});return i};var xp=(i,e,t)=>(t=i!=null?vC(_C(i)):{},dy(e||!i||!i.__esModule?xl(t,"default",{value:i,enumerable:!0}):t,i)),xC=i=>dy(xl({},"__esModule",{value:!0}),i);var te=(i,e,t)=>(kC(i,typeof e!="symbol"?e+"":e,t),t),hy=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var Zu=(i,e,t)=>(hy(i,e,"read from private field"),t?t.call(i):e.get(i)),Pl=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)};var Pp=(i,e,t)=>(hy(i,e,"access private method"),t);var Vp=De((gF,wy)=>{"use strict";var Fp=Object.defineProperty,uE=Object.getOwnPropertyDescriptor,fE=Object.getOwnPropertyNames,dE=Object.prototype.hasOwnProperty,hE=(i,e)=>{for(var t in e)Fp(i,t,{get:e[t],enumerable:!0})},pE=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fE(e))!dE.call(i,r)&&r!==t&&Fp(i,r,{get:()=>e[r],enumerable:!(n=uE(e,r))||n.enumerable});return i},mE=i=>pE(Fp({},"__esModule",{value:!0}),i),_y={};hE(_y,{FileInputSuggest:()=>OE,FolderInputSuggest:()=>gE,FuzzyInputSuggest:()=>Bp,setNodeIcon:()=>bE});wy.exports=mE(_y);var $p=require("obsidian"),Bp=class extends $p.AbstractInputSuggest{constructor(i,e,t){super(i,e.inputEl),this.items=t}getSuggestions(i){let e=(0,$p.prepareSimpleSearch)(i),t=[];for(let n of this.items){let r=e(this.getItemText(n));r&&t.push({item:n,match:r})}return t}renderSuggestion(i,e){e.addClass("mod-complex");let t=e.createDiv({cls:"suggestion-content"});if(!i?.item){t.setText("No match found"),t.parentElement?.addClass("is-selected");return}let n=t.createDiv("suggestion-title");this.renderTitle(n,i);let r=t.createDiv("suggestion-note");this.renderNote(r,i)}renderMatches(i,e,t,n){(0,$p.renderMatches)(i,e,t,n)}},yy=require("obsidian"),gE=class extends Bp{getItemText(i){return i.path}renderNote(i,e){let{item:t,match:n}=e;(0,yy.renderMatches)(i,t.path,n.matches)}renderTitle(i,e){let{item:t,match:n}=e;(0,yy.renderMatches)(i,t.name,n.matches,t.path.length-t.name.length)}},by=require("obsidian"),OE=class extends Bp{getItemText(i){return i.path}renderNote(i,e){let{item:t,match:n}=e;(0,by.renderMatches)(i,t.path,n.matches)}renderTitle(i,e){let{item:t,match:n}=e;(0,by.renderMatches)(i,t.name,n.matches,t.path.length-t.name.length)}},vE=require("obsidian"),yE={"has-node-icon":"helpers_has-node-icon","x-small":"helpers_x-small",small:"helpers_small",medium:"helpers_medium",large:"helpers_large","x-large":"helpers_x-large"};function bE(i,e){i.addClass(yE["has-node-icon"]),(0,vE.setIcon)(i,e)}});var iu=De(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.regexpCode=pt.getEsmExportName=pt.getProperty=pt.safeStringify=pt.stringify=pt.strConcat=pt.addCodeArg=pt.str=pt._=pt.nil=pt._Code=pt.Name=pt.IDENTIFIER=pt._CodeOrName=void 0;var eu=class{};pt._CodeOrName=eu;pt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Uo=class extends eu{constructor(e){if(super(),!pt.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};pt.Name=Uo;var Bn=class extends eu{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((t,n)=>`${t}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((t,n)=>(n instanceof Uo&&(t[n.str]=(t[n.str]||0)+1),t),{})}};pt._Code=Bn;pt.nil=new Bn("");function a4(i,...e){let t=[i[0]],n=0;for(;n<e.length;)SO(t,e[n]),t.push(i[++n]);return new Bn(t)}pt._=a4;var kO=new Bn("+");function l4(i,...e){let t=[tu(i[0])],n=0;for(;n<e.length;)t.push(kO),SO(t,e[n]),t.push(kO,tu(i[++n]));return TN(t),new Bn(t)}pt.str=l4;function SO(i,e){e instanceof Bn?i.push(...e._items):e instanceof Uo?i.push(e):i.push(QN(e))}pt.addCodeArg=SO;function TN(i){let e=1;for(;e<i.length-1;){if(i[e]===kO){let t=AN(i[e-1],i[e+1]);if(t!==void 0){i.splice(e-1,3,t);continue}i[e++]="+"}e++}}function AN(i,e){if(e==='""')return i;if(i==='""')return e;if(typeof i=="string")return e instanceof Uo||i[i.length-1]!=='"'?void 0:typeof e!="string"?`${i.slice(0,-1)}${e}"`:e[0]==='"'?i.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(i instanceof Uo))return`"${i}${e.slice(1)}`}function DN(i,e){return e.emptyStr()?i:i.emptyStrLine truncated
|
||||
`:""},this._extScope=e,this._scope=new yr.Scope({parent:e}),this._nodes=[new IO]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let s=this._scope.toName(t);return n!==void 0&&r&&(this._constants[s.str]=n),this._leafNode(new TO(e,s,n)),s}const(e,t,n){return this._def(yr.varKinds.const,e,t,n)}let(e,t,n){return this._def(yr.varKinds.let,e,t,n)}var(e,t,n){return this._def(yr.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new jh(e,t,n))}add(e,t){return this._leafNode(new AO(e,Ue.operators.ADD,t))}code(e){return typeof e=="function"?e():e!==st.nil&&this._leafNode(new MO(e)),this}object(...e){let t=["{"];for(let[n,r]of e)t.length>1&&t.push(","),t.push(n),(n!==r||this.opts.es5)&&(t.push(":"),(0,st.addCodeArg)(t,r));return t.push("}"),new st._Code(t)}if(e,t,n){if(this._blockNode(new Ho(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ho(e))}else(){return this._elseNode(new ol)}endIf(){return this._endBlockNode(Ho,ol)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new NO(e),t)}forRange(e,t,n,r,s=this.opts.es5?yr.varKinds.var:yr.varKinds.let){let o=this._scope.toName(e);return this._for(new jO(s,o,t,n),()=>r(o))}forOf(e,t,n,r=yr.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let o=t instanceof st.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,st._)`${o}.length`,a=>{this.var(s,(0,st._)`${o}[${a}]`),n(s)})}return this._for(new Zh("of",r,s,t),()=>n(s))}forIn(e,t,n,r=this.opts.es5?yr.varKinds.var:yr.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,st._)`Object.keys(${t})`,n);let s=this._scope.toName(e);return this._for(new Zh("in",r,s,t),()=>n(s))}endFor(){return this._endBlockNode(Go)}label(e){return this._leafNode(new DO(e))}break(e){return this._leafNode(new QO(e))}return(e){let t=new su;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(su)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let r=new ZO;if(this._blockNode(r),this.code(e),t){let s=this.name("e");this._currNode=r.catch=new ou(s),t(s)}return n&&(this._currNode=r.finally=new au,this.code(n)),this._endBlockNode(ou,au)}throw(e){return this._leafNode(new RO(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=st.nil,n,r){return this._blockNode(new ru(e,t,n)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(ru)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof Ho))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};Ue.CodeGen=zO;function Ko(i,e){for(let t in e)i[t]=(i[t]||0)+(e[t]||0);return i}function zh(i,e){return e instanceof st._CodeOrName?Ko(i,e.names):i}function al(i,e,t){if(i instanceof st.Name)return n(i);if(!r(i))return i;return new st._Code(i._items.reduce((s,o)=>(o instanceof st.Name&&(o=n(o)),o instanceof st._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=t[s.str];return o===void 0||e[s.str]!==1?s:(delete e[s.str],o)}function r(s){return s instanceof st._Code&&s._items.some(o=>o instanceof st.Name&&e[o.str]===1&&t[o.str]!==void 0)}}function ZN(i,e){for(let t in e)i[t]=(i[t]||0)-(e[t]||0)}function c4(i){return typeof i=="boolean"||typeof i=="number"||i===null?!i:(0,st._)`!${qO(i)}`}Ue.not=c4;var zN=u4(Ue.operators.AND);function qN(...i){return i.reduce(zN)}Ue.and=qN;var LN=u4(Ue.operators.OR);function $N(...i){return i.reduce(LN)}Ue.or=$N;function u4(i){return(e,t)=>e===st.nil?t:t===st.nil?e:(0,st._)`${qO(e)} ${i} ${qO(t)}`}function qO(i){return i instanceof st.Name?i:(0,st._)`(${Line truncated
|
||||
|| (${o} == "string" && ${r} && ${r} == +${r})`).assign(a,(0,Ve._)`+${r}`);return;case"integer":n.elseIf((0,Ve._)`${o} === "boolean" || ${r} === null
|
||||
|| (${o} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(a,(0,Ve._)`+${r}`);return;case"boolean":n.elseIf((0,Ve._)`${r} === "false" || ${r} === 0 || ${r} === null`).assign(a,!1).elseIf((0,Ve._)`${r} === "true" || ${r} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Ve._)`${r} === "" || ${r} === 0 || ${r} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Ve._)`${o} === "string" || ${o} === "number"
|
||||
|| ${o} === "boolean" || ${r} === null`).assign(a,(0,Ve._)`[${r}]`)}}}function Pj({gen:i,parentData:e,parentDataProperty:t},n){i.if((0,Ve._)`${e} !== undefined`,()=>i.assign((0,Ve._)`${e}[${t}]`,n))}function WO(i,e,t,n=cu.Correct){let r=n===cu.Correct?Ve.operators.EQ:Ve.operators.NEQ,s;switch(i){case"null":return(0,Ve._)`${e} ${r} null`;case"array":s=(0,Ve._)`Array.isArray(${e})`;break;case"object":s=(0,Ve._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=o((0,Ve._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=o();break;default:return(0,Ve._)`typeof ${e} ${r} ${i}`}return n===cu.Correct?s:(0,Ve.not)(s);function o(a=Ve.nil){return(0,Ve.and)((0,Ve._)`typeof ${e} == "number"`,a,t?(0,Ve._)`isFinite(${e})`:Ve.nil)}}Qi.checkDataType=WO;function XO(i,e,t,n){if(i.length===1)return WO(i[0],e,t,n);let r,s=(0,P4.toHash)(i);if(s.array&&s.object){let o=(0,Ve._)`typeof ${e} != "object"`;r=s.null?o:(0,Ve._)`!${e} || ${o}`,delete s.null,delete s.array,delete s.object}else r=Ve.nil;s.number&&delete s.integer;for(let o in s)r=(0,Ve.and)(r,WO(o,e,t,n));return r}Qi.checkDataTypes=XO;var Cj={message:({schema:i})=>`must be ${i}`,params:({schema:i,schemaValue:e})=>typeof i=="string"?(0,Ve._)`{type: ${i}}`:(0,Ve._)`{type: ${e}}`};function YO(i){let e=Ej(i);(0,_j.reportError)(e,Cj)}Qi.reportTypeError=YO;function Ej(i){let{gen:e,data:t,schema:n}=i,r=(0,P4.schemaRefOrVal)(i,n,"type");return{gen:e,keyword:"type",data:t,schema:n.type,schemaCode:r,schemaValue:r,parentSchema:n,params:{},it:i}}});var A4=De($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.assignDefaults=void 0;var ul=Je(),Tj=mt();function Aj(i,e){let{properties:t,items:n}=i.schema;if(e==="object"&&t)for(let r in t)T4(i,r,t[r].default);else e==="array"&&Array.isArray(n)&&n.forEach((r,s)=>T4(i,s,r.default))}$h.assignDefaults=Aj;function T4(i,e,t){let{gen:n,compositeRule:r,data:s,opts:o}=i;if(t===void 0)return;let a=(0,ul._)`${s}${(0,ul.getProperty)(e)}`;if(r){(0,Tj.checkStrictMode)(i,`default is ignored for: ${a}`);return}let l=(0,ul._)`${a} === undefined`;o.useDefaults==="empty"&&(l=(0,ul._)`${l} || ${a} === null || ${a} === ""`),n.if(l,(0,ul._)`${a} = ${(0,ul.stringify)(t)}`)}});var Vn=De(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.validateUnion=Et.validateArray=Et.usePattern=Et.callValidateCode=Et.schemaProperties=Et.allSchemaProperties=Et.noPropertyInData=Et.propertyInData=Et.isOwnProperty=Et.hasPropFunc=Et.reportMissingProp=Et.checkMissingProp=Et.checkReportMissingProp=void 0;var Lt=Je(),UO=mt(),so=_s(),Dj=mt();function Qj(i,e){let{gen:t,data:n,it:r}=i;t.if(GO(t,n,e,r.opts.ownProperties),()=>{i.setParams({missingProperty:(0,Lt._)`${e}`},!0),i.error()})}Et.checkReportMissingProp=Qj;function Rj({gen:i,data:e,it:{opts:t}},n,r){return(0,Lt.or)(...n.map(s=>(0,Lt.and)(GO(i,e,s,t.ownProperties),(0,Lt._)`${r} = ${s}`)))}Et.checkMissingProp=Rj;function Mj(i,e){i.setParams({missingProperty:e},!0),i.error()}Et.reportMissingProp=Mj;function D4(i){return i.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Lt._)`Object.prototype.hasOwnProperty`})}Et.hasPropFunc=D4;function HO(i,e,t){return(0,Lt._)`${D4(i)}.call(${e}, ${t})`}Et.isOwnProperty=HO;function Ij(i,e,t,n){let r=(0,Lt._)`${e}${(0,Lt.getProperty)(t)} !== undefined`;return n?(0,Lt._)`${r} && ${HO(i,e,t)}`:r}Et.propertyInData=Ij;function GO(i,e,t,n){let r=(0,Lt._)`${e}${(0,Lt.getProperty)(t)} === undefined`;return n?(0,Lt.or)(r,(0,Lt.not)(HO(i,e,t))):r}Et.noPropertyInData=GO;function Q4(i){return i?Object.keys(i).filter(e=>e!=="__proto__"):[]}Et.allSchemaProperties=Q4;function Nj(i,e){return Q4(e).filter(t=>!(0,UO.alwaysValidSchema)(i,e[t]))}Et.schemaProperties=Nj;function jj({schemaCode:i,data:e,it:{gen:t,topSchemaRef:n,schemaPath:r,errorPath:s},it:o},a,l,c){let u=c?(0,Lt._)`${i}, ${e}, ${n}${r}`:e,f=[[so.default.instancePath,(0,Lt.strConcat)(so.default.instancePath,s)],[so.default.parentData,o.parentData],[so.default.parentDataProperty,o.parentDataProperty],[so.default.rootData,so.default.rootData]];o.opts.dynamicRef&&f.push([so.default.dynamicAnchors,so.default.dynamicAnchors]);let d=(0,Lt._)`${u}, ${t.object(...f)}`;return l!==Lt.nil?(0,Lt._)`${a}.call(${l}, ${d})`:(0,Lt._)`${a}(${d})`}Et.callValidateCode=jj;var Zj=(0,Lt._)`new RegExp`;function zj({gen:i,it:{opts:e}},t){let n=e.unicodeRegExp?"u":"",{regExp:r}=e.code,s=r(t,n);return i.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Lt._)`${r.code==="new RegExp"?Zj:(0,Dj.useFunc)(i,r)}(${t}, ${n})`})}Et.usePattern=zj;function qj(i){let{gen:e,data:t,keyword:n,it:r}=i,s=e.name("valid");if(r.allErrors){let a=e.let("valid",!0);return o(()=>e.assign(a,!1)),a}return e.var(s,!0),o(()=>e.break()),s;function o(a){let l=e.const("len",(0,Lt._)`${t}.length`);e.forRange("i",0,l,c=>{i.subschema({keyword:n,dataProp:c,dataPropType:UO.Type.Num},s),e.if((0,Lt.not)(s),a)})}}Et.validateArray=qj;function Lj(i){let{gen:e,schema:t,keyword:n,it:r}=i;if(!Array.isArray(t))throw new Er
Line truncated
|
||||
missingProperty: ${n},
|
||||
depsCount: ${e},
|
||||
deps: ${t}}`};var mq={keyword:"dependencies",type:"object",schemaType:"object",error:es.error,code(i){let[e,t]=gq(i);W3(i,e),X3(i,t)}};function gq({schema:i}){let e={},t={};for(let n in i){if(n==="__proto__")continue;let r=Array.isArray(i[n])?e:t;r[n]=i[n]}return[e,t]}function W3(i,e=i.schema){let{gen:t,data:n,it:r}=i;if(Object.keys(e).length===0)return;let s=t.let("missing");for(let o in e){let a=e[o];if(a.length===0)continue;let l=(0,Pu.propertyInData)(t,n,o,r.opts.ownProperties);i.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),r.allErrors?t.if(l,()=>{for(let c of a)(0,Pu.checkReportMissingProp)(i,c)}):(t.if((0,Nv._)`${l} && (${(0,Pu.checkMissingProp)(i,a,s)})`),(0,Pu.reportMissingProp)(i,s),t.else())}}es.validatePropertyDeps=W3;function X3(i,e=i.schema){let{gen:t,data:n,keyword:r,it:s}=i,o=t.name("valid");for(let a in e)(0,pq.alwaysValidSchema)(s,e[a])||(t.if((0,Pu.propertyInData)(t,n,a,s.opts.ownProperties),()=>{let l=i.subschema({keyword:r,schemaProp:a},o);i.mergeValidEvaluated(l,o)},()=>t.var(o,!0)),i.ok(o))}es.validateSchemaDeps=X3;es.default=mq});var H3=De(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});var U3=Je(),Oq=mt(),vq={message:"property name must be valid",params:({params:i})=>(0,U3._)`{propertyName: ${i.propertyName}}`},yq={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:vq,code(i){let{gen:e,schema:t,data:n,it:r}=i;if((0,Oq.alwaysValidSchema)(r,t))return;let s=e.name("valid");e.forIn("key",n,o=>{i.setParams({propertyName:o}),i.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),e.if((0,U3.not)(s),()=>{i.error(!0),r.allErrors||e.break()})}),i.ok(s)}};jv.default=yq});var zv=De(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});var op=Vn(),wr=Je(),bq=_s(),ap=mt(),_q={message:"must NOT have additional properties",params:({params:i})=>(0,wr._)`{additionalProperty: ${i.additionalProperty}}`},wq={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:_q,code(i){let{gen:e,schema:t,parentSchema:n,data:r,errsCount:s,it:o}=i;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,ap.alwaysValidSchema)(o,t))return;let c=(0,op.allSchemaProperties)(n.properties),u=(0,op.allSchemaProperties)(n.patternProperties);f(),i.ok((0,wr._)`${s} === ${bq.default.errors}`);function f(){e.forIn("key",r,g=>{!c.length&&!u.length?p(g):e.if(d(g),()=>p(g))})}function d(g){let O;if(c.length>8){let _=(0,ap.schemaRefOrVal)(o,n.properties,"properties");O=(0,op.isOwnProperty)(e,_,g)}else c.length?O=(0,wr.or)(...c.map(_=>(0,wr._)`${g} === ${_}`)):O=wr.nil;return u.length&&(O=(0,wr.or)(O,...u.map(_=>(0,wr._)`${(0,op.usePattern)(i,_)}.test(${g})`))),(0,wr.not)(O)}function h(g){e.code((0,wr._)`delete ${r}[${g}]`)}function p(g){if(l.removeAdditional==="all"||l.removeAdditional&&t===!1){h(g);return}if(t===!1){i.setParams({additionalProperty:g}),i.error(),a||e.break();return}if(typeof t=="object"&&!(0,ap.alwaysValidSchema)(o,t)){let O=e.name("valid");l.removeAdditional==="failing"?(m(g,O,!1),e.if((0,wr.not)(O),()=>{i.reset(),h(g)})):(m(g,O),a||e.if((0,wr.not)(O),()=>e.break()))}}function m(g,O,_){let S={keyword:"additionalProperties",dataProp:g,dataPropType:ap.Type.Str};_===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(S,O)}}};Zv.default=wq});var J3=De(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var kq=pu(),G3=Vn(),qv=mt(),K3=zv(),Sq={keyword:"properties",type:"object",schemaType:"object",code(i){let{gen:e,schema:t,parentSchema:n,data:r,it:s}=i;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&K3.default.code(new kq.KeywordCxt(s,K3.default,"additionalProperties"));let o=(0,G3.allSchemaProperties)(t);for(let f of o)s.definedProperties.add(f);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=qv.mergeEvaluated.props(e,(0,qv.toHash)(o),s.props));let a=o.filter(f=>!(0,qv.alwaysValidSchema)(s,t[f]));if(a.length===0)return;let l=e.name("valid");for(let f of a)c(f)?u(f):(e.if((0,G3.propertyInData)(e,r,f,s.opts.ownProperties)),u(f),s.allErrors||e.else().var(l,!0),e.endIf()),i.it.definedProperties.add(f),i.ok(l);function c(f){return s.opts.useDefaults&&!s.compositeRule&&t[f].default!==void 0}function u(f){i.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};Lv.default=Sq});var n5=De($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});var e5=Vn(),lp=Je(),t5=mt(),i5=mt(),xq={keyword:"patternProperties",type:"object",schemaType:"object",code(i){let{gen:e,schema:t,data:n,parentSchema:r,it:s}=i,{opts:o}=s,a=(0,e5.allSchemaProperties)(t),l=a.filter(m=>(0,t5.alwaysValidSchema)(s,t[m]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let c=o.strictSchema&&!o.allowMatchingProperties&&r.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof lp.Name)&&(s.p
Line truncated
|
||||
Attack rolls against the creature have advantage, and the creature\u2019s Attack rolls have disadvantage.`},{name:"Charmed",id:"Charmed",description:`A charmed creature can\u2019t Attack the charmer or target the charmer with harmful Abilities or magical Effects.
|
||||
The charmer has advantage on any ability check to interact socially with the creature.`},{name:"Concentrating",id:"Concentrating",description:`Some spells require you to maintain concentration in order to keep their magic active. If you lose concentration, such a spell ends.
|
||||
A creature loses concentration when: it casts another spell that requires concentration, is incapacitated, or dies.
|
||||
When a creature takes damage, it must make a constitution saving throw with a DC of 10 or half the damage it took, whichever is higher. On a failure, concentration is lost.`},{name:"Deafened",id:"Deafened",description:"A deafened creature can\u2019t hear and automatically fails any ability check that requires hearing."},{name:"Frightened",id:"Frightened",description:`A frightened creature has disadvantage on Ability Checks and Attack rolls while the source of its fear is within Line of Sight.
|
||||
The creature can\u2019t willingly move closer to the source of its fear.`},{name:"Grappled",id:"Grappled",description:`A grappled creature\u2019s speed becomes 0, and it can\u2019t benefit from any bonus to its speed.
|
||||
The condition ends if the Grappler is incapacitated.
|
||||
The condition also ends if an Effect removes the grappled creature from the reach of the Grappler or Grappling Effect, such as when a creature is hurled away by the Thunderwave spell.`},{name:"Incapacitated",id:"Incapacitated",description:"An incapacitated creature can\u2019t take Actions or Reactions."},{name:"Invisible",id:"Invisible",description:`An invisible creature is impossible to see without the aid of magic or a Special sense. For the Purpose of Hiding, the creature is heavily obscured. The creature\u2019s Location can be detected by any noise it makes or any tracks it leaves.
|
||||
Attack rolls against the creature have disadvantage, and the creature\u2019s Attack rolls have advantage.`},{name:"Paralyzed",id:"Paralyzed",description:`A paralyzed creature is incapacitated and can\u2019t move or speak.
|
||||
The creature automatically fails Strength and Dexterity Saving Throws.
|
||||
Attack rolls against the creature have advantage.
|
||||
Any Attack that hits the creature is a critical hit if the attacker is within 5 feet of the creature.`},{name:"Petrified",id:"Petrified",description:`A petrified creature is transformed, along with any nonmagical object it is wearing or carrying, into a solid inanimate substance (usually stone). Its weight increases by a factor of ten, and it ceases aging.
|
||||
The creature is incapacitated, can\u2019t move or speak, and is unaware of its surroundings.
|
||||
Attack rolls against the creature have advantage.
|
||||
The creature automatically fails Strength and Dexterity Saving Throws.
|
||||
The creature has Resistance to all damage.
|
||||
The creature is immune to poison and disease, although a poison or disease already in its system is suspended, not neutralized.`},{name:"Poisoned",id:"Poisoned",description:"A poisoned creature has disadvantage on Attack rolls and Ability Checks."},{name:"Prone",id:"Prone",description:`A prone creature\u2019s only Movement option is to crawl, unless it stands up and thereby ends the condition.
|
||||
The creature has disadvantage on Attack rolls.
|
||||
An Attack roll against the creature has advantage if the attacker is within 5 feet of the creature. Otherwise, the Attack roll has disadvantage.`},{name:"Reacted",id:"Reacted",description:`A creature, unless otherwise specified, gets one reaction per round of combat.
|
||||
A reaction is an instant response to a trigger of some kind, which can occur on your turn or on someone else\u2019s.
|
||||
A reaction can be spent to make an opportunity attack, do a readied action, or use an ability that requires a reaction.
|
||||
A creature that has already reacted cannot use a reaction until the start of its turn.`},{name:"Restrained",id:"Restrained",description:`A restrained creature\u2019s speed becomes 0, and it can\u2019t benefit from any bonus to its speed.
|
||||
Attack rolls against the creature have advantage, and the creature\u2019s Attack rolls have disadvantage.
|
||||
The creature has disadvantage on Dexterity Saving Throws.`},{name:"Stunned",id:"Stunned",description:`A stunned creature is incapacitated, can\u2019t move, and can speak only falteringly.
|
||||
The creature automatically fails Strength and Dexterity Saving Throws.
|
||||
Attack rolls against the creature have advantage.`},{name:"Unconscious",id:"Unconscious",description:`An unconscious creature is incapacitated, can\u2019t move or speak, and is unaware of its surroundings.
|
||||
The creature drops whatever it\u2019s holding and falls prone.
|
||||
The creature automatically fails Strength and Dexterity Saving Throws.
|
||||
Attack rolls against the creature have advantage.
|
||||
Any Attack that hits the creature is a critical hit if the attacker is within 5 feet of the creature.`}];var bo="initiative-tracker-view",_o="initiative-tracker-player-view",pa="initiative-tracker-creature-view";var We="\u2013",C$=py.Platform.isMacOS?"Meta":"Control";var Mn={ignore:"ignore",current:"current",temp:"temp"},Kn={playerFirst:"playerFirst",npcFirst:"npcFirst",random:"random"},my={players:[],parties:[],defaultParty:null,statuses:[...os],unconsciousId:"Unconscious",version:[],canUseDiceRoll:!1,preferStatblockLink:!1,initiative:"1d20 + %mod%",modifier:null,sync:!1,playerMarker:"default",monsterMarker:"default",state:{creatures:[],state:!1,name:null,round:null,logFile:null},condense:!1,clamp:!0,autoStatus:!0,beginnerTips:!0,displayDifficulty:!0,encounters:{},warnedAboutImports:!1,openState:{battle:!0,party:!0,status:!0,plugin:!0,player:!0,builder:!0},hpOverflow:Mn.ignore,additiveTemp:!1,rpgSystem:"dnd5e",logging:!1,logFolder:"/",resolveTies:Kn.playerFirst,useLegacy:!1,diplayPlayerHPValues:!0,rollHP:!1,descending:!0,builder:{showParty:!0,showXP:!0,sidebarIcon:!0},rollPlayerInitiatives:0},Cp={.125:"\u215B",.25:"\xBC",.375:"\u215C",.5:"\xBD",.625:"\u215D",.75:"\xBE",.875:"\u215E"};var cE=require("obsidian");var vt=require("obsidian"),as="RANDOM_HP";function gy(){(0,vt.addIcon)(as,`<svg fill="currentColor" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 548.5 437.8" style="enable-background:new 0 0 548.5 437.8;" xml:space="preserve">
|
||||
<g id="Layer_1">
|
||||
</g>
|
||||
<g id="Layer_3">
|
||||
<path d="M278.8,409.6L256.2,387l-0.2,0.2l-175.7-164C59.7,203.9,48,176.9,48,148.7v-5.8c0-46.4,33.5-86,79.3-93.7
|
||||
c30.3-5,61.1,4.8,82.8,25.7l45,46.8l46.8-46.8c21.7-20.8,52.5-30.7,82.8-25.7c45.7,7.6,79.3,47.3,79.3,93.7v5.8
|
||||
c0,26-9.9,50.9-27.6,69.7l6.5,6.5h48.3c13.5-22.9,20.8-49.2,20.8-76.2v-5.8c0-69.9-50.5-129.5-119.4-141
|
||||
c-45.6-7.6-92,7.3-125.5,39.9l-12,12l-11.1-12c0,0-0.9,0,0,0C211.4,9.2,164.1-5.6,119.4,1.9C50.5,13.4,0,73,0,142.9v5.8
|
||||
c0,41.5,17.2,81.2,47.6,109.5l180.7,168.7c7.5,7,17.4,10.9,27.7,10.9s20.2-3.9,27.7-10.9l8.4-7.8
|
||||
C287.2,416.7,282.7,413.5,278.8,409.6z"/>
|
||||
</g>
|
||||
<g id="Layer_2">
|
||||
<path d="M331.3,151c-8.7-8.7-22.9-8.7-31.7,0L196.6,254.1c-8.7,8.7-8.7,22.9,0,31.7l103.1,103.1c8.7,8.7,22.9,8.7,31.7,0
|
||||
l103.1-103.1c8.7-8.7,8.7-22.9,0-31.7L331.3,151L331.3,151z M328.9,269.9c0,7.4-6,13.4-13.4,13.4s-13.4-6-13.4-13.4
|
||||
s6-13.4,13.4-13.4S328.9,262.5,328.9,269.9z M243.8,283.4c-7.4,0-13.4-6-13.4-13.4s6-13.4,13.4-13.4c7.4,0,13.4,6,13.4,13.4
|
||||
S251.2,283.4,243.8,283.4z M315.5,328.2c7.4,0,13.4,6,13.4,13.4s-6,13.4-13.4,13.4s-13.4-6-13.4-13.4S308,328.2,315.5,328.2z
|
||||
M387.1,283.4c-7.4,0-13.4-6-13.4-13.4s6-13.4,13.4-13.4s13.4,6,13.4,13.4S394.6,283.4,387.1,283.4z M315.5,184.8
|
||||
c7.4,0,13.4,6,13.4,13.4c0,7.4-6,13.4-13.4,13.4s-13.4-6-13.4-13.4C302,190.8,308,184.8,315.5,184.8z M369.2,404.3
|
||||
c0,14.8,12,26.9,26.9,26.9h125.5c14.8,0,26.9-12,26.9-26.9V278.9c0-14.8-12-26.9-26.9-26.9h-66.9c7.5,15.1,4.9,33.9-7.6,46.4
|
||||
l-77.8,77.8V404.3z M458.8,355c-7.4,0-13.4-6-13.4-13.4s6-13.4,13.4-13.4s13.4,6,13.4,13.4S466.3,355,458.8,355z"/>
|
||||
</g>
|
||||
</svg>`),(0,vt.addIcon)(Qp,CC),(0,vt.addIcon)(Cl,TC),(0,vt.addIcon)(Rp,AC),(0,vt.addIcon)(DC,QC),(0,vt.addIcon)(Mp,RC),(0,vt.addIcon)(Ip,MC),(0,vt.addIcon)(Np,IC),(0,vt.addIcon)(jp,NC),(0,vt.addIcon)(jC,ZC),(0,vt.addIcon)(an,zC),(0,vt.addIcon)(tr,qC),(0,vt.addIcon)(LC,$C),(0,vt.addIcon)(Tl,BC),(0,vt.addIcon)(El,FC),(0,vt.addIcon)(Zp,XC),(0,vt.addIcon)(VC,WC),(0,vt.addIcon)(wo,YC),(0,vt.addIcon)(zp,UC),(0,vt.addIcon)(Lu,HC),(0,vt.addIcon)(Ts,GC),(0,vt.addIcon)(ls,EC),(0,vt.addIcon)(qp,KC),(0,vt.addIcon)(zu,'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="users" class="svg-inline--fa fa-users fa-w-20" role="img" viewBox="0 0 640 512"><path fill="currentColor" d="M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"/></svg>'),(0,vt.addIcon)(Ep,'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="users-slash" class="svg-inline--fa fa-users-slash fa-w-20" role="img" viewBox="0 0 640 512"><path fill="currentColor" d="M132.65,212.32,36.21,137.78A63.4,63.4,0,0,0,32,160a63.84,63.84,0,0,0,100.65,52.32Zm40.44,62.28A63.79,63.79,0,0,0,128,256H64A64.06,64.06,0,0,0,0,320v32a32,32,0,0,0,32,32H97.91A146.62,146.62,0,0,1,173.09,274.6ZM544,224a64,64,0,1,0-64-64A64.06,64.06,0,0,0,544,224ZM500.56,355.11a114.24,114.24,0,0,0-84.47-65.28L361,247.23c41.46-16.3,71-55.92,71-103.23A111.93,111.93,0,0,0,320,32c-57.14,0-103.69,42.83-110.6,98.08L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM128,403.21V432a48,48,0,0,0,48,48H464a47.45,47.45,0,0,0,12.57-1.87L232,289.13C173.74,294.83,128,343.42,128,403.21ZM576,256H512a63.79,63.79,0,0,0-45.09,18.6A146.29,146.29,0,0,1,542,384h66a32,32,0,0,0,32-32V320A64.06,64.06,0,0,0,576,256Z"/></svg>'),(0,vt.addIcon)(PC,'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="angle-right" class="svg-inline--fa fa-angle-right fa-w-8" role="img" viewBox="0 0 256 512"><path fill="currentColor" d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg>'),(0,vt.addIcon)(Tp,'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="dragon" class="svg-inline--fa fa-dragon fa-w-20" role="img" viewBox="0 0 640 512"><path fill="currentColor" d="M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"/></svg>'),(0,vt.addIcon)(JC,eE),(0,vt.addIcon)(Er,tE),(0,vt.addIcon)(Dp,'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-down-0-1"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><rect x="15" y="4" width="4" height="6" ry="2"></rect><path d="M17 20v-6h-2"></path><path d="M15 20h4"></path></svg>'),(0,vt.addIcon)(Ap,'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-down-a-z"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="M20 8h-5"></path><path d="M15 10V6.5a2.5 2.5 0 0 1 5 0V10"></path><path d="M15 14h5l-5 6h5"></path></svg>')}var Ep="expand-creatures",zu="group-creatures",PC="initiative-tracker-active",Tp="initiative-tracker-creature-view",Jn="eye-off",er="heart-handshake",Ap="ARROW_DOWN_A-Z",Dp="ARROW_DOWN_0-1",Qp="initiative-tracker",CC='<svg
Line truncated
|
||||
`),f=`Encounter is ${c}
|
||||
Total XP: ${r}
|
||||
Adjusted XP: ${a} (x${o})
|
||||
|
||||
Threshold
|
||||
${u}`;return{displayName:c,summary:f,cssClass:c.toLowerCase(),value:a,title:"Adjusted XP",intermediateValues:[{label:"Total XP",value:r}]}}getDifficultyThresholds(t){let n={easy:0,medium:0,hard:0,deadly:0},r=t.filter(s=>s&&s>0).map(s=>Math.max(1,Math.min(s,20)));return Object.keys(n).forEach(s=>{n[s]+=r.reduce((o,a)=>o+(Oy[a]?.[s]??0),0)}),Object.entries(n).map(([s,o])=>({displayName:s.charAt(0).toUpperCase()+s.slice(1),minValue:o})).sort((s,o)=>s.minValue-o.minValue)}getAdditionalDifficultyBudgets(t){return[{displayName:"Daily Budget",minValue:t.filter(n=>n&&n>0).reduce((n,r)=>n+Oy[Math.max(1,Math.min(r,20))].daily,0)}]}};$u=new WeakSet,vy=function(t,n){let r=[.5,1,1.5,2,2.5,3,4,5],s=1;switch(n<3?s++:n>5&&s--,!0){case t>=15:{s+=5;break}case t>=11:{s+=4;break}case t>=7:{s+=3;break}case t>=3:{s+=2;break}case t>=2:{s+=1;break}}return r[Math.min(s,r.length-1)]};var Fu=class extends ln{constructor(t){super();te(this,"plugin");te(this,"dnd5eRpgSystem");te(this,"systemDifficulties",["Not Deadly","Deadly"]);this.plugin=t,this.valueUnit="CR",this.displayName="DnD 5e Lazy GM",this.dnd5eRpgSystem=new ma(t)}getCreatureDifficulty(t,n){return hi(cn(this.plugin,t,r=>r?.cr??0))}getAdditionalCreatureDifficultyStats(t,n){let r=this.dnd5eRpgSystem.getCreatureDifficulty(t);return[this.dnd5eRpgSystem.formatDifficultyValue(r,!0)]}getDifficultyThresholds(t){let n=t.reduce((s,o)=>s+o,0),r=t.length>0?n/t.length:0;return[{displayName:"Deadly",minValue:n/(r>4?2:4)}]}getEncounterDifficulty(t,n){let r=[...t].reduce((c,[u,f])=>c+this.getCreatureDifficulty(u)*f,0),s=this.getDifficultyThresholds(n).first()?.minValue??0,o=r>s?"Deadly":"Not Deadly",a=[...t].reduce((c,[u,f])=>c+this.dnd5eRpgSystem.getCreatureDifficulty(u)*f,0),l=`Encounter is ${o}
|
||||
Total XP: ${a}
|
||||
Total CR: ${r}
|
||||
Total levels: ${n.reduce((c,u)=>c+u,0)}
|
||||
Deadly Threshold: ${s}`;return{displayName:o,summary:l,cssClass:o=="Deadly"?"deadly":"easy",value:r,title:"Total CR",intermediateValues:[{label:"Total XP",value:a}]}}formatDifficultyValue(t,n){return t?cs(t)+(n?" CR":""):We}};var nE={1:11,2:14,3:18,4:23,5:32,6:35,7:41,8:44,9:49,10:53,11:62,12:68,13:71,14:74,15:82,16:84,17:103,18:119,19:131,20:141},rE={0:1,"1/8":5,"0.25":5,"1/4":10,"0.5":10,"1/2":16,1:22,2:28,3:37,4:48,5:60,6:65,7:70,8:85,9:85,10:95,11:106,12:115,13:120,14:125,15:130,16:140,17:150,18:160,19:165,20:180,21:200,22:225,23:250,24:275,25:300,26:325,27:350,28:375,29:400,30:425},sE={Mild:"easy",Bruising:"medium",Bloddy:"medium",Brutal:"hard",Oppressive:"deadly"},Bu=class extends ln{constructor(t){super();te(this,"plugin");te(this,"valueUnit","Power");te(this,"systemDifficulties",["Mild","Bruising","Bloody","Brutal","Oppressive"]);this.plugin=t,this.displayName="DnD 5e CR2.0 Simple"}getCreatureDifficulty(t,n){let r=cn(this.plugin,t,s=>s?.cr??"0");return rE[r]??0}getAdditionalCreatureDifficultyStats(t,n){let r=cn(this.plugin,t,s=>s?.cr??0);return[`${cs(r)} CR`]}getEncounterDifficulty(t,n){let r=[...t].reduce((c,[u,f])=>c+this.getCreatureDifficulty(u)*f,0),s=this.getDifficultyThresholds(n),o=s.reverse().find(c=>r>=c.minValue)?.displayName??"Mild",a=s.map(c=>`${c.displayName}: ${c.minValue}`).join(`
|
||||
`),l=`Encounter is ${o}
|
||||
Total Power: ${r}
|
||||
|
||||
|
||||
Threshold
|
||||
${a}`;return{displayName:o,summary:l,cssClass:sE[o],value:r,title:"Total Creature Power",intermediateValues:[]}}getDifficultyThresholds(t){let n={mild:.4,bruising:.6,bloddy:.75,brutal:.9,Oppressive:1},r=t.map(s=>nE[s]).reduce((s,o)=>s+o);return Object.entries(n).map(([s,o])=>({displayName:s.charAt(0).toUpperCase()+s.slice(1),minValue:Math.round(o*r)})).sort((s,o)=>s.minValue-o.minValue)}};var Vu={1:{easy:.125,standard:.125,hard:.25,cap:1},2:{easy:.125,standard:.25,hard:.5,cap:3},3:{easy:.25,standard:.5,hard:.75,cap:4},4:{easy:.5,standard:.75,hard:1,cap:6},5:{easy:1,standard:1.5,hard:2.5,cap:8},6:{easy:1.5,standard:2,hard:3,cap:9},7:{easy:2,standard:2.5,hard:3.5,cap:10},8:{easy:2.5,standard:3,hard:4,cap:12},9:{easy:3,standard:3.5,hard:4.5,cap:13},10:{easy:3.5,standard:4,hard:5,cap:15},11:{easy:4,standard:4.5,hard:5.5,cap:16},12:{easy:4.5,standard:5,hard:6,cap:17},13:{easy:5,standard:5.5,hard:6.5,cap:19},14:{easy:5.5,standard:6,hard:7,cap:20},15:{easy:6,standard:6.5,hard:7.5,cap:22},16:{easy:6.5,standard:7,hard:8,cap:24},17:{easy:7,standard:7.5,hard:8.5,cap:25},18:{easy:7.5,standard:8,hard:9,cap:26},19:{easy:8,standard:8.5,hard:9.5,cap:28},20:{easy:8.5,standard:9,hard:10,cap:30}},oE={0:{xp:2,minionsPerStandard:5},"1/8":{xp:5,minionsPerStandard:5},"1/4":{xp:10,minionsPerStandard:5},"1/2":{xp:20,minionsPerStandard:5},1:{xp:40,minionsPerStandard:5},2:{xp:90,minionsPerStandard:5},3:{xp:140,minionsPerStandard:5},4:{xp:220,minionsPerStandard:5},5:{xp:225,minionsPerStandard:8},6:{xp:285,minionsPerStandard:8},7:{xp:360,minionsPerStandard:8},8:{xp:485,minionsPerStandard:8},9:{xp:500,minionsPerStandard:10},10:{xp:590,minionsPerStandard:10},11:{xp:720,minionsPerStandard:10},12:{xp:840,minionsPerStandard:10},13:{xp:1e3,minionsPerStandard:10},14:{xp:1150,minionsPerStandard:10},15:{xp:1300,minionsPerStandard:10},16:{xp:1500,minionsPerStandard:10},17:{xp:1800,minionsPerStandard:10},18:{xp:2e3,minionsPerStandard:10},19:{xp:2200,minionsPerStandard:10},20:{xp:2500,minionsPerStandard:10},21:{xp:3300,minionsPerStandard:10},22:{xp:4100,minionsPerStandard:10},23:{xp:5e3,minionsPerStandard:10},24:{xp:6200,minionsPerStandard:10},25:{xp:7500,minionsPerStandard:10},26:{xp:9e3,minionsPerStandard:10},27:{xp:10500,minionsPerStandard:10},28:{xp:12e3,minionsPerStandard:10},29:{xp:13500,minionsPerStandard:10},30:{xp:15500,minionsPerStandard:10}},Wu={Trivial:{encounterPoints:0,cssClass:"trivial"},Easy:{encounterPoints:1,cssClass:"easy"},Standard:{encounterPoints:2,cssClass:"medium"},Hard:{encounterPoints:4,cssClass:"hard"},Extreme:{encounterPoints:8,cssClass:"deadly"}},Xu=class extends ln{constructor(t){super();te(this,"plugin");te(this,"systemDifficulties",["Trivial","Easy","Standard","Hard","Extreme"]);this.plugin=t,this.displayName="DnD 5e Flee, Mortals!",this.valueUnit="CR"}isMinion(t){return"traits"in t&&t.traits?.find(n=>n.name==="Minion")}getAveragePlayerLevel(t){let n=t.filter(r=>r&&r>0).map(r=>Math.max(1,Math.min(r,20))).reduce((r,s)=>r+s,0);return Math.floor(n/t.length)}getCreatureStatistics(t){let n=0,r=0;return t.forEach((s,o)=>{let a=cn(this.plugin,o,c=>c?.cr??0),l=hi(o.cr);if(this.isMinion(o)){let c=oE[a].minionsPerStandard;a=l*Math.floor(s/c)}else a=l*s;r<l&&(r=l),n+=a}),{totalCreatureCr:n,maxCreatureCr:r}}getCreatureDifficulty(t,n){if(this.isMinion(t))return 0;let r=cn(this.plugin,t,s=>s?.cr??"0");return hi(r)}getEncounterDifficulty(t,n){let r=this.getAveragePlayerLevel(n),s=Vu[r]?.cap,{totalCreatureCr:o,maxCreatureCr:a}=this.getCreatureStatistics(t),l=this.getDifficultyThresholds(n),c=l.reverse().find(p=>o>=p.minValue)?.displayName,u=Wu[c].encounterPoints,f=Wu[c].cssClass;a>s&&(c="Extreme (Exceeds CR cap)",u=Wu.Extreme.encounterPoints,f=Wu.Extreme.cssClass);let d=l.map(p=>`${p.displayName}: ${p.minValue}`).join(`
|
||||
`),h=`Encounter is ${c}
|
||||
Total Creature CR: ${o}
|
||||
Daily Encounter Points: ${u}
|
||||
Party's CR Cap: ${s}
|
||||
|
||||
Threshold
|
||||
${d}`;return{displayName:c,summary:h,cssClass:f,value:o,title:"Total Creature CR",intermediateValues:[{label:"Daily Encounter Points",value:u},{label:"Creature CR Cap",value:s}]}}getDifficultyThresholds(t){let n=this.getAveragePlayerLevel(t),r=Vu[n]?.standard*t.length,s=Vu[n]?.hard*t.length,o=s+(s-r);return[{displayName:"Trivial",minValue:0},{displayName:"Easy",minValue:Vu[n]?.easy*t.length},{displayName:"Standard",minValue:r},{displayName:"Hard",minValue:s},{displayName:"Extreme",minValue:o}]}getAdditionalDifficultyBudgets(t){return[{displayName:"Encounter Points per Day",minValue:8}]}formatDifficultyValue(t,n){return isNaN(t)?We:n?`${cs(t)} ${this.valueUnit}`:cs(t)}};var aE={"-4":10,"-3":15,"-2":20,"-1":30,0:40,1:60,2:80,3:120,4:160};var lE={trivial:"trivial",low:"easy",moderate:"medium",severe:"hard",extreme:"deadly"},Yu=class extends ln{constructor(t){super();te(this,"plugin");te(this,"systemDifficulties",["Trivial","Low","Moderate","Severe","Extreme"]);this.plugin=t,this.displayName="Pathfinder 2e"}getCreatureDifficulty(t,n){let r=cn(this.plugin,t,a=>a?.level)?.toString().split(" ").slice(-1);if(r==null||r==null)return 0;let s=Math.round(n?.length??0>0?n.reduce((a,l)=>a+l)/n.length:0),o=String(r-s);return aE[o]??0}getDifficultyThresholds(t){let n=t.length*20,r={trivial:Math.floor(n*.5),low:Math.floor(n*.75),moderate:n,severe:Math.floor(n*1.5),extreme:Math.floor(n*2)};return Object.entries(r).map(([s,o])=>({displayName:s.charAt(0).toUpperCase()+s.slice(1),minValue:o})).sort((s,o)=>s.minValue-o.minValue)}getEncounterDifficulty(t,n){let r=[...t].reduce((c,[u,f])=>c+this.getCreatureDifficulty(u,n)*f,0),s=this.getDifficultyThresholds(n),o=s.findLast(c=>r>=c.minValue)?.displayName??"Trivial",a=s.map(c=>`${c.displayName}: ${c.minValue}`).join(`
|
||||
`),l=`Encounter is ${o}
|
||||
Total XP: ${r}
|
||||
Threshold
|
||||
${a}`;return{displayName:o,summary:l,cssClass:lE[o.toLowerCase()]??"trivial",value:r,title:"Total XP",intermediateValues:[{label:"Total XP",value:r}]}}};var Al=(s=>(s.Dnd5e="dnd5e",s.Dnd5eLazyGm="dnd5e-lazygm",s.Dnd5eCR2Simple="dnd5e-cr2-simple",s.Dnd5eFleeMortals="dnd5e-flee-mortals",s.Pathfinder2e="pathfinder2e",s))(Al||{}),Lp=class extends ln{constructor(){super(...arguments);te(this,"systemDifficulties",[We,We])}};function Si(i,e){switch(e||i.data.rpgSystem){case"dnd5e":return new ma(i);case"dnd5e-lazygm":return new Fu(i);case"dnd5e-cr2-simple":return new Bu(i);case"dnd5e-flee-mortals":return new Xu(i);case"pathfinder2e":return new Yu(i)}return new Lp}function hi(i){if(typeof i=="number")return i;if(typeof i!="string")return null;if(!i||i=="undefined"||!i.length)return 0;let e=i.split("/");return e.length==1?isNaN(Number(i))?0:Number(i):Number(e[0])/Number(e[1])}function cs(i){if(typeof i=="string"&&(i=hi(i)),i==0)return"0";let e=i%1,t=Math.floor(i);if(e==0)return t.toString();let n=t==0?"":t.toString();return e in Cp?n+=Cp[e]:n+=e.toString().slice(1),n}function cn(i,e,t){let n=t(e);return n||t(i.getCreatureFromBestiary(e.name))}var be=require("obsidian");var Gu=xp(Vp()),Dl=class extends Gu.FuzzyInputSuggest{renderNote(e,t){e.setText([t.item.source].flat().join(", "))}renderTitle(e,t){this.renderMatches(e,t.item.name,t.match.matches)}getItemText(e){return e.name}},Uu=class extends Gu.FuzzyInputSuggest{renderNote(e,t){}renderTitle(e,t){this.renderMatches(e,t.item,t.match.matches)}getItemText(e){return e}},Hu=class extends Gu.FuzzyInputSuggest{renderNote(e,t){}renderTitle(e,t){this.renderMatches(e,t.item.name,t.match.matches)}getItemText(e){return e.name}};var gf=xp(Vp());var Po=require("obsidian");function xt(){return"ID_xyxyxyxyxyxy".replace(/[xy]/g,function(i){var e=Math.random()*16|0,t=i=="x"?e:e&3|8;return t.toString(16)})}var Ne=class i{constructor(e,t=0){this.creature=e;te(this,"active");te(this,"name");te(this,"modifier");te(this,"hp");te(this,"hit_dice");te(this,"rollHP");te(this,"temp");te(this,"ac");te(this,"current_ac");te(this,"dirty_ac");te(this,"note");te(this,"enabled",!0);te(this,"hidden",!1);te(this,"max");te(this,"current_max");te(this,"level");te(this,"player");te(this,"status",new Set);te(this,"marker");te(this,"initiative");te(this,"manualOrder");te(this,"static",!1);te(this,"source");te(this,"id");te(this,"xp");te(this,"viewing",!1);te(this,"number",0);te(this,"display");te(this,"friendly",!1);te(this,"statblock-link");te(this,"cr");te(this,"path");this.name=e.name,this.display=e.display,this.initiative="initiative"in e?e.initiative:Number(t??0),this.static=e.static??!1,this.setModifier(e.modifier),this.current_ac=this.ac=e.ac??void 0,this.dirty_ac=!1,this.max=this.current_max=e.hp?Number(e.hp):0,this.note=e.note,this.level=e.level,this.player=e.player,this.rollHP=e.rollHP,this.marker=e.marker,this.hp=this.max,this.temp=0,this.source=e.source,this.friendly=e.friendly??this.friendly,this.active=e.active,this.hidden=e.hidden??!1,this.note=e.note,this.path=e.path,this.xp=e.xp,this.cr=e.cr,this.id=e.id??xt(),"statblock-link"in e&&(this["statblock-link"]=e["statblock-link"]),"hit_dice"in e&&typeof e.hit_dice=="string"&&(this.hit_dice=e.hit_dice)}setModifier(e){e&&(Array.isArray(e)&&(this.modifier=[...e]),isNaN(Number(e))||(this.modifier=Number(e))),this.modifier=this.modifier??0}addCondition(e){[...this.status].find(t=>t.name===e.name&&t.amount===e.amount)||this.status.add(e)}removeCondition(e){this.status=new Set([...this.status].filter(t=>t.id!=e.id))}get hpDisplay(){return this.current_max?`
|
||||
<span ${this.temp>0?`aria-label="Temp HP: ${this.temp}" style="font-weight:bold"`:""}>${this.hp+this.temp}</span><span>/${this.current_max}</span>
|
||||
`:We}getName(){let e=[this.display??this.name];return this.number>0&&e.push(`${this.number}`),e.join(" ")}getStatblockLink(){if("statblock-link"in this){let e=this["statblock-link"];return e.startsWith("#")?`[${this.name}](${this.note}${e})`:e}}*[Symbol.iterator](){yield this.name,yield this.initiative,yield this.static,yield this.modifier,yield this.max,yield this.ac,yield this.note,yield this.path,yield this.id,yield this.marker,yield this.xp,yield this.hidden,yield this.hit_dice,yield this.current_ac,yield this.rollHP}static new(e){return new i({...e,id:xt()},e.initiative)}static from(e){let t="modifier"in e?e.modifier:Math.floor((("stats"in e&&e.stats.length>1?e.stats[1]:10)-10)/2);return new i({...e,modifier:t})}update(e){this.name=e.name,this.setModifier(e.modifier),this.current_max=this.max=e.hp?Number(e.hp):0,this.hp>this.max&&(this.hp=this.max),this.current_ac=this.ac=e.ac??void 0,this.note=e.note,this.level=e.level,this.player=e.player,this["statblock-link"]=e["statblock-link"],this.marker=e.marker,this.source=e.source}toProperties(){return{...this}}toJSON(){return{name:this.name,display:this.display,initiative:this.initiative,static:this.static,modifier:this.modifier,hp:this.max,currentMaxHP:this.current_max,cr:this.cr,ac:this.ac,currentAC:this.current_ac,note:this.note,path:this.path,id:this.id,marker:this.marker,currentHP:this.hp,tempHP:this.temp,status:Array.from(this.status).map(e=>e.name),enabled:this.enabled,level:this.level,player:this.player,xp:this.xp,active:this.active,hidden:this.hidden,friendly:this.friendly,"statblock-link":this["statblock-link"],hit_dice:this.hit_dice,rollHP:this.rollHP}}static fromJSON(e,t){let n;e.player?(n=t.getPlayerByName(e.name)??new i(e,e.initiative),n.initiative=e.initiative):n=new i(e,e.initiative),n.enabled=e.enabled,n.temp=e.tempHP?e.tempHP:0,n.current_max=e.currentMaxHP,n.hp=e.currentHP,n.current_ac=e.currentAC;let r=[];for(let s of e.status){let o=os.find(({name:a})=>s==a);o?r.push(o):r.push({name:s,description:null,id:xt()})}return n.status=new Set(r),n.active=e.active,n}};function X(){}var In=i=>i;function ti(i,e){for(let t in e)i[t]=e[t];return i}function Wp(i){return i()}function Ku(){return Object.create(null)}function de(i){i.forEach(Wp)}function Ge(i){return typeof i=="function"}function ie(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function ky(i){return Object.keys(i).length===0}function Ii(i,...e){if(i==null){for(let n of e)n(void 0);return X}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function ct(i){let e;return Ii(i,t=>e=t)(),e}function ke(i,e,t){i.$$.on_destroy.push(Ii(e,t))}function Gt(i,e,t,n){if(i){let r=Sy(i,e,t,n);return i[0](r)}}function Sy(i,e,t,n){return i[1]&&n?ti(t.ctx.slice(),i[1](n(e))):t.ctx}function Kt(i,e,t,n){if(i[2]&&n){let r=i[2](n(t));if(e.dirty===void 0)return r;if(typeof r=="object"){let s=[],o=Math.max(e.dirty.length,r.length);for(let a=0;a<o;a+=1)s[a]=e.dirty[a]|r[a];return s}return e.dirty|r}return e.dirty}function Jt(i,e,t,n,r,s){if(r){let o=Sy(e,t,n,s);i.p(o,r)}}function ei(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ir(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function un(i){return i??""}function Ke(i,e,t){return i.set(t),e}function H(i){return i&&Ge(i.destroy)?i.destroy:X}var xy=typeof window<"u",us=xy?()=>window.performance.now():()=>Date.now(),Ql=xy?i=>requestAnimationFrame(i):X;var ga=new Set;function Py(i){ga.forEach(e=>{e.c(i)||(ga.delete(e),e.f())}),ga.size!==0&&Ql(Py)}function As(i){let e;return ga.size===0&&Ql(Py),{promise:new Promise(t=>{ga.add(e={c:i,f:t})}),abort(){ga.delete(e)}}}var Rl=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ju=class i{constructor(e){te(this,"_listeners","WeakMap"in Rl?new WeakMap:void 0);te(this,"_observer");te(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Ju.entries="WeakMap"in Rl?new WeakMap:void 0;var Cy=!1;function Ey(){Cy=!0}function Ty(){Cy=!1}function y(i,e){i.appendChild(e)}function se(i,e,t){let n=ef(i);if(!n.getElementById(e)){let r=b("style");r.id=e,r.textContent=t,Dy(n,r)}}function ef(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Ay(i){let e=b("style");return e.textContent="/* empty */",Dy(ef(i),e),e.sheet}function Dy(i,e){return y(i.head||i,e),e.sheet}function A(i,e,t){i.insertBefore(e,t||null)}function T(i){i.parentNode&&i.parentNode.removeChild(i)}function Ie(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function b(i){return document.createElement(i)}function nr(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function
Line truncated
|
||||
`;for(let g=0;g<=1;g+=l){let O=e+(t-e)*s(g);c+=g*100+`%{${o(O,1-O)}}
|
||||
`}let u=c+`100% {${o(t,1-t)}}
|
||||
}`,f=`__svelte_${wE(u)}_${a}`,d=ef(i),{stylesheet:h,rules:p}=tf.get(d)||kE(d,i);p[f]||(p[f]=!0,h.insertRule(`@keyframes ${f} ${u}`,h.cssRules.length));let m=i.style.animation||"";return i.style.animation=`${m?`${m}, `:""}${f} ${n}ms linear ${r}ms 1 both`,nf+=1,f}function rf(i,e){let t=(i.style.animation||"").split(", "),n=t.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),r=t.length-n.length;r&&(i.style.animation=n.join(", "),nf-=r,nf||SE())}function SE(){Ql(()=>{nf||(tf.forEach(i=>{let{ownerNode:e}=i.stylesheet;e&&T(e)}),tf.clear())})}function Ar(i,e,t,n){if(!e)return X;let r=i.getBoundingClientRect();if(e.left===r.left&&e.right===r.right&&e.top===r.top&&e.bottom===r.bottom)return X;let{delay:s=0,duration:o=300,easing:a=In,start:l=us()+s,end:c=l+o,tick:u=X,css:f}=t(i,{from:e,to:r},n),d=!0,h=!1,p;function m(){f&&(p=Nl(i,0,1,o,s,a,f)),s||(h=!0)}function g(){f&&rf(i,p),d=!1}return As(O=>{if(!h&&O>=l&&(h=!0),h&&O>=c&&(u(1,0),g()),!d)return!1;if(h){let _=O-l,S=0+1*a(_/o);u(S,1-S)}return!0}),m(),u(0,1),g}function Dr(i){let e=getComputedStyle(i);if(e.position!=="absolute"&&e.position!=="fixed"){let{width:t,height:n}=e,r=i.getBoundingClientRect();i.style.position="absolute",i.style.width=t,i.style.height=n,xE(i,r)}}function xE(i,e){let t=i.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){let n=getComputedStyle(i),r=n.transform==="none"?"":n.transform;i.style.transform=`${r} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}var Ds;function fs(i){Ds=i}function Oa(){if(!Ds)throw new Error("Function called outside component initialization");return Ds}function sf(i){Oa().$$.on_mount.push(i)}function of(i){Oa().$$.on_destroy.push(i)}function Fe(){let i=Oa();return(e,t,{cancelable:n=!1}={})=>{let r=i.$$.callbacks[e];if(r){let s=Il(e,t,{cancelable:n});return r.slice().forEach(o=>{o.call(i,s)}),!s.defaultPrevented}return!0}}function Vi(i,e){return Oa().$$.context.set(i,e),e}function Ye(i){return Oa().$$.context.get(i)}function ht(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ko=[];var mi=[],ya=[],Up=[],Iy=Promise.resolve(),Hp=!1;function Gp(){Hp||(Hp=!0,Iy.then(lf))}function af(){return Gp(),Iy}function _n(i){ya.push(i)}function Qr(i){Up.push(i)}var Yp=new Set,va=0;function lf(){if(va!==0)return;let i=Ds;do{try{for(;va<ko.length;){let e=ko[va];va++,fs(e),PE(e.$$)}}catch(e){throw ko.length=0,va=0,e}for(fs(null),ko.length=0,va=0;mi.length;)mi.pop()();for(let e=0;e<ya.length;e+=1){let t=ya[e];Yp.has(t)||(Yp.add(t),t())}ya.length=0}while(ko.length);for(;Up.length;)Up.pop()();Hp=!1,Yp.clear(),fs(i)}function PE(i){if(i.fragment!==null){i.update(),de(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(_n)}}function Ny(i){let e=[],t=[];ya.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ya=e}var jl;function CE(){return jl||(jl=Promise.resolve(),jl.then(()=>{jl=null})),jl}function Kp(i,e,t){i.dispatchEvent(Il(`${e?"intro":"outro"}${t}`))}var cf=new Set,ds;function Ee(){ds={r:0,c:[],p:ds}}function Te(){ds.r||de(ds.c),ds=ds.p}function $(i,e){i&&i.i&&(cf.delete(i),i.i(e))}function V(i,e,t,n){if(i&&i.o){if(cf.has(i))return;cf.add(i),ds.c.push(()=>{cf.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}var EE={duration:0};function So(i,e,t,n){let s=e(i,t,{direction:"both"}),o=n?0:1,a=null,l=null,c=null,u;function f(){c&&rf(i,c)}function d(p,m){let g=p.b-o;return m*=Math.abs(g),{a:o,b:p.b,d:g,duration:m,start:p.start,end:p.start+m,group:p.group}}function h(p){let{delay:m=0,duration:g=300,easing:O=In,tick:_=X,css:S}=s||EE,P={start:us()+m,b:p};p||(P.group=ds,ds.r+=1),"inert"in i&&(p?u!==void 0&&(i.inert=u):(u=i.inert,i.inert=!0)),a||l?l=P:(S&&(f(),c=Nl(i,o,p,g,m,O,S)),p&&_(0,1),a=d(P,g),_n(()=>Kp(i,p,"start")),As(k=>{if(l&&k>l.start&&(a=d(l,g),l=null,Kp(i,a.b,"start"),S&&(f(),c=Nl(i,o,a.b,a.duration,0,O,s.css))),a){if(k>=a.end)_(o=a.b,1-o),Kp(i,a.b,"end"),l||(a.b?f():--a.group.r||de(a.group.c)),a=null;else if(k>=a.start){let w=k-a.start;o=a.a+a.d*O(w/a.duration),_(o,1-o)}}return!!(a||l)}))}return{run(p){Ge(s)?CE().then(()=>{s=s({direction:p?"in":"out"}),h(p)}):h(p)},end(){f(),a=l=null}}}function fe(i){return i?.length!==void 0?i:Array.from(i)}function hs(i,e){i.d(1),e.delete(i.key)}function TE(i,e){V(i,1,1,()=>{e.delete(i.key)})}function uf(i,e){i.f(),hs(i,e)}function ba(i,e){i.f(),TE(i,e)}function bi(i,e,t,n,r,s,o,a,l,c,u,f){let d=i.length,h=s.length,p=d,m={};for(;p--;)m[i[p].key]=p;let g=[],O=new Map,_=new Map,S=[];for(p=h;p--;){let x=f(r,s,p),C=t(x),M=o.get(C);M?n&&S.push(()=>M.p(x,e)):(M=c(C,x),M.c()),O.set(C,g[p]=M),C in m&&_.set(C,Math.abs(p-m[C]))}let P=new Set,k=new Set;function w(x){$(x,1),x.m(a,u),o.set(x.key,x),u=x.first,h--}for(;d&&h;){let x=g[h-1],C=i[d-1],M=x.key,Z=C.key;x===C?(u=x.first,d--,h--):O.has(Z)?!o.has(M)||P.has(M)?w(x):k.has(Z)?d--:_.get(M)>_.get(Z)?(k.add(M),w(x)):(P.add(Z),d--):(l(C,o),d--)}for(;d--;){let x=i[d];O.has(x.key)||l(x,o)}for(;h;)w(g[h-1]);return de(S),g}function Rr(i,e){let t={},n={},r
Line truncated
|
||||
`),l&&l.c(),n=R(),s.c(),o=tt(),v(e,"class","creatures-header svelte-s37km9")},m(d,h){A(d,e,h),y(e,t),l&&l.m(e,null),A(d,n,h),u[r].m(d,h),A(d,o,h),a=!0},p(d,h){d[8]?l||(l=Xy(d),l.c(),l.m(e,null)):l&&(l.d(1),l=null);let p=r;r=f(d,h),r===p?u[r].p(d,h):(Ee(),V(u[p],1,1,()=>{u[p]=null}),Te(),s=u[r],s?s.p(d,h):(s=u[r]=c[r](d),s.c()),$(s,1),s.m(o.parentNode,o))},i(d){a||($(s),a=!0)},o(d){V(s),a=!1},d(d){d&&(T(e),T(n),T(o)),l&&l.d(),u[r].d(d)}}}function Xy(i){let e,t,n,r;return{c(){e=b("span"),v(e,"class","has-icon svelte-s37km9"),v(e,"aria-label","Rolling for HP")},m(s,o){A(s,e,o),n||(r=H(t=i[17].call(null,e)),n=!0)},d(s){s&&T(e),n=!1,r()}}}function BE(i){let e;return{c(){e=b("strong"),e.textContent="No creatures"},m(t,n){A(t,e,n)},p:X,i:X,o:X,d(t){t&&T(e)}}}function VE(i){let e,t,n=fe([...i[2]]),r=[];for(let o=0;o<n.length;o+=1)r[o]=Yy($y(i,n,o));let s=o=>V(r[o],1,1,()=>{r[o]=null});return{c(){e=b("ul");for(let o=0;o<r.length;o+=1)r[o].c();v(e,"class","svelte-s37km9")},m(o,a){A(o,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null);t=!0},p(o,a){if(a&67012){n=fe([...o[2]]);let l;for(l=0;l<n.length;l+=1){let c=$y(o,n,l);r[l]?(r[l].p(c,a),$(r[l],1)):(r[l]=Yy(c),r[l].c(),$(r[l],1),r[l].m(e,null))}for(Ee(),l=n.length;l<r.length;l+=1)s(l);Te()}},i(o){if(!t){for(let a=0;a<n.length;a+=1)$(r[a]);t=!0}},o(o){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)V(r[a]);t=!1},d(o){o&&T(e),Ie(r,o)}}}function WE(i){let e,t,n,r;return{c(){e=b("strong"),v(e,"class","creature-amount")},m(s,o){A(s,e,o),n||(r=H(t=i[15].call(null,e,i[21])),n=!0)},p(s,o){i=s,t&&Ge(t.update)&&o&4&&t.update.call(null,i[21])},d(s){s&&T(e),n=!1,r()}}}function Yy(i){let e,t,n,r,s;return t=new df({props:{creature:i[21],xp:i[10].getCreatureDifficulty(i[21],i[7]),shouldShowRoll:!i[8]&&i[6],count:i[22],$$slots:{default:[WE]},$$scope:{ctx:i}}}),{c(){e=b("li"),ye(t.$$.fragment),n=R(),v(e,"aria-label",r=i[16](i[21])),v(e,"class","creature-li svelte-s37km9")},m(o,a){A(o,e,a),Oe(t,e,null),y(e,n),s=!0},p(o,a){let l={};a&4&&(l.creature=o[21]),a&132&&(l.xp=o[10].getCreatureDifficulty(o[21],o[7])),a&320&&(l.shouldShowRoll=!o[8]&&o[6]),a&4&&(l.count=o[22]),a&268435460&&(l.$$scope={dirty:a,ctx:o}),t.$set(l),(!s||a&4&&r!==(r=o[16](o[21])))&&v(e,"aria-label",r)},i(o){s||($(t.$$.fragment,o),s=!0)},o(o){V(t.$$.fragment,o),s=!1},d(o){o&&T(e),ve(t)}}}function Uy(i){let e,t=i[9]&&Hy(i);return{c(){e=b("div"),t&&t.c(),v(e,"class","encounter-xp difficulty svelte-s37km9")},m(n,r){A(n,e,r),t&&t.m(e,null)},p(n,r){n[9]?t?t.p(n,r):(t=Hy(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(n){n&&T(e),t&&t.d()}}}function Hy(i){let e,t,n=i[9].displayName+"",r,s,o,a,l,c,u,f,d,h,p=i[9].value>0&&Gy(i);return{c(){e=b("span"),t=b("strong"),r=ae(n),s=R(),o=b("span"),a=b("span"),a.textContent="(",l=R(),c=b("span"),p&&p.c(),u=R(),f=b("span"),f.textContent=")",v(t,"class","difficulty-label svelte-s37km9"),v(a,"class","paren left"),v(c,"class","xp-container"),v(f,"class","paren right"),v(o,"class","xp-parent difficulty svelte-s37km9"),v(e,"aria-label",d=i[9].summary),v(e,"class",h=un(i[9].cssClass)+" svelte-s37km9")},m(m,g){A(m,e,g),y(e,t),y(t,r),y(e,s),y(e,o),y(o,a),y(o,l),y(o,c),p&&p.m(c,null),y(o,u),y(o,f)},p(m,g){g&512&&n!==(n=m[9].displayName+"")&&me(r,n),m[9].value>0?p?p.p(m,g):(p=Gy(m),p.c(),p.m(c,null)):p&&(p.d(1),p=null),g&512&&d!==(d=m[9].summary)&&v(e,"aria-label",d),g&512&&h!==(h=un(m[9].cssClass)+" svelte-s37km9")&&v(e,"class",h)},d(m){m&&T(e),p&&p.d()}}}function Gy(i){let e,t=i[10].formatDifficultyValue(i[9].value)+"",n,r,s;return{c(){e=b("span"),n=ae(t),r=R(),s=b("span"),s.textContent=`${i[10].valueUnit}`,v(e,"class","xp number"),v(s,"class","xp text")},m(o,a){A(o,e,a),y(e,n),A(o,r,a),A(o,s,a)},p(o,a){a&512&&t!==(t=o[10].formatDifficultyValue(o[9].value)+"")&&me(n,t)},d(o){o&&(T(e),T(r),T(s))}}}function XE(i){let e,t,n,r,s,o,a,l,c,u,f,d,h,p=!i[5].includes("players"),m,g,O=!i[5].includes("creatures"),_,S,P,k,w=p&&By(i),x=O&&Wy(i),C=i[0].data.displayDifficulty&&Uy(i);return{c(){e=b("div"),t=b("div"),n=b("h3"),r=ae(i[1]),s=R(),o=b("div"),a=b("div"),c=R(),u=b("div"),d=R(),h=b("div"),w&&w.c(),m=R(),g=b("div"),x&&x.c(),_=R(),C&&C.c(),v(n,"data-heading",i[1]),v(n,"class","initiative-tracker-name svelte-s37km9"),v(a,"aria-label","Start Encounter"),v(a,"class","svelte-s37km9"),v(u,"aria-label","Add to Encounter"),v(u,"class","svelte-s37km9"),v(o,"class","icons svelte-s37km9"),v(t,"class","encounter-name svelte-s37km9"),v(g,"class","encounter-creatures svelte-s37km9"),v(h,"class","creatures-container"),v(e,"class","encounter-instance svelte-s37km9")},m(M,Z){A(M,e,Z),y(e,t),y(t,n),y(n,r),y(t,s),y(t,o),y(o,a),y(o,c),y(o,u),y(e,d),y(e,h),w&&w.m(h,null),y(h,m),y(h,g),x&&x.m(g,null),y(h,_),C&&C.m(h,null),S=!0,P||(k=[H(l=i[11].call(null,a)),Y(a,"click",i[12]),H(f=i[13].call(null,u)),Y(u,"click",i[14])],P=!0)},p(M,[Z]){(!S||Z&2)&&me(r,M[1]),(!S||Z&2)&&v(n,"data-heading",M[1]),Z&32&&(p=!M[5].includes("players")),p?w?w.p(M,Z):(w=By(M),w.c(),w.m(h,m)):w&&(w.d(1),w=null),Z&32&&(O=!M[5].includes(
Line truncated
|
||||
|
||||
`+s)}this.plugin.register(()=>{this.containerEl.empty(),this.containerEl.createEl("pre").createEl("code",{text:`\`\`\`encounter
|
||||
${this.src}\`\`\``})})}async postprocessTable(){let t=this.src.split("---")??[],r=this.containerEl.createDiv("encounter-container").createSpan({text:"No encounters created. Please check your syntax and try again."}),s=[];for(let o of t)if(o?.trim().length)try{let a=(0,Qs.parseYaml)(o);s.push(await this.parser.parse(a))}catch(a){console.error(a),new Qs.Notice(`Initiative Tracker: here was an issue parsing:
|
||||
|
||||
`+o)}s.length&&(r.detach(),new ub({target:this.containerEl,props:{encounters:s,plugin:this.plugin}})),this.plugin.register(()=>{this.containerEl.empty(),this.containerEl.createEl("pre").createEl("code",{text:`\`\`\`encounter-table
|
||||
${this.src}\`\`\``})})}};var om=require("obsidian");var fT=om.Platform.isMacOS?"Meta":"Control";function dT(){let i=$e([]),e=$e(new Map),t=$e(),{subscribe:n,set:r,update:s}=i,o=$e(),a,l=$e(1),c=$e(!1),u=Q=>{c.set(Q),Q?a?.logging?a?.log("Combat re-started"):a?.new({name:ct(f),players:O.filter(D=>D.player),creatures:O.filter(D=>!D.player),round:ct(l)}).then(()=>{o.set(a.getFile())}):a?.log("Combat stopped"),C(D=>(D.length&&!D.find(E=>E.active)&&(O[0].active=!0),D))},f=$e(),d=$e(),h=$e(),p=oi(h,Q=>Q.descending),m,g=oi(i,Q=>(m?.condense&&Q.forEach((D,E,j)=>{let z=j.filter(U=>Rs(U,D)),q=z.map(U=>U.initiative),G=q[Math.floor(Math.random()*q.length)];z.forEach(U=>{U.static||(U.initiative=G)})}),Q)),O=[],_=oi([g,h],([Q,D])=>{let E=[...Q];return E.sort((j,z)=>{if(j.initiative!=z.initiative)return D.descending?z.initiative-j.initiative:j.initiative-z.initiative;if(j.manualOrder!==null&&j.manualOrder!==void 0&&z.manualOrder!==null&&z.manualOrder!==void 0&&j.manualOrder!==z.manualOrder){let q=j.manualOrder||0,G=z.manualOrder||0;return q-G}switch(m.resolveTies){case Kn.random:return Math.random()<.5?1:-1;case Kn.playerFirst:case Kn.npcFirst:let q=j.player?1:0,G=z.player?1:0;return m.resolveTies==Kn.playerFirst?G-q:q-G}}),O=E,E}),S=Q=>{a?.log(`${Q.getName()} initiative changed to ${Q.initiative}`)},P=(Q,...D)=>{for(let{creature:E,change:j}of D){if(j.initiative&&(E.initiative=Number(j.initiative),S(E)),j.name&&(E.name=j.name,E.number=0),j.hp){if(j.hp=Number(j.hp),j.hp<0&&E.temp>0){let z=E.temp+j.hp;E.temp=Math.max(0,z),j.hp=Math.min(0,z)}if(m.clamp&&E.hp+j.hp<0&&(j.hp=-E.hp),j.hp>0&&j.hp+E.hp>E.current_max)switch(m.hpOverflow){case Mn.ignore:j.hp=Math.max(E.current_max-E.hp,0);break;case Mn.temp:j.temp=j.hp-Math.min(E.current_max-E.hp,0),j.hp-=j.temp;break;case Mn.current:break}if(E.hp+=j.hp,m.autoStatus&&E.hp<=0){let z=m.statuses.find(q=>q.id==m.unconsciousId);z&&E.addCondition(z)}}if(j.max&&(E.current_max=Math.max(0,E.current_max+j.max),E.hp>=E.current_max&&m.hpOverflow!==Mn.current&&(E.hp=E.current_max)),j.set_hp&&(E.hp=j.set_hp),j.set_max_hp&&(E.current_max=E.max=j.set_max_hp),j.ac&&(E.current_ac=E.ac=j.ac),j.temp){let z=0;m.additiveTemp&&(z=E.temp),j.temp>0?E.temp=Math.max(E.temp,z+j.temp):E.temp=Math.max(0,E.temp+j.temp)}if(j.marker&&(E.marker=j.marker),j.status?.length)for(let z of j.status)E.addCondition(z);if(j.remove_status?.length)for(let z of j.remove_status)E.removeCondition(z);"hidden"in j&&(E.hidden=j.hidden,a.log(`${E.getName()} ${E.hidden?"hidden":"revealed"}`)),"enabled"in j&&(E.enabled=j.enabled,a.log(`${E.getName()} ${E.enabled?"enabled":"disabled"}`)),Q.includes(E)||Q.push(E)}return Q},k=(...Q)=>C(D=>P(D,...Q)),w=()=>({creatures:ct(i).map(Q=>Q.toJSON()),state:ct(c),name:ct(f),round:ct(l),logFile:a?.getLogFile()??null,rollHP:!1}),x=()=>{app.workspace.trigger("initiative-tracker:save-state",w())};function C(Q){s(Q),x()}let M=Q=>{for(let D=0;D<Q.length;D++){let E=Q[D];if(E.player||Q.filter(z=>z.name==E.name).length==1||E.number>0)continue;let j=Q.filter(z=>z.display?z.display==E.display:z.name==E.name).map(z=>z.number);E.number=j?.length?Math.max(...j)+1:1}};function Z(Q,D){for(let E of D)E.static&&E.initiative||(E.active=!1,!(E.player&&Q.data.rollPlayerInitiatives==1)&&(E.player&&Q.data.rollPlayerInitiatives==2?E.initiative=0:E.initiative=Q.getInitiativeValue(E.modifier),E.manualOrder=null));return D}return{subscribe:n,set:r,data:h,setData:Q=>{h.set(Q),m=Q},getLogger:()=>a,setLogger:Q=>{a=Q},updating:e,updateTarget:t,updateCreatures:k,updateCreatureByName:(Q,D)=>C(E=>{let j=E.find(z=>z.name==Q);if(j){if(isNaN(Number(D.hp))||(j.hp=D.hp),D.max&&(j.current_max=Math.max(0,j.current_max+D.max),j.hp>=j.current_max&&m.hpOverflow!==Mn.current&&(j.hp=j.current_max)),D.temp){let z=0;m.additiveTemp&&(z=j.temp),D.temp>0?j.temp=Math.max(j.temp,z+D.temp):j.temp=Math.max(0,j.temp+D.temp)}if(D.marker&&(j.marker=D.marker),(typeof D.ac=="string"||!isNaN(Number(D.ac)))&&(j.ac=j.current_ac=D.ac),(typeof D.current_ac=="string"||!isNaN(Number(D.current_ac)))&&(j.current_ac=D.ac),isNaN(Number(D.initiative))||(j.initiative=D.initiative),typeof D.name=="string"&&(j.name=D.name),"hidden"in D&&(j.hidden=D.hidden),"enabled"in D&&(j.enabled=D.enabled),Array.isArray(D.status)&&D.status?.length)for(let z of D.status)if(typeof z=="string"){let q=m.statuses.find(G=>G.name==z)??{name:z,description:"",id:xt()};j.addCondition(q)}else typeof z=="object"&&z.name?.length&&j.addCondition(z)}return E}),players:oi(_,Q=>Q.filter(D=>D.player)),setUpdate:(Q,D)=>e.update(E=>(E.has(Q)?E.delete(Q):E.set(Q,{saved:D.getModifierState("Shift"),resist:D.getModifierState(fT),customMod:D.getModifierState("Alt")?"2":"1"}),E)),doUpdate:(Q,D,E,j=[])=>e.update(z=>{let q=[],G=[];return z.forEach((U,le)=>{let xe=!Q.includes("."),ue={},B=(U.saved?.5:1)*(U.resist?.5:1)*Number(U.customMod),J=[le.name];le.number>0&&J.push(`${le.number}`);let pe={name:J.join(" "),hp:null,temp:!1,max:!1,status:null,remove_status:null,saved:!1,unc:!1,ac:null,ac_add:!1};if(Q.charAt(0)==Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ul(i,e){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=km(i))||e&&i&&typeof i.length=="number"){t&&(i=t);var n=0,r=function(){};return{s:r,n:function(){return n>=i.length?{done:!0}:{done:!1,value:i[n++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,a;return{s:function(){t=t.call(i)},n:function(){var l=t.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(o)throw a}}}}var t6="finalize",i6="consider";function Pa(i,e,t){i.dispatchEvent(new CustomEvent(t6,{detail:{items:e,info:t}}))}function js(i,e,t){i.dispatchEvent(new CustomEvent(i6,{detail:{items:e,info:t}}))}var Ef="draggedEntered",Hl="draggedLeft",Tf="draggedOverIndex",Sm="draggedLeftDocument",wf={LEFT_FOR_ANOTHER:"leftForAnother",OUTSIDE_OF_ANY:"outsideOfAny"};function n6(i,e,t){i.dispatchEvent(new CustomEvent(Ef,{detail:{indexObj:e,draggedEl:t}}))}function r6(i,e,t){i.dispatchEvent(new CustomEvent(Hl,{detail:{draggedEl:e,type:wf.LEFT_FOR_ANOTHER,theOtherDz:t}}))}function s6(i,e){i.dispatchEvent(new CustomEvent(Hl,{detail:{draggedEl:e,type:wf.OUTSIDE_OF_ANY}}))}function o6(i,e,t){i.dispatchEvent(new CustomEvent(Tf,{detail:{indexObj:e,draggedEl:t}}))}function a6(i){window.dispatchEvent(new CustomEvent(Sm,{detail:{draggedEl:i}}))}var Xi={DRAG_STARTED:"dragStarted",DRAGGED_ENTERED:Ef,DRAGGED_ENTERED_ANOTHER:"dragEnteredAnother",DRAGGED_OVER_INDEX:Tf,DRAGGED_LEFT:Hl,DRAGGED_LEFT_ALL:"draggedLeftAll",DROPPED_INTO_ZONE:"droppedIntoZone",DROPPED_INTO_ANOTHER:"droppedIntoAnother",DROPPED_OUTSIDE_OF_ANY:"droppedOutsideOfAny",DRAG_STOPPED:"dragStopped"},dn={POINTER:"pointer",KEYBOARD:"keyboard"},Af="isDndShadowItem",xm="data-is-dnd-shadow-item-internal",l6="data-is-dnd-shadow-item-hint",Gl="id:dnd-shadow-placeholder-0000",c6="dnd-action-dragged-el",_i="id",gm=0;function $b(){gm++}function Fb(){if(gm===0)throw new Error("Bug! trying to decrement when there are no dropzones");gm--}var Pm=typeof window>"u",Be=function(){};function Om(i){var e,t=i.getBoundingClientRect(),n=getComputedStyle(i),r=n.transform;if(r){var s,o,a,l;if(r.startsWith("matrix3d("))e=r.slice(9,-1).split(/, /),s=+e[0],o=+e[5],a=+e[12],l=+e[13];else if(r.startsWith("matrix("))e=r.slice(7,-1).split(/, /),s=+e[0],o=+e[3],a=+e[4],l=+e[5];else return t;var c=n.transformOrigin,u=t.x-a-(1-s)*parseFloat(c),f=t.y-l-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),d=s?t.width/s:i.offsetWidth,h=o?t.height/o:i.offsetHeight;return{x:u,y:f,width:d,height:h,top:f,right:u+d,bottom:f+h,left:u}}else return t}function Bb(i){var e=Om(i);return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function Vb(i){var e=i.getBoundingClientRect();return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function Wb(i){return{x:(i.left+i.right)/2,y:(i.top+i.bottom)/2}}function u6(i,e){return Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2))}function Df(i,e){return i.y<=e.bottom&&i.y>=e.top&&i.x>=e.left&&i.x<=e.right}function Wl(i){return Wb(Vb(i))}function Ab(i,e){var t=Wl(i),n=Bb(e);return Df(t,n)}function f6(i,e){var t=Wl(i),n=Wl(e);return u6(t,n)}function d6(i){var e=Vb(i);return e.right<0||e.left>document.documentElement.scrollWidth||e.bottom<0||e.top>document.documentElement.scrollHeight}var ka;function Cm(){Be(function(){return"resetting indexes cache"}),ka=new Map}Cm();function h6(i){var e=Array.from(i.children).findIndex(function(t){return t.getAttribute(xm)});if(e>=0)return ka.has(i)||ka.set(i,new Map),ka.get(i).set(e,Bb(i.children[e])),e}function p6(i,e){if(!Ab(i,e))return null;var t=e.children;if(t.length===0)return{index:0,isProximityBased:!0};for(var n=h6(e),r=0;r<t.length;r++)if(Ab(i,t[r])){var s=ka.has(e)&&ka.get(e).get(r);return s&&!Df(Wl(i),s)?{index:n,isProximityBased:!1}:{index:r,isProximityBased:!1}}for(var o=Number.MAX_VALUE,a=void 0,l=0;l<t.length;l++){var c=f6(i,t[l]);c<o&&(o=c,a=l)}return{index:a,isProximityBased:!0}}function Ir(i){return JSON.stringify(i,null,2)}function kf(i){if(!i)throw new Error("cannot get depth of a falsy node");return Xb(i,0)}function Xb(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return i.parentElement?Xb(i.parentElement,e+1):e-1}function m6(i,e){if(Object.keys(i).length!==Object.keys(e).length)return!1;for(var t in i)if(!{}.hasOwnProperty.call(e,t)||e[t]!==i[t])return!1;return!0}function g6(i,e){if(i.length!==e.length)return!1;for(var t=0;t<i.length;t++)if(i[t]!==e[t])return!1;return!0}var O6=200,Db=10,vm;function v6(i,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O6,n=arguments.length>3?arguments[3]:void 0,r,s,o=!1,a,l=Array.from(e).sort(function(u,f){return kf(f)-kf(u)});function c(){var u=Wl(i),f=n.multiScrollIfNeeded();if(!f&&a&&Math.abs(a.x-u.x)<Db&&Math.abs(a.y-u.y)<Db){vm=window.setTimeout(c,t);return}if(d6(i)){Be(function(){return"off document"}),a6(i);return}a=u;var d=!1,h=Ul(l),p;try{for(h.s();!(p=h.n()).done;){var m=p.value;f&&Cm();var g=p6(i,m);if(g!==null){var O=g.index;d=!0,m!==r?(r&&r6(r,i,m),n6(m,g,i),r=m):O!==s&&(o6(m,g,i),s=O);break}}}catch(_){h.e(_)}finally{h.f()}!d&&o&&r?(s6(r,i),r=void 0,s
Line truncated
|
||||
saving throw`,v(e,"class","label")},m(t,n){A(t,e,n)},d(t){t&&T(e)}}}function S_(i){let e,t,n,r,s,o,a,l,c=fe(i[5]),u=[];for(let d=0;d<c.length;d+=1)u[d]=x_(k_(i,c,d));let f=d=>V(u[d],1,1,()=>{u[d]=null});return{c(){e=b("div"),t=b("div"),r=R(),s=b("div");for(let d=0;d<u.length;d+=1)u[d].c();v(t,"aria-label","Clear status list"),Ce(t,"margin","0.2rem 0.2rem 0rem 0.7rem"),Ce(t,"cursor","pointer"),v(s,"class","status-list-entries svelte-1u2coj9"),v(e,"class","status-list svelte-1u2coj9")},m(d,h){A(d,e,h),y(e,t),y(e,r),y(e,s);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(s,null);o=!0,a||(l=[H(n=i[14].call(null,t)),Y(t,"click",i[25])],a=!0)},p(d,h){if(h[0]&32){c=fe(d[5]);let p;for(p=0;p<c.length;p+=1){let m=k_(d,c,p);u[p]?(u[p].p(m,h),$(u[p],1)):(u[p]=x_(m),u[p].c(),$(u[p],1),u[p].m(s,null))}for(Ee(),p=c.length;p<u.length;p+=1)f(p);Te()}},i(d){if(!o){for(let h=0;h<c.length;h+=1)$(u[h]);o=!0}},o(d){u=u.filter(Boolean);for(let h=0;h<u.length;h+=1)V(u[h]);o=!1},d(d){d&&T(e),Ie(u,d),a=!1,de(l)}}}function x_(i){let e,t;function n(...r){return i[26](i[0],...r)}return e=new vf({props:{status:i[0]}}),e.$on("remove",n),{c(){ye(e.$$.fragment)},m(r,s){Oe(e,r,s),t=!0},p(r,s){i=r;let o={};s[0]&32&&(o.status=i[0]),e.$set(o)},i(r){t||($(e.$$.fragment,r),t=!0)},o(r){V(e.$$.fragment,r),t=!1},d(r){ve(e,r)}}}function P_(i){let e,t,n,r,s,o,a;return{c(){e=b("th"),e.textContent="Saved",t=R(),n=b("th"),n.textContent="Resist",r=R(),s=b("th"),s.textContent="Modifier",o=R(),a=b("th"),Ce(e,"padding","0 0.2rem"),v(e,"class","center svelte-1u2coj9"),Ce(n,"padding","0 0.2rem"),v(n,"class","center svelte-1u2coj9"),Ce(s,"padding","0 0.2rem"),v(s,"class","center svelte-1u2coj9"),v(a,"class","svelte-1u2coj9")},m(l,c){A(l,e,c),A(l,t,c),A(l,n,c),A(l,r,c),A(l,s,c),A(l,o,c),A(l,a,c)},d(l){l&&(T(e),T(t),T(n),T(r),T(s),T(o),T(a))}}}function C_(i){let e,t,n,r,s,o,a,l,c,u,f,d;function h(...g){return i[30](i[40],i[41],i[42],...g)}function p(...g){return i[31](i[40],i[41],i[42],...g)}function m(){i[32].call(u,i[41],i[42])}return{c(){e=b("td"),t=b("input"),r=R(),s=b("td"),o=b("input"),l=R(),c=b("td"),u=b("input"),v(t,"type","checkbox"),t.checked=n=i[40].saved,v(t,"class","svelte-1u2coj9"),v(e,"class","center svelte-1u2coj9"),v(o,"type","checkbox"),o.checked=a=i[40].resist,v(o,"class","svelte-1u2coj9"),v(s,"class","center svelte-1u2coj9"),v(u,"type","number"),v(u,"class","center svelte-1u2coj9"),Ce(u,"width","90%"),Ce(u,"height","80%"),Ce(u,"padding","0"),v(c,"class","center svelte-1u2coj9")},m(g,O){A(g,e,O),y(e,t),A(g,r,O),A(g,s,O),y(s,o),A(g,l,O),A(g,c,O),y(c,u),Xe(u,i[40].customMod),f||(d=[Y(t,"click",h),Y(o,"click",p),Y(u,"input",m),Y(u,"keydown",E7)],f=!0)},p(g,O){i=g,O[0]&64&&n!==(n=i[40].saved)&&(t.checked=n),O[0]&64&&a!==(a=i[40].resist)&&(o.checked=a),O[0]&64&&pi(u.value)!==i[40].customMod&&Xe(u,i[40].customMod)},d(g){g&&(T(e),T(r),T(s),T(l),T(c)),f=!1,de(d)}}}function E_(i){let e,t,n,r=i[39].name+(i[39].number?" "+i[39].number:""),s,o,a,l,c,u,f,d,h=i[4]=="hp"&&C_(i);function p(...m){return i[33](i[39],...m)}return{c(){e=b("tr"),t=b("td"),n=b("span"),s=ae(r),o=R(),h&&h.c(),a=R(),l=b("td"),u=R(),v(t,"class","svelte-1u2coj9"),Ce(l,"cursor","pointer"),v(l,"class","svelte-1u2coj9"),v(e,"class","updating-creature-table-row")},m(m,g){A(m,e,g),y(e,t),y(t,n),y(n,s),y(e,o),h&&h.m(e,null),y(e,a),y(e,l),y(e,u),f||(d=[H(c=i[14].call(null,l)),Y(l,"click",p)],f=!0)},p(m,g){i=m,g[0]&64&&r!==(r=i[39].name+(i[39].number?" "+i[39].number:""))&&me(s,r),i[4]=="hp"?h?h.p(i,g):(h=C_(i),h.c(),h.m(e,a)):h&&(h.d(1),h=null)},d(m){m&&T(e),h&&h.d(),f=!1,de(d)}}}function C7(i){let e,t,n,r,s=[_7,b7],o=[];function a(l,c){return l[6].size?0:1}return e=a(i,[-1,-1]),t=o[e]=s[e](i),{c(){t.c(),n=tt()},m(l,c){o[e].m(l,c),A(l,n,c),r=!0},p(l,c){let u=e;e=a(l,c),e===u?o[e].p(l,c):(Ee(),V(o[u],1,1,()=>{o[u]=null}),Te(),t=o[e],t?t.p(l,c):(t=o[e]=s[e](l),t.c()),$(t,1),t.m(n.parentNode,n))},i(l){r||($(t),r=!0)},o(l){V(t),r=!1},d(l){l&&T(n),o[e].d(l)}}}var E7=function(i){if(i.key==="Escape"){this.value="1";return}if(i.key==="Enter"){i.preventDefault();return}};function T7(i,e,t){let n,r,s,{updating:o,updateTarget:a}=he;ke(i,o,oe=>t(6,s=oe)),ke(i,a,oe=>t(4,n=oe));let l=Ye("plugin"),c=oe=>{(0,lr.setIcon)(oe,an)},u=oe=>{(0,lr.setIcon)(oe,tr)},f=oe=>{(0,lr.setIcon)(oe,Zp)},d,h=oe=>{t(22,d=new lr.ExtraButtonComponent(oe).setIcon("plus-circle"))},p=oe=>{(0,lr.setIcon)(oe,qu)},m=oe=>{(0,lr.setIcon)(oe,"check")},g=oe=>{(0,lr.setIcon)(oe,"cross-in-box")},O="",_="",S=null,P=$e([]);ke(i,P,oe=>t(5,r=oe));let k=()=>{S&&(Ke(P,r=[...r,{...l.data.statuses.find(oe=>oe.name==S)??{name:S,id:xt(),description:""}}],r),t(0,S=null),t(3,w.items=l.data.statuses.filter(oe=>!r.find(we=>we.id==oe.id)).map(oe=>oe.name),w),x.setValue(""))},w,x,C=oe=>{x=new lr.TextComponent(oe),x.onChange(we=>t(0,S=we)),oe.onkeydown=we=>{we.key==="Enter"&&(S?k():Q(!0))},M()},M=()=>{t(3,w=new Uu(l.app,x,l.data.statuses.filter(oe=>!r.find(we=>we.id==oe.id)).map(oe=>oe.name))),w.onSelect(async({item:oe})=>{t(0,S=oe),x.se
Line truncated
|
||||
|
||||
`),await this.log("## Players"),await this.log("| Player | Initiative | HP | Statuses |"),await this.log("| --- | :-: | :-: | :-: |");for(let t of e.players.sort((n,r)=>r.initiative-n.initiative))await this.log("|",t.getName().replace("|","\\|"),"|",t.initiative.toString(),"|",t.hp?`${t.hp}/${t.max}`:"-","|",[...t.status.size?[...t.status].map(n=>n.name):["-"]].join(", ").replace("|","\\|"),"|");await this.log("## Creatures"),await this.log("| Creature | Initiative | HP | Statuses |"),await this.log("| --- | :-: | :-: | :-: |");for(let t of e.creatures.sort((n,r)=>r.initiative-n.initiative))await this.log("|",t.getName().replace("|","\\|"),"|",t.initiative.toString(),"|",t.hp?`${t.hp}/${t.max}`:"-","|",[...t.status.size?[...t.status].map(n=>n.name):["-"]].join(", ").replace("|","\\|"),"|");await this.log(`
|
||||
|
||||
## Combat Log`),await this.log(`
|
||||
### Round 1`),await this.log(`
|
||||
##### ${he.getOrderedCreatures()[0].getName()}'s turn`)}}async log(...e){this.enabled&&this.file&&(await this.adapter.exists(this.logFile)||await this.setLogFile(this.logFile),await this.vault.append(this.file,`${e.join(" ")}
|
||||
`))}join(e,t="and"){return e.length==1?e[0]:`${e.slice(0,-1).join(", ")} ${t} ${e.slice(-1)}`}logUpdate(e){let t=[];for(let n of e){let r=[];if(n.hp&&(n.temp?r.push(`${n.name} gained ${(-1*n.hp).toString()} temporary HP`):n.max?n.hp<0?r.push(`${n.name} took ${(-1*n.hp).toString()} max HP damage${n.unc?" and died":""}`):r.push(`${n.name} gained ${n.hp.toString()} max HP`):n.hp<0?r.push(`${n.name} took ${(-1*n.hp).toString()} damage${n.unc?" and was knocked unconscious":""}`):n.hp>0&&r.push(`${n.name} was healed for ${n.hp.toString()} HP`)),n.ac&&(r.length&&!n.status?r.push("and"):r.length&&r.push(","),n.ac_add?r.push(`${n.name} added ${n.ac} to AC`):r.push(`${n.name} AC set to ${n.ac?n.ac:"be blank"}`)),n.status){r.length?r.push("and"):r.push(n.name);let s;n.status.length>1?(s=[n.status.slice(0,n.status.length-1).join(", ")],s.push(n.status[n.status.length-1])):s=[n.status[0]],n.saved?r.push(`saved against ${s.join(" and ")}`):r.push(`took ${s.join(" and ")} status`)}if(n.remove_status){r.length?r.push("and"):r.push(n.name);let s;n.remove_status.length>1?(s=[n.remove_status.slice(0,n.remove_status.length-1).join(", ")],s.push(n.remove_status[n.remove_status.length-1])):s=[n.remove_status[0]],r.push(`relieved of ${s.join(" and ")} status`)}t.push(r.join(" "))}this.log(`${t.join(". ")}.`)}};var Da=require("obsidian");var hn=require("obsidian");var wi=require("obsidian");function A7(i){se(i,"svelte-1rjv45j",".create-new.svelte-1rjv45j>.svelte-1rjv45j{display:grid;grid-template-columns:33% 66%;margin-bottom:0.5rem}.context-buttons.svelte-1rjv45j.svelte-1rjv45j{display:flex;justify-content:flex-end;align-items:center;grid-gap:0.125rem}.cancel-button.svelte-1rjv45j.svelte-1rjv45j{color:var(--text-faint)}.initiative.svelte-1rjv45j.svelte-1rjv45j{position:relative}.initiative.svelte-1rjv45j>.dice.svelte-1rjv45j{position:absolute;right:0.25rem;top:50%;transform:translateY(-50%)}")}function A_(i){let e,t,n,r,s,o,a,l,c,u,f,d,h,p,m,g,O,_,S;return{c(){e=b("div"),t=b("label"),t.textContent="Static Initiative",n=R(),r=b("div"),o=R(),a=b("div"),l=b("label"),l.textContent="Hidden",c=R(),u=b("div"),d=R(),h=b("div"),p=b("label"),p.textContent="Friendly",m=R(),g=b("div"),v(t,"for","add-mod"),v(e,"class","svelte-1rjv45j"),v(l,"for","add-mod"),v(a,"class","svelte-1rjv45j"),v(p,"for","add-mod"),v(h,"class","svelte-1rjv45j")},m(P,k){A(P,e,k),y(e,t),y(e,n),y(e,r),A(P,o,k),A(P,a,k),y(a,l),y(a,c),y(a,u),A(P,d,k),A(P,h,k),y(h,p),y(h,m),y(h,g),_||(S=[H(s=i[14].call(null,r)),H(f=i[13].call(null,u)),H(O=i[15].call(null,g))],_=!0)},p:X,d(P){P&&(T(e),T(o),T(a),T(d),T(h)),_=!1,de(S)}}}function D_(i){let e,t,n,r,s,o;function a(u,f){return u[7]?Q7:D7}let l=a(i,-1),c=l(i);return{c(){e=b("div"),t=b("div"),r=R(),c.c(),v(t,"class","add-button cancel-button svelte-1rjv45j"),v(e,"class","context-buttons svelte-1rjv45j")},m(u,f){A(u,e,f),y(e,t),y(e,r),c.m(e,null),s||(o=H(n=i[10].call(null,t)),s=!0)},p(u,f){l!==(l=a(u,f))&&(c.d(1),c=l(u),c&&(c.c(),c.m(e,null)))},d(u){u&&T(e),c.d(),s=!1,o()}}}function D7(i){let e,t,n,r;return{c(){e=b("div"),v(e,"class","add-button")},m(s,o){A(s,e,o),n||(r=H(t=i[8].call(null,e)),n=!0)},d(s){s&&T(e),n=!1,r()}}}function Q7(i){let e,t,n,r;return{c(){e=b("div"),v(e,"class","add-button")},m(s,o){A(s,e,o),n||(r=H(t=i[9].call(null,e)),n=!0)},d(s){s&&T(e),n=!1,r()}}}function R7(i){let e,t,n,r,s,o,a,l,c,u,f,d,h,p,m,g,O,_,S,P,k,w,x,C,M,Z,Q,D,E,j,z,q,G,U,le,xe,ue,B,J,pe,Re,oe=i[4],we,yt,It,ot,Nt,Sr,nn,$t,Tt=A_(i),at=!i[3]&&!wi.Platform.isMobile&&D_(i);return{c(){e=b("div"),t=b("div"),n=b("div"),r=b("label"),r.textContent="Creature",s=R(),o=b("div"),l=R(),c=b("div"),u=b("label"),u.textContent="Display Name",f=R(),d=b("input"),h=R(),p=b("div"),m=b("label"),m.textContent="HP",g=R(),O=b("input"),_=R(),S=b("div"),P=b("label"),P.textContent="Hit Dice",k=R(),w=b("input"),x=R(),C=b("div"),M=b("label"),M.textContent="AC",Z=R(),Q=b("input"),D=R(),E=b("div"),j=b("label"),j.textContent="Modifier",z=R(),q=b("input"),G=R(),U=b("div"),le=b("label"),le.textContent="Initiative",xe=R(),ue=b("input"),B=R(),J=b("div"),Re=R(),Tt.c(),we=R(),yt=b("div"),It=b("label"),It.textContent="Amount",ot=R(),Nt=b("input"),Sr=R(),at&&at.c(),v(r,"for","add-name"),v(o,"id","add-name"),v(n,"class","svelte-1rjv45j"),v(u,"for","add-display"),v(d,"id","add-display"),v(d,"type","text"),v(d,"name","display"),v(d,"tabindex","0"),v(c,"class","svelte-1rjv45j"),v(m,"for","add-hp"),v(O,"id","add-hp"),v(O,"type","number"),v(O,"name","hp"),v(O,"tabindex","0"),v(p,"class","svelte-1rjv45j"),v(P,"for","hit-dice"),v(w,"id","hit-dice"),v(w,"type","text"),v(w,"name","hitdice"),v(w,"tabindex","0"),v(S,"class","svelte-1rjv45j"),v(M,"for","add-ac"),v(Q,"id","add-ac"),v(Q,"name","ac"),v(Q,"type","text"),v(Q,"tabindex","0"),v(C,"class","svelte-1rjv45j"),v(j,"for","add-mod"),v(q,"id","add-mod"),v(q,"type","text"),v(q,"name","add-mod"),v(q,"tabindex","0"),v(E,"class","svelte-1rjv45j"),v(le,"for","add-init"),v(ue,"id","add-init"),v(ue,"type","number"),v(ue,"name","initiative"),v(ue,"tabindex"
Line truncated
|
||||
`);try{await navigator.clipboard.writeText(M),new Qa.Notice("Initiative order copied to clipboard.")}catch{new Qa.Notice("Initiative order could not be copied to clipboard.")}})},p=()=>t(1,c=!0),m=()=>t(2,u=!0),g=()=>f();function O(C){ht.call(this,i,C)}function _(C){ht.call(this,i,C)}let S=C=>f(C.detail),P=C=>o.openCombatant(C.detail),k=()=>t(1,c=!1),w=()=>t(2,u=!1),x=()=>f();return i.$$set=C=>{"plugin"in C&&t(0,o=C.plugin)},i.$$.update=()=>{i.$$.dirty&256&&(n=s.displayDifficulty)},[o,c,u,a,l,f,d,h,s,p,m,g,O,_,S,P,k,w,x]}var Vm=class extends ne{constructor(e){super(),re(this,e,H7,U7,ie,{plugin:0},V7)}},L_=Vm;var Ra=class extends kn.ItemView{constructor(t,n){super(t);this.leaf=t;this.plugin=n;te(this,"ui");te(this,"playerViewOpened",!1);this.plugin.data.state?.creatures?.length}async onOpen(){this.ui=new L_({target:this.contentEl,props:{plugin:this.plugin}}),this.ui.$on("player-view",()=>this.openPlayerView())}getViewType(){return bo}getDisplayText(){return"Initiative Tracker"}getIcon(){return Qp}get pcs(){return[]}get npcs(){return[]}getExistingPlayerView(){let t=this.plugin.app.workspace.getLeavesOfType(_o);if(t.length)return t[0].view}async getPlayerView(){let t=this.getExistingPlayerView();if(t)return this.app.workspace.revealLeaf(t.leaf),t;let n=this.app.workspace.getLeaf("window");return await n.setViewState({type:_o}),await this.app.workspace.setActiveLeaf(n,{focus:!0}),n.view}async openPlayerView(){await this.getPlayerView(),this.playerViewOpened=!0}},tc=class extends kn.ItemView{constructor(t,n){super(t);this.plugin=n;te(this,"buttonEl",this.contentEl.createDiv("creature-view-button"));te(this,"statblockEl",this.contentEl.createDiv("creature-statblock-container"));this.load(),this.containerEl.addClass("creature-view-container"),this.containerEl.on("mouseover","a.internal-link",(0,kn.debounce)(r=>app.workspace.trigger("link-hover",{},r.target,r.target.dataset.href,"initiative-tracker "),10)),this.containerEl.on("click","a.internal-link",r=>app.workspace.openLinkText(r.target.dataset.href,"initiative-tracker"))}onload(){new kn.ExtraButtonComponent(this.buttonEl).setIcon("cross").setTooltip("Close Statblock").onClick(async()=>{await this.render(),this.app.workspace.trigger("initiative-tracker:stop-viewing")})}onunload(){this.app.workspace.trigger("initiative-tracker:stop-viewing")}async render(t){if(this.statblockEl.empty(),!t){this.statblockEl.createEl("em",{text:"Select a creature to view it here."});return}if(t["statblock-link"]&&(this.plugin.data.preferStatblockLink||!this.plugin.canUseStatBlocks))await this.renderEmbed(t.getStatblockLink());else if(this.plugin.canUseStatBlocks){let n=window.FantasyStatblocks.render(t.creature,this.statblockEl,t.display);this.addChild(n)}else this.statblockEl.createEl("em",{text:"Install the TTRPG Statblocks plugin or add a statblock-link to your monster to use this feature!"})}async renderEmbed(t){this.plugin.canUseStatBlocks&&window.FantasyStatblocks.isStatblockLink?.(t)&&(t=window.FantasyStatblocks.parseStatblockLink(t)),/\[.+\]\(.+\)/.test(t)?[,t]=t.match(/\[.+?\]\((.+?)\)/):/\[\[.+\]\]/.test(t)&&([,t]=t.match(/\[\[(.+?)(?:\|.+?)?\]\]/));let{path:n,subpath:r}=(0,kn.parseLinktext)(t),s=this.app.metadataCache.getFirstLinkpathDest(n,"/"),o=`Oops! Something is wrong with your statblock-link:<br />${t}`;if(s){let a=await this.app.vault.cachedRead(s);if(r&&a){let l=app.metadataCache.getFileCache(s),c=(0,kn.resolveSubpath)(l,r);c&&(o=a.slice(c.start.offset,c.end.offset))}else a&&(o=a)}await kn.MarkdownRenderer.render(this.app,o,this.statblockEl.createDiv("markdown-rendered"),n,this)}getDisplayText(){return"Combatant"}getIcon(){return Tp}getViewType(){return pa}};var aC=require("obsidian");var _U=$e(0);function G7(){let i=$e([]),{subscribe:e,set:t,update:n}=i,r=oi(i,a=>a.filter(l=>l.isPlayer)),s=oi(i,a=>a.filter(l=>l.isPlayer==!1)),o=oi(i,a=>[...a].reduce((l,c)=>l+c.count,0));return{subscribe:e,party:r,generics:s,count:o,modifier:oi(o,a=>a<3?1:a>5?-1:0),average:oi(i,a=>a.length?a.reduce((l,c)=>l+(c.enabled?c.level:0),0)/a.length:0),add:a=>n(l=>((!a.count||a.count<=0)&&(a.count=1),l.push(a),l)),addFromState:a=>n(l=>{let c=a;return c.isPlayer=!0,(!c.count||c.count<=0)&&(c.count=1),l.push(c),l}),remove:a=>n(l=>(l=l.filter(c=>c!=a),l)),delete:a=>n(l=>(l=l.filter(c=>c!=a),l)),set:(a,l)=>n(c=>{let u=c.find(f=>f==a);return u.count=l,c}),setLevel:(a,l)=>n(c=>{let u=c.find(f=>f==a);return u.level=l,c}),switchParty:a=>{n(l=>(l=[...a,...ct(s)],l))},empty:()=>t([]),toggleEnabled:a=>n(l=>{let c=l.find(u=>u==a);return c.enabled=!c.enabled,l})}}var ji=G7();var ic=require("obsidian");function K7(){let i=$e(new Map),{subscribe:e,set:t,update:n}=i;return{players:ji,subscribe:e,add:r=>n(s=>(s.set(r,(s.get(r)??0)+1),s)),remove:r=>n(s=>{let o=s.get(r);return o&&(o==1&&s.delete(r),o>1&&s.set(r,o-1)),s}),delete:r=>n(s=>(s.delete(r),s)),set:(r,s)=>n(o=>(o.set(r,s),o)),setMultiple:r=>n(s=>{for(let[o,a]of r)s.set(o,a);return s}),empty:()=>t(new Map),update:r=>n(s=>(s.set(r,s.get(r)??1),s))}}va
Line truncated
|
||||
". desc";justify-content:flex-start;align-items:center;grid-template-columns:auto 1fr}.creature-name.svelte-ywuffm{cursor:pointer;display:flex;justify-content:space-between}.setting-item-description.svelte-ywuffm{grid-area:desc}`)}function $_(i,e,t){let n=i.slice();return n[14]=e[t],n}function F_(i){let e,t,n,r,s;return{c(){e=b("div"),v(e,"class","contains-icon"),v(e,"aria-label",t="This creature is significantly under the average party level and might not contribute much to the fight.")},m(o,a){A(o,e,a),r||(s=H(n=i[8].call(null,e)),r=!0)},d(o){o&&T(e),r=!1,s()}}}function B_(i){let e,t,n,r,s;return{c(){e=b("div"),v(e,"class","contains-icon"),v(e,"aria-label",t="This creature is significantly over the average party level and might prove a challenge.")},m(o,a){A(o,e,a),r||(s=H(n=i[9].call(null,e)),r=!0)},d(o){o&&T(e),r=!1,s()}}}function V_(i){let e,t=X_(i[0].source)+"",n,r;return{c(){e=b("span"),n=ae(t),v(e,"aria-label",r=Y_(i[0].source))},m(s,o){A(s,e,o),y(e,n)},p(s,o){o&1&&t!==(t=X_(s[0].source)+"")&&me(n,t),o&1&&r!==(r=Y_(s[0].source))&&v(e,"aria-label",r)},d(s){s&&T(e)}}}function W_(i){let e,t,n;return t=new jf({props:{str:i[0][i[14].field]??We}}),{c(){e=b("td"),ye(t.$$.fragment)},m(r,s){A(r,e,s),Oe(t,e,null),n=!0},p(r,s){let o={};s&9&&(o.str=r[0][r[14].field]??We),t.$set(o)},i(r){n||($(t.$$.fragment,r),n=!0)},o(r){V(t.$$.fragment,r),n=!1},d(r){r&&T(e),ve(t)}}}function iA(i){let e,t,n,r,s,o,a,l=i[0].name+"",c,u,f,d,h,p,m,g,O,_=i[2]&&F_(i),S=i[1]&&B_(i),P=i[0].source?.length&&V_(i),k=fe(i[3]),w=[];for(let C=0;C<k.length;C+=1)w[C]=W_($_(i,k,C));let x=C=>V(w[C],1,1,()=>{w[C]=null});return{c(){e=b("tr"),t=b("td"),n=b("div"),r=b("div"),o=R(),a=b("div"),c=ae(l),u=R(),_&&_.c(),f=R(),S&&S.c(),d=R(),h=b("div"),P&&P.c(),p=R();for(let C=0;C<w.length;C+=1)w[C].c();v(a,"class","setting-item-name creature-name svelte-ywuffm"),v(h,"class","setting-item-description svelte-ywuffm"),v(n,"class","creature-name-container svelte-ywuffm"),v(e,"class","creature")},m(C,M){A(C,e,M),y(e,t),y(t,n),y(n,r),y(n,o),y(n,a),y(a,c),y(a,u),_&&_.m(a,null),y(a,f),S&&S.m(a,null),y(n,d),y(n,h),P&&P.m(h,null),y(e,p);for(let Z=0;Z<w.length;Z+=1)w[Z]&&w[Z].m(e,null);m=!0,g||(O=[H(s=i[7].call(null,r)),Y(r,"click",i[11]),Y(a,"click",i[12])],g=!0)},p(C,[M]){if((!m||M&1)&&l!==(l=C[0].name+"")&&me(c,l),C[2]?_||(_=F_(C),_.c(),_.m(a,f)):_&&(_.d(1),_=null),C[1]?S||(S=B_(C),S.c(),S.m(a,null)):S&&(S.d(1),S=null),C[0].source?.length?P?P.p(C,M):(P=V_(C),P.c(),P.m(h,null)):P&&(P.d(1),P=null),M&9){k=fe(C[3]);let Z;for(Z=0;Z<k.length;Z+=1){let Q=$_(C,k,Z);w[Z]?(w[Z].p(Q,M),$(w[Z],1)):(w[Z]=W_(Q),w[Z].c(),$(w[Z],1),w[Z].m(e,null))}for(Ee(),Z=k.length;Z<w.length;Z+=1)x(Z);Te()}},i(C){if(!m){for(let M=0;M<k.length;M+=1)$(w[M]);m=!0}},o(C){w=w.filter(Boolean);for(let M=0;M<w.length;M+=1)V(w[M]);m=!1},d(C){C&&T(e),_&&_.d(),S&&S.d(),P&&P.d(),Ie(w,C),g=!1,de(O)}}}function Zf(i,e=0,t=" ",n=!0){let r=[];if(e==5||i==null)return"";if(typeof i=="string")return i;if(typeof i=="number")return`${i}`;if(Array.isArray(i))r.push(`${n?"(":""}${i.map(s=>Zf(s,e++)).join(t)}${n?")":""}`);else if(typeof i=="object")for(let s of Object.values(i))r.push(Zf(s,e++));return r.join(" ")}function X_(i){if(!Array.isArray(i))return i;let e=i.slice(0,2);return i.length>2&&e.push(`and ${i.length-2} more`),Zf(e,0,", ",!1)}function Y_(i){return Array.isArray(i)?Zf(i,0,", ",!1):""}function nA(i,e,t){let n,r,s,o,{players:a}=ii,{average:l}=a;ke(i,l,O=>t(10,s=O));let c=Ye("plugin"),u=Ye("table");ke(i,u,O=>t(3,o=O));let{creature:f}=e,d=O=>{new ic.ExtraButtonComponent(O).setIcon("plus-with-circle")},h=O=>(0,ic.setIcon)(O,"baby"),p=O=>(0,ic.setIcon)(O,"skull"),m=()=>ii.add(f),g=O=>c.openCombatant(Ne.from(f));return i.$$set=O=>{"creature"in O&&t(0,f=O.creature)},i.$$.update=()=>{i.$$.dirty&1025&&t(2,n="cr"in f&&f.cr&&hi(f.cr)<s-3),i.$$.dirty&1025&&t(1,r="cr"in f&&f.cr&&hi(f.cr)>s+3)},[f,r,n,o,l,c,u,d,h,p,s,m,g]}var Xm=class extends ne{constructor(e){super(),re(this,e,nA,iA,ie,{creature:0},tA)}},U_=Xm;var Xf=require("obsidian");function zf(i,{delay:e=0,duration:t=400,easing:n=In}={}){let r=+getComputedStyle(i).opacity;return{delay:e,duration:t,easing:n,css:s=>`opacity: ${s*r}`}}function Ym(i,{delay:e=0,duration:t=400,easing:n=Ea,axis:r="y"}={}){let s=getComputedStyle(i),o=+s.opacity,a=r==="y"?"height":"width",l=parseFloat(s[a]),c=r==="y"?["top","bottom"]:["left","right"],u=c.map(O=>`${O[0].toUpperCase()}${O.slice(1)}`),f=parseFloat(s[`padding${u[0]}`]),d=parseFloat(s[`padding${u[1]}`]),h=parseFloat(s[`margin${u[0]}`]),p=parseFloat(s[`margin${u[1]}`]),m=parseFloat(s[`border${u[0]}Width`]),g=parseFloat(s[`border${u[1]}Width`]);return{delay:e,duration:t,easing:n,css:O=>`overflow: hidden;opacity: ${Math.min(O*20,1)*o};${a}: ${O*l}px;padding-${c[0]}: ${O*f}px;padding-${c[1]}: ${O*d}px;margin-${c[0]}: ${O*h}px;margin-${c[1]}: ${O*p}px;border-${c[0]}-width: ${O*m}px;border-${c[1]}-width: ${O*g}px;`}}var rA=Function.prototype.toString,Um=Object.create,sA=Object.prototype.toString,oA=function(){functi
Line truncated
|
||||
left: ${o?Math.min(f[0],f[1])*100:0}%;
|
||||
right: ${100-Math.max(f[0],o?f[1]:f[0])*100}%;
|
||||
`)},[u,s,o,f,d,n,O,a,l,c,h,_,S,P,k]}var sg=class extends ne{constructor(e){super(),re(this,e,KA,HA,ie,{name:1,range:2,min:7,max:8,step:9,value:0,order:10},XA)}},dw=sg;function JA(i){se(i,"svelte-191t5bs",".range-filter.svelte-191t5bs{display:flex;align-items:center;gap:1rem;width:100%;white-space:nowrap}")}function eD(i){let e,t,n,r,s,o,a,l,c,u,f,d,h,p,m,g,O,_,S,P;function k(x){i[5](x)}let w={range:!0,order:!0,min:i[0].options[0],max:i[0].options[1]};return i[3]!==void 0&&(w.value=i[3]),c=new dw({props:w}),mi.push(()=>Mr(c,"value",k)),{c(){e=b("div"),t=b("span"),n=ae(i[2]),r=R(),s=b("input"),l=R(),ye(c.$$.fragment),f=R(),d=b("input"),m=R(),g=b("span"),O=ae(i[1]),v(s,"type","number"),v(s,"placeholder",i[2]),v(s,"min",o=i[0].options[0]),v(s,"max",a=i[0].options[1]),v(d,"type","number"),v(d,"placeholder",i[1]),v(d,"min",h=i[0].options[0]),v(d,"max",p=i[0].options[1]),v(e,"class","range-filter svelte-191t5bs")},m(x,C){A(x,e,C),y(e,t),y(t,n),y(e,r),y(e,s),Xe(s,i[3][0]),y(e,l),Oe(c,e,null),y(e,f),y(e,d),Xe(d,i[3][1]),y(e,m),y(e,g),y(g,O),_=!0,S||(P=[Y(s,"input",i[4]),Y(d,"input",i[6])],S=!0)},p(x,[C]){(!_||C&4)&&me(n,x[2]),(!_||C&4)&&v(s,"placeholder",x[2]),(!_||C&1&&o!==(o=x[0].options[0]))&&v(s,"min",o),(!_||C&1&&a!==(a=x[0].options[1]))&&v(s,"max",a),C&8&&pi(s.value)!==x[3][0]&&Xe(s,x[3][0]);let M={};C&1&&(M.min=x[0].options[0]),C&1&&(M.max=x[0].options[1]),!u&&C&8&&(u=!0,M.value=x[3],Qr(()=>u=!1)),c.$set(M),(!_||C&2)&&v(d,"placeholder",x[1]),(!_||C&1&&h!==(h=x[0].options[0]))&&v(d,"min",h),(!_||C&1&&p!==(p=x[0].options[1]))&&v(d,"max",p),C&8&&pi(d.value)!==x[3][1]&&Xe(d,x[3][1]),(!_||C&2)&&me(O,x[1])},i(x){_||($(c.$$.fragment,x),_=!0)},o(x){V(c.$$.fragment,x),_=!1},d(x){x&&T(e),ve(c),S=!1,de(P)}}}function tD(i,e,t){let n,r,s,o=X,a=()=>(o(),o=Ii(l,d=>t(3,s=d)),l);i.$$.on_destroy.push(()=>o());let{filter:l}=e;a();function c(){s[0]=pi(this.value),l.set(s)}function u(d){s=d,l.set(s)}function f(){s[1]=pi(this.value),l.set(s)}return i.$$set=d=>{"filter"in d&&a(t(0,l=d.filter))},i.$$.update=()=>{i.$$.dirty&1&&t(2,n=`Min ${l.filter.text}`),i.$$.dirty&1&&t(1,r=`Max ${l.filter.text}`)},[l,r,n,s,c,u,f]}var og=class extends ne{constructor(e){super(),re(this,e,tD,eD,ie,{filter:0},JA)}},hw=og;function iD(i){se(i,"svelte-66wdl1","div.svelte-66wdl1{display:inline-block;vertical-align:middle;margin:0 3pt;border-width:calc(1em / 5);border-style:solid;border-radius:50%;animation:var(--duration) infinite svelte-66wdl1-rotate}@keyframes svelte-66wdl1-rotate{100%{transform:rotate(360deg)}}")}function nD(i){let e,t=`${i[0]} transparent ${i[0]}
|
||||
${i[0]}`;return{c(){e=b("div"),Ce(e,"--duration",i[1]),v(e,"class","svelte-66wdl1"),Ce(e,"border-color",t),Ce(e,"width",i[2]),Ce(e,"height",i[2])},m(n,r){A(n,e,r)},p(n,[r]){r&2&&Ce(e,"--duration",n[1]);let s=r&2;(r&3&&t!==(t=`${n[0]} transparent ${n[0]}
|
||||
${n[0]}`)||s)&&Ce(e,"border-color",t),(r&6||s)&&Ce(e,"width",n[2]),(r&6||s)&&Ce(e,"height",n[2])},i:X,o:X,d(n){n&&T(e)}}}function rD(i,e,t){let{color:n="cornflowerblue"}=e,{duration:r="1.5s"}=e,{size:s="1em"}=e;return i.$$set=o=>{"color"in o&&t(0,n=o.color),"duration"in o&&t(1,r=o.duration),"size"in o&&t(2,s=o.size)},[n,r,s]}var ag=class extends ne{constructor(e){super(),re(this,e,rD,nD,ie,{color:0,duration:1,size:2},iD)}},lg=ag;function sD(i){let e,t=`rotate(${i[0].angle}deg) scale(${i[0].scale}) translate(${i[0].dx}px,
|
||||
${i[0].dy}px)`,n,r=i[11].default,s=Gt(r,i,i[10],null);return{c(){e=b("span"),s&&s.c(),Ce(e,"transform",t)},m(o,a){A(o,e,a),s&&s.m(e,null),n=!0},p(o,[a]){s&&s.p&&(!n||a&1024)&&Jt(s,r,o,o[10],n?Kt(r,o[10],a,null):ei(o[10]),null),a&1&&t!==(t=`rotate(${o[0].angle}deg) scale(${o[0].scale}) translate(${o[0].dx}px,
|
||||
${o[0].dy}px)`)&&Ce(e,"transform",t)},i(o){n||($(s,o),n=!0)},o(o){V(s,o),n=!1},d(o){o&&T(e),s&&s.d(o)}}}function oD(i,e,t){let n,{$$slots:r={},$$scope:s}=e,{wiggle:o=!1}=e,{angle:a=0}=e,{scale:l=1}=e,{dx:c=0}=e,{dy:u=0}=e,{duration:f=200}=e,{stiffness:d=.05}=e,{damping:h=.1}=e,p={angle:0,scale:1,dx:0,dy:0},m=a_(p,{stiffness:d,damping:h});return ke(i,m,g=>t(0,n=g)),i.$$set=g=>{"wiggle"in g&&t(2,o=g.wiggle),"angle"in g&&t(3,a=g.angle),"scale"in g&&t(4,l=g.scale),"dx"in g&&t(5,c=g.dx),"dy"in g&&t(6,u=g.dy),"duration"in g&&t(7,f=g.duration),"stiffness"in g&&t(8,d=g.stiffness),"damping"in g&&t(9,h=g.damping),"$$scope"in g&&t(10,s=g.$$scope)},i.$$.update=()=>{i.$$.dirty&132&&o&&setTimeout(()=>t(2,o=!1),f),i.$$.dirty&124&&m.set(o?{scale:l,angle:a,dx:c,dy:u}:p)},[n,m,o,a,l,c,u,f,d,h,s,r]}var cg=class extends ne{constructor(e){super(),re(this,e,oD,sD,ie,{wiggle:2,angle:3,scale:4,dx:5,dy:6,duration:7,stiffness:8,damping:9})}},ug=cg;function aD(i){let e,t,n=[i[0],{fill:"currentColor"},{viewBox:"0 0 16 16"}],r={};for(let s=0;s<n.length;s+=1)r=ti(r,n[s]);return{c(){e=nr("svg"),t=nr("path"),v(t,"d","M3.646 9.146a.5.5 0 0 1 .708 0L8 12.793l3.646-3.647a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708zm0-2.292a.5.5 0 0 0 .708 0L8 3.207l3.646 3.647a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 0 0 0 .708z"),Tr(e,r)},m(s,o){A(s,e,o),y(e,t)},p(s,[o]){Tr(e,r=Rr(n,[o&1&&s[0],{fill:"currentColor"},{viewBox:"0 0 16 16"}]))},i:X,o:X,d(s){s&&T(e)}}}function lD(i,e,t){return i.$$set=n=>{t(0,e=ti(ti({},e),ir(n)))},e=ir(e),[e]}var fg=class extends ne{constructor(e){super(),re(this,e,lD,aD,ie,{})}},dg=fg;function cD(i){let e,t,n=[i[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}],r={};for(let s=0;s<n.length;s+=1)r=ti(r,n[s]);return{c(){e=nr("svg"),t=nr("path"),v(t,"d","M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"),Tr(e,r)},m(s,o){A(s,e,o),y(e,t)},p(s,[o]){Tr(e,r=Rr(n,[o&1&&s[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}]))},i:X,o:X,d(s){s&&T(e)}}}function uD(i,e,t){return i.$$set=n=>{t(0,e=ti(ti({},e),ir(n)))},e=ir(e),[e]}var hg=class extends ne{constructor(e){super(),re(this,e,uD,cD,ie,{})}},Ff=hg;function fD(i){let e,t,n=[i[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}],r={};for(let s=0;s<n.length;s+=1)r=ti(r,n[s]);return{c(){e=nr("svg"),t=nr("path"),v(t,"d","M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10Zm-4.906-3.68L18.32 7.094A8 8 0 0 1 7.094 18.32ZM5.68 16.906A8 8 0 0 1 16.906 5.68L5.68 16.906Z"),Tr(e,r)},m(s,o){A(s,e,o),y(e,t)},p(s,[o]){Tr(e,r=Rr(n,[o&1&&s[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}]))},i:X,o:X,d(s){s&&T(e)}}}function dD(i,e,t){return i.$$set=n=>{t(0,e=ti(ti({},e),ir(n)))},e=ir(e),[e]}var pg=class extends ne{constructor(e){super(),re(this,e,dD,fD,ie,{})}},mg=pg;var ki=i=>i instanceof Object?(i.label===void 0&&console.error(`MultiSelect option ${JSON.stringify(i)} is an object but has no label key`),i.label):`${i}`;function nc(i,e=null){let t="";if(["selected","option",null].includes(e)||console.error(`MultiSelect: Invalid key=${e} for get_style`),typeof i=="object"&&i.style&&(typeof i.style=="string"&&(t=i.style),typeof i.style=="object")){if(e&&e in i.style)return i.style[e]??"";console.error(`Invalid style object for option=${JSON.stringify(i)}`)}return t.trim()&&!t.trim().endsWith(";")&&(t+=";"),t}var{Boolean:hD}=Rl;function pD(i){se(i,"svelte-1r2hsto",".svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect){position:relative;align-items:center;display:flex;cursor:text;box-sizing:border-box;border:var(--sms-border, 1pt solid lightgray);border-radius:var(--sms-border-radius, 3pt);background:var(--sms-bg);width:var(--sms-width);max-width:var(--sms-max-width);padding:var(--sms-padding, 0 3pt);color:var(--sms-text-color);font-size:var(--sms-font-size, inherit);min-height:var(--sms-min-height, 22pt);margin:var(--sms-margin)}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect.open){z-index:var(--sms-open-z-index, 4)}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect:focus-within){border:var(--sms-focus-border, 1pt solid var(--sms-active-color, cornflowerblue))}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect.disabled){background:var(--sms-disabled-bg, lightgray);cursor:not-allowed}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect > ul.selected){display:flex;flex:1;padding:0;margin:0;flex-wrap:wrap}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect > ul.selected > li){align-items:center;border-radius:3pt;display:flex;margin:2pt;line-height:normal;transition:0.3s;white-space:nowrap;background:var(--sms-selected-bg, rgba(0, 0, 0, 0.15));padding:var(--sms-selected-li-padding, 1pt 5pt);color:var(--sms-selected-text-color, var(--sms-text-color))}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multise
Line truncated
|
||||
`){[e,t]=za(this,e,t);let r="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(r+=n),e<l&&t>s&&(r+=a.slice(Math.max(0,e-s),t-s)),s=l+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let s of e)n.push(s),r+=s.length+1,n.length==32&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}},Ia=class i extends ut{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let s=0;;s++){let o=this.children[s],a=r+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=l+1}}decompose(e,t,n,r){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&t>=o){let c=r&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!c?n.push(a):a.decompose(e-o,t-o,n,c)}o=l+1}}replace(e,t,n){if([e,t]=za(this,e,t),n.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e>=s&&t<=a){let l=o.replace(e-s,t-s,n),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[r]=l,new i(u,this.length-(t-e)+n.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
|
||||
`){[e,t]=za(this,e,t);let r="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(r+=n),e<l&&t>o&&(r+=a.sliceString(e-o,t-o,n)),o=l+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof i))return 0;let n=0,[r,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,s+=t){if(r==o||s==a)return n;let l=this.children[r],c=e.children[s];if(l!=c)return n+l.scanIdentical(c,t);n+=l.length+1}}static from(e,t=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let h of e)n+=h.lines;if(n<32){let h=[];for(let p of e)p.flatten(h);return new Sn(h,t)}let r=Math.max(32,n>>5),s=r<<1,o=r>>1,a=[],l=0,c=-1,u=[];function f(h){let p;if(h.lines>s&&h instanceof i)for(let m of h.children)f(m);else h.lines>o&&(l>o||!l)?(d(),a.push(h)):h instanceof Sn&&l&&(p=u[u.length-1])instanceof Sn&&h.lines+p.lines<=32?(l+=h.lines,c+=h.length+1,u[u.length-1]=new Sn(p.text.concat(h.text),p.length+1+h.length)):(l+h.lines>r&&d(),l+=h.lines,c+=h.length+1,u.push(h))}function d(){l!=0&&(a.push(u.length==1?u[0]:i.from(u,c)),c=-1,l=u.length=0)}for(let h of e)f(h);return d(),a.length==1?a[0]:new i(a,t)}};ut.empty=new Sn([""],0);function f8(i){let e=-1;for(let t of i)e+=t.length+1;return e}function Hf(i,e,t=0,n=1e9){for(let r=0,s=0,o=!0;s<i.length&&r<=n;s++){let a=i[s],l=r+a.length;l>=t&&(l>n&&(a=a.slice(0,n-r)),r<t&&(a=a.slice(t-r)),o?(e[e.length-1]+=a,o=!1):e.push(a)),r=l+1}return e}function ek(i,e,t){return Hf(i,[""],e,t)}var Mo=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Sn?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],s=this.offsets[n],o=s>>1,a=r instanceof Sn?r.text.length:r.children.length;if(o==(t>0?a:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
|
||||
`,this;e--}else if(r instanceof Sn){let l=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof Sn?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Gf=class{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Mo(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Kf=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(ut.prototype[Symbol.iterator]=function(){return this.iter()},Mo.prototype[Symbol.iterator]=Gf.prototype[Symbol.iterator]=Kf.prototype[Symbol.iterator]=function(){return this});var Sg=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function za(i,e,t){return e=Math.max(0,Math.min(i.length,e)),[e,Math.max(e,Math.min(i.length,t))]}var Na="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(i=>i?parseInt(i,36):1);for(let i=1;i<Na.length;i++)Na[i]+=Na[i-1];function d8(i){for(let e=1;e<Na.length;e+=2)if(Na[e]>i)return Na[e-1]<=i;return!1}function tk(i){return i>=127462&&i<=127487}var ik=8205;function ui(i,e,t=!0,n=!0){return(t?lk:h8)(i,e,n)}function lk(i,e,t){if(e==i.length)return e;e&&ck(i.charCodeAt(e))&&uk(i.charCodeAt(e-1))&&e--;let n=gi(i,e);for(e+=Yi(n);e<i.length;){let r=gi(i,e);if(n==ik||r==ik||t&&d8(r))e+=Yi(r),n=r;else if(tk(r)){let s=0,o=e-2;for(;o>=0&&tk(gi(i,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function h8(i,e,t){for(;e>0;){let n=lk(i,e-2,t);if(n<e)return n;e--}return 0}function ck(i){return i>=56320&&i<57344}function uk(i){return i>=55296&&i<56320}function gi(i,e){let t=i.charCodeAt(e);if(!uk(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return ck(n)?(t-55296<<10)+(n-56320)+65536:t}function fc(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}function Yi(i){return i<65536?1:2}var xg=/\r\n?|\n/,Ei=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(Ei||(Ei={})),ps=class i{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let s=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,s),r+=s):r+=o,n+=s}}iterChangedRanges
Line truncated
|
||||
`}get readOnly(){return this.facet(vk)}phrase(e,...t){for(let n of this.facet(i.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>t.length?n:t[s-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let s of this.facet(hk))for(let o of s(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return w8(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let l=ui(t,o,!1);if(s(t.slice(l,o))!=Pt.Word)break;o=l}for(;a<r;){let l=ui(t,a);if(s(t.slice(a,l))!=Pt.Word)break;a=l}return o==a?null:ce.range(o+n,a+n)}};At.allowMultipleSelections=Tg;At.tabSize=Ae.define({combine:i=>i.length?i[0]:4});At.lineSeparator=pk;At.readOnly=vk;At.phrases=Ae.define({compare(i,e){let t=Object.keys(i),n=Object.keys(e);return t.length==n.length&&t.every(r=>i[r]==e[r])}});At.languageData=hk;At.changeFilter=mk;At.transactionFilter=gk;At.transactionExtender=Ok;ed.reconfigure=ze.define();function mn(i,e,t={}){let n={};for(let r of i)for(let s of Object.keys(r)){let o=r[s],a=n[s];if(a===void 0)n[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,s))n[s]=t[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)n[r]===void 0&&(n[r]=e[r]);return n}var ur=class{eq(e){return this==e}range(e,t=e){return cc.create(e,t,this)}};ur.prototype.startSide=ur.prototype.endSide=0;ur.prototype.point=!1;ur.prototype.mapMode=Ei.TrackDel;var cc=class i{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new i(e,t,n)}};function Mg(i,e){return i.from-e.from||i.value.startSide-e.value.startSide}var Ig=class i{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let s=n?this.to:this.from;for(let o=r,a=s.length;;){if(o==a)return o;let l=o+a>>1,c=s[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return c>=0?o:a;c>=0?a=l:o=l+1}}between(e,t,n,r){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let n=[],r=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],u=this.from[l]+e,f=this.to[l]+e,d,h;if(u==f){let p=t.mapPos(u,c.startSide,c.mapMode);if(p==null||(d=h=p,c.startSide!=c.endSide&&(h=t.mapPos(u,c.endSide),h<d)))continue}else if(d=t.mapPos(u,c.startSide),h=t.mapPos(f,c.endSide),d>h||d==h&&c.startSide>0&&c.endSide<=0)continue;(h-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(a=Math.max(a,h-d)),n.push(c),r.push(d-o),s.push(h-o))}return{mapped:n.length?new i(r,s,n,a):null,pos:o}}},kt=class i{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new i(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(Mg)),this.isEmpty)return t.length?i.of(t):this;let a=new nd(this,null,-1).goto(0),l=0,c=[],u=new jr;for(;a.value||l<t.length;)if(l<t.length&&(a.from-t[l].from||a.startSide-t[l].value.startSide)>=0){let f=t[l++];u.addInner(f.from,f.to,f.value)||c.push(f)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==t.length||this.chunkEnd(a.chunkIndex)<t[l].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||s<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||c.push(cc.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!c.length?i.empty:this.nextLayer.update({add:c,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],c=e.touchesRange(a,a+l.length);if(c===!1)r=Math.max(r,l.maxPoint),t.push(l),n.push(e.mapPos(a));else if(c===!0){let{mapped:u,pos:f}=l.map(a,e);u&&(r=Math.max(r,u.maxPoint),t.push(u),n.push(f))}}let s=this.nextLayer.map(e);return t.length==0?s:new i(n,t,s||i.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return uc.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return uc.from(e).goto(t)}static compare(e,t,n,r,s=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=s),a=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=s),l=sk
Line truncated
|
||||
`)}static newName(){let e=wk[_k]||1;return wk[_k]=e+1,zg+e.toString(36)}static mount(e,t,n){let r=e[qg],s=n&&n.nonce;r?s&&r.setNonce(s):r=new Lg(e,s),r.mount(Array.isArray(t)?t:[t],e)}},kk=new Map,Lg=class{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=kk.get(n);if(s)return e[qg]=s;this.sheet=new r.CSSStyleSheet,kk.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[qg]=this}mount(e,t){let n=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),n)for(let c=0;c<a.rules.length;c++)n.insertRule(a.rules[c],r++)}else{for(;s<l;)r+=this.modules[s++].rules.length;r+=a.rules.length,s++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
|
||||
`;this.styleTag.textContent=o;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var ms={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},qa={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},S8=typeof navigator<"u"&&/Mac/.test(navigator.platform),x8=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(fi=0;fi<10;fi++)ms[48+fi]=ms[96+fi]=String(fi);var fi;for(fi=1;fi<=24;fi++)ms[fi+111]="F"+fi;var fi;for(fi=65;fi<=90;fi++)ms[fi]=String.fromCharCode(fi+32),qa[fi]=String.fromCharCode(fi);var fi;for(sd in ms)qa.hasOwnProperty(sd)||(qa[sd]=ms[sd]);var sd;function Sk(i){var e=S8&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||x8&&i.shiftKey&&i.key&&i.key.length==1||i.key=="Unidentified",t=!e&&i.key||(i.shiftKey?qa:ms)[i.keyCode]||i.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function bd(i){let e;return i.nodeType==11?e=i.getSelection?i:i.ownerDocument:e=i,e.getSelection()}function Yg(i,e){return e?i==e||i.contains(e.nodeType!=1?e.parentNode:e):!1}function P8(i){let e=i.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function md(i,e){if(!e.anchorNode)return!1;try{return Yg(i,e.anchorNode)}catch{return!1}}function kc(i){return i.nodeType==3?jo(i,0,i.nodeValue.length).getClientRects():i.nodeType==1?i.getClientRects():[]}function vc(i,e,t,n){return t?xk(i,e,t,n,-1)||xk(i,e,t,n,1):!1}function No(i){for(var e=0;;e++)if(i=i.previousSibling,!i)return e}function _d(i){return i.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName)}function xk(i,e,t,n,r){for(;;){if(i==t&&e==n)return!0;if(e==(r<0?0:gs(i))){if(i.nodeName=="DIV")return!1;let s=i.parentNode;if(!s||s.nodeType!=1)return!1;e=No(i)+(r<0?0:1),i=s}else if(i.nodeType==1){if(i=i.childNodes[e+(r<0?-1:0)],i.nodeType==1&&i.contentEditable=="false")return!1;e=r<0?gs(i):0}else return!1}}function gs(i){return i.nodeType==3?i.nodeValue.length:i.childNodes.length}function D0(i,e){let t=e?i.left:i.right;return{left:t,right:t,top:i.top,bottom:i.bottom}}function C8(i){let e=i.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function l2(i,e){let t=e.width/i.offsetWidth,n=e.height/i.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-i.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-i.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function E8(i,e,t,n,r,s,o,a){let l=i.ownerDocument,c=l.defaultView||window;for(let u=i,f=!1;u&&!f;)if(u.nodeType==1){let d,h=u==l.body,p=1,m=1;if(h)d=C8(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(f=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let _=u.getBoundingClientRect();({scaleX:p,scaleY:m}=l2(u,_)),d={left:_.left,right:_.left+u.clientWidth*p,top:_.top,bottom:_.top+u.clientHeight*m}}let g=0,O=0;if(r=="nearest")e.top<d.top?(O=-(d.top-e.top+o),t>0&&e.bottom>d.bottom+O&&(O=e.bottom-d.bottom+O+o)):e.bottom>d.bottom&&(O=e.bottom-d.bottom+o,t<0&&e.top-O<d.top&&(O=-(d.top+O-e.top+o)));else{let _=e.bottom-e.top,S=d.bottom-d.top;O=(r=="center"&&_<=S?e.top+_/2-S/2:r=="start"||r=="center"&&t<0?e.top-o:e.bottom-S+o)-d.top}if(n=="nearest"?e.left<d.left?(g=-(d.left-e.left+s),t>0&&e.right>d.right+g&&(g=e.right-d.right+g+s)):e.right>d.right&&(g=e.right-d.right+s,t<0&&e.left<d.left+g&&(g=-(d.left+g-e.left+s))):g=(n=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:n=="start"==a?e.left-s:e.right-(d.right-d.left)+s)-d.left,g||O)if(h)c.scrollBy(g,O);else{let _=0,S=0;if(O){let P=u.scrollTop;u.scrollTop+=O/m,S=(u.scrollTop-P)*m}if(g){let P=u.scrollLeft;u.scrollLeft+=g/p,_=(u.scrollLeft-P)*p}e={left:e.left-_,top:e.top-S,right:e.right-_,bottom:e.bottom-S},_&&Math.abs(_-g)<1&&(n="nearest"),S&&Math.abs(S-O)<1&&(r="nearest")}if(h)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function T8(i){let e=i.ownerDocument;for(let t=i.parentNode;t&&t!=e.body;)if(t.nodeType==1){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assigneLine truncated
|
||||
`,r=i.state.doc.line(r.number+(t?1:-1)),s=i.bidiSpans(r),c=i.visualLineSide(r,!t)}if(l){if(!l(u))return a}else{if(!n)return c;l=n(u)}a=c}}function oQ(i,e,t){let n=i.state.charCategorizer(e),r=n(t);return s=>{let o=n(s);return r==Pt.Space&&(r=o),r==o}}function aQ(i,e,t,n){let r=e.head,s=t?1:-1;if(r==(t?i.state.doc.length:0))return ce.cursor(r,e.assoc);let o=e.goalColumn,a,l=i.contentDOM.getBoundingClientRect(),c=i.coordsAtPos(r,e.assoc||-1),u=i.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let h=i.viewState.lineBlockAt(r);o==null&&(o=Math.min(l.right-l.left,i.defaultCharacterWidth*(r-h.from))),a=(s<0?h.top:h.bottom)+u}let f=l.left+o,d=n??i.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let p=a+(d+h)*s,m=$2(i,{x:f,y:p},!1,s);if(p<l.top||p>l.bottom||(s<0?m<r:m>r)){let g=i.docView.coordsForChar(m),O=!g||p<g.top?-1:1;return ce.cursor(m,O,void 0,o)}}}function gd(i,e,t){for(;;){let n=0;for(let r of i)r.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=n||t||(e-s<o-e?-1:1);e=l<0?s:o,n=l}});if(!n)return e}}function Bg(i,e,t){let n=gd(i.state.facet(N0).map(r=>r(i)),t.from,e.head>t.from?-1:1);return n==t.from?t:ce.cursor(n,n<t.from?1:-1)}var l0=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Qe.safari&&e.contentDOM.addEventListener("input",()=>null),Qe.gecko&&wQ(e.contentDOM.ownerDocument)}handleEvent(e){!pQ(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,t);for(let r of n.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=lQ(e),n=this.handlers,r=this.view.contentDOM;for(let s in t)if(s!="scroll"){let o=!t[s].handlers.length,a=n[s];a&&o!=!a.handlers.length&&(r.removeEventListener(s,this.handleEvent),a=null),a||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in n)s!="scroll"&&!t[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&B2.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Qe.android&&Qe.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return Qe.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=F2.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||cQ.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Ba(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Qe.safari&&!Qe.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function Zk(i,e){return(t,n)=>{try{return e.call(i,n,t)}catch(r){Ai(t.state,r)}}}function lQ(i){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of i){let r=n.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let o=r.domEventHandlers[s];o&&t(s).handlers.push(Zk(n.value,o))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let o=r.domEventObservers[s];o&&t(s).observers.push(Zk(n.value,o))}}for(let n in hr)t(n).handlers.push(hr[n]);for(let n in qn)t(n).observers.push(qn[n]);return e}var F2=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],cQ="dthko",B2=[16,17,18,20,91,92,224,225],ld=6;function cd(i){return Math.max(0,i)*.7+8}function uQ(i,e){return Math.max(Math.abs(i.clientX-e.clientX
Line truncated
|
||||
`&&i.lineWrapping&&(n&&(n=ce.single(n.main.anchor-1,n.main.head-1)),t={from:r.from,to:r.to,insert:ut.of([" "])}),t){if(Qe.ios&&i.inputState.flushIOSKey(t)||Qe.android&&(t.to==r.to&&(t.from==r.from||t.from==r.from-1&&i.state.sliceDoc(t.from,r.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Ba(i.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&t.insert.length==0||s==8&&t.insert.length<t.to-t.from&&t.to>r.head)&&Ba(i.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&t.insert.length==0&&Ba(i.contentDOM,"Delete",46)))return!0;let o=t.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let a,l=()=>a||(a=DQ(i,t,n));return i.state.facet(D2).some(c=>c(i,t.from,t.to,o,l))||i.dispatch(l()),!0}else if(n&&!n.main.eq(r)){let o=!1,a="select";return i.inputState.lastSelectionTime>Date.now()-50&&(i.inputState.lastSelectionOrigin=="select"&&(o=!0),a=i.inputState.lastSelectionOrigin),i.dispatch({selection:n,scrollIntoView:o,userEvent:a}),!0}else return!1}function DQ(i,e,t){let n,r=i.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&i.inputState.composing<0){let a=s.from<e.from?r.sliceDoc(s.from,e.from):"",l=s.to>e.to?r.sliceDoc(e.to,s.to):"";n=r.replaceSelection(i.state.toText(a+e.insert.sliceString(0,void 0,i.state.lineBreak)+l))}else{let a=r.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(r.selection.ranges.length>1&&i.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=i.state.sliceDoc(e.from,e.to),u,f=t&&L2(i,t.main.head);if(f){let p=e.insert.length-(e.to-e.from);u={from:f.from,to:f.to-p}}else u=i.state.doc.lineAt(s.head);let d=s.to-e.to,h=s.to-s.from;n=r.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:a,range:l||p.map(a)};let m=p.to-d,g=m-c.length;if(p.to-p.from!=h||i.state.sliceDoc(g,m)!=c||p.to>=u.from&&p.from<=u.to)return{range:p};let O=r.changes({from:g,to:m,insert:e.insert}),_=p.to-s.to;return{changes:O,range:l?ce.range(Math.max(0,l.anchor+_),Math.max(0,l.head+_)):p.map(O)}})}else n={changes:a,selection:l&&r.selection.replaceRange(l)}}let o="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,o+=".compose",i.inputState.compositionFirstChange&&(o+=".start",i.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:o,scrollIntoView:!0})}function QQ(i,e,t,n){let r=Math.min(i.length,e.length),s=0;for(;s<r&&i.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&i.length==e.length)return null;let o=i.length,a=e.length;for(;o>0&&a>0&&i.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(n=="end"){let l=Math.max(0,s-Math.min(o,a));t-=o+l-s}if(o<s&&i.length<e.length){let l=t<=s&&t>=o?s-t:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=t<=s&&t>=a?s-t:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function RQ(i){let e=[];if(i.root.activeElement!=i.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:r,focusOffset:s}=i.observer.selectionRange;return t&&(e.push(new Ed(t,n)),(r!=t||s!=n)&&e.push(new Ed(r,s))),e}function MQ(i,e){if(i.length==0)return null;let t=i[0].pos,n=i.length==2?i[1].pos:t;return t>-1&&n>-1?ce.single(t+e,n+e):null}var IQ={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Vg=Qe.ie&&Qe.ie_version<=11,k0=class{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Ug,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(Qe.ie&&Qe.ie_version<=11||Qe.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),Vg&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.on
Line truncated
|
||||
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new X1(this):new W1(this)}getCursor(e,t=0,n){let r=e.doc?e:At.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?il(this,r,t,n):tl(this,r,t,n)}},bh=class{constructor(e){this.spec=e}};function tl(i,e,t,n){return new io(e.doc,i.unquoted,t,n,i.caseSensitive?void 0:r=>r.toLowerCase(),i.wholeWord?P9(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function P9(i,e){return(t,n,r,s)=>((s>t||s+r.length<n)&&(s=Math.max(0,t-2),r=i.sliceString(s,Math.min(i.length,n+2))),(e(_h(r,t-s))!=Pt.Word||e(wh(r,t-s))!=Pt.Word)&&(e(wh(r,n-s))!=Pt.Word||e(_h(r,n-s))!=Pt.Word))}var W1=class extends bh{constructor(e){super(e)}nextMatch(e,t,n){let r=tl(this.spec,e,n,e.doc.length).nextOverlapping();return r.done&&(r=tl(this.spec,e,0,t).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let s=Math.max(t,r-1e4-this.spec.unquoted.length),o=tl(this.spec,e,s,r),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==t)return null;r-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=tl(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let s=tl(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}};function il(i,e,t,n){return new ph(e.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?C9(e.charCategorizer(e.selection.main.head)):void 0},t,n)}function _h(i,e){return i.slice(ui(i,e,!1),e)}function wh(i,e){return i.slice(e,ui(i,e))}function C9(i){return(e,t,n)=>!n[0].length||(i(_h(n.input,n.index))!=Pt.Word||i(wh(n.input,n.index))!=Pt.Word)&&(i(wh(n.input,n.index+n[0].length))!=Pt.Word||i(_h(n.input,n.index+n[0].length))!=Pt.Word)}var X1=class extends bh{nextMatch(e,t,n){let r=il(this.spec,e,n,e.doc.length).next();return r.done&&(r=il(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let s=Math.max(t,n-r*1e4),o=il(this.spec,e,s,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,n)=>n=="$"?"$":n=="&"?e.match[0]:n!="0"&&+n<e.match.length?e.match[n]:t)}matchAll(e,t){let n=il(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let s=il(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}},Gc=ze.define(),G1=ze.define(),to=Xt.define({create(i){return new Hc(Y1(i).create(),null)},update(i,e){for(let t of e.effects)t.is(Gc)?i=new Hc(t.value.create(),i.panel):t.is(G1)&&(i=new Hc(i.query,t.value?K1:null));return i},provide:i=>zo.from(i,e=>e.panel)});var Hc=class{constructor(e,t){this.query=e,this.panel=t}},E9=je.mark({class:"cm-searchMatch"}),T9=je.mark({class:"cm-searchMatch cm-searchMatch-selected"}),A9=di.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(to))}update(i){let e=i.state.field(to);(e!=i.startState.field(to)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:i,panel:e}){if(!e||!i.spec.valid)return je.none;let{view:t}=this,n=new jr;for(let r=0,s=t.visibleRanges,o=s.length;r<o;r++){let{from:a,to:l}=s[r];for(;r<o-1&&l>s[r+1].from-2*250;)l=s[++r].to;i.highlight(t.state,a,l,(c,u)=>{let f=t.state.selection.ranges.some(d=>d.from==c&&d.to==u);n.add(c,u,f?T9:E9)})}return n.finish()}},{decorations:i=>i.decorations});function Kc(i){return e=>{let t=e.state.field(to,!1);return t&&t.query.spec.valid?i(e,t):kP(e)}}var kh=Kc((i,{query:e})=>{let{to:t}=i.state.selection.main,n=e.nextMatch(i.state,t,t);if(!n)return!1;let r=ce.single(n.from,n.to),s=i.state.facet(nl);return i.dispatch({selection:r,effects:[J1(i,n),s.scrollToMatch(r.main,i)],userEvent:"select.search"}),wP(i),!0}),Sh=Kc((i,{query:e})=>{let{state:t}=i,{from:n}=t.selection.main,r=e.prevMatch(t,n,n);if(!r)return!1;let s=ce.single(r.from,r.to),o=i.state.facet(nl);return i.dispatch({selection:s,effects:[J1(i,r),o.scrollToMatch(s.main,i)],userEvent:"select.search"}),wP(i),!0}),D9=Kc((i,{query:e})=>{let t=e.matchAll(i.state,1e3);return!t||!t.length?!1:(i.dispatch({selection:ce.create(t.map(n=>ce.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),Q9=({state:i,dispatch:e})=>{let t=i.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:r}=t.main,s=[],o=0;for(let a=new io(i.doc,i.sliceDoc(n,r));!a.next().done;){if(s.length>1e3)return
Line truncated
|
||||
${(0,Ft.stringifyYaml)(U)}\`\`\``),new Ft.Notice("Encounter saved to clipboard")}catch(le){console.error(le),new Ft.Notice("Could not save encounter, please check console for errors")}};function z(){a=this.value,d.set(a)}let q=()=>Ke(h,l=!0,l),G=()=>{ii.empty(),Ke(f,o="Encounter",o)};return i.$$.update=()=>{i.$$.dirty[0]&16777216&&t(0,n=[...r.entries()]),i.$$.dirty[0]&1048577&&O&&(n.length?(O.setDisabled(!1),O.setTooltip("Start Encounter")):(O.setDisabled(!0),O.setTooltip(""))),i.$$.dirty[0]&18874368&&P?.setDisabled(r.size==0),i.$$.dirty[0]&4194305&&C&&(n.length?(C.setDisabled(!1),C.setTooltip("Copy Encounter Block")):(C.setDisabled(!0),C.setTooltip(""))),i.$$.dirty[0]&8388608&&Z?.setDisabled(Object.keys(u.data.encounters).length==0)},[n,o,a,l,c,f,d,h,p,m,_,S,k,w,x,M,Q,D,E,j,O,P,C,Z,r,z,q,G]}var ny=class extends ne{constructor(e){super(),re(this,e,ZL,jL,ie,{},QL,[-1,-1])}},F5=ny;function zL(i){se(i,"svelte-r6lzam","details.svelte-r6lzam>summary.svelte-r6lzam.svelte-r6lzam{outline:none;display:flex !important;align-items:center;justify-content:space-between;gap:0.25rem;list-style:none !important;list-style-type:none !important;min-height:1rem;border-top-left-radius:0.1rem;border-top-right-radius:0.1rem;cursor:pointer;position:relative;margin-bottom:1rem}details.svelte-r6lzam>summary.svelte-r6lzam.svelte-r6lzam::-webkit-details-marker,details.svelte-r6lzam>summary.svelte-r6lzam.svelte-r6lzam::marker{display:none !important}details.svelte-r6lzam>summary.svelte-r6lzam>.collapser.svelte-r6lzam{position:relative;display:flex;align-items:center}details.svelte-r6lzam>summary .collapser.svelte-r6lzam>.handle.svelte-r6lzam{transform:rotate(0deg);transition:transform 0.25s;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-image:var(--admonition-details-icon);mask-image:var(--admonition-details-icon);width:20px;height:20px}details[open].svelte-r6lzam>summary .collapser.svelte-r6lzam>.handle.svelte-r6lzam{transform:rotate(90deg)}details.svelte-r6lzam>summary.svelte-r6lzam.svelte-r6lzam{border-bottom:1px solid var(--background-modifier-border)}details.svelte-r6lzam>summary.svelte-r6lzam.svelte-r6lzam{border-bottom:1px solid var(--background-modifier-border)}")}var qL=i=>({}),B5=i=>({}),LL=i=>({}),V5=i=>({});function $L(i){let e,t,n,r,s,o,a,l,c=i[2].title,u=Gt(c,i,i[1],V5),f=i[2].content,d=Gt(f,i,i[1],B5);return{c(){e=b("details"),t=b("summary"),u&&u.c(),n=R(),r=b("div"),r.innerHTML='<div class="handle svelte-r6lzam"></div>',s=R(),d&&d.c(),v(r,"class","collapser svelte-r6lzam"),v(t,"class","svelte-r6lzam"),e.open=i[0],v(e,"class","svelte-r6lzam")},m(h,p){A(h,e,p),y(e,t),u&&u.m(t,null),y(t,n),y(t,r),y(e,s),d&&d.m(e,null),o=!0,a||(l=Y(e,"toggle",i[3]),a=!0)},p(h,[p]){u&&u.p&&(!o||p&2)&&Jt(u,c,h,h[1],o?Kt(c,h[1],p,LL):ei(h[1]),V5),d&&d.p&&(!o||p&2)&&Jt(d,f,h,h[1],o?Kt(f,h[1],p,qL):ei(h[1]),B5),(!o||p&1)&&(e.open=h[0])},i(h){o||($(u,h),$(d,h),o=!0)},o(h){V(u,h),V(d,h),o=!1},d(h){h&&T(e),u&&u.d(h),d&&d.d(h),a=!1,l()}}}function FL(i,e,t){let{$$slots:n={},$$scope:r}=e,{open:s}=e;function o(a){ht.call(this,i,a)}return i.$$set=a=>{"open"in a&&t(0,s=a.open),"$$scope"in a&&t(1,r=a.$$scope)},[s,r,n,o]}var ry=class extends ne{constructor(e){super(),re(this,e,FL,$L,ie,{open:0},zL)}},hp=ry;function BL(i){se(i,"svelte-1x58p02",".title-container.svelte-1x58p02{display:flex;flex-flow:column nowrap;gap:0.1rem}.title.svelte-1x58p02{margin-bottom:0}.content.svelte-1x58p02{display:flex;flex-flow:column nowrap;gap:0.25rem}.filtered.svelte-1x58p02{font-size:smaller;color:var(--text-muted)}.xp-container.svelte-1x58p02{margin-left:auto}.xp.svelte-1x58p02{display:flex;gap:1rem}.thresholds.svelte-1x58p02{display:flex;flex-flow:column;gap:0.5rem}.experience-amount.svelte-1x58p02{margin-left:auto}.encounter-difficulty.svelte-1x58p02{display:flex;flex-flow:column nowrap;gap:0.5rem;margin-bottom:1rem}.container.svelte-1x58p02{display:flex;flex-flow:column nowrap}.header.svelte-1x58p02{text-transform:uppercase;font-weight:bolder}")}function W5(i,e,t){let n=i.slice();return n[10]=e[t],n}function X5(i,e,t){let n=i.slice();return n[10]=e[t],n}function Y5(i,e,t){let n=i.slice();return n[15]=e[t],n}function U5(i){let e,t=i[5].displayName+"",n,r;return{c(){e=ae("("),n=ae(t),r=ae(")")},m(s,o){A(s,e,o),A(s,n,o),A(s,r,o)},p:X,d(s){s&&(T(e),T(n),T(r))}}}function H5(i){let e,t,n,r,s=i[2]>1?"s":"",o;return{c(){e=b("span"),t=ae("Filtering "),n=ae(i[2]),r=ae(" allied creature"),o=ae(s),v(e,"class","filtered svelte-1x58p02")},m(a,l){A(a,e,l),y(e,t),y(e,n),y(e,r),y(e,o)},p(a,l){l&4&&me(n,a[2]),l&4&&s!==(s=a[2]>1?"s":"")&&me(o,s)},d(a){a&&T(e)}}}function VL(i){let e,t,n,r,s,o=i[1].data.rpgSystem!="dnd5e"&&U5(i),a=i[2]>0&&H5(i);return{c(){e=b("div"),t=b("h5"),t.textContent="Experience",n=R(),r=b("span"),o&&o.c(),s=R(),a&&a.c(),v(t,"class","title svelte-1x58p02"),v(e,"class","title-container svelte-1x58p02"),v(e,"slot","title")},m(l,c){A(l,e,c),y(e,t),y(e,n),y(e,r),o&&o.m(r,null),y(e,Line truncated
|
||||
- `:t=`${t} `;break}case 1:case 0:{let r=this.context.editor.getLine(this.context.start.line).search(/\S/);t=`${t}
|
||||
${" ".repeat(r)}- `;break}case 2:case 3:{t=`${/\s$/.test(this.context.editor.getLine(this.context.start.line))?"":" "}${t.trim()}`;break}case 4:break}this.context.editor.replaceRange(`${t}`,this.context.start,{...this.context.end,ch:this.context.start.ch+this.context.query.length},"initiative-tracker"),this.context.editor.setCursor(this.context.start.line,this.context.start.ch+t.length),this.close()}}onTrigger(t,n,r){this._context=5;let s=n.getRange({line:0,ch:0},t);if(s.indexOf("```encounter\n")===-1)return null;let o=s.split(`
|
||||
`),a=!1,l;for(let u=o.length-1;u>=0;u--){let f=o[u];if(/^```$/.test(f))return null;if(/^```encounter/.test(f)){a=!0,l=u;break}}if(!a)return null;try{let u=n.getValue().split(`
|
||||
`);u.splice(t.line,1),u=u.slice(l+1);let f=u.findIndex(d=>/^```$/.test(d));f<0&&(f=u.length),this._encounter=(0,mp.parseYaml)(u.slice(0,f).join(`
|
||||
`))}catch{this._encounter={}}this._encounter||(this._encounter={});let c=n.getLine(t.line);if(/^name/.test(c))return null;if(/^rollHP:/.test(c)){this._context=3;let[u,f]=c.match(/^rollHP:\s?(.*)$/);return f==="true"||f==="false"?null:{end:t,start:{ch:c.length-f.length,line:t.line},query:f}}if(/^party:/.test(c)){this._context=2;let[u,f]=c.match(/^party:\s?(.*)$/);return this.plugin.data.parties.find(d=>d.name===f)?null:{end:t,start:{ch:c.length-f.length,line:t.line},query:f}}if(/\s+- (?:\d:)?/.test(c)){let u=!1;for(let h=o.length-1;h>=0;h--){let p=o[h];if(/^```$/.test(p)||/^```encounter/.test(p))return null;if(/^players:/.test(p)){this._context=0,u=!0;break}if(/^creatures:/.test(p)){this._context=1,u=!0;break}}if(!u)return null;let[f,d]=c.match(/^\s+- (?:\d:)?(.*)$/);return{end:t,start:{ch:c.length-d.length,line:t.line},query:d}}return{end:t,start:{ch:0,line:t.line},query:c}}};var Au,gp=class{constructor(e){this.plugin=e;Pl(this,Au,he);(window.InitiativeTracker=this)&&this.plugin.register(()=>delete window.InitiativeTracker)}addCreatures(e,t=this.plugin.data.rollHP){if(!e||!Array.isArray(e)||!e.length)throw new Error("Creatures must be an array.");Zu(this,Au).add(this.plugin,t,...e.map(n=>Ne.from(n)))}newEncounter(e){e?.creatures&&(e.creatures=e.creatures.map(t=>Ne.from(t).toJSON())),Zu(this,Au).new(this.plugin,e)}};Au=new WeakMap;var Op=class extends tn.Plugin{constructor(){super(...arguments);te(this,"api",new gp(this));te(this,"data");te(this,"tracker",he);te(this,"playerCreatures",new Map);te(this,"watchers",new Map);te(this,"_builderIcon")}getRoller(t){if(!this.canUseDiceRoller)return;let n=window.DiceRoller.getRoller(t,"statblock");return n===null?null:n}get canUseDiceRoller(){if(window.DiceRoller!=null)if(!window.DiceRoller.getRoller)new tn.Notice("Please update Dice Roller to the latest version to use with Initiative Tracker.");else return!0;return!1}getInitiativeValue(t=0){let n=Math.floor(Math.random()*19+1)+[t].flat().reduce((a,l)=>a+l,0);if(!this.canUseDiceRoller)return n;let r=this.data.initiative;if(typeof t=="number")r=r.replace(/%mod\d?%/g,`${t}`);else for(let a=0;a<t.length;a++)r=r.replace(`%mod${a+1}%`,`${t[a]}`);let o=this.getRoller(r)?.rollSync()??n;return isNaN(o)?n:o}getPlayerByName(t){return this.players.has(t)?Ne.from(this.players.get(t)):new Ne({name:t})}getPlayerNamesForParty(t){return this.data.parties?.find(n=>n.name===t)?.players??[]}getPlayersForParty(t){return this.data.parties?.find(n=>n.name==t)?.players.map(n=>this.getPlayerByName(n))?.filter(n=>n)??[]}get canUseStatBlocks(){return this.app.plugins.enabledPlugins.has("obsidian-5e-statblocks")?(window.FantasyStatblocks?.getVersion()?.major??0)>=4:!1}get statblockVersion(){return window.FantasyStatblocks?.getVersion()??{major:0}}get statblock_creatures(){return window.FantasyStatblocks?window.FantasyStatblocks.getBestiaryCreatures():[]}get bestiary(){return this.statblock_creatures.filter(t=>!t.player&&t.bestiary!==!1)}addEncounter(t,n){this.data.encounters[t]=n,this.registerCommand(t)}removeEncounter(t){delete this.data.encounters[t],this.unregisterCommandsFor(t)}registerCommand(t){this.addCommand({id:`start-${t}`,name:`Start ${t}`,checkCallback:n=>{if(n)return t in this.data.encounters;t in this.data.encounters&&he.new(this,this.data.encounters[t])}})}unregisterCommandsFor(t){this.app.commands.findCommand(`initiative-tracker:start-${t}`)&&delete this.app.commands.commands[`initiative-tracker:start-${t}`]}get bestiaryNames(){return window.FantasyStatblocks?window.FantasyStatblocks.getBestiaryNames():[]}get view(){let t=this.app.workspace.getLeavesOfType(bo),n=t?.length?t[0]:null;if(n&&n.view&&n.view instanceof Ra)return n.view}get combatant(){let t=this.app.workspace.getLeavesOfType(pa),n=t?.length?t[0]:null;if(n&&n.view&&n.view instanceof tc)return n.view}get defaultParty(){return this.data.parties.find(t=>t.name==this.data.defaultParty)}getBaseCreatureFromBestiary(t){try{if(this.canUseStatBlocks&&window.FantasyStatblocks.hasCreature(t))return window.FantasyStatblocks.getCreatureFromBestiary(t)}catch{}return null}getCreatureFromBestiary(t){let n=this.getBaseCreatureFromBestiary(t);if(n)return Ne.from(n)}getCreatureFromBestiaryByDefinition(t){return t.player&&this.playerCreatures.has(t.name)?this.playerCreatures.get(t.name):this.getCreatureFromBestiary(t.name)??Ne.from(t)}get statblock_players(){return this.statblock_creatures.filter(t=>t.player).map(t=>[t.name,Ne.from(t)])}get players(){return new Map([...this.playerCreatures.entries(),...this.statblock_players])}async onload(){gy(),await this.loadSettings(),this.setBuilderIcon(),this.addSettingTab(new Ll(this)),this.registerView(bo,t=>new Ra(t,this)),this.registerView(_o,t=>new Tu(t,this)),this.registerView(pa,t=>new tc(t,this)),this.registerView(Er,t=>new vl(t,this)),this.addCommands(),this.addEvents(),this.registerEditorSuggest(new pp(this)),this.registerMarkdownCodeBlockProcessor("encounter",(t,n,r)=>{if(this.canUseStatBlocks&&!window.FantasyStatblocks.isResolved()){n.aLine truncated
|
||||
|
||||
Please re-link it in settings.`);continue}}this.registerEvent(this.app.metadataCache.on("changed",t=>{if(!(t instanceof tn.TFile))return;let n=this.data.players.filter(s=>s.path==t.path);if(!n.length)return;let r=this.app.metadataCache.getFileCache(t)?.frontmatter;if(r)for(let s of n){let{ac:o,hp:a,modifier:l,level:c,name:u}=r;if(s.ac=o,s.hp=a,s.modifier=l,s.level=c,s.name=u||s.name,s["statblock-link"]=r["statblock-link"],this.playerCreatures.set(s.name,Ne.from(s)),this.view){let f=he.getOrderedCreatures().find(d=>d.name==s.name);f&&he.updateCreatures({creature:f,change:{set_max_hp:s.hp,ac:s.ac}})}}})),this.registerEvent(this.app.vault.on("rename",(t,n)=>{if(!(t instanceof tn.TFile))return;let r=this.data.players.filter(s=>s.path==n);if(r.length)for(let s of r)s.path=t.path,s.note=t.basename})),this.registerEvent(this.app.vault.on("delete",t=>{if(!(t instanceof tn.TFile))return;let n=this.data.players.filter(r=>r.path==t.path);if(n.length)for(let r of n)r.path=null,r.note=null}))}),console.log("Initiative Tracker v"+this.manifest.version+" loaded")}addCommands(){this.addCommand({id:"open-tracker",name:"Open Initiative Tracker",checkCallback:t=>{if(!this.view)return t||this.addTrackerView(),!0}}),this.addCommand({id:"open-builder",name:"Open Encounter Builder",checkCallback:t=>{if(!this.builder)return t||this.addBuilderView(),!0}}),this.addCommand({id:"toggle-encounter",name:"Toggle Encounter",checkCallback:t=>{if(this.view)return t||he.toggleState(),!0}}),this.addCommand({id:"next-combatant",name:"Next Combatant",checkCallback:t=>{if(this.view&&he.getState())return t||he.goToNext(),!0}}),this.addCommand({id:"prev-combatant",name:"Previous Combatant",checkCallback:t=>{if(this.view&&he.getState())return t||he.goToPrevious(),!0}});for(let t in this.data.encounters)this.registerCommand(t)}addEvents(){this.registerEvent(this.app.workspace.on("initiative-tracker:should-save",async()=>await this.saveSettings())),this.registerEvent(app.workspace.on("initiative-tracker:save-state",async t=>{this.data.state=t,await this.saveSettings()})),this.registerEvent(this.app.workspace.on("initiative-tracker:start-encounter",async t=>{try{let n=t.map(s=>Ne.from(s).toJSON()),r=this.view;r||await this.addTrackerView(),r?(he?.new(this,{creatures:n,state:!1,name:null,round:1,logFile:null,roll:!0}),this.app.workspace.revealLeaf(r.leaf)):new tn.Notice("Could not find the Initiative Tracker. Try reloading the note!")}catch(n){new tn.Notice(`There was an issue launching the encounter.
|
||||
|
||||
`+n.message),console.error(n);return}}))}async onunload(){await this.saveSettings(),this.app.workspace.trigger("initiative-tracker:unloaded"),console.log("Initiative Tracker unloaded")}async addTrackerView(){this.app.workspace.getLeavesOfType(bo)?.length||await this.app.workspace.getRightLeaf(!1).setViewState({type:bo})}get builder(){let t=this.app.workspace.getLeavesOfType(Er),n=t.length?t[0]:null;if(n&&n.view&&n.view instanceof vl)return n.view}async addBuilderView(){this.app.workspace.getLeavesOfType(Er)?.length||(await this.app.workspace.getLeaf(!0).setViewState({type:Er}),this.app.workspace.revealLeaf(this.builder.leaf))}async updatePlayer(t,n){if(!this.playerCreatures.has(t.name)){await this.savePlayer(n);return}let r=this.playerCreatures.get(t.name);r.update(n),this.data.players.splice(this.data.players.indexOf(t),1,n),this.playerCreatures.delete(t.name),this.playerCreatures.set(n.name,r),this.view&&he.updateState(),await this.saveSettings()}async savePlayer(t){this.data.players.push(t),this.playerCreatures.set(t.name,Ne.from(t)),await this.saveSettings()}async savePlayers(...t){for(let n of t)this.data.players.push(n),this.playerCreatures.set(n.name,Ne.from(n));await this.saveSettings()}async deletePlayer(t){this.data.players=this.data.players.filter(n=>n!=t),this.playerCreatures.delete(t.name),await this.saveSettings()}async loadSettings(){let t=Object.assign({},{...my},await this.loadData());if(this.data=t,this.data.statuses?.some(n=>!n.id)){for(let n of this.data.statuses)n.id=n.id??os.find(r=>r.name==n.name)?.id??xt();await this.saveSettings()}this.data.version=this.manifest.version.split(".").map(n=>Number(n))}async saveSettings(){await this.saveData(this.data),he.setData(this.data)}async openCombatant(t){if(!this.canUseStatBlocks)return;this.combatant||await this.app.workspace.getRightLeaf(!0).setViewState({type:pa}),await this.combatant.render(t),this.app.workspace.revealLeaf(this.combatant.leaf)}setBuilderIcon(){this.data.builder.sidebarIcon?this._builderIcon=this.addRibbonIcon(Er,"Initiative Tracker Encounter Builder",()=>{this.addBuilderView()}):this._builderIcon?.detach()}};
|
||||
/*! Bundled license information:
|
||||
|
||||
uri-js/dist/es5/uri.all.js:
|
||||
(** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
|
||||
*/
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "initiative-tracker",
|
||||
"name": "Initiative Tracker",
|
||||
"version": "13.0.17",
|
||||
"minAppVersion": "0.15.0",
|
||||
"author": "Jeremy Valentine",
|
||||
"description": "TTRPG Initiative Tracker for Obsidian.md",
|
||||
"authorUrl": "https://github.com/valentine195/obsidian-initiative-tracker",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
body{--text-warning: #eaaf00;--text-success: green}.status-metadata-container,.status-name-container{display:flex;gap:.5rem}.initiative-tracker-add-player-modal .has-error{border-color:var(--background-modifier-error-hover)}.initiative-tracker-additional-container{border-bottom:0px solid var(--background-modifier-border);padding:18px 0;background-color:inherit}.initiative-tracker-additional-container .initiative-tracker-players{display:grid;grid-template-columns:3fr 1fr 1fr 1fr 1fr auto;gap:.5rem}.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player{display:contents}.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player>*:not(:first-child){text-align:center}.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player .initiative-tracker-player-icon{display:grid;grid-template-columns:auto auto;gap:.5rem}.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player .initiative-tracker-player-icon.imported{display:flex;justify-content:center;width:auto;color:var(--text-success)}.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player.headers{font-weight:bolder}.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player.headers .clickable-icon,.initiative-tracker-settings .initiative-tracker-additional-container .initiative-tracker-players .initiative-tracker-player.headers .clickable-icon:hover{color:var(--text-normal)}.initiative-tracker-settings .initiative-synced{border-top:0px;margin:0 2rem;padding-top:0}.initiative-tracker-settings .initiative-synced .setting-item-name{color:var(--interactive-success);display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.5rem}.initiative-tracker-settings .initiative-tracker-monster-filter{position:sticky;top:-5px;padding-top:5px;background-color:inherit;z-index:1}.initiative-tracker-settings .initiative-tracker-file-upload>input[type=file]{display:none}.initiative-tracker-additional-container>.additional{margin:6px 12px}.initiative-tracker-additional-container>.additional>.setting-item{border-top:0;padding-top:9px}.initiative-tracker-additional-container>.additional>.setting-item>.setting-item-control>*:first-child{margin:0 6px}.initiative-tracker-settings .initiative-status-item .setting-item-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:keep-all;overflow:hidden}.tooltip.initiative-tracker-condition-tooltip{text-align:left;word-break:keep-all}.block-language-encounter .encounter-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.initiative-tracker-settings .coffee{width:60%;color:var(--text-faint);margin:1rem auto;text-align:center}.initiative-tracker-settings .coffee img{height:30px}.creature-view-container{padding:.5rem}.creature-view-container .creature-statblock-container{display:flex;justify-content:center}.creature-view-container .statblock .column{max-width:400px;width:100%}.creature-view-container .creature-view-button{display:flex;justify-content:flex-end;position:absolute;right:5px;top:5px}.initiative-tracker-encounter-line{display:inline-block}.initiative-tracker-settings details>summary{outline:none;display:block!important;list-style:none!important;list-style-type:none!important;min-height:1rem;border-top-left-radius:.1rem;border-top-right-radius:.1rem;cursor:pointer;position:relative}.initiative-tracker-settings details>summary::-webkit-details-marker,.initiative-tracker-settings details>summary::marker{display:none!important}.initiative-tracker-settings details>summary>.collapser{position:absolute;top:50%;right:8px;transform:translateY(-50%);content:""}.initiative-tracker-settings details>summary>.collapser>.handle{transform:rotate(0);transition:transform .25s;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-image:var(--admonition-details-icon);mask-image:var(--admonition-details-icon);width:20px;height:20px}.initiative-tracker-settings details[open]>summary>.collapser>.handle{transform:rotate(90deg)}.initiative-tracker-settings details>summary{border-bottom:1px solid var(--background-modifier-border)}.initiative-tracker-warning{color:var(--text-error);display:flex;gap:.25rem;align-items:center}.initiative-tracker-settings details>summary+.setting-item,.initiative-tracker-explanation+.setting-item{border-top:0}.initiative-tracker-explanation{padding-top:16px}.initiative-tracker-cancel{display:flex;justify-content:flex-end}.initiative-tracker-textarea+.cm-editor{height:200px;margin-bottom:1rem}.initiative-tracker.suggestion-item .name,.initiative-tracker.suggestion-item>svg{display:flex;Line truncated
|
||||
+359
@@ -0,0 +1,359 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var __publicField = (obj, key, value) => {
|
||||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
||||
return value;
|
||||
};
|
||||
var __async = (__this, __arguments, generator) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
var fulfilled = (value) => {
|
||||
try {
|
||||
step(generator.next(value));
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
};
|
||||
var rejected = (value) => {
|
||||
try {
|
||||
step(generator.throw(value));
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
};
|
||||
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
||||
step((generator = generator.apply(__this, __arguments)).next());
|
||||
});
|
||||
};
|
||||
|
||||
// src/main.ts
|
||||
var main_exports = {};
|
||||
__export(main_exports, {
|
||||
default: () => MarkdownAttributes
|
||||
});
|
||||
module.exports = __toCommonJS(main_exports);
|
||||
var import_obsidian2 = require("obsidian");
|
||||
|
||||
// src/processor.ts
|
||||
var _Processor = class {
|
||||
constructor() {
|
||||
}
|
||||
static parse(el) {
|
||||
if (typeof el == "string") {
|
||||
return new _Processor().parseLine(el);
|
||||
} else {
|
||||
return new _Processor().recurseAndParseElements(el);
|
||||
}
|
||||
}
|
||||
parseLine(text) {
|
||||
const elements = [];
|
||||
let attribute_strings = text.matchAll(
|
||||
new RegExp(_Processor.END_RE.source, "gm")
|
||||
);
|
||||
for (const [_, match] of attribute_strings) {
|
||||
elements.push({
|
||||
attributes: this.getAttrs(match),
|
||||
text: match
|
||||
});
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
getTopLevelText(el) {
|
||||
const texts = [];
|
||||
for (let child of Array.from(el.childNodes)) {
|
||||
if (child.nodeType == Node.TEXT_NODE) {
|
||||
texts.push(child.data);
|
||||
}
|
||||
}
|
||||
return texts.join("");
|
||||
}
|
||||
getAttrs(str) {
|
||||
const trys = (str != null ? str : "").split(/\s(?=(?:[^'"`]*(['"`])[^'"`]*\1)*[^'"`]*$)/).map((t) => t && t.trim()).filter((t) => t && t !== '"' && t !== "'" && t.length);
|
||||
if (!trys || !trys.length)
|
||||
return;
|
||||
const allowedKeyChars = /[^\t\n\f />"'=]/;
|
||||
const keySeparator = "=";
|
||||
const classChar = ".";
|
||||
const attrs = [];
|
||||
for (let pair of trys) {
|
||||
if (!pair || !pair.length)
|
||||
continue;
|
||||
if (pair.charAt(0) === classChar) {
|
||||
attrs.push(["class", pair.slice(1)]);
|
||||
continue;
|
||||
}
|
||||
if (new RegExp(keySeparator).test(pair) && allowedKeyChars.test(pair.slice(0, pair.indexOf(keySeparator)))) {
|
||||
attrs.push([...pair.split(keySeparator, 2)]);
|
||||
continue;
|
||||
}
|
||||
attrs.push([pair, null]);
|
||||
}
|
||||
return attrs;
|
||||
}
|
||||
recurseAndParseElements(el) {
|
||||
var _a, _b, _c;
|
||||
const elements = [];
|
||||
const text = this.getTopLevelText(el);
|
||||
if (_Processor.BLOCK_RE.test(text)) {
|
||||
let element = el;
|
||||
if (el instanceof HTMLLIElement || (el == null ? void 0 : el.parentElement) instanceof HTMLQuoteElement || (el == null ? void 0 : el.hasClass("callout"))) {
|
||||
element = el.parentElement;
|
||||
}
|
||||
let [original, attribute_string] = (_a = text.match(_Processor.BLOCK_RE)) != null ? _a : [];
|
||||
const toAdd = {
|
||||
element,
|
||||
attributes: this.getAttrs(attribute_string),
|
||||
text: attribute_string
|
||||
};
|
||||
elements.push(toAdd);
|
||||
el.innerHTML = this.tryToReplace(
|
||||
toAdd.element,
|
||||
el.innerHTML,
|
||||
toAdd.attributes,
|
||||
original
|
||||
);
|
||||
if (el instanceof HTMLLIElement) {
|
||||
elements.push(...this.recurseAndParseElements(el));
|
||||
}
|
||||
} else if (_Processor.BASE_RE.test(text)) {
|
||||
let textNode = Array.from(el.childNodes).find(
|
||||
(node) => node.nodeType == Node.TEXT_NODE && _Processor.BASE_RE.test(text)
|
||||
);
|
||||
let sibling = (_b = Array.from(el.children).find(
|
||||
(node) => node.nextSibling == textNode
|
||||
)) != null ? _b : el;
|
||||
if (sibling && sibling.hasClass("collapse-indicator")) {
|
||||
sibling = sibling.parentElement;
|
||||
}
|
||||
if (sibling && sibling instanceof HTMLBRElement) {
|
||||
sibling = sibling.parentElement;
|
||||
}
|
||||
let [original, attribute_string] = (_c = text.match(_Processor.BASE_RE)) != null ? _c : [];
|
||||
const toAdd = {
|
||||
element: sibling,
|
||||
attributes: this.getAttrs(attribute_string),
|
||||
text: attribute_string
|
||||
};
|
||||
elements.push(toAdd);
|
||||
textNode.textContent = this.tryToReplace(
|
||||
toAdd.element,
|
||||
textNode.textContent,
|
||||
toAdd.attributes,
|
||||
original
|
||||
);
|
||||
}
|
||||
for (let child of Array.from(el.children)) {
|
||||
if (!(child instanceof HTMLElement))
|
||||
continue;
|
||||
if (child instanceof HTMLPreElement || child.tagName.toLowerCase() === "code")
|
||||
continue;
|
||||
elements.push(...this.recurseAndParseElements(child));
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
tryToReplace(element, content, attributes, original) {
|
||||
if (!attributes || !attributes.length) {
|
||||
return content;
|
||||
}
|
||||
for (let [key, value] of attributes) {
|
||||
if (!key)
|
||||
continue;
|
||||
if (value)
|
||||
value = value.replace(/("|')/g, "");
|
||||
try {
|
||||
if (key === "class") {
|
||||
element.addClasses(value.split(" "));
|
||||
} else if (!value) {
|
||||
element.setAttr(key, true);
|
||||
} else {
|
||||
element.setAttr(key, value);
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(
|
||||
`Markdown Attributes: ${key} is not a valid attribute.`
|
||||
);
|
||||
return content;
|
||||
}
|
||||
}
|
||||
return content.replace(original, "");
|
||||
}
|
||||
};
|
||||
var Processor = _Processor;
|
||||
__publicField(Processor, "BASE_RE", /\{\:?[ ]*([^\}\n ][^\}\n]*)[ ]*\}/);
|
||||
__publicField(Processor, "ONLY_RE", /^\{\:?[ ]*([^\}\n ][^\}\n]*)[ ]*\}$/);
|
||||
__publicField(Processor, "BLOCK_RE", /\n[ ]*\{\:?[ ]*([^\}\n ][^\}\n]*)[ ]*\}[ ]*$/);
|
||||
__publicField(Processor, "END_RE", /\{\:?[ ]*([^\}\n ][^\}\n]*)[ ]*\}$/m);
|
||||
|
||||
// src/live-preview.ts
|
||||
var import_view = require("@codemirror/view");
|
||||
var import_language = require("@codemirror/language");
|
||||
var import_obsidian = require("obsidian");
|
||||
function selectionAndRangeOverlap(selection, rangeFrom, rangeTo) {
|
||||
for (const range of selection.ranges) {
|
||||
if (range.from <= rangeTo && range.to >= rangeFrom) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function inlineRender(view) {
|
||||
if (!view.state.field(import_obsidian.editorLivePreviewField)) {
|
||||
this.decorations = import_view.Decoration.none;
|
||||
return;
|
||||
}
|
||||
const currentFile = app.workspace.getActiveFile();
|
||||
if (!currentFile)
|
||||
return;
|
||||
const widgets = [];
|
||||
const selection = view.state.selection;
|
||||
for (const { from, to } of view.visibleRanges) {
|
||||
(0, import_language.syntaxTree)(view.state).iterate({
|
||||
from,
|
||||
to,
|
||||
enter: ({ node }) => {
|
||||
var _a;
|
||||
const type = node.type;
|
||||
if (type.name.includes("formatting"))
|
||||
return;
|
||||
const start = node.from;
|
||||
const end = node.to;
|
||||
if (selectionAndRangeOverlap(selection, start - 1, end + 1))
|
||||
return;
|
||||
const original = view.state.doc.sliceString(start, end).trim();
|
||||
if (!Processor.END_RE.test(original))
|
||||
return;
|
||||
const parsed = (_a = Processor.parse(original)) != null ? _a : [];
|
||||
for (const item of parsed) {
|
||||
const { attributes, text } = item;
|
||||
const firstBracket = original.slice(0, original.indexOf(text)).lastIndexOf("{");
|
||||
const lastBracket = original.indexOf(
|
||||
"}",
|
||||
original.indexOf(text)
|
||||
);
|
||||
widgets.push(
|
||||
import_view.Decoration.replace({
|
||||
inclusive: false,
|
||||
block: false
|
||||
}).range(start + firstBracket, start + lastBracket + 1),
|
||||
import_view.Decoration.mark({
|
||||
inclusive: true,
|
||||
attributes: Object.fromEntries(attributes)
|
||||
}).range(start, end)
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return import_view.Decoration.set(widgets, true);
|
||||
}
|
||||
function inlinePlugin() {
|
||||
return import_view.ViewPlugin.fromClass(
|
||||
class {
|
||||
constructor(view) {
|
||||
__publicField(this, "decorations");
|
||||
var _a;
|
||||
this.decorations = (_a = inlineRender(view)) != null ? _a : import_view.Decoration.none;
|
||||
}
|
||||
update(update) {
|
||||
var _a;
|
||||
if (!update.state.field(import_obsidian.editorLivePreviewField)) {
|
||||
this.decorations = import_view.Decoration.none;
|
||||
return;
|
||||
}
|
||||
if (update.docChanged || update.viewportChanged || update.selectionSet) {
|
||||
this.decorations = (_a = inlineRender(update.view)) != null ? _a : import_view.Decoration.none;
|
||||
}
|
||||
}
|
||||
},
|
||||
{ decorations: (v) => v.decorations }
|
||||
);
|
||||
}
|
||||
|
||||
// src/main.ts
|
||||
var MarkdownAttributes = class extends import_obsidian2.Plugin {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
__publicField(this, "parsing", /* @__PURE__ */ new Map());
|
||||
}
|
||||
onload() {
|
||||
return __async(this, null, function* () {
|
||||
console.log(`Markdown Attributes v${this.manifest.version} loaded.`);
|
||||
this.registerMarkdownPostProcessor(this.postprocessor.bind(this));
|
||||
this.registerEditorExtension(inlinePlugin());
|
||||
});
|
||||
}
|
||||
postprocessor(topElement, ctx) {
|
||||
return __async(this, null, function* () {
|
||||
var _a, _b, _c;
|
||||
const child = topElement.firstElementChild;
|
||||
if (!child)
|
||||
return;
|
||||
let str;
|
||||
if (child instanceof HTMLPreElement) {
|
||||
if (!ctx.getSectionInfo(topElement))
|
||||
return;
|
||||
const { lineStart } = ctx.getSectionInfo(topElement);
|
||||
const file = this.app.vault.getAbstractFileByPath(ctx.sourcePath);
|
||||
if (!(file instanceof import_obsidian2.TFile))
|
||||
return;
|
||||
const text = yield this.app.vault.cachedRead(file);
|
||||
let source = text.split("\n").slice(lineStart, lineStart + 1);
|
||||
str = source.join("\n");
|
||||
if (!Processor.BASE_RE.test(str))
|
||||
return;
|
||||
let [attribute_string] = (_a = str.match(Processor.BASE_RE)) != null ? _a : [];
|
||||
child.prepend(new Text(attribute_string));
|
||||
}
|
||||
if (child instanceof HTMLTableElement || child.hasClass("math") && child.hasClass("math-block") || child.hasClass("callout")) {
|
||||
if (!ctx.getSectionInfo(topElement))
|
||||
return;
|
||||
const { text, lineEnd } = ctx.getSectionInfo(topElement);
|
||||
const adjustment = child.hasClass("callout") ? 0 : 1;
|
||||
let source = ((_b = text.split("\n").slice(lineEnd + adjustment, lineEnd + adjustment + 1)) != null ? _b : []).shift();
|
||||
if (source && source.length && Processor.ONLY_RE.test(source.trim())) {
|
||||
let [attribute_string] = (_c = source.match(Processor.ONLY_RE)) != null ? _c : [];
|
||||
child.prepend(new Text(attribute_string));
|
||||
str = topElement.innerText;
|
||||
}
|
||||
}
|
||||
if (child instanceof HTMLParagraphElement && !child.childElementCount) {
|
||||
if (Processor.ONLY_RE.test(child.innerText.trim())) {
|
||||
child.detach();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!Processor.BASE_RE.test(str != null ? str : topElement.innerText))
|
||||
return;
|
||||
if (!(child instanceof HTMLElement))
|
||||
return;
|
||||
Processor.parse(child);
|
||||
});
|
||||
}
|
||||
onunload() {
|
||||
return __async(this, null, function* () {
|
||||
console.log("Markdown Attributes unloaded");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "markdown-attributes",
|
||||
"name": "Markdown Attributes",
|
||||
"version": "1.2.2",
|
||||
"minAppVersion": "0.12.10",
|
||||
"description": "Add markdown attributes to elements in Obsidian.md",
|
||||
"author": "Jeremy Valentine",
|
||||
"authorUrl": "",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"monsters": [],
|
||||
"defaultLayouts": {},
|
||||
"layouts": [],
|
||||
"default": "basic-5e-layout",
|
||||
"useDice": true,
|
||||
"renderDice": false,
|
||||
"export": true,
|
||||
"showAdvanced": false,
|
||||
"version": {
|
||||
"major": 4,
|
||||
"minor": 9,
|
||||
"patch": 1
|
||||
},
|
||||
"paths": [
|
||||
"/",
|
||||
"compendium/bestiary"
|
||||
],
|
||||
"autoParse": false,
|
||||
"disableSRD": false,
|
||||
"tryToRenderLinks": true,
|
||||
"debug": false,
|
||||
"notifiedOfFantasy": false,
|
||||
"hideConditionHelp": false,
|
||||
"alwaysImport": false,
|
||||
"defaultLayoutsIntegrated": true,
|
||||
"atomicWrite": false
|
||||
}
|
||||
+999
@@ -0,0 +1,999 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
"use strict";var gm=Object.create;var Ui=Object.defineProperty;var pm=Object.getOwnPropertyDescriptor;var bm=Object.getOwnPropertyNames;var ym=Object.getPrototypeOf,vm=Object.prototype.hasOwnProperty;var Yl=n=>{throw TypeError(n)};var km=(n,e,t)=>e in n?Ui(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Jl=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),wm=(n,e)=>{for(var t in e)Ui(n,t,{get:e[t],enumerable:!0})},Xl=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of bm(e))!vm.call(n,a)&&a!==t&&Ui(n,a,{get:()=>e[a],enumerable:!(i=pm(e,a))||i.enumerable});return n};var La=(n,e,t)=>(t=n!=null?gm(ym(n)):{},Xl(e||!n||!n.__esModule?Ui(t,"default",{value:n,enumerable:!0}):t,n)),_m=n=>Xl(Ui({},"__esModule",{value:!0}),n);var We=(n,e,t)=>km(n,typeof e!="symbol"?e+"":e,t),ar=(n,e,t)=>e.has(n)||Yl("Cannot "+t);var X=(n,e,t)=>(ar(n,e,"read from private field"),t?t.call(n):e.get(n)),Le=(n,e,t)=>e.has(n)?Yl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),an=(n,e,t,i)=>(ar(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t),Oe=(n,e,t)=>(ar(n,e,"access private method"),t);var Zl=Jl((Ql,sr)=>{(function(n){"use strict";var e=S(),t=C(),i=M(),a=w(),s={imagePlaceholder:void 0,cacheBust:!1},r={toSvg:o,toPng:c,toJpeg:d,toBlob:u,toPixelData:l,impl:{fontFaces:i,images:a,util:e,inliner:t,options:{}}};typeof sr<"u"?sr.exports=r:n.domtoimage=r;function o(k,A){return A=A||{},h(A),Promise.resolve(k).then(function(L){return m(L,A.filter,!0)}).then(p).then(b).then(P).then(function(L){return _(L,A.width||e.width(k),A.height||e.height(k))});function P(L){return A.bgcolor&&(L.style.backgroundColor=A.bgcolor),A.width&&(L.style.width=A.width+"px"),A.height&&(L.style.height=A.height+"px"),A.style&&Object.keys(A.style).forEach(function(B){L.style[B]=A.style[B]}),L}}function l(k,A){return f(k,A||{}).then(function(P){return P.getContext("2d").getImageData(0,0,e.width(k),e.height(k)).data})}function c(k,A){return f(k,A||{}).then(function(P){return P.toDataURL()})}function d(k,A){return A=A||{},f(k,A).then(function(P){return P.toDataURL("image/jpeg",A.quality||1)})}function u(k,A){return f(k,A||{}).then(e.canvasToBlob)}function h(k){typeof k.imagePlaceholder>"u"?r.impl.options.imagePlaceholder=s.imagePlaceholder:r.impl.options.imagePlaceholder=k.imagePlaceholder,typeof k.cacheBust>"u"?r.impl.options.cacheBust=s.cacheBust:r.impl.options.cacheBust=k.cacheBust}function f(k,A){return o(k,A).then(e.makeImage).then(e.delay(100)).then(function(L){var B=P(k);return B.getContext("2d").drawImage(L,0,0),B});function P(L){var B=document.createElement("canvas");if(B.width=A.width||e.width(L),B.height=A.height||e.height(L),A.bgcolor){var O=B.getContext("2d");O.fillStyle=A.bgcolor,O.fillRect(0,0,B.width,B.height)}return B}}function m(k,A,P){if(!P&&A&&!A(k))return Promise.resolve();return Promise.resolve(k).then(L).then(function(q){return B(k,q,A)}).then(function(q){return O(k,q)});function L(q){return q instanceof HTMLCanvasElement?e.makeImage(q.toDataURL()):q.cloneNode(!1)}function B(q,Z,ee){var se=q.childNodes;if(se.length===0)return Promise.resolve(Z);return K(Z,e.asArray(se),ee).then(function(){return Z});function K(W,Y,F){var ae=Promise.resolve();return Y.forEach(function($){ae=ae.then(function(){return m($,F)}).then(function(de){de&&W.appendChild(de)})}),ae}}function O(q,Z){if(!(Z instanceof Element))return Z;return Promise.resolve().then(ee).then(se).then(K).then(W).then(function(){return Z});function ee(){Y(window.getComputedStyle(q),Z.style);function Y(F,ae){F.cssText?ae.cssText=F.cssText:$(F,ae);function $(de,V){e.asArray(de).forEach(function(H){V.setProperty(H,de.getPropertyValue(H),de.getPropertyPriority(H))})}}}function se(){[":before",":after"].forEach(function(F){Y(F)});function Y(F){var ae=window.getComputedStyle(q,F),$=ae.getPropertyValue("content");if($===""||$==="none")return;var de=e.uid();Z.className=Z.className+" "+de;var V=document.createElement("style");V.appendChild(H(de,F,ae)),Z.appendChild(V);function H(fe,Ce,Ie){var et="."+fe+":"+Ce,Tt=Ie.cssText?mi(Ie):gi(Ie);return document.createTextNode(et+"{"+Tt+"}");function mi(Rt){var Nt=Rt.getPropertyValue("content");return Rt.cssText+" content: "+Nt+";"}function gi(Rt){return e.asArray(Rt).map(Nt).join("; ")+";";function Nt(bt){return bt+": "+Rt.getPropertyValue(bt)+(Rt.getPropertyPriority(bt)?" !important":"")}}}}}function K(){q instanceof HTMLTextAreaElement&&(Z.innerHTML=q.value),q instanceof HTMLInputElement&&Z.setAttribute("value",q.value)}function W(){Z instanceof SVGElement&&(Z.setAttribute("xmlns","http://www.w3.org/2000/svg"),Z instanceof SVGRectElement&&["width","height"].forEach(function(Y){var F=Z.getAttribute(Y);F&&Z.style.setProperty(Y,F)}))}}}function p(k){return i.resolveAll().then(function(A){var P=document.createElement("style");return k.appendChild(P),P.appendChild(document.createTextNode(A)),k})}function b(k){return a.inlineAll(k).then(function(){return k})}function _(k,A,P){Line truncated
|
||||
`)})}function A(){return Promise.resolve(e.asArray(document.styleSheets)).then(L).then(P).then(function(O){return O.map(B)});function P(O){return O.filter(function(q){return q.type===CSSRule.FONT_FACE_RULE}).filter(function(q){return t.shouldProcess(q.style.getPropertyValue("src"))})}function L(O){var q=[];return O.forEach(function(Z){try{e.asArray(Z.cssRules||[]).forEach(q.push.bind(q))}catch(ee){console.log("Error while reading CSS rules from "+Z.href,ee.toString())}}),q}function B(O){return{resolve:function(){var Z=(O.parentStyleSheet||{}).href;return t.inlineAll(O.cssText,Z)},src:function(){return O.style.getPropertyValue("src")}}}}}function w(){return{inlineAll:A,impl:{newImage:k}};function k(P){return{inline:L};function L(B){return e.isDataUrl(P.src)?Promise.resolve():Promise.resolve(P.src).then(B||e.getAndEncode).then(function(O){return e.dataAsUrl(O,e.mimeType(P.src))}).then(function(O){return new Promise(function(q,Z){P.onload=q,P.onerror=Z,P.src=O})})}}function A(P){if(!(P instanceof Element))return Promise.resolve(P);return L(P).then(function(){return P instanceof HTMLImageElement?k(P).inline():Promise.all(e.asArray(P.childNodes).map(function(B){return A(B)}))});function L(B){var O=B.style.getPropertyValue("background");return O?t.inlineAll(O).then(function(q){B.style.setProperty("background",q,B.style.getPropertyPriority("background"))}).then(function(){return B}):Promise.resolve(B)}}}})(Ql)});var Ts=Jl((MC,jd)=>{"use strict";var Bo=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,qb=Object.getOwnPropertyNames,jb=Object.prototype.hasOwnProperty,Vb=(n,e)=>{for(var t in e)Bo(n,t,{get:e[t],enumerable:!0})},Ub=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of qb(e))!jb.call(n,a)&&a!==t&&Bo(n,a,{get:()=>e[a],enumerable:!(i=zb(e,a))||i.enumerable});return n},Gb=n=>Ub(Bo({},"__esModule",{value:!0}),n),qd={};Vb(qd,{FileInputSuggest:()=>$b,FolderInputSuggest:()=>Kb,FuzzyInputSuggest:()=>Fo,createCollapsibleSection:()=>Xb,setNodeIcon:()=>Jb});jd.exports=Gb(qd);var Lo=require("obsidian"),Fo=class extends Lo.AbstractInputSuggest{constructor(n,e,t){super(n,e.inputEl),this.items=t}getSuggestions(n){let e=(0,Lo.prepareSimpleSearch)(n),t=[];for(let i of this.items){let a=e(this.getItemText(i));a&&t.push({item:i,match:a})}return t}renderSuggestion(n,e){e.addClass("mod-complex");let t=e.createDiv({cls:"suggestion-content"});if(!n?.item){t.setText("No match found"),t.parentElement?.addClass("is-selected");return}this.renderTitle(t.createDiv("suggestion-title"),n),this.renderNote?.(t.createDiv("suggestion-note"),n),this.renderFlair?.(e.createDiv("suggestion-aux").createDiv("suggestion-flair"),n)}renderMatches(n,e,t,i){(0,Lo.renderMatches)(n,e,t,i)}},Wd=require("obsidian"),Kb=class extends Fo{getItemText(n){return n.path}renderNote(n,e){let{item:t,match:i}=e;(0,Wd.renderMatches)(n,t.path,i.matches)}renderTitle(n,e){let{item:t,match:i}=e;(0,Wd.renderMatches)(n,t.name,i.matches,t.path.length-t.name.length)}},Hd=require("obsidian"),$b=class extends Fo{getItemText(n){return n.path}renderNote(n,e){let{item:t,match:i}=e;(0,Hd.renderMatches)(n,t.path,i.matches)}renderTitle(n,e){let{item:t,match:i}=e;(0,Hd.renderMatches)(n,t.name,i.matches,t.path.length-t.name.length)}},Yb=require("obsidian");function Jb(n,e){n.addClass("has-node-icon"),(0,Yb.setIcon)(n,e)}var zd=require("obsidian");function Xb(n,e,t,i){let a=n.createEl("details",{cls:"javalent-nested-settings",attr:{...t??!0?{open:"open"}:{}}});a.ontoggle=async()=>{i&&i(a.open)};let s=a.createEl("summary");return new zd.Setting(s).setHeading().setName(e),(0,zd.setIcon)(s.createDiv("handle"),"chevron-right"),a}});var mv={};wm(mv,{DICE_ROLLER_SOURCE:()=>hi,default:()=>$s});module.exports=_m(mv);var jn=require("obsidian"),_f=La(Zl());var Ct=require("obsidian");var Sc=require("@codemirror/state"),Cc=require("@codemirror/view");var Sm=Function.prototype.toString,rr=Object.create,Cm=Object.prototype.toString,xm=function(){function n(){this._keys=[],this._values=[]}return n.prototype.has=function(e){return!!~this._keys.indexOf(e)},n.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},n.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},n}();function Am(){return new xm}function Tm(){return new WeakMap}var Dm=typeof WeakMap<"u"?Tm:Am;function lr(n){if(!n)return rr(null);var e=n.constructor;if(e===Object)return n===Object.prototype?{}:rr(n);if(e&&~Sm.call(e).indexOf("[native code]"))try{return new e}catch{}return rr(n)}function Em(n){var e="";return n.global&&(e+="g"),n.ignoreCase&&(e+="i"),n.multiline&&(e+="m"),n.unicode&&(e+="u"),n.sticky&&(e+="y"),e}function Mm(n){return n.flags}var Im=/test/g.flags==="g"?Mm:Em;function ec(n){var e=Cm.call(n);return e.substring(8,e.length-1)}function Om(n){return n[Symbol.toStringTag]||ec(n)}var Pm=typeof Symbol<"u"?Om:ec,Rm=Object.defineProperty,Nm=Object.getOwnPropertyDescriptor,tc=Object.getOwnPropertyNames,cr=Object.getOwnPropertySymbols,nc=Object.prototype,ic=nc.hasOwnPropert
Line truncated
|
||||
return [{ text: monster["hit_dice"] }];
|
||||
} else {
|
||||
return property;
|
||||
}`,callback:`let str = [monster.hp];
|
||||
if (monster.hit_dice?.length) {
|
||||
str.push(\`(\${monster.hit_dice})\`);
|
||||
}
|
||||
return str.join(" ");`,conditioned:!0},{type:"property",id:Q(),display:"Speed",properties:["speed"],conditioned:!0}],hasRule:!0,conditioned:!0},{type:"table",id:Q(),properties:["stats"],headers:["Str","Dex","Con","Int","Wis","Cha"],calculate:!0,hasRule:!0,conditioned:!0},{type:"table",id:Q(),properties:["fage_stats"],headers:["Accuracy","Communication","Constitution","Dexterity","Fighting","Intelligence","Perception","Strength","Willpower"],calculate:!1,hasRule:!0,conditioned:!0},{type:"group",id:Q(),properties:["saves","skillsaves","damage_immunities","damage_resistances","damage_vulnerabilities","condition_immunities","cr","languages","senses"],nested:[{type:"saves",id:Q(),display:"Saves",properties:["saves"],conditioned:!0},{type:"saves",id:Q(),display:"Skills",properties:["skillsaves"],conditioned:!0},{type:"property",id:Q(),display:"Damage Resistances",properties:["damage_resistances"],conditioned:!0},{type:"property",id:Q(),display:"Damage Immunities",properties:["damage_immunities"],conditioned:!0},{type:"property",id:Q(),display:"Condition Immunities",properties:["condition_immunities"],conditioned:!0},{type:"property",id:Q(),display:"Damage Vulnerabilities",properties:["damage_vulnerabilities"],conditioned:!0},{type:"property",id:Q(),display:"Senses",properties:["senses"],conditioned:!0},{type:"property",id:Q(),display:"Languages",properties:["languages"],fallback:"-"},{type:"inline",id:Q(),properties:[],conditioned:!0,nested:[{type:"property",id:Q(),display:"Challenge",properties:["cr"],callback:`const CR = {
|
||||
"0": {
|
||||
cr: "0",
|
||||
value: 0,
|
||||
xp: 10
|
||||
},
|
||||
"1/8": {
|
||||
cr: "1/8",
|
||||
value: 0.125,
|
||||
xp: 25
|
||||
},
|
||||
"1/4": {
|
||||
cr: "1/4",
|
||||
|
||||
value: 0.25,
|
||||
xp: 50
|
||||
},
|
||||
"1/2": {
|
||||
cr: "1/2",
|
||||
value: 0.5,
|
||||
xp: 100
|
||||
},
|
||||
"0.125": {
|
||||
cr: "1/8",
|
||||
value: 0.125,
|
||||
xp: 25
|
||||
},
|
||||
"0.25": {
|
||||
cr: "1/4",
|
||||
|
||||
value: 0.25,
|
||||
xp: 50
|
||||
},
|
||||
"0.5": {
|
||||
cr: "1/2",
|
||||
value: 0.5,
|
||||
xp: 100
|
||||
},
|
||||
"1": {
|
||||
cr: "1",
|
||||
value: 1,
|
||||
xp: 200
|
||||
},
|
||||
"2": {
|
||||
cr: "2",
|
||||
value: 2,
|
||||
xp: 450
|
||||
},
|
||||
"3": {
|
||||
cr: "3",
|
||||
value: 3,
|
||||
xp: 700
|
||||
},
|
||||
"4": {
|
||||
cr: "4",
|
||||
value: 4,
|
||||
xp: 1100
|
||||
},
|
||||
"5": {
|
||||
cr: "5",
|
||||
value: 5,
|
||||
xp: 1800
|
||||
},
|
||||
"6": {
|
||||
cr: "6",
|
||||
value: 6,
|
||||
xp: 2300
|
||||
},
|
||||
"7": {
|
||||
cr: "7",
|
||||
value: 7,
|
||||
xp: 2900
|
||||
},
|
||||
"8": {
|
||||
cr: "8",
|
||||
value: 8,
|
||||
xp: 3900
|
||||
},
|
||||
"9": {
|
||||
cr: "9",
|
||||
value: 9,
|
||||
xp: 5000
|
||||
},
|
||||
"10": {
|
||||
cr: "10",
|
||||
value: 10,
|
||||
xp: 5900
|
||||
},
|
||||
"11": {
|
||||
cr: "11",
|
||||
value: 11,
|
||||
xp: 7200
|
||||
},
|
||||
"12": {
|
||||
cr: "12",
|
||||
value: 12,
|
||||
xp: 8400
|
||||
},
|
||||
"13": {
|
||||
cr: "13",
|
||||
value: 13,
|
||||
xp: 10000
|
||||
},
|
||||
"14": {
|
||||
cr: "14",
|
||||
value: 14,
|
||||
xp: 11500
|
||||
},
|
||||
"15": {
|
||||
cr: "15",
|
||||
value: 15,
|
||||
xp: 13000
|
||||
},
|
||||
"16": {
|
||||
cr: "16",
|
||||
value: 16,
|
||||
xp: 15000
|
||||
},
|
||||
"17": {
|
||||
cr: "17",
|
||||
value: 17,
|
||||
xp: 18000
|
||||
},
|
||||
"18": {
|
||||
cr: "18",
|
||||
value: 18,
|
||||
xp: 20000
|
||||
},
|
||||
"19": {
|
||||
cr: "19",
|
||||
value: 19,
|
||||
xp: 22000
|
||||
},
|
||||
"20": {
|
||||
cr: "20",
|
||||
value: 20,
|
||||
xp: 25000
|
||||
},
|
||||
"21": {
|
||||
cr: "21",
|
||||
value: 21,
|
||||
xp: 33000
|
||||
},
|
||||
"22": {
|
||||
cr: "22",
|
||||
value: 22,
|
||||
xp: 41000
|
||||
},
|
||||
"23": {
|
||||
cr: "23",
|
||||
value: 23,
|
||||
xp: 50000
|
||||
},
|
||||
"24": {
|
||||
cr: "24",
|
||||
value: 24,
|
||||
xp: 62000
|
||||
},
|
||||
"25": {
|
||||
cr: "25",
|
||||
value: 25,
|
||||
xp: 75000
|
||||
},
|
||||
"26": {
|
||||
cr: "26",
|
||||
value: 26,
|
||||
xp: 90000
|
||||
},
|
||||
"27": {
|
||||
cr: "27",
|
||||
value: 27,
|
||||
xp: 105000
|
||||
},
|
||||
"28": {
|
||||
cr: "28",
|
||||
value: 28,
|
||||
xp: 120000
|
||||
},
|
||||
"29": {
|
||||
cr: "29",
|
||||
value: 29,
|
||||
xp: 135000
|
||||
},
|
||||
"30": {
|
||||
cr: "30",
|
||||
value: 30,
|
||||
xp: 155000
|
||||
}
|
||||
};
|
||||
if ("cr" in monster && monster.cr in CR) {
|
||||
return \`\${CR[
|
||||
monster.cr
|
||||
].cr} (\${CR[
|
||||
monster.cr
|
||||
].xp.toLocaleString()} XP)\`;
|
||||
}
|
||||
return "";`},{type:"property",id:Q(),display:"Proficiency Bonus",properties:["cr"],callback:`const CR = {
|
||||
"0": {
|
||||
cr: "0",
|
||||
value: 0,
|
||||
xp: 0
|
||||
},
|
||||
"1/8": {
|
||||
cr: "1/8",
|
||||
value: 0.125,
|
||||
xp: 25
|
||||
},
|
||||
"1/4": {
|
||||
cr: "1/4",
|
||||
|
||||
value: 0.25,
|
||||
xp: 50
|
||||
},
|
||||
"1/2": {
|
||||
cr: "1/2",
|
||||
value: 0.5,
|
||||
xp: 100
|
||||
},
|
||||
"0.125": {
|
||||
cr: "1/8",
|
||||
value: 0.125,
|
||||
xp: 25
|
||||
},
|
||||
"0.25": {
|
||||
cr: "1/4",
|
||||
|
||||
value: 0.25,
|
||||
xp: 50
|
||||
},
|
||||
"0.5": {
|
||||
cr: "1/2",
|
||||
value: 0.5,
|
||||
xp: 100
|
||||
},
|
||||
"1": {
|
||||
cr: "1",
|
||||
value: 1,
|
||||
xp: 200
|
||||
},
|
||||
"2": {
|
||||
cr: "2",
|
||||
value: 2,
|
||||
xp: 450
|
||||
},
|
||||
"3": {
|
||||
cr: "3",
|
||||
value: 3,
|
||||
xp: 700
|
||||
},
|
||||
"4": {
|
||||
cr: "4",
|
||||
value: 4,
|
||||
xp: 1100
|
||||
},
|
||||
"5": {
|
||||
cr: "5",
|
||||
value: 5,
|
||||
xp: 1800
|
||||
},
|
||||
"6": {
|
||||
cr: "6",
|
||||
value: 6,
|
||||
xp: 2300
|
||||
},
|
||||
"7": {
|
||||
cr: "7",
|
||||
value: 7,
|
||||
xp: 2900
|
||||
},
|
||||
"8": {
|
||||
cr: "8",
|
||||
value: 8,
|
||||
xp: 3900
|
||||
},
|
||||
"9": {
|
||||
cr: "9",
|
||||
value: 9,
|
||||
xp: 5000
|
||||
},
|
||||
"10": {
|
||||
cr: "10",
|
||||
value: 10,
|
||||
xp: 5900
|
||||
},
|
||||
"11": {
|
||||
cr: "11",
|
||||
value: 11,
|
||||
xp: 7200
|
||||
},
|
||||
"12": {
|
||||
cr: "12",
|
||||
value: 12,
|
||||
xp: 8400
|
||||
},
|
||||
"13": {
|
||||
cr: "13",
|
||||
value: 13,
|
||||
xp: 10000
|
||||
},
|
||||
"14": {
|
||||
cr: "14",
|
||||
value: 14,
|
||||
xp: 11500
|
||||
},
|
||||
"15": {
|
||||
cr: "15",
|
||||
value: 15,
|
||||
xp: 13000
|
||||
},
|
||||
"16": {
|
||||
cr: "16",
|
||||
value: 16,
|
||||
xp: 15000
|
||||
},
|
||||
"17": {
|
||||
cr: "17",
|
||||
value: 17,
|
||||
xp: 18000
|
||||
},
|
||||
"18": {
|
||||
cr: "18",
|
||||
value: 18,
|
||||
xp: 20000
|
||||
},
|
||||
"19": {
|
||||
cr: "19",
|
||||
value: 19,
|
||||
xp: 22000
|
||||
},
|
||||
"20": {
|
||||
cr: "20",
|
||||
value: 20,
|
||||
xp: 25000
|
||||
},
|
||||
"21": {
|
||||
cr: "21",
|
||||
value: 21,
|
||||
xp: 33000
|
||||
},
|
||||
"22": {
|
||||
cr: "22",
|
||||
value: 22,
|
||||
xp: 41000
|
||||
},
|
||||
"23": {
|
||||
cr: "23",
|
||||
value: 23,
|
||||
xp: 50000
|
||||
},
|
||||
"24": {
|
||||
cr: "24",
|
||||
value: 24,
|
||||
xp: 62000
|
||||
},
|
||||
"25": {
|
||||
cr: "25",
|
||||
value: 25,
|
||||
xp: 75000
|
||||
},
|
||||
"26": {
|
||||
cr: "26",
|
||||
value: 26,
|
||||
xp: 90000
|
||||
},
|
||||
"27": {
|
||||
cr: "27",
|
||||
value: 27,
|
||||
xp: 105000
|
||||
},
|
||||
"28": {
|
||||
cr: "28",
|
||||
value: 28,
|
||||
xp: 120000
|
||||
},
|
||||
"29": {
|
||||
cr: "29",
|
||||
value: 29,
|
||||
xp: 135000
|
||||
},
|
||||
"30": {
|
||||
cr: "30",
|
||||
value: 30,
|
||||
xp: 155000
|
||||
}
|
||||
};
|
||||
if ("cr" in monster && monster.cr in CR) {
|
||||
return \`+\${Math.max(
|
||||
Math.floor(2 + ((CR[monster.cr]?.value ?? 0) - 1) / 4),
|
||||
2
|
||||
)}\`;
|
||||
}
|
||||
return "";`}]}],conditioned:!0,hasRule:!0},{type:"traits",id:Q(),properties:["traits"],conditioned:!0,dice:!0},{type:"spells",id:Q(),properties:["spells"],conditioned:!0,dice:!0},{type:"text",id:Q(),properties:["spellsNotes"],conditioned:!0,text:null},{type:"traits",id:Q(),properties:["actions"],heading:"Actions",conditioned:!0,dice:!0},{type:"traits",id:Q(),properties:["bonus_actions"],heading:"Bonus Actions",conditioned:!0,dice:!0},{type:"group",id:Q(),properties:["legendary_description","legendary_actions"],heading:"Legendary Actions",nested:[{type:"text",id:Q(),properties:["legendary_description"],conditioned:!0,text:null},{type:"traits",id:Q(),properties:["legendary_actions"],conditioned:!0,dice:!0}],conditioned:!0},{type:"group",id:Q(),properties:["mythic_description","mythic_actions"],heading:"Mythic Actions",nested:[{type:"text",id:Q(),properties:["mythic_description"],conditioned:!0,text:null},{type:"traits",id:Q(),properties:["mythic_actions"],conditioned:!0,dice:!0}],conditioned:!0},{type:"traits",id:Q(),properties:["reactions"],heading:"Reactions",conditioned:!0,dice:!0},{type:"traits",id:Q(),properties:["lair_actions"],heading:"Lair Actions",conditioned:!0,dice:!0},{type:"traits",id:Q(),properties:["regional_effects"],heading:"Regional Effects",conditioned:!0,dice:!0}],rn={blocks:pg,id:"basic-5e-layout",name:"Basic 5e Layout",edited:!1,version:9};var Nu=require("obsidian");function N(){}var on=n=>n;function at(n,e){for(let t in e)n[t]=e[t];return n}function xc(n){return!!n&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"}function _r(n){return n()}function Va(){return Object.create(null)}function le(n){n.forEach(_r)}function Pe(n){return typeof n=="function"}function j(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}var ja;function Ac(n,e){return n===e?!0:(ja||(ja=document.createElement("a")),ja.href=e,n===ja.href)}function Tc(n){return Object.keys(n).length===0}function Dt(n,...e){if(n==null){for(let i of e)i(void 0);return N}let t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Se(n,e,t){n.$$.on_destroy.push(Dt(e,t))}function st(n,e,t,i){if(n){let a=Dc(n,e,t,i);return n[0](a)}}function Dc(n,e,t,i){return n[1]&&i?at(t.ctx.slice(),n[1](i(e))):t.ctx}function rt(n,e,t,i){if(n[2]&&i){let a=n[2](i(t));if(e.dirty===void 0)return a;if(typeof a=="object"){let s=[],r=Math.max(e.dirty.length,a.length);for(let o=0;o<r;o+=1)s[o]=e.dirty[o]|a[o];return s}return e.dirty|a}return e.dirty}function ot(n,e,t,i,a,s){if(a){let r=Dc(e,t,i,s);n.p(r,a)}}function lt(n){if(n.ctx.length>32){let e=[],t=n.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Ut(n){let e={};for(let t in n)t[0]!=="$"&&(e[t]=n[t]);return e}function xn(n){return n??""}function Ae(n,e,t){return n.set(t),e}function J(n){return n&&Pe(n.destroy)?n.destroy:N}var Ec=typeof window<"u",An=Ec?()=>window.performance.now():()=>Date.now(),Ki=Ec?n=>requestAnimationFrame(n):N;var ki=new Set;function Mc(n){ki.forEach(e=>{e.c(n)||(ki.delete(e),e.f())}),ki.size!==0&&Ki(Mc)}function Kn(n){let e;return ki.size===0&&Ki(Mc),{promise:new Promise(t=>{ki.add(e={c:n,f:t})}),abort(){ki.delete(e)}}}var $i=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ua=class n{constructor(e){We(this,"_listeners","WeakMap"in $i?new WeakMap:void 0);We(this,"_observer");We(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)n.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Ua.entries="WeakMap"in $i?new WeakMap:void 0;var Ic=!1;function Oc(){Ic=!0}function Pc(){Ic=!1}function y(n,e){n.appendChild(e)}function re(n,e,t){let i=Ga(n);if(!i.getElementById(e)){let a=v("style");a.id=e,a.textContent=t,Nc(i,a)}}function Ga(n){if(!n)return document;let e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Rc(n){let e=v("style");return e.textContent="/* empty */",Nc(Ga(n),e),e.sheet}function Nc(n,e){return y(n.head||n,e),e.sheet}function D(n,e,t){n.insertBefore(e,t||null)}function x(n){n.parentNode&&n.parentNode.removeChild(n)}function He(n,e){for(let t=0;t<n.length;t+=1)n[t]&&n[t].d(e)}function v(n){return document.createElement(n)}function Gt(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function pe(n){return document.createTextNode(n)}function R(){return pe(" ")}function _e(){return pe("")}function z(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function Sr(n){return function(e){return e.preventDefault(),n.call(this,e)}}function ln(n){return function(e){return e.stopPropagation(),n.call(this,e)}}function Lc(n){return function(e){e.target===this&&n.call(this,e)}}function g(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function cn(n,e){for(le
Line truncated
|
||||
`;for(let b=0;b<=1;b+=l){let _=e+(t-e)*s(b);c+=b*100+`%{${r(_,1-_)}}
|
||||
`}let d=c+`100% {${r(t,1-t)}}
|
||||
}`,u=`__svelte_${yg(d)}_${o}`,h=Ga(n),{stylesheet:f,rules:m}=Ka.get(h)||vg(h,n);m[u]||(m[u]=!0,f.insertRule(`@keyframes ${u} ${d}`,f.cssRules.length));let p=n.style.animation||"";return n.style.animation=`${p?`${p}, `:""}${u} ${i}ms linear ${a}ms 1 both`,$a+=1,u}function Ya(n,e){let t=(n.style.animation||"").split(", "),i=t.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),a=t.length-i.length;a&&(n.style.animation=i.join(", "),$a-=a,$a||kg())}function kg(){Ki(()=>{$a||(Ka.forEach(n=>{let{ownerNode:e}=n.stylesheet;e&&x(e)}),Ka.clear())})}function Tn(n,e,t,i){if(!e)return N;let a=n.getBoundingClientRect();if(e.left===a.left&&e.right===a.right&&e.top===a.top&&e.bottom===a.bottom)return N;let{delay:s=0,duration:r=300,easing:o=on,start:l=An()+s,end:c=l+r,tick:d=N,css:u}=t(n,{from:e,to:a},i),h=!0,f=!1,m;function p(){u&&(m=Ji(n,0,1,r,s,o,u)),s||(f=!0)}function b(){u&&Ya(n,m),h=!1}return Kn(_=>{if(!f&&_>=l&&(f=!0),f&&_>=c&&(d(1,0),b()),!h)return!1;if(f){let S=_-l,C=0+1*o(S/r);d(C,1-C)}return!0}),p(),d(0,1),b}function Dn(n){let e=getComputedStyle(n);if(e.position!=="absolute"&&e.position!=="fixed"){let{width:t,height:i}=e,a=n.getBoundingClientRect();n.style.position="absolute",n.style.width=t,n.style.height=i,wg(n,a)}}function wg(n,e){let t=n.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){let i=getComputedStyle(n),a=i.transform==="none"?"":i.transform;n.style.transform=`${a} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}var En;function Et(n){En=n}function Mn(){if(!En)throw new Error("Function called outside component initialization");return En}function pn(n){Mn().$$.on_mount.push(n)}function bn(n){Mn().$$.on_destroy.push(n)}function Me(){let n=Mn();return(e,t,{cancelable:i=!1}={})=>{let a=n.$$.callbacks[e];if(a){let s=Yi(e,t,{cancelable:i});return a.slice().forEach(r=>{r.call(n,s)}),!s.defaultPrevented}return!0}}function Mt(n,e){return Mn().$$.context.set(n,e),e}function Ue(n){return Mn().$$.context.get(n)}function xr(){return Mn().$$.context}function Ge(n,e){let t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}var Yn=[];var Re=[],_i=[],Tr=[],Wc=Promise.resolve(),Dr=!1;function Er(){Dr||(Dr=!0,Wc.then(Xi))}function Ja(){return Er(),Wc}function It(n){_i.push(n)}function Ft(n){Tr.push(n)}var Ar=new Set,wi=0;function Xi(){if(wi!==0)return;let n=En;do{try{for(;wi<Yn.length;){let e=Yn[wi];wi++,Et(e),_g(e.$$)}}catch(e){throw Yn.length=0,wi=0,e}for(Et(null),Yn.length=0,wi=0;Re.length;)Re.pop()();for(let e=0;e<_i.length;e+=1){let t=_i[e];Ar.has(t)||(Ar.add(t),t())}_i.length=0}while(Yn.length);for(;Tr.length;)Tr.pop()();Dr=!1,Ar.clear(),Et(n)}function _g(n){if(n.fragment!==null){n.update(),le(n.before_update);let e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(It)}}function Hc(n){let e=[],t=[];_i.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),_i=e}var Qi;function Sg(){return Qi||(Qi=Promise.resolve(),Qi.then(()=>{Qi=null})),Qi}function Mr(n,e,t){n.dispatchEvent(Yi(`${e?"intro":"outro"}${t}`))}var Xa=new Set,yn;function ce(){yn={r:0,c:[],p:yn}}function ue(){yn.r||le(yn.c),yn=yn.p}function E(n,e){n&&n.i&&(Xa.delete(n),n.i(e))}function I(n,e,t,i){if(n&&n.o){if(Xa.has(n))return;Xa.add(n),yn.c.push(()=>{Xa.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}var Cg={duration:0};function Jn(n,e,t,i){let s=e(n,t,{direction:"both"}),r=i?0:1,o=null,l=null,c=null,d;function u(){c&&Ya(n,c)}function h(m,p){let b=m.b-r;return p*=Math.abs(b),{a:r,b:m.b,d:b,duration:p,start:m.start,end:m.start+p,group:m.group}}function f(m){let{delay:p=0,duration:b=300,easing:_=on,tick:S=N,css:C}=s||Cg,M={start:An()+p,b:m};m||(M.group=yn,yn.r+=1),"inert"in n&&(m?d!==void 0&&(n.inert=d):(d=n.inert,n.inert=!0)),o||l?l=M:(C&&(u(),c=Ji(n,r,m,b,p,_,C)),m&&S(0,1),o=h(M,b),It(()=>Mr(n,m,"start")),Kn(w=>{if(l&&w>l.start&&(o=h(l,b),l=null,Mr(n,o.b,"start"),C&&(u(),c=Ji(n,r,o.b,o.duration,0,_,s.css))),o){if(w>=o.end)S(r=o.b,1-r),Mr(n,o.b,"end"),l||(o.b?u():--o.group.r||le(o.group.c)),o=null;else if(w>=o.start){let k=w-o.start;r=o.a+o.d*_(k/o.duration),S(r,1-r)}}return!!(o||l)}))}return{run(m){Pe(s)?Sg().then(()=>{s=s({direction:m?"in":"out"}),f(m)}):f(m)},end(){u(),o=l=null}}}function zc(n,e){let t=e.token={};function i(a,s,r,o){if(e.token!==t)return;e.resolved=o;let l=e.ctx;r!==void 0&&(l=l.slice(),l[r]=o);let c=a&&(e.current=a)(l),d=!1;e.block&&(e.blocks?e.blocks.forEach((u,h)=>{h!==s&&u&&(ce(),I(u,1,1,()=>{e.blocks[h]===u&&(e.blocks[h]=null)}),ue())}):e.block.d(1),c.c(),E(c,1),c.m(e.mount(),e.anchor),d=!0),e.block=c,e.blocks&&(e.blocks[s]=c),d&&Xi()}if(xc(n)){let a=Mn();if(n.then(s=>{Et(a),i(e.then,1,e.value,s),Et(null)},s=>{if(Et(a),i(e.catch,2,e.error,s),Et(null),!e.hasCatch)throw s}),e.current!==e.pending)return i(e.pending,0),!0}else{if(e.current!==e.then)return i(e.then,1,e.value,n),!0;e.resolved=n}}function qc(n,e,t){let i=e.slice(),{resolved:a}=n;n.current===n.then&&(i[n.value]=a),n.current===n.catch&&(i[n.error]=a),n.block.p(i,t)}function be(n){return n?.length!==vo
Line truncated
|
||||
var(--active-bar-border-color);z-index:1;width:auto}`)}function Og(n){let e;return{c(){e=v("div"),g(e,"class","bar svelte-zyyfbl")},m(t,i){D(t,e,i)},p:N,i:N,o:N,d(t){t&&x(e)}}}var Pr=class extends U{constructor(e){super(),G(this,e,null,Og,j,{},Ig)}},Rr=Pr;var is=require("obsidian");var xi=require("obsidian");var Qa="STATBLOCK-WIKI-LINK",es=new RegExp(`<${Qa}>([\\s\\S]+?)<${Qa}>`),Za="STATBLOCK-MARKDOWN-LINK",ts=new RegExp(`<${Za}>([\\s\\S]+?)(?:\\|([\\s\\S]+?))?<${Za}>`),Nr=/(<STATBLOCK-(?:WIKI|MARKDOWN)-LINK>[\s\S]+?<STATBLOCK-(?:WIKI|MARKDOWN)-LINK>)/,Ht=class n{static isStatblockLink(e){return Nr.test(e)}static replaceWikiLink(e){return`<${Qa}>${e}<${Qa}>`}static replaceMarkdownLink(e,t){return`<${Za}>${e}${t?"|"+t:""}<${Za}>`}static transformSource(e){return e.replace(/\[\[([^\]]+?)\]\]/g,(t,i)=>n.replaceWikiLink(i)).replace(/\[([^\]]*?)\]\(([^)]+?)\)/g,(t,i,a)=>n.replaceMarkdownLink(a,i))}static transformYamlSource(e){return n.transformSource(e)}static stringifyLinks(e){return e.replace(new RegExp(es,"g"),(t,i)=>`[[${i}]]`).replace(new RegExp(ts,"g"),(t,i,a)=>`[${a||""}](${i})`)}};var vn,Zi,Br,Lr=class extends xi.Component{constructor(){super(...arguments);Le(this,Zi);Le(this,vn,new Map)}buildCache(){setTimeout(()=>{let t=this.metadataCache.getLinkSuggestions();for(let{alias:i,file:a}of t)i&&Oe(this,Zi,Br).call(this,[i],a)},0)}getResolvedFile(t,i){t=t.trim();let a=X(this,vn).get(t)??X(this,vn).get(t.toLowerCase())??t;return{alias:X(this,vn).has(t)||X(this,vn).has(t.toLowerCase())?t:null,file:this.app.metadataCache.getFirstLinkpathDest(a,i)}}initialize(t,i){if(this.load(),this.app=i,this.metadataCache=t,t.initialized)this.buildCache();else{let a=i.metadataCache.on("resolved",()=>{this.buildCache(),this.metadataCache.offref(a)});this.registerEvent(a)}this.registerEvent(this.metadataCache.on("changed",a=>{let{frontmatter:s}=i.metadataCache.getFileCache(a)??{};if(!s)return;let r=(0,xi.parseFrontMatterAliases)(s)??[];Oe(this,Zi,Br).call(this,r,a)}))}linkify(t,i=""){let a=t.trim(),{file:s,alias:r}=this.getResolvedFile(a,i);return s!=null?t.replace(a,Ht.replaceWikiLink(`${s.basename}${r?"|"+r:""}`)):t}linkifySpells(t,i=""){return t.replace(/(.+?)(\*?,|\*?$)/g,(a,s,r)=>`${this.linkify(s,i)}${r}`)}transformSource(t){return Ht.transformSource(t)}transformYamlSource(t){return Ht.transformYamlSource(t)}stringifyLinks(t){return Ht.stringifyLinks(t)}splitByLinks(t,i,a){return ye(t).split(Nr).filter(s=>s&&s.length).map(s=>{if(es.test(s)){let r=s.match(es)[1];return{isLink:a,text:`[[${(0,xi.normalizePath)(r)}]]`}}if(ts.test(s)){let[r,o,l]=s.match(ts);return{isLink:a,text:`[${l||""}](${o})`}}return{isLink:!1,text:s}})}};vn=new WeakMap,Zi=new WeakSet,Br=function(t,i){for(let a of t)X(this,vn).set(a,i.name),X(this,vn).set(a.toLowerCase(),i.name)};var ut=new Lr;function Uc(n,e,t){let i=new Map,a=new Map,s=n.diceParsing??ns();for(let o of s){i.set(o.id,new RegExp(o.regex));let l=`
|
||||
let anon = (original, matches, monster) => {
|
||||
if (!matches || !matches.length) return original;
|
||||
${o.parser};
|
||||
}
|
||||
let result;
|
||||
try {
|
||||
result = anon(original, matches, monster);
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
result = original;
|
||||
} finally {
|
||||
return result;
|
||||
}
|
||||
`,c=new Function("original","matches","monster",l);a.set(o.id,c)}for(let{id:o}of s){let l=i.get(o);e=e.replaceAll(new RegExp(l,"g"),c=>`<MATCHED_DICE><DICE_ID>${o}<END_DICE_ID>${c}<END_MATCHED_DICE>`)}let r=[];for(let o of e.split(/(<MATCHED_DICE>.+?<END_MATCHED_DICE>)/)){if(!/<MATCHED_DICE>.+?<END_MATCHED_DICE>/.test(o)){r.push(o);continue}let[,l,c]=o.match(/<MATCHED_DICE><DICE_ID>(.+?)<END_DICE_ID>(.+)<END_MATCHED_DICE>/)??[];if(!l||!c){r.push(o);continue}let d=i.get(l),u=a.get(l),h=c.match(d),f=u.call(void 0,c,h,t);!f||Array.isArray(f)&&!f.every(m=>typeof m=="string"||m?.text?.length)||!Array.isArray(f)&&typeof f=="object"&&!f.text?.length?r.push(c):Array.isArray(f)?r.push(...f):r.push(f)}return r}function ns(){return[{regex:/([\+\-])(\d+) to hit/.source,parser:`let [, sign, number] = matches;
|
||||
let mult = 1;
|
||||
if (sign === "-") {
|
||||
mult = -1;
|
||||
}
|
||||
if (!isNaN(Number(number))) {
|
||||
return {
|
||||
text: \`1d20+\${mult * Number(number)}\`,
|
||||
original
|
||||
}
|
||||
}`,id:Q(),desc:"+10 to hit"},{regex:/(\d+)\s\((\d+d\d+(?:\s*[+\-]\s*\d+)?)\)/.source,parser:`let [, base, dice] = matches;
|
||||
let text;
|
||||
if (!isNaN(Number(base)) && dice) {
|
||||
text = dice;
|
||||
}
|
||||
return { text, original: dice ?? original };`,id:Q(),desc:"4 (1d6 + 1)"},{regex:/([^\s]+) ([\+\-])(\d+)/.source,parser:`
|
||||
let [, save, sign, number] = matches;
|
||||
let mult = 1;
|
||||
if (sign === "-") {
|
||||
mult = -1;
|
||||
}
|
||||
let text;
|
||||
if (!isNaN(Number(number))) {
|
||||
text = \`1d20+\${mult * Number(number)}\`;
|
||||
original = \`\${save} \${sign}\${number}\`;
|
||||
}
|
||||
return { text, original };`,id:Q(),desc:"+5"}]}function Pg(n){re(n,"svelte-1c3hzq4",".statblock-markdown.svelte-1c3hzq4{display:inline}.statblock-markdown.svelte-1c3hzq4 p{display:inline}.statblock-markdown.svelte-1c3hzq4 p ~ p{display:inline-block}")}function Rg(n){let e,t,i,a;return{c(){e=v("div"),g(e,"class","statblock-markdown svelte-1c3hzq4")},m(s,r){D(s,e,r),i||(a=J(t=n[1].call(null,e)),i=!0)},p:N,i:N,o:N,d(s){s&&x(e),i=!1,a()}}}function Ng(n,e,t){let i,{property:a}=e;a=typeof a=="string"?ut.stringifyLinks(a):a;let s=Ue("context"),r=Ue("renderer"),o=Ue("item"),l=Ue("dice"),c=o.dice,d=Ue("monster");Se(n,d,b=>t(5,i=b));let u=i;d.subscribe(b=>u=b);let h=Ue("plugin"),f=Ue("layout"),m=[a];if(l&&c)if(o.diceProperty&&o.diceProperty in u&&typeof u[o.diceProperty]=="string")m=[{text:u[o.diceProperty]}];else{let b=Uc(f,ye(a),u);Array.isArray(b)?m=b:m=[b]}if(l&&o.diceCallback)try{let b=document.body.createEl("iframe"),_=b.contentWindow.Function,C=new _("monster","property",o.diceCallback).call(void 0,u,a)??a;document.body.removeChild(b),Array.isArray(C)?m=C:m=[C]}catch(b){new is.Notice(`There was an error executing the provided dice callback for [${o.properties.join(", ")}]
|
||||
|
||||
${b.message}`),console.error(b)}a="";for(let b of m)if(l&&typeof b=="object"){let _,S=h.getRollerString(b.text);b.original?_=`${b.original} (\`dice: ${S}\`)`:_=`\`dice: ${S}\``,a+=_}else a+=b;let p=b=>{a==="-"&&t(2,a="\\-"),is.MarkdownRenderer.render(h.app,a,b,s,r)};return n.$$set=b=>{"property"in b&&t(2,a=b.property)},[d,p,a]}var Fr=class extends U{constructor(e){super(),G(this,e,Ng,Rg,j,{property:2},Pg)}},Gc=Fr;function Lg(n){let e,t;return e=new Gc({props:{property:n[0]}}),{c(){ie(e.$$.fragment)},m(i,a){te(e,i,a),t=!0},p(i,[a]){let s={};a&1&&(s.property=i[0]),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){ne(e,i)}}}function Bg(n,e,t){let{property:i=""}=e;return n.$$set=a=>{"property"in a&&t(0,i=a.property)},[i]}var Wr=class extends U{constructor(e){super(),G(this,e,Bg,Lg,j,{property:0})}},gt=Wr;var Xc=require("obsidian");function Fg(n){re(n,"svelte-1d2gp4n",".trait.svelte-1d2gp4n{font-family:var(--active-traits-font);color:var(--active-traits-font-color);font-size:var(--active-traits-font-size);font-weight:var(--active-traits-font-weight);font-style:var(--active-traits-font-style)}.trait-name.svelte-1d2gp4n{font-family:var(--active-traits-name-font);color:var(--active-traits-name-font-color);font-size:var(--active-traits-name-font-size);font-weight:var(--active-traits-name-font-weight);font-style:var(--active-traits-name-font-style)}.property-name.svelte-1d2gp4n{margin:0;margin-right:0.25em;display:inline}.statblock-nested-traits.svelte-1d2gp4n{margin-left:1rem}")}function Kc(n,e,t){let i=n.slice();return i[7]=e[t],i}function $c(n){let e,t,i;return t=new gt({props:{property:n[2]}}),{c(){e=v("div"),ie(t.$$.fragment),g(e,"class","property-name trait-name svelte-1d2gp4n")},m(a,s){D(a,e,s),te(t,e,null),i=!0},p(a,s){let r={};s&4&&(r.property=a[2]),t.$set(r)},i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){a&&x(e),ne(t)}}}function Yc(n){let e,t,i=be(n[1].traits),a=[];for(let r=0;r<i.length;r+=1)a[r]=Jc(Kc(n,i,r));let s=r=>I(a[r],1,1,()=>{a[r]=null});return{c(){e=v("div");for(let r=0;r<a.length;r+=1)a[r].c();g(e,"class","statblock-nested-traits svelte-1d2gp4n")},m(r,o){D(r,e,o);for(let l=0;l<a.length;l+=1)a[l]&&a[l].m(e,null);t=!0},p(r,o){if(o&26){i=be(r[1].traits);let l;for(l=0;l<i.length;l+=1){let c=Kc(r,i,l);a[l]?(a[l].p(c,o),E(a[l],1)):(a[l]=Jc(c),a[l].c(),E(a[l],1),a[l].m(e,null))}for(ce(),l=i.length;l<a.length;l+=1)s(l);ue()}},i(r){if(!t){for(let o=0;o<i.length;o+=1)E(a[o]);t=!0}},o(r){a=a.filter(Boolean);for(let o=0;o<a.length;o+=1)I(a[o]);t=!1},d(r){r&&x(e),He(a,r)}}}function Jc(n){let e,t;return e=new as({props:{name:n[7].name,desc:n[7].desc,property:n[3],item:n[4],nested:n[7]}}),{c(){ie(e.$$.fragment)},m(i,a){te(e,i,a),t=!0},p(i,a){let s={};a&2&&(s.name=i[7].name),a&2&&(s.desc=i[7].desc),a&8&&(s.property=i[3]),a&16&&(s.item=i[4]),a&2&&(s.nested=i[7]),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){ne(e,i)}}}function Wg(n){let e,t,i,a,s,r,o=n[2]&&$c(n);i=new gt({props:{property:n[0]}});let l=n[1]?.traits&&Yc(n);return{c(){e=v("div"),o&&o.c(),t=R(),ie(i.$$.fragment),a=R(),l&&l.c(),g(e,"class",s="property "+n[5]+" trait svelte-1d2gp4n")},m(c,d){D(c,e,d),o&&o.m(e,null),y(e,t),te(i,e,null),y(e,a),l&&l.m(e,null),r=!0},p(c,[d]){c[2]?o?(o.p(c,d),d&4&&E(o,1)):(o=$c(c),o.c(),E(o,1),o.m(e,t)):o&&(ce(),I(o,1,1,()=>{o=null}),ue());let u={};d&1&&(u.property=c[0]),i.$set(u),c[1]?.traits?l?(l.p(c,d),d&2&&E(l,1)):(l=Yc(c),l.c(),E(l,1),l.m(e,null)):l&&(ce(),I(l,1,1,()=>{l=null}),ue()),(!r||d&32&&s!==(s="property "+c[5]+" trait svelte-1d2gp4n"))&&g(e,"class",s)},i(c){r||(E(o),E(i.$$.fragment,c),E(l),r=!0)},o(c){I(o),I(i.$$.fragment,c),I(l),r=!1},d(c){c&&x(e),o&&o.d(),ne(i),l&&l.d()}}}function Hg(n,e,t){let i,{trait:a}=e,{name:s}=e,{desc:r}=e,{property:o=""}=e,{item:l}=e,{monster:c}=e;if(l.callback)try{let d=document.body.createEl("iframe"),u=d.contentWindow.Function;r=new u("monster","property",l.callback).call(void 0,c,a)??r,document.body.removeChild(d)}catch(d){new Xc.Notice(`There was an error executing the provided callback for [${l.properties.join(", ")}]
|
||||
|
||||
${d.message}`),console.error(d)}return n.$$set=d=>{"trait"in d&&t(1,a=d.trait),"name"in d&&t(2,s=d.name),"desc"in d&&t(0,r=d.desc),"property"in d&&t(3,o=d.property),"item"in d&&t(4,l=d.item),"monster"in d&&t(6,c=d.monster)},n.$$.update=()=>{n.$$.dirty&28&&t(5,i=l.doNotAddClass?[]:[mt(s),mt(o)].join(" "))},[r,a,s,o,l,i,c]}var as=class extends U{constructor(e){super(),G(this,e,Hg,Wg,j,{trait:1,name:2,desc:0,property:3,item:4,monster:6},Fg)}},ea=as;var ss=require("obsidian");function zg(n){re(n,"svelte-1lnliuc",".inline.svelte-1lnliuc{display:inline}")}function Qc(n,e,t){let i=n.slice();return i[6]=e[t],i}function qg(n){let e=n[6].text+"",t;return{c(){t=pe(e)},m(i,a){D(i,t,a)},p:N,d(i){i&&x(t)}}}function jg(n){let e,t,i={ctx:n,current:null,token:null,hasCatch:!1,pending:Gg,then:Ug,catch:Vg,value:9};return zc(t=n[1](n[6].text),i),{c(){e=_e(),i.block.c()},m(a,s){D(a,e,s),i.block.m(a,i.anchor=s),i.mount=()=>e.parentNode,i.anchor=e},p(a,s){n=a,qc(i,n,s)},d(a){a&&x(e),i.block.d(a),i.token=null,i=null}}}function Vg(n){return{c:N,m:N,p:N,d:N}}function Ug(n){let e,t=n[9]+"",i;return{c(){e=new gn(!1),i=_e(),e.a=i},m(a,s){e.m(t,a,s),D(a,i,s)},p:N,d(a){a&&(x(i),e.d())}}}function Gg(n){return{c:N,m:N,p:N,d:N}}function Zc(n){let e;function t(s,r){return s[6].isLink?jg:qg}let a=t(n,-1)(n);return{c(){a.c(),e=_e()},m(s,r){a.m(s,r),D(s,e,r)},p(s,r){a.p(s,r)},d(s){s&&x(e),a.d(s)}}}function Kg(n){let e,t=be(n[0]),i=[];for(let a=0;a<t.length;a+=1)i[a]=Zc(Qc(n,t,a));return{c(){e=v("div");for(let a=0;a<i.length;a+=1)i[a].c();g(e,"class","statblock-rendered-text-content inline svelte-1lnliuc")},m(a,s){D(a,e,s);for(let r=0;r<i.length;r+=1)i[r]&&i[r].m(e,null)},p(a,[s]){if(s&3){t=be(a[0]);let r;for(r=0;r<t.length;r+=1){let o=Qc(a,t,r);i[r]?i[r].p(o,s):(i[r]=Zc(o),i[r].c(),i[r].m(e,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=t.length}},i:N,o:N,d(a){a&&x(e),He(i,a)}}}function $g(n,e,t){let{textToRender:i}=e,a=Ue("tryToRenderLinks"),s=Ue("context"),r=new ss.Component,o=ut.splitByLinks(i,s,a),l=async c=>{let d=createDiv();return await ss.MarkdownRenderer.render(app,c,d,s,r),d.querySelector("a").outerHTML};return n.$$set=c=>{"textToRender"in c&&t(2,i=c.textToRender)},[o,l,i]}var Hr=class extends U{constructor(e){super(),G(this,e,$g,Kg,j,{textToRender:2},zg)}},Kt=Hr;function Yg(n){re(n,"svelte-14k5qsm",".flex-container.svelte-14k5qsm{display:flex;justify-content:space-between;align-items:center}.heading.svelte-14k5qsm{font-family:var(--active-heading-font);color:var(--active-heading-font-color);font-weight:var(--active-heading-font-weight);font-variant:var(--active-heading-font-variant);font-size:var(--active-heading-font-size);line-height:var(--active-heading-line-height);margin:0px;letter-spacing:1px;display:flex;justify-content:space-between;align-items:center}")}function eu(n,e,t){let i=n.slice();return i[2]=e[t],i}function tu(n){let e,t,i,a,s=[tp,ep,Zg,Qg,Xg,Jg],r=[];function o(l,c){return!l[1].size||l[1].size==1?0:l[1].size==2?1:l[1].size==3?2:l[1].size==4?3:l[1].size==5?4:5}return e=o(n,-1),t=r[e]=s[e](n),{c(){t.c(),i=_e()},m(l,c){r[e].m(l,c),D(l,i,c),a=!0},p(l,c){let d=e;e=o(l,c),e===d?r[e].p(l,c):(ce(),I(r[d],1,1,()=>{r[d]=null}),ue(),t=r[e],t?t.p(l,c):(t=r[e]=s[e](l),t.c()),E(t,1),t.m(i.parentNode,i))},i(l){a||(E(t),a=!0)},o(l){I(t),a=!1},d(l){l&&x(i),r[e].d(l)}}}function Jg(n){let e,t,i,a,s;return t=new Kt({props:{textToRender:ye(n[0][n[2]])}}),{c(){e=v("h6"),ie(t.$$.fragment),i=R(),g(e,"class",a="heading statblock-heading "+ye(n[2])+" svelte-14k5qsm")},m(r,o){D(r,e,o),te(t,e,null),y(e,i),s=!0},p(r,o){let l={};o&3&&(l.textToRender=ye(r[0][r[2]])),t.$set(l),(!s||o&2&&a!==(a="heading statblock-heading "+ye(r[2])+" svelte-14k5qsm"))&&g(e,"class",a)},i(r){s||(E(t.$$.fragment,r),s=!0)},o(r){I(t.$$.fragment,r),s=!1},d(r){r&&x(e),ne(t)}}}function Xg(n){let e,t,i,a,s;return t=new Kt({props:{textToRender:ye(n[0][n[2]])}}),{c(){e=v("h5"),ie(t.$$.fragment),i=R(),g(e,"class",a="heading statblock-heading "+ye(n[2])+" svelte-14k5qsm")},m(r,o){D(r,e,o),te(t,e,null),y(e,i),s=!0},p(r,o){let l={};o&3&&(l.textToRender=ye(r[0][r[2]])),t.$set(l),(!s||o&2&&a!==(a="heading statblock-heading "+ye(r[2])+" svelte-14k5qsm"))&&g(e,"class",a)},i(r){s||(E(t.$$.fragment,r),s=!0)},o(r){I(t.$$.fragment,r),s=!1},d(r){r&&x(e),ne(t)}}}function Qg(n){let e,t,i,a,s;return t=new Kt({props:{textToRender:ye(n[0][n[2]])}}),{c(){e=v("h4"),ie(t.$$.fragment),i=R(),g(e,"class",a="heading statblock-heading "+ye(n[2])+" svelte-14k5qsm")},m(r,o){D(r,e,o),te(t,e,null),y(e,i),s=!0},p(r,o){let l={};o&3&&(l.textToRender=ye(r[0][r[2]])),t.$set(l),(!s||o&2&&a!==(a="heading statblock-heading "+ye(r[2])+" svelte-14k5qsm"))&&g(e,"class",a)},i(r){s||(E(t.$$.fragment,r),s=!0)},o(r){I(t.$$.fragment,r),s=!1},d(r){r&&x(e),ne(t)}}}function Zg(n){let e,t,i,a,s;return t=new Kt({props:{textToRender:ye(n[0][n[2]])}}),{c(){e=v("h3"),ie(t.$$.fragment),i=R(),g(e,"class",a="heading statblock-heading "+ye(n[2])+" svelte-14k5qsm")},m(r,o){D(r,e,o),te(t,e,null),y(e,i),s=!0},p(r,o){let l={};o&3&&(l.t
Line truncated
|
||||
|
||||
${l.message}`),console.error(l)}return!s.conditioned&&!`${r}`.length&&(r=s.fallback??"-"),n.$$set=l=>{"monster"in l&&t(4,a=l.monster),"item"in l&&t(0,s=l.item)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=s.doNotAddClass?"":mt(s.properties[0]))},[s,r,i,o,a]}var qr=class extends U{constructor(e){super(),G(this,e,rp,sp,j,{monster:4,item:0},ap)}},ru=qr;function op(n){re(n,"svelte-k72li0",`.tapered-rule.svelte-k72li0{width:auto;margin:0.5em 0;height:5px;background:-webkit-linear-gradient(
|
||||
0deg,
|
||||
var(--active-rule-color) 0%,
|
||||
var(--active-rule-color) 50%,
|
||||
var(--active-background-color) 95%,
|
||||
var(--active-background-color) 100%
|
||||
);clip-path:polygon(0 0, 0 100%, 95% 50%);-webkit-clip-path:polygon(0 0, 0 100%, 95% 50%)}`)}function lp(n){let e;return{c(){e=v("div"),g(e,"class","tapered-rule svelte-k72li0")},m(t,i){D(t,e,i)},p:N,i:N,o:N,d(t){t&&x(e)}}}var jr=class extends U{constructor(e){super(),G(this,e,null,lp,j,{},op)}},rs=jr;var cu=require("obsidian");function cp(n){re(n,"svelte-1vwmbsx",'.line.svelte-1vwmbsx.svelte-1vwmbsx{line-height:var(--active-saves-line-height);display:block;color:var(--active-font-color)}.property-name.svelte-1vwmbsx.svelte-1vwmbsx{color:var(--active-property-name-font-color);margin:0;margin-right:0.25em;display:inline;font-weight:bold}.property-text.svelte-1vwmbsx.svelte-1vwmbsx{display:inline;margin:0}.save-entry.svelte-1vwmbsx.svelte-1vwmbsx,.save-name.svelte-1vwmbsx.svelte-1vwmbsx,.save-value.svelte-1vwmbsx.svelte-1vwmbsx{display:inline}.save-entry.svelte-1vwmbsx:not(:last-child) .save-value.svelte-1vwmbsx::after{content:", "}')}function ou(n,e,t){let i=n.slice();return i[5]=e[t][0],i[6]=e[t][1],i}function up(n){let e,t,i;return t=new gt({props:{property:n[5]}}),{c(){e=v("div"),ie(t.$$.fragment),g(e,"class","save-name svelte-1vwmbsx")},m(a,s){D(a,e,s),te(t,e,null),i=!0},p:N,i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){a&&x(e),ne(t)}}}function lu(n){let e,t=!n[5].startsWith("_"),i,a,s,r,o,l,c=t&&up(n);return s=new gt({props:{property:n[6]}}),{c(){e=v("div"),c&&c.c(),i=R(),a=v("div"),ie(s.$$.fragment),r=R(),g(a,"class","save-value svelte-1vwmbsx"),g(e,"class",o="save-entry save-"+mt(n[5])+"-entry svelte-1vwmbsx")},m(d,u){D(d,e,u),c&&c.m(e,null),y(e,i),y(e,a),te(s,a,null),y(e,r),l=!0},p(d,u){t&&c.p(d,u)},i(d){l||(E(c),E(s.$$.fragment,d),l=!0)},o(d){I(c),I(s.$$.fragment,d),l=!1},d(d){d&&x(e),c&&c.d(),ne(s)}}}function dp(n){let e,t,i,a=(n[0].display??Gi(n[0].properties[0]))+"",s,r,o,l,c,d=be(n[2]),u=[];for(let f=0;f<d.length;f+=1)u[f]=lu(ou(n,d,f));let h=f=>I(u[f],1,1,()=>{u[f]=null});return{c(){e=v("div"),t=v("div"),i=v("span"),s=pe(a),r=R(),o=v("div");for(let f=0;f<u.length;f+=1)u[f].c();g(i,"class","property-name svelte-1vwmbsx"),g(o,"class","property-text svelte-1vwmbsx"),g(t,"class",l="line "+n[1]+" svelte-1vwmbsx"),g(e,"class","info")},m(f,m){D(f,e,m),y(e,t),y(t,i),y(i,s),y(t,r),y(t,o);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(o,null);c=!0},p(f,[m]){if((!c||m&1)&&a!==(a=(f[0].display??Gi(f[0].properties[0]))+"")&&we(s,a),m&4){d=be(f[2]);let p;for(p=0;p<d.length;p+=1){let b=ou(f,d,p);u[p]?(u[p].p(b,m),E(u[p],1)):(u[p]=lu(b),u[p].c(),E(u[p],1),u[p].m(o,null))}for(ce(),p=d.length;p<u.length;p+=1)h(p);ue()}(!c||m&2&&l!==(l="line "+f[1]+" svelte-1vwmbsx"))&&g(t,"class",l)},i(f){if(!c){for(let m=0;m<d.length;m+=1)E(u[m]);c=!0}},o(f){u=u.filter(Boolean);for(let m=0;m<u.length;m+=1)I(u[m]);c=!1},d(f){f&&x(e),He(u,f)}}}function hp(n){return`${n>=0?"+":""}${n}`}function fp(n,e,t){let i,{monster:a}=e,{item:s}=e,r=a[s.properties[0]];if(Array.isArray(r)||(r=[]),s.callback)try{let l=document.body.createEl("iframe"),c=l.contentWindow.Function,d=new c("monster","property",s.callback);r=r.map(u=>d.call(void 0,a,u)??u),document.body.removeChild(l)}catch(l){new cu.Notice(`There was an error executing the provided callback for [${s.properties.join(", ")}]
|
||||
|
||||
${l.message}`),console.error(l)}let o=r.map(l=>{if(!l||typeof l!="object")return null;if(l.desc)return[l.name||"_",l.desc];let c=Object.keys(l)[0];if(!c)return null;let d=Object.values(l)[0];return typeof d=="string"&&isNaN(Number(d))?[Gi(c),d]:d!=0&&(!d||isNaN(Number(d)))?null:[Gi(c),hp(d)]}).filter(l=>l);return n.$$set=l=>{"monster"in l&&t(3,a=l.monster),"item"in l&&t(0,s=l.item)},n.$$.update=()=>{n.$$.dirty&1&&t(1,i=s.doNotAddClass?[]:[mt(s.display),mt(s.properties[0])].join(" "))},[s,i,o,a]}var Vr=class extends U{constructor(e){super(),G(this,e,fp,dp,j,{monster:3,item:0},cp)}},uu=Vr;function mp(n){re(n,"svelte-1ascaxr",`.section-header.svelte-1ascaxr{border-bottom:var(--active-section-heading-border-size) solid
|
||||
var(--active-section-heading-border-color);color:var(--active-section-heading-font-color);font-size:var(--active-section-heading-font-size);font-variant:var(--active-section-heading-font-variant);font-weight:var(--active-section-heading-font-weight);font-family:var(--active-section-heading-font);letter-spacing:1px;margin:0;margin-bottom:0.3em;break-inside:avoid-column;break-after:avoid-column}`)}function du(n){let e,t,i,a;return t=new Kt({props:{textToRender:n[0]}}),{c(){e=v("h3"),ie(t.$$.fragment),g(e,"class",i="section-header "+n[1](n[0])+" svelte-1ascaxr")},m(s,r){D(s,e,r),te(t,e,null),a=!0},p(s,r){let o={};r&1&&(o.textToRender=s[0]),t.$set(o),(!a||r&1&&i!==(i="section-header "+s[1](s[0])+" svelte-1ascaxr"))&&g(e,"class",i)},i(s){a||(E(t.$$.fragment,s),a=!0)},o(s){I(t.$$.fragment,s),a=!1},d(s){s&&x(e),ne(t)}}}function gp(n){let e,t,i=n[0]&&n[0].length&&du(n);return{c(){i&&i.c(),e=_e()},m(a,s){i&&i.m(a,s),D(a,e,s),t=!0},p(a,[s]){a[0]&&a[0].length?i?(i.p(a,s),s&1&&E(i,1)):(i=du(a),i.c(),E(i,1),i.m(e.parentNode,e)):i&&(ce(),I(i,1,1,()=>{i=null}),ue())},i(a){t||(E(i),t=!0)},o(a){I(i),t=!1},d(a){a&&x(e),i&&i.d(a)}}}function pp(n,e,t){let{monster:i}=e,{item:a}=e,s;if(a.headingProp){if(a.heading in i){let o=ye(i[a.heading]);o.length&&(s=o)}}else a.heading?.length&&(s=a.heading);let r=o=>o.toLowerCase().replace(/[^A-Za-z0-9\s]/g,"").replace(/\s+/g,"-");return n.$$set=o=>{"monster"in o&&t(2,i=o.monster),"item"in o&&t(3,a=o.item)},[s,r,i,a]}var Ur=class extends U{constructor(e){super(),G(this,e,pp,gp,j,{monster:2,item:3},mp)}},Ai=Ur;function bp(n){re(n,"svelte-1fyuyh",".subheading.svelte-1fyuyh{font-weight:var(--active-subheading-font-weight);font-style:var(--active-subheading-font-style);font-size:var(--active-subheading-font-size);font-family:var(--active-subheading-font-family);color:var(--active-subheading-font-color);margin:0}")}function yp(n){let e,t,i;return t=new Kt({props:{textToRender:n[1].join(n[0].separator)}}),{c(){e=v("div"),ie(t.$$.fragment),g(e,"class","subheading svelte-1fyuyh")},m(a,s){D(a,e,s),te(t,e,null),i=!0},p(a,s){let r={};s&1&&(r.textToRender=a[1].join(a[0].separator)),t.$set(r)},i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){a&&x(e),ne(t)}}}function vp(n){let e,t,i=n[1].length&&yp(n);return{c(){i&&i.c(),e=_e()},m(a,s){i&&i.m(a,s),D(a,e,s),t=!0},p(a,[s]){a[1].length&&i.p(a,s)},i(a){t||(E(i),t=!0)},o(a){I(i),t=!1},d(a){a&&x(e),i&&i.d(a)}}}function kp(n,e,t){let{monster:i}=e,{item:a}=e,s=[];for(let r of a.properties)r in i&&s.push(`${ye(i[r],0,", ",!1)}`);return n.$$set=r=>{"monster"in r&&t(2,i=r.monster),"item"in r&&t(0,a=r.item)},[a,s,i]}var Gr=class extends U{constructor(e){super(),G(this,e,kp,vp,j,{monster:2,item:0},bp)}},hu=Gr;function wp(n){re(n,"svelte-1jjvt5k",'.statblock-table-header.svelte-1jjvt5k{font-weight:var(--active-table-header-font-weight)}.statblock-table.svelte-1jjvt5k{display:flex;justify-content:space-evenly;align-items:center;flex-wrap:wrap}.table-item.svelte-1jjvt5k{display:flex;justify-content:center;align-items:center;flex-flow:column nowrap}.calculated-modifier.svelte-1jjvt5k::before{content:"("}.calculated-modifier.svelte-1jjvt5k::after{content:")"}')}function fu(n,e,t){let i=n.slice();return i[7]=e[t][0],i[2]=e[t][1],i}function mu(n,e,t){let i=n.slice();return i[10]=e[t],i}function gu(n){let e;return{c(){e=v("span"),e.textContent=`${n[3](n[10])}`,g(e,"class","calculated-modifier svelte-1jjvt5k")},m(t,i){D(t,e,i)},p:N,d(t){t&&x(e)}}}function pu(n){let e,t,i,a;t=new gt({props:{property:ye(n[10])}});let s=n[0].calculate&&gu(n);return{c(){e=v("span"),ie(t.$$.fragment),i=R(),s&&s.c()},m(r,o){D(r,e,o),te(t,e,null),y(e,i),s&&s.m(e,null),a=!0},p(r,o){r[0].calculate?s?s.p(r,o):(s=gu(r),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i(r){a||(E(t.$$.fragment,r),a=!0)},o(r){I(t.$$.fragment,r),a=!1},d(r){r&&x(e),ne(t),s&&s.d()}}}function bu(n){let e,t,i,a,s,r=be(n[2]),o=[];for(let c=0;c<r.length;c+=1)o[c]=pu(mu(n,r,c));let l=c=>I(o[c],1,1,()=>{o[c]=null});return{c(){e=v("div"),t=v("span"),t.textContent=`${n[5][n[7]]}`,i=R();for(let c=0;c<o.length;c+=1)o[c].c();a=R(),g(t,"class","statblock-table-header svelte-1jjvt5k"),g(e,"class","table-item svelte-1jjvt5k")},m(c,d){D(c,e,d),y(e,t),y(e,i);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(e,null);y(e,a),s=!0},p(c,d){if(d&57){r=be(c[2]);let u;for(u=0;u<r.length;u+=1){let h=mu(c,r,u);o[u]?(o[u].p(h,d),E(o[u],1)):(o[u]=pu(h),o[u].c(),E(o[u],1),o[u].m(e,a))}for(ce(),u=r.length;u<o.length;u+=1)l(u);ue()}},i(c){if(!s){for(let d=0;d<r.length;d+=1)E(o[d]);s=!0}},o(c){o=o.filter(Boolean);for(let d=0;d<o.length;d+=1)I(o[d]);s=!1},d(c){c&&x(e),He(o,c)}}}function _p(n){let e,t,i,a=be([...n[4].entries()].slice(0,n[5].length)),s=[];for(let o=0;o<a.length;o+=1)s[o]=bu(fu(n,a,o));let r=o=>I(s[o],1,1,()=>{s[o]=null});return{c(){e=v("div");for(let o=0;o<s.length;o+=1)s[o].c();g(e,"class",t="statblock-table "+n[1]+" svelte-1jjvt5k")},m(o,l){D(o,e,l);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);i=!0},p(o,[l]){if(l&57){a=be(
Line truncated
|
||||
var(--active-image-border-color);object-position:center}`)}function Tp(n){let e,t,i,a,s,r;return{c(){e=v("div"),t=v("img"),Ac(t.src,i=n[2])||g(t,"src",i),g(t,"alt",a=n[0].name),g(t,"class","svelte-q1pj66"),g(e,"class","image svelte-q1pj66"),oe(e,"pointer",n[1]!=null)},m(o,l){D(o,e,l),y(e,t),s||(r=[z(e,"click",n[6]),z(e,"mouseenter",n[7])],s=!0)},p(o,l){l&1&&a!==(a=o[0].name)&&g(t,"alt",a),l&2&&oe(e,"pointer",o[1]!=null)},d(o){o&&x(e),s=!1,le(r)}}}function Dp(n){let e,t=n[2]&&Tp(n);return{c(){t&&t.c(),e=_e()},m(i,a){t&&t.m(i,a),D(i,e,a)},p(i,[a]){i[2]&&t.p(i,a)},i:N,o:N,d(i){i&&x(e),t&&t.d(i)}}}function Ep(n,e,t){let{monster:i}=e,{item:a}=e,s=Ue("plugin"),r=Ue("context"),o;function l(b){b=decodeURIComponent(b);let _;try{if(/https?:/.test(b)){let[S]=ut.stringifyLinks(b).split("|");_=S}else{let[S]=ut.stringifyLinks(b).replace(/(^\[\[|\]\]$)/g,"").split("|");if(t(1,o=s.app.metadataCache.getFirstLinkpathDest(S,r)),!o)throw new Error;_=s.app.vault.getResourcePath(o)}}catch{console.warn("No image could be loaded")}return _}let d=(()=>{if(a.properties.length&&a.properties.some(b=>b in i&&typeof i[b]=="string")){let b=a.properties.filter(S=>S in i&&typeof i[S]=="string");b.length>1&&console.log("Fantasy Statblocks: Multiple image properties provided, using first.");let _=i[b[0]];return l(_)}})(),u=_u.Platform.isMacOS?"Meta":"Control";function h(b){if(!o)return;s.app.workspace.getLeaf(b.getModifierState(u)?"window":"split").openFile(o)}function f(b){o&&s.app.workspace.trigger("hover-link",{event:b,source:s.manifest.id,hoverParent:s.app.workspace.getMostRecentLeaf(),targetEl:b.currentTarget,linktext:o.path})}let m=b=>h(b),p=b=>f(b);return n.$$set=b=>{"monster"in b&&t(0,i=b.monster),"item"in b&&t(5,a=b.item)},[i,o,d,h,f,a,m,p]}var Yr=class extends U{constructor(e){super(),G(this,e,Ep,Dp,j,{monster:0,item:5},Ap)}},Su=Yr;function Mp(n){re(n,"svelte-1674zvq",`details.svelte-1674zvq>summary.svelte-1674zvq.svelte-1674zvq.svelte-1674zvq{outline:none;display:block !important;list-style:none !important;list-style-type:none !important;min-height:1rem;border-top-left-radius:0.1rem;border-top-right-radius:0.1rem;cursor:pointer;position:relative;margin-bottom:1rem}details.svelte-1674zvq>summary.svelte-1674zvq.svelte-1674zvq.svelte-1674zvq::-webkit-details-marker,details.svelte-1674zvq>summary.svelte-1674zvq.svelte-1674zvq.svelte-1674zvq::marker{display:none !important}details.svelte-1674zvq>summary.svelte-1674zvq>.collapser.svelte-1674zvq.svelte-1674zvq{position:absolute;top:50%;right:8px;transform:translateY(-50%);content:""}details.svelte-1674zvq>summary.svelte-1674zvq>.collapser.svelte-1674zvq>.handle.svelte-1674zvq{transform:rotate(0deg);transition:transform 0.25s;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z'/></svg>");mask-image:url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z'/></svg>");width:20px;height:20px}details[open].svelte-1674zvq>summary.svelte-1674zvq>.collapser.svelte-1674zvq>.handle.svelte-1674zvq{transform:rotate(90deg)}`)}function Ip(n){let e,t,i=(n[0].heading??"")+"",a,s,r,o,l;return{c(){e=v("details"),t=v("summary"),a=pe(i),s=R(),r=v("div"),r.innerHTML='<div class="handle svelte-1674zvq"></div>',g(r,"class","collapser svelte-1674zvq"),g(t,"class","svelte-1674zvq"),g(e,"class","svelte-1674zvq")},m(c,d){D(c,e,d),y(e,t),y(t,a),y(t,s),y(t,r),n[3](e),e.open=n[0].open,o||(l=z(e,"toggle",n[4]),o=!0)},p(c,[d]){d&1&&i!==(i=(c[0].heading??"")+"")&&we(a,i),d&1&&(e.open=c[0].open)},i:N,o:N,d(c){c&&x(e),n[3](null),o=!1,l()}}}function Op(n,e,t){let{block:i}=e,{elements:a}=e,s;pn(()=>{for(let l of a)s.append(l)});function r(l){Re[l?"unshift":"push"](()=>{s=l,t(1,s)})}function o(){i.open=this.open,t(0,i)}return n.$$set=l=>{"block"in l&&t(0,i=l.block),"elements"in l&&t(2,a=l.elements)},[i,s,a,r,o]}var Jr=class extends U{constructor(e){super(),G(this,e,Op,Ip,j,{block:0,elements:2},Mp)}},Cu=Jr;var r2=require("obsidian");function Pp(n){let e,t,i,a;return{c(){e=v("div"),g(e,"class","statblock-javascript")},m(s,r){D(s,e,r),i||(a=J(t=n[1].call(null,e)),i=!0)},p:N,i:N,o:N,d(s){s&&x(e),i=!1,a()}}}function Rp(n,e,t){let i,{block:a}=e,s=Ue("monster");Se(n,s,c=>t(4,i=c));let r=i;s.subscribe(c=>r=c);let o=Ue("plugin"),l=c=>{if(a.code)try{let u=new Function("monster","property",a.code).call(void 0,r,o);u instanceof HTMLElement&&c.appendChild(u)}catch(d){console.error(d)}};return n.$$set=c=>{"block"in c&&t(2,a=c.block)},[s,l,a]}var Xr=class extends U{constructor(e){super(),G(this,e,Rp,Pp,j,{block:2})}},xu=Xr;function Np(n){re(n,"svelte-420xq",`.statblock-content.svelte-420xq{font-family:var(--active-content-font);font-size:var(--active-content-font-size);colorLine truncated
|
||||
var(--active-box-shadow-y-offset) var(--active-box-shadow-blur)
|
||||
var(--active-box-shadow-color);margin-left:2px;margin-right:2px;display:flex;gap:1rem}.statblock-content.svelte-420xq>.column{width:var(--statblock-column-width)}@media screen and (max-width: 400px){.statblock-content.svelte-420xq>.column{width:75vw}}`)}function Lp(n){let e,t;return{c(){e=v("div"),t=v("div"),g(t,"class","statblock-content svelte-420xq"),g(e,"class","statblock-content-container"),ze(e,"--statblock-column-width",n[0])},m(i,a){D(i,e,a),y(e,t),n[7](t)},p(i,[a]){a&1&&ze(e,"--statblock-column-width",i[0])},i:N,o:N,d(i){i&&x(e),n[7](null)}}}function Bp(n,e,t){let i=Me(),{columns:a=1}=e,{targets:s}=e,{columnWidth:r="400px"}=e,{heights:o=[]}=e,{split:l=1/0}=e,{classes:c}=e,d=l,u=m=>{m.empty();let p=[],b=document.body.createDiv({cls:"statblock-detached markdown-preview-view",attr:{style:`width: ${r}`}}),S=b.createDiv({cls:["statblock-detached","obsidian-statblock-plugin","statblock",...c]}).createDiv({cls:"statblock-content-container",attr:{style:`width: ${r}`}}).createDiv("statblock-content"),C=S.createDiv("column");p.push(C);for(let M=0;M<s.length;M++){let w=s[M],k=o.slice(M+1).reduce((A,P)=>A+P,0);p.length<a&&o[M]+C.scrollHeight>d&&k<C.scrollHeight&&(d=Math.max(d,C.scrollHeight),S.empty(),C=S.createDiv("column"),p.push(C)),C.appendChild(w),p.length<a&&C.scrollHeight>d&&(a<=2||p.length>1||k/((a-p.length-1)*C.scrollHeight)<1.5)&&(d=Math.max(d,C.scrollHeight),S.empty(),C=S.createDiv("column"),p.push(C))}for(let M of p)m.appendChild(M),M.querySelectorAll(".statblock-item-container:empty").forEach(w=>w.detach());b.detach()},h;pn(()=>{i("mounted"),h&&(u(h),i("built"))});function f(m){Re[m?"unshift":"push"](()=>{h=m,t(1,h)})}return n.$$set=m=>{"columns"in m&&t(2,a=m.columns),"targets"in m&&t(3,s=m.targets),"columnWidth"in m&&t(0,r=m.columnWidth),"heights"in m&&t(4,o=m.heights),"split"in m&&t(5,l=m.split),"classes"in m&&t(6,c=m.classes)},[r,h,a,s,o,l,c,f]}var Qr=class extends U{constructor(e){super(),G(this,e,Bp,Lp,j,{columns:2,targets:3,columnWidth:0,heights:4,split:5,classes:6},Np)}},Zr=Qr;function Fp(n){re(n,"svelte-1suaf4g","ul.spell-item.svelte-1suaf4g{margin:0}ul.spell-item.first.svelte-1suaf4g{margin-top:revert}ul.spell-item.last.svelte-1suaf4g{margin-bottom:revert}.spells.svelte-1suaf4g{font-style:italic}")}function Wp(n){let e,t,i,a,s,r,o;return i=new gt({props:{property:`${n[0].level}:`}}),r=new gt({props:{property:n[0].spells}}),{c(){e=v("li"),t=v("span"),ie(i.$$.fragment),a=R(),s=v("span"),ie(r.$$.fragment),g(t,"class","spell-level"),g(s,"class","spells svelte-1suaf4g"),g(e,"class","spell-line")},m(l,c){D(l,e,c),y(e,t),te(i,t,null),y(e,a),y(e,s),te(r,s,null),o=!0},p(l,c){let d={};c&1&&(d.property=`${l[0].level}:`),i.$set(d);let u={};c&1&&(u.property=l[0].spells),r.$set(u)},i(l){o||(E(i.$$.fragment,l),E(r.$$.fragment,l),o=!0)},o(l){I(i.$$.fragment,l),I(r.$$.fragment,l),o=!1},d(l){l&&x(e),ne(i),ne(r)}}}function Hp(n){let e,t,i;return t=new gt({props:{property:n[0].spells}}),{c(){e=v("span"),ie(t.$$.fragment),g(e,"class","spell-line")},m(a,s){D(a,e,s),te(t,e,null),i=!0},p(a,s){let r={};s&1&&(r.property=a[0].spells),t.$set(r)},i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){a&&x(e),ne(t)}}}function zp(n){let e,t,i,a,s=[Hp,Wp],r=[];function o(l,c){return l[0].level?1:0}return t=o(n,-1),i=r[t]=s[t](n),{c(){e=v("ul"),i.c(),g(e,"class","spell-item svelte-1suaf4g"),oe(e,"first",n[1]),oe(e,"last",n[2])},m(l,c){D(l,e,c),r[t].m(e,null),a=!0},p(l,[c]){let d=t;t=o(l,c),t===d?r[t].p(l,c):(ce(),I(r[d],1,1,()=>{r[d]=null}),ue(),i=r[t],i?i.p(l,c):(i=r[t]=s[t](l),i.c()),E(i,1),i.m(e,null)),(!a||c&2)&&oe(e,"first",l[1]),(!a||c&4)&&oe(e,"last",l[2])},i(l){a||(E(i),a=!0)},o(l){I(i),a=!1},d(l){l&&x(e),r[t].d()}}}function qp(n,e,t){let{spell:i}=e,{first:a=!1}=e,{last:s=!1}=e;return n.$$set=r=>{"spell"in r&&t(0,i=r.spell),"first"in r&&t(1,a=r.first),"last"in r&&t(2,s=r.last)},[i,a,s]}var eo=class extends U{constructor(e){super(),G(this,e,qp,zp,j,{spell:0,first:1,last:2},Fp)}},Au=eo;var ta=require("obsidian");function jp(n){let e,t,i,a;return{c(){e=v("div"),g(e,"class","action")},m(s,r){D(s,e,r),i||(a=J(t=n[0].call(null,e)),i=!0)},p:N,i:N,o:N,d(s){s&&x(e),i=!1,a()}}}function Vp(n,e,t){let{block:i}=e,{monster:a}=e,s=r=>{new ta.ExtraButtonComponent(r).setIcon(i.icon).onClick(()=>{if(i.callback?.trim()?.length)try{new Function("monster",i.callback).call(void 0,a)}catch(o){new ta.Notice(`There was an error executing the provided callback for the action block.
|
||||
|
||||
${o.message}`),console.error(o)}else if(i.action)try{app.commands.executeCommandById(i.action)}catch(o){new ta.Notice(`There was an error executing the command for the action block.
|
||||
|
||||
${o.message}`),console.error(o)}})};return n.$$set=r=>{"block"in r&&t(1,i=r.block),"monster"in r&&t(2,a=r.monster)},[s,i,a]}var to=class extends U{constructor(e){super(),G(this,e,Vp,jp,j,{block:1,monster:2})}},Tu=to;function Du(n){let e,t;return e=new Zr({props:{heights:n[7],targets:n[2],columns:n[1],columnWidth:n[3],split:n[5],classes:n[0]}}),{c(){ie(e.$$.fragment)},m(i,a){te(e,i,a),t=!0},p(i,a){let s={};a&2&&(s.columns=i[1]),a&8&&(s.columnWidth=i[3]),a&32&&(s.split=i[5]),a&1&&(s.classes=i[0]),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){ne(e,i)}}}function Up(n){let e,t,i=n[4]&&Du(n);return{c(){i&&i.c(),e=_e()},m(a,s){i&&i.m(a,s),D(a,e,s),t=!0},p(a,[s]){a[4]?i?(i.p(a,s),s&16&&E(i,1)):(i=Du(a),i.c(),E(i,1),i.m(e.parentNode,e)):i&&(ce(),I(i,1,1,()=>{i=null}),ue())},i(a){t||(E(i),t=!0)},o(a){I(i),t=!1},d(a){a&&x(e),i&&i.d(a)}}}function Gp(n,e,t){let i,a,s=Me(),{statblock:r}=e,{ready:o}=e,{classes:l}=e,{layout:c}=e,{columns:d}=e,u=d,h=!1,f=[],{plugin:m}=e,p=Ue("monster");Se(n,p,O=>t(16,a=O));let b=a;p.subscribe(O=>t(14,b=O));let _=O=>/[^a-zA-Z0-9]$/.test(O)?O:`${O}:`,S=O=>O.conditioned==null||!O.conditioned?!0:"nested"in O?O.nested.some(q=>S(q)):O.type=="ifelse"||O.type=="javascript"||O.type=="layout"||!("properties"in O)||!O.properties.length?!0:O.properties.some(q=>!!(q in b&&(Array.isArray(b[q])&&b[q].length||typeof b[q]=="string"&&b[q].length||typeof b[q]=="number"))),C=xr(),M=(O,q={})=>q.container?q.container.createDiv(`statblock-item-container ${mt(O.type)}-container ${(q.classes??[]).join(" ")}`):createDiv(`statblock-item-container ${mt(O.type)}-container ${(q.classes??[]).join(" ")}`),w=(O,q={})=>{if(!S(O))return[];let{container:Z,classes:ee}=q,se=[],K=M(O,{container:Z,classes:ee});switch(C.set("item",O),se.push(K),O.type){case"group":{O.heading&&new Ai({target:K,props:{monster:b,item:O},context:C});for(let W of O.nested??[]){let Y=w(W,{container:K,classes:O.cls?[...ee??[],O.cls]:ee??[]});se.push(...Y)}break}case"action":{new Tu({target:K,props:{block:O,monster:b}});break}case"javascript":{new xu({target:K,props:{block:O}});break}case"collapse":{let W=[];for(let Y of O.nested){let F=w(Y);W.push(...F)}new Cu({target:K,props:{block:O,elements:W}});break}case"heading":{let W=new iu({target:K,props:{monster:b,item:O},context:C});W.$on("save",Y=>s("save",Y.detail)),W.$on("export",Y=>s("export",Y.detail));break}case"ifelse":{for(let W=0;W<O.conditions.length;W++){let{condition:Y,nested:F}=O.conditions[W],ae=document.body.createEl("iframe"),$=ae.contentWindow.Function,de=!1;try{de=new $("monster","plugin",Y).call(void 0,b,m)??!1}catch(V){console.error(V);continue}if(document.body.removeChild(ae),de==!0||W==O.conditions.length-1&&!Y?.length){for(let V of F){let H=w(V,{container:K});se.push(...H)}break}}break}case"inline":{O.heading&&new Ai({target:K,props:{monster:b,item:O},context:C});let W=M(O,{container:K,classes:["statblock-item-inline",...O.cls?[...ee??[],O.cls]:ee??[]]});for(let Y of O.nested??[])w(Y,{container:W.createDiv(`statblock-inline-item ${mt(Y.type)}-container`)});se.push(W);break}case"image":{new Su({target:K,props:{monster:b,item:O},context:C});break}case"layout":{let W=m.manager.getLayout(O.layout);W?.blocks?.length&&se.push(...w({type:"group",nested:W.blocks,id:O.layout,properties:[]},{classes:[...ee??[],`${mt(W.name)}-nested`]}));break}case"property":{new ru({target:K,props:{monster:b,item:O},context:C});break}case"saves":{new uu({target:K,props:{monster:b,item:O},context:C});break}case"spells":{let W=b[O.properties[0]];if(!Array.isArray(W)||!W.length)return[];let Y=W.reduce((F,ae)=>{if(typeof ae=="string"&&(ae.charAt(ae.length-1)==":"||!ae.includes(":"))){let V={header:_(ae),spells:[]};return F.push(V),F}let $=F[F.length-1],de;if(typeof ae=="string")de={spells:ut.linkifySpells(ae,C.get("context"))};else try{de={level:Object.keys(ae).shift(),spells:ut.linkifySpells(ye(Object.values(ae).shift()),C.get("context"))}}catch{return F}if($)$.spells.push(de);else{let V={header:`${b.name} knows the following spells:`,spells:[de]};F.push(V)}return F},[]);for(let F=0;F<Y.length;F++){let ae=Y[F];if(ae.header?.length){let $=new ea({target:createDiv(),props:{name:F==0?O.heading??"Spellcasting":"",property:O.properties[0],desc:ae.header,item:O,monster:b,trait:b[O.properties[0]]}});se.push($.$$.root.firstElementChild)}for(let $=0;$<ae.spells.length;$++){let de=ae.spells[$],V=new Au({target:createDiv(),props:{spell:de,first:$===0,last:$===ae.spells.length-1}});se.push(V.$$.root.firstElementChild)}}break}case"subheading":{new hu({target:K,props:{monster:b,item:O},context:C});break}case"table":{new yu({target:K,props:{monster:b,item:O},context:C});break}case"text":{new wu({target:K,props:{monster:b,item:O}});break}case"traits":{let W=b[O.properties[0]];if(!Array.isArray(W)||!W.length)return[];let Y=M(O,{container:K});if(se.push(Y),O.heading&&new Ai({target:Y.createDiv("statblock-section-heading"),props:{monster:b,item:O},context:C}),O.subheadingText&&O.subheadingText.lengt
Line truncated
|
||||
--statblock-image-border-color,
|
||||
--active-primary-color
|
||||
);--active-border-size:var(--statblock-border-size);--active-border-color:var(--statblock-border-color);--active-box-shadow-color:var(--statblock-box-shadow-color);--active-box-shadow-x-offset:var(--statblock-box-shadow-x-offset);--active-box-shadow-y-offset:var(--statblock-box-shadow-y-offset);--active-box-shadow-blur:var(--statblock-box-shadow-blur);--active-font-color:var(
|
||||
--statblock-font-color,
|
||||
--active-primary-color
|
||||
);--active-font-weight:var(--statblock-font-weight);--active-content-font:var(--statblock-content-font);--active-content-font-size:var(--statblock-content-font-size);--active-heading-font:var(--statblock-heading-font);--active-heading-font-color:var(--statblock-heading-font-color);--active-heading-font-size:var(--statblock-heading-font-size);--active-heading-font-variant:var(--statblock-heading-font-variant);--active-heading-font-weight:var(--statblock-heading-font-weight);--active-heading-line-height:var(--statblock-heading-line-height);--active-property-line-height:var(--statblock-property-line-height);--active-property-font:var(--statblock-property-font);--active-property-font-color:var(--statblock-property-font-color);--active-property-font-variant:var(--statblock-property-font-variant);--active-property-font-size:var(--statblock-property-font-size);--active-property-font-weight:var(--statblock-property-font-weight);--active-property-name-font:var(--statblock-property-name-font);--active-property-name-font-color:var(
|
||||
--statblock-property-name-font-color
|
||||
);--active-property-name-font-variant:var(
|
||||
--statblock-property-name-font-variant
|
||||
);--active-property-name-font-size:var(
|
||||
--statblock-property-name-font-size
|
||||
);--active-property-name-font-weight:var(
|
||||
--statblock-property-name-font-weight
|
||||
);--active-section-heading-border-size:var(
|
||||
--statblock-section-heading-border-size
|
||||
);--active-section-heading-border-color:var(
|
||||
--statblock-section-heading-border-color
|
||||
);--active-section-heading-font:var(--statblock-section-heading-font);--active-section-heading-font-color:var(
|
||||
--statblock-section-heading-font-color
|
||||
);--active-section-heading-font-size:var(
|
||||
--statblock-section-heading-font-size
|
||||
);--active-section-heading-font-variant:var(
|
||||
--statblock-section-heading-font-variant
|
||||
);--active-section-heading-font-weight:var(
|
||||
--statblock-section-heading-font-weight
|
||||
);--active-saves-line-height:var(--statblock-saves-line-height);--active-spells-font-style:var(--statblock-spells-font-style);--active-subheading-font:var(--statblock-subheading-font);--active-subheading-font-color:var(--statblock-subheading-font-color);--active-subheading-font-size:var(--statblock-subheading-font-size);--active-subheading-font-style:var(--statblock-subheading-font-style);--active-subheading-font-weight:var(
|
||||
--statblock-subheading-font-weight
|
||||
);--active-table-header-font-weight:var(
|
||||
--statblock-table-header-font-weight
|
||||
);--active-traits-font:var(--statblock-traits-font);--active-traits-font-color:var(--statblock-traits-font-color);--active-traits-font-size:var(--statblock-traits-font-size);--active-traits-font-weight:var(--statblock-traits-font-weight);--active-traits-font-style:var(--statblock-traits-font-style);--active-traits-name-font:var(--statblock-traits-name-font);--active-traits-name-font-color:var(
|
||||
--statblock-traits-name-font-color
|
||||
);--active-traits-name-font-size:var(--statblock-traits-name-font-size);--active-traits-name-font-weight:var(
|
||||
--statblock-traits-name-font-weight
|
||||
);--active-traits-name-font-style:var(
|
||||
--statblock-traits-name-font-style
|
||||
);--active-link-style:var(--statblock-link-style)}.statblock.svelte-1unaafm a{font-style:var(--statblock-link-style)}.container.svelte-1unaafm{display:flex;position:relative;width:100%;margin:0.25rem 0}.statblock.svelte-1unaafm{margin:0 auto;position:relative}.icons.svelte-1unaafm{position:absolute;left:var(--size-2-2)}`)}function Mu(n){let e,t=n[8],i,a,s,r,o=Ou(n),l=n[3]&&Pu(n);return{c(){e=v("div"),o.c(),a=R(),l&&l.c(),s=_e(),g(e,"class",i=xn(n[5].join(" "))+" svelte-1unaafm"),oe(e,"obsidian-statblock-plugin",!0),oe(e,"statblock",!0)},m(c,d){D(c,e,d),o.m(e,null),D(c,a,d),l&&l.m(c,d),D(c,s,d),r=!0},p(c,d){d[0]&256&&j(t,t=c[8])?(ce(),I(o,1,1,N),ue(),o=Ou(c),o.c(),E(o,1),o.m(e,null)):o.p(c,d),(!r||d[0]&32&&i!==(i=xn(c[5].join(" "))+" svelte-1unaafm"))&&g(e,"class",i),(!r||d[0]&32)&&oe(e,"obsidian-statblock-plugin",!0),(!r||d[0]&32)&&oe(e,"statblock",!0),c[3]?l?l.p(c,d):(l=Pu(c),l.c(),l.m(s.parentNode,s)):l&&(l.d(1),l=null)},i(c){r||(E(o),r=!0)},o(c){I(o),r=!1},d(c){c&&(x(e),x(a),x(s)),o.d(c),l&&l.d(c)}}}function $p(n){let e;return{c(){e=v("span"),e.textContent="Invalid monster."},m(t,i){D(t,e,i)},p:N,i:N,o:N,d(t){t&&x(e)}}}function Yp(n){let e,t,i=n[7],a,s,r;e=new Rr({});let o=Iu(n);return s=new Rr({}),{c(){ie(e.$$.fragment),t=R(),o.c(),a=R(),ie(s.$$.fragment)},m(l,c){te(e,l,c),D(l,t,c),o.m(l,c),D(l,a,c),te(s,l,c),r=!0},p(l,c){c[0]&128&&j(i,i=l[7])?(ce(),I(o,1,1,N),ue(),o=Iu(l),o.c(),E(o,1),o.m(a.parentNode,a)):o.p(l,c)},i(l){r||(E(e.$$.fragment,l),E(o),E(s.$$.fragment,l),r=!0)},o(l){I(e.$$.fragment,l),I(o),I(s.$$.fragment,l),r=!1},d(l){l&&(x(t),x(a)),ne(e,l),o.d(l),ne(s,l)}}}function Iu(n){let e,t;return e=new Eu({props:{columns:n[7],maxColumns:n[10],statblock:n[1],ready:n[6],classes:n[5],layout:n[2],plugin:n[0]}}),e.$on("save",n[19]),e.$on("export",n[20]),{c(){ie(e.$$.fragment)},m(i,a){te(e,i,a),t=!0},p(i,a){let s={};a[0]&128&&(s.columns=i[7]),a[0]&2&&(s.statblock=i[1]),a[0]&64&&(s.ready=i[6]),a[0]&32&&(s.classes=i[5]),a[0]&4&&(s.layout=i[2]),a[0]&1&&(s.plugin=i[0]),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){ne(e,i)}}}function Ou(n){let e,t,i,a,s=[Yp,$p],r=[];function o(l,c){return l[8]?0:1}return e=o(n,[-1,-1]),t=r[e]=s[e](n),{c(){t.c(),i=_e()},m(l,c){r[e].m(l,c),D(l,i,c),a=!0},p(l,c){let d=e;e=o(l,c),e===d?r[e].p(l,c):(ce(),I(r[d],1,1,()=>{r[d]=null}),ue(),t=r[e],t?t.p(l,c):(t=r[e]=s[e](l),t.c()),E(t,1),t.m(i.parentNode,i))},i(l){a||(E(t),a=!0)},o(l){I(t),a=!1},d(l){l&&x(i),r[e].d(l)}}}function Pu(n){let e,t,i,a;return{c(){e=v("div"),g(e,"class","icons svelte-1unaafm")},m(s,r){D(s,e,r),i||(a=[J(t=n[11].call(null,e)),z(e,"click",n[12])],i=!0)},p:N,d(s){s&&x(e),i=!1,le(a)}}}function Jp(n){let e,t,i=n[6]&&Mu(n);return{c(){e=v("div"),i&&i.c(),g(e,"class","container svelte-1unaafm")},m(a,s){D(a,e,s),i&&i.m(e,null),n[21](e),t=!0},p(a,s){a[6]?i?(i.p(a,s),s[0]&64&&E(i,1)):(i=Mu(a),i.c(),E(i,1),i.m(e,null)):i&&(ce(),I(i,1,1,()=>{i=null}),ue())},i(a){t||(E(i),t=!0)},o(a){I(i),t=!1},d(a){a&&x(e),i&&i.d(),n[21](null)}}}function Xp(n,e,t){let i,a,s,r,o,l,c=Me(),{monster:d}=e,{context:u}=e,{plugin:h}=e,{statblock:f}=e,{renderer:m}=e,{layout:p}=e,{canSave:b=!0}=e,{icons:_=!0}=e,S=Be(d);Se(n,S,$=>t(8,l=$));let C=!isNaN(Number(d.columns??p.columns))&&Number(d.columns??p.columns)>0?Number(d.columns??p.columns):2,M=Number(`${d.columnWidth}`.replace(/\D/g,"")),w=!isNaN(M??p.columnWidth)&&(M??p.columnWidth)>0?M:400,k=h.canUseDiceRoller&&(d.dice??h.settings.useDice),A=d.render??h.settings.renderDice;Mt("plugin",h),Mt("tryToRenderLinks",h.settings.tryToRenderLinks),Mt("context",u),Mt("monster",S),Mt("dice",k),Mt("render",A),Mt("renderer",m),Mt("layout",p);let P=Be(!1);Mt("reset",P);let L,B=()=>{if(d.forceColumns??p.forceColumns){t(7,i=C),q.disconnect();return}let $=L.clientWidth;t(7,i=Math.min(Math.max(Math.floor($/w),1),C))},O=(0,$t.debounce)(()=>{B(),a||t(6,a=!0)},100,!1),q=new ResizeObserver(O);pn(()=>{O(),q.observe(L)}),bn(()=>{q.disconnect()});let Z=$=>{new $t.ExtraButtonComponent($).setIcon("vertical-three-dots")},ee=new $t.Menu;ee.addItem($=>$.setIcon("save").setTitle("Save to Bestiary").setDisabled(!b).onClick(()=>c("save"))),ee.addItem($=>{$.setTitle("Copy YAML").setIcon("code").onClick(async()=>{try{await navigator.clipboard.writeText((0,$t.stringifyYaml)(d)),new $t.Notice("Creature YAML copied to clipboard")}catch(de){new $t.Notice(`There was an issue copying the yaml:
|
||||
|
||||
${de.message}`)}})}),ee.addItem($=>$.setIcon("image-down").setTitle("Export as PNG").onClick(()=>c("export"))),k&&ee.addItem($=>$.setIcon("reset").setTitle("Reset Dice").onClick(()=>{P.set(!0),P.set(!1)}));let se=$=>{ee.showAtMouseEvent($)},K=($,de="")=>$?.toLowerCase().replace(/\s+/g,"-")??de,W=$=>{let de=[];for(let V of $){if(V.type=="layout"){let H=h.manager.getAllLayouts().find(fe=>fe.id==V.layout);H&&de.push(K(H.name))}"nested"in V&&de.push(...W(V.nested))}return de};function Y($){Ge.call(this,n,$)}function F($){Ge.call(this,n,$)}function ae($){Re[$?"unshift":"push"](()=>{L=$,t(4,L)})}return n.$$set=$=>{"monster"in $&&t(13,d=$.monster),"context"in $&&t(14,u=$.context),"plugin"in $&&t(0,h=$.plugin),"statblock"in $&&t(1,f=$.statblock),"renderer"in $&&t(15,m=$.renderer),"layout"in $&&t(2,p=$.layout),"canSave"in $&&t(16,b=$.canSave),"icons"in $&&t(3,_=$.icons)},n.$$.update=()=>{n.$$.dirty[0]&8192&&Ae(S,l=d,l),n.$$.dirty[0]&8192&&t(18,s=K(d.name??"","no-name")),n.$$.dirty[0]&4&&t(17,r=K(p.name,"no-layout")),n.$$.dirty[0]&393218&&t(5,o=[s,r,...W(f)].filter($=>$?.length))},t(7,i=C),t(6,a=!1),[h,f,p,_,L,o,a,i,l,S,C,Z,se,d,u,m,b,r,s,Y,F,ae]}var io=class extends U{constructor(e){super(),G(this,e,Xp,Jp,j,{monster:13,context:14,plugin:0,statblock:1,renderer:15,layout:2,canSave:16,icons:3},Kp,[-1,-1])}},Ru=io;var wt=require("obsidian");function na(n){let e=new Blob([n],{type:"text/javascript"}),t=URL.createObjectURL(e),i=new Worker(t,{name:"Fantasy Statblocks Creature Parser"});return URL.revokeObjectURL(t),i}function ao(){return na('var Bl=Object.defineProperty,uc=Object.defineProperties;var dc=Object.getOwnPropertyDescriptors;var Ll=Object.getOwnPropertySymbols;var pc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable;var ur=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),gc=s=>{throw TypeError(s)};var Pl=(s,e,t)=>e in s?Bl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Il=(s,e)=>{for(var t in e||(e={}))pc.call(e,t)&&Pl(s,t,e[t]);if(Ll)for(var t of Ll(e))mc.call(e,t)&&Pl(s,t,e[t]);return s},Rl=(s,e)=>uc(s,dc(e));var Fl=(s,e)=>{for(var t in e)Bl(s,t,{get:e[t],enumerable:!0})};var yc=function(s,e){this[0]=s,this[1]=e};var k=s=>{var e=s[ur("asyncIterator")],t=!1,i,n={};return e==null?(e=s[ur("iterator")](),i=r=>n[r]=o=>e[r](o)):(e=e.call(s),i=r=>n[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new yc(new Promise(l=>{var a=e[r](o);a instanceof Object||gc("Object expected"),l(a)}),1)}}),n[ur("iterator")]=()=>n,i("next"),"throw"in e?i("throw"):n.throw=r=>{throw r},"return"in e&&i("return"),n};var bc=Function.prototype.toString,dr=Object.create,wc=Object.prototype.toString,kc=function(){function s(){this._keys=[],this._values=[]}return s.prototype.has=function(e){return!!~this._keys.indexOf(e)},s.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},s.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},s}();function Sc(){return new kc}function vc(){return new WeakMap}var xc=typeof WeakMap!="undefined"?vc:Sc;function mr(s){if(!s)return dr(null);var e=s.constructor;if(e===Object)return s===Object.prototype?{}:dr(s);if(e&&~bc.call(e).indexOf("[native code]"))try{return new e}catch(t){}return dr(s)}function Cc(s){var e="";return s.global&&(e+="g"),s.ignoreCase&&(e+="i"),s.multiline&&(e+="m"),s.unicode&&(e+="u"),s.sticky&&(e+="y"),e}function Ac(s){return s.flags}var Mc=/test/g.flags==="g"?Ac:Cc;function $l(s){var e=wc.call(s);return e.substring(8,e.length-1)}function Oc(s){return s[Symbol.toStringTag]||$l(s)}var Tc=typeof Symbol!="undefined"?Oc:$l,Ec=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Vl=Object.getOwnPropertyNames,gr=Object.getOwnPropertySymbols,Hl=Object.prototype,_l=Hl.hasOwnProperty,Dc=Hl.propertyIsEnumerable,Kl=typeof gr=="function";function Lc(s){return Vl(s).concat(gr(s))}var Pc=Kl?Lc:Vl;function Ps(s,e,t){for(var i=Pc(s),n=0,r=i.length,o=void 0,l=void 0;n<r;++n)if(o=i[n],!(o==="callee"||o==="caller")){if(l=Nc(s,o),!l){e[o]=t.copier(s[o],t);continue}!l.get&&!l.set&&(l.value=t.copier(l.value,t));try{Ec(e,o,l)}catch(a){e[o]=l.value}}return e}function Bc(s,e){var t=new e.Constructor;e.cache.set(s,t);for(var i=0,n=s.length;i<n;++i)t[i]=e.copier(s[i],e);return t}function Ic(s,e){var t=new e.Constructor;return e.cache.set(s,t),Ps(s,t,e)}function Wl(s,e){return s.slice(0)}function Rc(s,e){return s.slice(0,s.size,s.type)}function Fc(s,e){return new e.Constructor(Wl(s.buffer))}function $c(s,e){return new e.Constructor(s.getTime())}function ql(s,e){var t=new e.Constructor;return e.cache.set(s,t),s.forEach(function(i,n){t.set(n,e.copier(i,e))}),t}function Vc(s,e){return Ps(s,ql(s,e),e)}function Hc(s,e){var t=mr(e.prototype);e.cache.set(s,t);for(var i in s)_l.call(s,i)&&(t[i]=e.copier(s[i],e));return t}function _c(s,e){var t=mr(e.prototype);e.cache.set(s,t);for(var i in s)_l.call(s,i)&&(t[i]=e.copier(s[i],e));for(var n=gr(s),r=0,o=n.length,l=void 0;r<o;++r)l=n[r],Dc.call(s,l)&&(t[l]=e.copier(s[l],e));return t
Line truncated
|
||||
Whenever the charmed target takes damage, the target can repeat the saving throw. On a success, the effect ends. No more than once every 24 hours, the target can also repeat the saving throw when it is at least 1 mile away from the aboleth.`,attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The aboleth makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Swipe",desc:"The aboleth makes one tail attack.",attack_bonus:0},{name:"Psychic Drain (Costs 2 Actions)",desc:"One creature charmed by the aboleth takes 10 (3d6) psychic damage, and the aboleth regains hit points equal to the damage the creature takes.",attack_bonus:0}]},{name:"Acolyte",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:10,hp:9,hit_dice:"2d8",speed:"30 ft.",stats:[10,10,10,10,14,11],skillsaves:[{medicine:4},{religion:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any one language (usually Common)",cr:"1/4",bestiary:!0,traits:[],actions:[{name:"Club",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage.",attack_bonus:2,damage_dice:"1d4"}],spells:["The acolyte is a 1st-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 12, +4 to hit with spell attacks). The acolyte has following cleric spells prepared:",{"Cantrips (at will)":"light, sacred flame, thaumaturgy"},{"1st level (3 slots)":"bless, cure wounds, sanctuary"}]},{name:"Adult Black Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic evil",ac:19,hp:195,hit_dice:"17d12 + 84",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[23,14,21,14,13,17],saves:[{dexterity:7},{constitution:10},{wisdom:6},{charisma:8}],skillsaves:[null,{perception:11},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"14",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 4 (1d8) acid damage.",attack_bonus:11,damage_dice:"2d10 + 1d8",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 18 Dexterity saving throw, taking 54 (12d8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Blue Dracolich",source:"5e SRD",size:"Huge",type:"undead",subtype:"",alignment:"lawful evil",ac:19,hp:225,hit_dice:"18d12 + 108",speed:"40 ft., burrow 30 ft., fly 80 ft.",stats:[25,10,23,16,15,19],skillsaves:[{perception:12}],damage_vulnerabilities:"",damage_resistances:"necrotic",damage_immunities:"lightning, poison",condition_immunities:"charmed, exhaustion, frightened, paralyzed, poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"17",bestiary:!0,traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dracolich fails a saving throw, it can choose to succeed instead.",attack_bonus:0},{name:"Magic Resistance",desc:"The dracolich has advantage on saving throws against spells and other magical ef
Line truncated
|
||||
Fire Breath. The dragon exhales fire in an 60-foot line that is 5 feet wide. Each creature in that line must make a DC 18 Dexterity saving throw, taking 45 (13d6) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Sleep Breath. The dragon exhales sleep gas in a 60-foot cone. Each creature in that area must succeed on a DC 18 Constitution saving throw or fall unconscious for 10 minutes. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.`,attack_bonus:0,damage_dice:"13d6"}]},{name:"Adult Bronze Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"lawful good",ac:19,hp:212,hit_dice:"17d12 + 101",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[25,10,23,16,15,19],saves:[{dexterity:5},{constitution:11},{wisdom:7},{charisma:9}],skillsaves:[{insight:7},{perception:12},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"15",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +12 to hit, reach 10 ft., one target. Hit: 18 (2d10 + 7) piercing damage.",attack_bonus:12,damage_dice:"2d10",damage_bonus:7},{name:"Claw",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 14 (2d6 + 7) slashing damage.",attack_bonus:12,damage_dice:"2d6",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +12 to hit, reach 15 ft., one target. Hit: 16 (2d8 + 7) bludgeoning damage.",attack_bonus:12,damage_dice:"2d8",damage_bonus:7},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 17 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Lightning Breath. The dragon exhales lightning in a 90-foot line that is 5 feet wide. Each creature in that line must make a DC 19 Dexterity saving throw, taking 66 (12d10) lightning damage on a failed save, or half as much damage on a successful one.
|
||||
Repulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 19 Strength saving throw. On a failed save, the creature is pushed 60 feet away from the dragon.`,attack_bonus:0,damage_dice:"12d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 20 Dexterity saving throw or take 14 (2d6 + 7) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Copper Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic good",ac:18,hp:184,hit_dice:"16d12 + 80",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[23,12,21,18,15,17],saves:[{dexterity:6},{constitution:10},{wisdom:7},{charisma:8}],skillsaves:[{deception:8},{perception:12},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"14",bestiary:!0,traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:11,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Acid Breath. The dragon exhales acid in an 60-foot line that is 5 feet wide. Each creature in that line must make a DC 18 Dexterity saving throw, taking 54 (12d8) acid damage on a failed save, or half as much damage on a successful one.
|
||||
Slowing Breath. The dragon exhales gas in a 60-foot cone. Each creature in that area must succeed on a DC 18 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.`,attack_bonus:0,damage_dice:"12d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Gold Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"lawful good",ac:19,hp:256,hit_dice:"19d12 + 132",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[27,14,25,16,15,24],saves:[{dexterity:8},{constitution:13},{wisdom:8},{charisma:13}],skillsaves:[{insight:8},{persuasion:13},{perception:14},{stealth:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 24",languages:"Common, Draconic",cr:"17",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:14,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 21 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Fire Breath. The dragon exhales fire in a 60-foot cone. Each creature in that area must make a DC 21 Dexterity saving throw, taking 66 (12d10) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Weakening Breath. The dragon exhales gas in a 60-foot cone. Each creature in that area must succeed on a DC 21 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"12d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Green Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"lawful evil",ac:19,hp:207,hit_dice:"18d12 + 90",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[23,12,21,18,15,17],saves:[{dexterity:6},{constitution:10},{wisdom:7},{charisma:8}],skillsaves:[{deception:8},{insight:7},{persuasion:8},{perception:12},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"15",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 7 (2d6) poison damage.",attack_bonus:11,damage_dice:"2d10 + 2d6",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours .",attack_bonus:0},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 60-foot cone. Each creature in that area must make a DC 18 Constitution saving throw, taking 56 (16d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Red Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic evil",ac:19,hp:256,hit_dice:"19d12 + 132",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[27,10,25,16,13,21],saves:[{dexterity:6},{constitution:13},{wisdom:7},{charisma:11}],skillsaves:[{perception:13},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 23",languages:"Common, Draconic",cr:"17",bestiary:!0,traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 7 (2d6) fire damage.",attack_bonus:14,damage_dice:"2d10 + 2d6",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presen
Line truncated
|
||||
\u2022 Magma erupts from a point on the ground the dragon can see within 120 feet of it, creating a 20-foot-high, 5-foot-radius geyser. Each creature in the geyser's area must make a DC 15 Dexterity saving throw, taking 21 (6d6) fire damage on a failed save, or half as much damage on a successful one.
|
||||
\u2022 A tremor shakes the lair in a 60-foot-radius around the dragon. Each creature other than the dragon on the ground in that area must succeed on a DC 15 Dexterity saving throw or be knocked prone.
|
||||
\u2022 Volcanic gases form a cloud in a 20-foot-radius sphere centered on a point the dragon can see within 120 feet of it. The sphere spreads around corners, and its area is lightly obscured. It lasts until initiative count 20 on the next round. Each creature that starts its turn in the cloud must succeed on a DC 13 Constitution saving throw or be poisoned until the end of its turn. While poisoned in this way, a creature is incapacitated.`,attack_bonus:0,damage_dice:"6d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Silver Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"lawful good",ac:19,hp:243,hit_dice:"18d12 + 126",speed:"40 ft., fly 80 ft.",stats:[27,10,25,16,13,21],saves:[{dexterity:5},{constitution:12},{wisdom:6},{charisma:10}],skillsaves:[{arcana:8},{history:8},{perception:11},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"16",bestiary:!0,traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:13,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +13 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:13,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +13 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:13,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 18 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Cold Breath. The dragon exhales an icy blast in a 60-foot cone. Each creature in that area must make a DC 20 Constitution saving throw, taking 58 (13d8) cold damage on a failed save, or half as much damage on a successful one.
|
||||
Paralyzing Breath. The dragon exhales paralyzing gas in a 60-foot cone. Each creature in that area must succeed on a DC 20 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"13d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult White Dragon",source:"5e SRD",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic evil",ac:18,hp:200,hit_dice:"16d12 + 96",speed:"40 ft., burrow 30 ft., fly 80 ft., swim 40 ft.",stats:[22,10,22,8,12,12],saves:[{dexterity:5},{constitution:11},{wisdom:6},{charisma:6}],skillsaves:[{perception:11},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"13",bestiary:!0,traits:[{name:"Ice Walk",desc:"The dragon can move across and climb icy surfaces without needing to make an ability check. Additionally, difficult terrain composed of ice or snow doesn't cost it extra moment.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 4 (1d8) cold damage.",attack_bonus:11,damage_dice:"2d10 + 1d8",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 ft. of the dragon and aware of it must succeed on a DC 14 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast in a 60-foot cone. Each creature in that area must make a DC 19 Constitution saving throw, taking 54 (12d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Air Elemental",source:"5e SRD",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:15,hp:90,hit_dice:"12d10 + 24",speed:"fly 90 ft. (hover)",stats:[14,20,14,6,10,6],damage_vulnerabilities:"",damage_resistances:"lightning; thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"Auran",cr:"5",bestiary:!0,traits:[{name:"Air Form",desc:"The elemental can enter a hostile creature's space and stop there. It can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The elemental makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"2d8",damage_bonus:5},{name:"Whirlwind (Recharge 4-6)",desc:`Each creature in the elemental's space must make a DC 13 Strength saving throw. On a failure, a target takes 15 (3d8 + 2) bludgeoning damage and is flung up 20 feet away from the elemental in a random direction and knocked prone. If a thrown target strikes an object, such as a wall or floor, the target takes 3 (1d6) bludgeoning damage for eLine truncated
|
||||
If the saving throw is successful, the target takes half the bludgeoning damage and isn't flung away or knocked prone.`,attack_bonus:0}]},{name:"Ancient Black Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic evil",ac:22,hp:367,hit_dice:"21d20 + 146",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[27,14,25,16,15,19],saves:[{dexterity:9},{constitution:14},{wisdom:9},{charisma:11}],skillsaves:[{perception:16},{stealth:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 26",languages:"Common, Draconic",cr:"21",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack:+ 15 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 9 (2d8) acid damage.",attack_bonus:15,damage_dice:"2d10 + 2d8",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +15 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:15,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +15 to hit, reach 20 ft ., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:15,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 90-foot line that is 10 feet wide. Each creature in that line must make a DC 22 Dexterity saving throw, taking 67 (15d8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 23 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Blue Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful evil",ac:22,hp:481,hit_dice:"26d20 + 208",speed:"40 ft., burrow 40 ft., fly 80 ft.",stats:[29,10,27,18,17,21],saves:[{dexterity:7},{constitution:15},{wisdom:10},{charisma:12}],skillsaves:[{perception:17},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"23",bestiary:!0,actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +16 to hit, reach 15 ft., one target. Hit: 20 (2d10 + 9) piercing damage plus 11 (2d10) lightning damage.",attack_bonus:16,damage_dice:"2d10 + 2d10",damage_bonus:9},{name:"Claw",desc:"Melee Weapon Attack: +16 to hit, reach 10 ft., one target. Hit: 16 (2d6 + 9) slashing damage.",attack_bonus:16,damage_dice:"2d6",damage_bonus:9},{name:"Tail",desc:"Melee Weapon Attack: +16 to hit, reach 20 ft., one target. Hit: 18 (2d8 + 9) bludgeoning damage.",attack_bonus:16,damage_dice:"2d8",damage_bonus:9},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 20 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Lightning Breath (Recharge 5-6)",desc:"The dragon exhales lightning in a 120-foot line that is 10 feet wide. Each creature in that line must make a DC 23 Dexterity saving throw, taking 88 (16d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail AttaLine truncated
|
||||
Fire Breath. The dragon exhales fire in an 90-foot line that is 10 feet wide. Each creature in that line must make a DC 21 Dexterity saving throw, taking 56 (16d6) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Sleep Breath. The dragon exhales sleep gas in a 90-foot cone. Each creature in that area must succeed on a DC 21 Constitution saving throw or fall unconscious for 10 minutes. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.`,attack_bonus:0,damage_dice:"16d6"},{name:"Change Shape",desc:`The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).
|
||||
In a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.`,attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Bronze Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful good",ac:22,hp:444,hit_dice:"24d20 + 192",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[29,10,27,18,17,21],saves:[{dexterity:7},{constitution:15},{wisdom:10},{charisma:12}],skillsaves:[{insight:10},{perception:17},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"22",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +16 to hit, reach 15 ft., one target. Hit: 20 (2d10 + 9) piercing damage.",attack_bonus:16,damage_dice:"2d10",damage_bonus:9},{name:"Claw",desc:"Melee Weapon Attack: +16 to hit, reach 10 ft., one target. Hit: 16 (2d6 + 9) slashing damage.",attack_bonus:16,damage_dice:"1d6",damage_bonus:9},{name:"Tail",desc:"Melee Weapon Attack: +16 to hit, reach 20 ft., one target. Hit: 18 (2d8 + 9) bludgeoning damage.",attack_bonus:0,damage_dice:"2d8",damage_bonus:9},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 20 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Lightning Breath. The dragon exhales lightning in a 120-foot line that is 10 feet wide. Each creature in that line must make a DC 23 Dexterity saving throw, taking 88 (16d10) lightning damage on a failed save, or half as much damage on a successful one.
|
||||
Repulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 23 Strength saving throw. On a failed save, the creature is pushed 60 feet away from the dragon.`,attack_bonus:0,damage_dice:"16d10"},{name:"Change Shape",desc:`The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).
|
||||
In a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.`,attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 24 Dexterity saving throw or take 16 (2d6 + 9) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Copper Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic good",ac:21,hp:350,hit_dice:"20d20 + 140",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[27,12,25,20,17,19],saves:[{dexterity:8},{constitution:14},{wisdom:10},{charisma:11}],skillsaves:[{stealth:8},{perception:17},{deception:11}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"21",bestiary:!0,traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +15 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:15,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +15 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:15,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +15 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:15,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Acid Breath. The dragon exhales acid in an 90-foot line that is 10 feet wide. Each creature in that line must make a DC 22 Dexterity saving throw, taking 63 (14d8) acid damage on a failed save, or half as much damage on a successful one.
|
||||
Slowing Breath. The dragon exhales gas in a 90-foot cone. Each creature in that area must succeed on a DC 22 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.`,attack_bonus:0,damage_dice:"14d8"},{name:"Change Shape",desc:`The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).
|
||||
In a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.`,attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 23 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Gold Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful good",ac:22,hp:546,hit_dice:"28d20 + 252",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[30,14,29,18,17,28],saves:[{dexterity:9},{constitution:16},{wisdom:10},{charisma:16}],skillsaves:[{persuasion:16},{stealth:9},{perception:17},{insight:10}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"24",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +17 to hit, reach 15 ft., one target. Hit: 21 (2d10 + 10) piercing damage.",attack_bonus:17,damage_dice:"2d10",damage_bonus:10},{name:"Claw",desc:"Melee Weapon Attack: +17 to hit, reach 10 ft., one target. Hit: 17 (2d6 + 10) slashing damage.",attack_bonus:17,damage_dice:"2d6",damage_bonus:10},{name:"Tail",desc:"Melee Weapon Attack: +17 to hit, reach 20 ft., one target. Hit: 19 (2d8 + 10) bludgeoning damage.",attack_bonus:17,damage_dice:"2d8",damage_bonus:10},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 24 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Fire Breath. The dragon exhales fire in a 90-foot cone. Each creature in that area must make a DC 24 Dexterity saving throw, taking 71 (13d10) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Weakening Breath. The dragon exhales gas in a 90-foot cone. Each creature in that area must succeed on a DC 24 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"13d10"},{name:"Change Shape",desc:`The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).
|
||||
In a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.`,attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 25 Dexterity saving throw or take 17 (2d6 + 10) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Green Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful evil",ac:21,hp:385,hit_dice:"22d20 + 154",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[27,12,25,20,17,19],saves:[{dexterity:8},{constitution:14},{wisdom:10},{charisma:11}],skillsaves:[{deception:11},{insight:10},{perception:17},{persuasion:11},{stealth:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"22",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +15 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 10 (3d6) poison damage.",attack_bonus:15,damage_dice:"2d10 + 3d6",damage_bonus:9},{name:"Claw",desc:"Melee Weapon Attack: +15 to hit, reach 10 ft., one target. Hit: 22 (4d6 + 8) slashing damage.",attack_bonus:15,damage_dice:"4d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +15 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:16,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 90-foot cone. Each creature in that area must make a DC 22 Constitution saving throw, taking 77 (22d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"22d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 23 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Red Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic evil",ac:22,hp:546,hit_dice:"28d20 + 252",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[30,10,29,18,15,23],saves:[{dexterity:7},{constitution:16},{wisdom:9},{charisma:13}],skillsaves:[{perception:16},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 26",languages:"Common, Draconic",cr:"24",bestiary:!0,traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +17 to hit, reach 15 ft., one target. Hit: 21 (2d10 + 10) piercing damage plus 14 (4d6) fire damage.",attack_bonus:17,damage_dice:"2d10 + 4d6",damage_bonus:10},{name:"Claw",desc:"Melee Weapon Attack: +17 to hit, reach 10 ft., one target. Hit: 17 (2d6 + 10) slashing damage.",attack_bonus:17,damage_dice:"2d6",damage_bonus:10},{name:"Tail",desc:"Melee Weapon Attack: +17 to hit, reach 20 ft., one target. Hit: 19 (2d8 + 10) bludgeoning damage.",attack_bonus:17,damage_dice:"2d8",damage_bonus:10},{name:"Frightful
Line truncated
|
||||
Cold Breath. The dragon exhales an icy blast in a 90-foot cone. Each creature in that area must make a DC 24 Constitution saving throw, taking 67 (15d8) cold damage on a failed save, or half as much damage on a successful one.
|
||||
Paralyzing Breath. The dragon exhales paralyzing gas in a 90- foot cone. Each creature in that area must succeed on a DC 24 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"15d8"},{name:"Change Shape",desc:`The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).
|
||||
In a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.`,attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 25 Dexterity saving throw or take 17 (2d6 + 10) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient White Dragon",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic evil",ac:20,hp:333,hit_dice:"18d20 + 144",speed:"40 ft., burrow 40 ft., fly 80 ft., swim 40 ft.",stats:[26,10,26,10,13,14],saves:[{dexterity:6},{constitution:14},{wisdom:7},{charisma:8}],skillsaves:[{perception:13},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 23",languages:"Common, Draconic",cr:"20",bestiary:!0,traits:[{name:"Ice Walk",desc:"The dragon can move across and climb icy surfaces without needing to make an ability check. Additionally, difficult terrain composed of ice or snow doesn't cost it extra moment.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 9 (2d8) cold damage.",attack_bonus:14,damage_dice:"2d10 + 2d8",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours .",attack_bonus:0},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast in a 90-foot cone. Each creature in that area must make a DC 22 Constitution saving throw, taking 72 (l6d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d8"}]},{name:"Androsphinx",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"lawful neutral",ac:17,hp:199,hit_dice:"19d10 + 94",speed:"40 ft., fly 60 ft.",stats:[22,10,20,16,18,23],saves:[{dexterity:6},{constitution:11},{intelligence:9},{wisdom:10}],skillsaves:[{religion:15},{perception:10},{arcana:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"psychic; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"charmed, frightened",senses:"truesight 120 ft., passive Perception 20",languages:"Common, Sphinx",cr:"17",bestiary:!0,traits:[{name:"Inscrutable",desc:"The sphinx is immune to any effect that would sense its emotions or read its thoughts, as well as any divination spell that it refuses. Wisdom (Insight) checks made to ascertain the sphinx's intentions or sincerity have disadvantage.",attack_bonus:0},{name:"Magic Weapons",desc:"The sphinx's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The sphinx makes two claw attacks.",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 17 (2d10 + 6) slashing damage.",attack_bonus:12,damage_dice:"2d10",damage_bonus:6},{name:"Roar (3/Day)",desc:`The sphinx emits a magical roar. Each time it roars before finishing a long rest, the roar is louder and the effect is different, as detailed below. Each creature within 500 feet of the sphinx and able to hear the roar must make a saving throw.
|
||||
|
||||
First Roar. Each creature that fails a DC 18 Wisdom saving throw is frightened for 1 minute. A frightened creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.
|
||||
|
||||
Second Roar. Each creature that fails a DC 18 Wisdom saving throw is deafened and frightened for 1 minute. A frightened creature is paralyzed and can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.
|
||||
|
||||
Third Roar. Each creature makes a DC 18 Constitution saving throw. On a failed save, a creature takes 44 (8d10) thunder damage and is knocked prone. On a successful save, the creature takes half as much damage and isn't knocked prone.`,attack_bonus:0}],legendary_actions:[{name:"Claw Attack",desc:"The sphinx makes one claw attack.",attack_bonus:0},{name:"Teleport (Costs 2 Actions)",desc:"The sphinx magically teleports, along with any equipment it is wearing or carrying, up to 120 feet to an unoccupied space it can see.",attack_bonus:0},{name:"Cast a Spell (Costs 3 Actions)",desc:"The sphinx casts a spell from its list of prepared spells, using a spell slot as normal.",attack_bonus:0}],spells:["The sphinx is a 12th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 18, +10 to hit with spell attacks). It requires no material components to cast its spells. The sphinx has the following cleric spells prepared:",{"Cantrips (at will)":"sacred flame, spare the dying, thaumaturgy"},{"1st level (4 slots)":"command, detect evil and good, detect magic"},{"2nd level (3 slots)":"lesser restoration, zone of truth"},{"3rd level (3 slots)":"dispel magic, tongues"},{"4th level (3 slots)":"banishment, freedom of movement"},{"5th level (2 slots)":"flame strike, greater restoration"},{"6th level (1 slot)":"heroes' feast"}]},{name:"Animated Armor",source:"5e SRD",size:"Medium",type:"construct",subtype:"",alignment:"unaligned",ac:18,hp:33,hit_dice:"6d8 + 6",speed:"25 ft.",stats:[14,11,13,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"1",bestiary:!0,traits:[{name:"Antimagic Susceptibility",desc:"The armor is incapacitated while in the area of an antimagic field. If targeted by dispel magic, the armor must succeed on a Constitution saving throw against the caster's spell save DC or fall unconscious for 1 minute.",attack_bonus:0},{name:"False Appearance",desc:"While the armor remains motionless, it is indistinguishable from a normal suit of armor.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The armor makes two melee attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Ankheg",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:14,hp:39,hit_dice:"6d10 + 6",speed:"30 ft., burrow 10 ft.",stats:[17,11,13,1,13,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 11",languages:"",cr:"2",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage plus 3 (1d6) acid damage. If the target is a Large or smaller creature, it is grappled (escape DC 13). Until this grapple ends, the ankheg can bite only the grappled creature and has advantage on attack rolls to do so.",attack_bonus:5,damage_dice:"2d6 + 1d6",damage_bonus:3},{name:"Acid Spray (Recharge 6)",desc:"The ankheg spits acid in a line that is 30 ft. long and 5 ft. wide, provided that it has no creature grappled. Each creature in that line must make a DC 13 Dexterity saving throw, taking 10 (3d6) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"3d6"}]},{name:"Ape",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:19,hit_dice:"3d8 + 5",speed:"30 ft., climb 30 ft.",stats:[16,14,14,6,12,7],skillsaves:[{athletics:5},{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/2",bestiary:!0,actions:[{name:"Multiattack",desc:"The ape makes two fist attacks.",attack_bonus:0},{name:"Fist",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Rock",desc:"Ranged Weapon Attack: +5 to hit, range 25/50 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3}]},{name:"Archmage",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:12,hp:99,hit_dice:"18d8 + 18",speed:"30 ft.",stats:[10,14,12,20,15,16],saves:[{intelligence:9},{wisdom:6}],skillsaves:[{arcana:13},{history:13}],damage_vulnerabilities:"",damage_resistances:"damage from spells; non magical bludgeoning, piercing, and slashing (from stoneskin)",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any six languages",cr:"12",bestiary:!0,traits:[{name:"Magic Resistance",desc:"The archmage has advantage on saving throws against speLine truncated
|
||||
A balor has a 50 percent chance of summoning 1d8 vrocks, 1d6 hezrous, 1d4 glabrezus, 1d3 nalfeshnees, 1d2 mariliths, or one goristro.
|
||||
A summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.`,attack_bonus:0}]},{name:"Bandit",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-lawful alignment",ac:12,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[11,12,12,10,10,10],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"1/8",bestiary:!0,actions:[{name:"Scimitar",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1},{name:"Light Crossbow",desc:"Ranged Weapon Attack: +3 to hit, range 80 ft./320 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Bandit Captain",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-lawful alignment",ac:15,hp:65,hit_dice:"10d8 + 20",speed:"30 ft.",stats:[15,16,14,14,11,14],saves:[{strength:4},{dexterity:5},{wisdom:2}],skillsaves:[{athletics:4},{deception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any two languages",cr:"2",bestiary:!0,actions:[{name:"Multiattack",desc:"The captain makes three melee attacks: two with its scimitar and one with its dagger. Or the captain makes two ranged attacks with its daggers.",attack_bonus:0},{name:"Scimitar",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Dagger",desc:"Melee or Ranged Weapon Attack: +5 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 5 (1d4 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3}],reactions:[{name:"Parry",desc:"The captain adds 2 to its AC against one melee attack that would hit it. To do so, the captain must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Barbed Devil",source:"5e SRD",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:15,hp:110,hit_dice:"13d8 + 51",speed:"30 ft.",stats:[16,17,18,12,14,14],saves:[{strength:6},{constitution:7},{wisdom:5},{charisma:5}],skillsaves:[{deception:5},{insight:5},{perception:8}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 18",languages:"Infernal, telepathy 120 ft.",cr:"5",bestiary:!0,traits:[{name:"Barbed Hide",desc:"At the start of each of its turns, the barbed devil deals 5 (1d10) piercing damage to any creature grappling it.",attack_bonus:0,damage_dice:"1d10"},{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three melee attacks: one with its tail and two with its claws. Alternatively, it can use Hurl Flame twice.",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft ., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"1d6",damage_bonus:3},{name:"Tail",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Hurl Flame",desc:"Ranged Spell Attack: +5 to hit, range 150 ft., one target. Hit: 10 (3d6) fire damage. If the target is a flammable object that isn't being worn or carried, it also catches fire.",attack_bonus:5,damage_dice:"3d6"}]},{name:"Basilisk",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"",alignment:"unaligned",ac:12,hp:52,hit_dice:"8d8 + 16",speed:"20 ft.",stats:[16,8,15,2,8,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 9",languages:"",cr:"3",bestiary:!0,traits:[{name:"Petrifying Gaze",desc:`If a creature starts its turn within 30 ft. of the basilisk and the two of them can see each other, the basilisk can force the creature to make a DC 12 Constitution saving throw if the basilisk isn't incapacitated. On a failed save, the creature magically begins to turn to stone and is restrained. It must repeat the saving throw at the end of its next turn. On a success, the effect ends. On a failure, the creature is petrified until freed by the greater restoration spell or other magic.
|
||||
A creature that isn't surprised can avert its eyes to avoid the saving throw at the start of its turn. If it does so, it can't see the basilisk until the start of its next turn, when it can avert its eyes again. If it looks at the basilisk in the meantime, it must immediately make the save.
|
||||
If the basilisk sees its reflection within 30 ft. of it in bright light, it mistakes itself for a rival and targets itself with its gaze.`,attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage plus 7 (2d6) poison damage.",attack_bonus:5,damage_dice:"2d6 + 2d6",damage_bonus:3}]},{name:"Bat",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:1,hit_dice:"1d4 + -2",speed:"5 ft., fly 30 ft.",stats:[2,15,8,2,12,4],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 11",languages:"",cr:"0",bestiary:!0,traits:[{name:"Echolocation",desc:"The bat can't use its blindsight while deafened.",attack_bonus:0},{name:"Keen Hearing",desc:"The bat has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one creature. Hit: 1 piercing damage.",attack_bonus:0,damage_bonus:1}]},{name:"Bearded Devil",source:"5e SRD",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:13,hp:52,hit_dice:"8d8 + 16",speed:"30 ft.",stats:[16,15,15,9,11,11],saves:[{strength:5},{constitution:4},{wisdom:2}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"Infernal, telepathy 120 ft.",cr:"3",bestiary:!0,traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Steadfast",desc:"The devil can't be frightened while it can see an allied creature within 30 feet of it.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes two attacks: one with its beard and one with its glaive.",attack_bonus:0},{name:"Beard",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 6 (1d8 + 2) piercing damage, and the target must succeed on a DC 12 Constitution saving throw or be poisoned for 1 minute. While poisoned in this way, the target can't regain hit points. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:5,damage_dice:"1d8",damage_bonus:2},{name:"Glaive",desc:"Melee Weapon Attack: +5 to hit, reach 10 ft., one target. Hit: 8 (1d10 + 3) slashing damage. If the target is a creature other than an undead or a construct, it must succeed on a DC 12 Constitution saving throw or lose 5 (1d10) hit points at the start of each of its turns due to an infernal wound. Each time the devil hits the wounded target with this attack, the damage dealt by the wound increases by 5 (1d10). Any creature can take an action to stanch the wound with a successful DC 12 Wisdom (Medicine) check. The wound also closes if the target receives magical healing.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3}]},{name:"Behir",source:"5e SRD",size:"Huge",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:17,hp:168,hit_dice:"16d12 + 64",speed:"50 ft., climb 40 ft.",stats:[23,16,18,7,14,12],skillsaves:[{perception:6},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"darkvision 90 ft., passive Perception 16",languages:"Draconic",cr:"11",bestiary:!0,actions:[{name:"Multiattack",desc:"The behir makes two attacks: one with its bite and one to constrict.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 22 (3d10 + 6) piercing damage.",attack_bonus:10,damage_dice:"3d10",damage_bonus:6},{name:"Constrict",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one Large or smaller creature. Hit: 17 (2d10 + 6) bludgeoning damage plus 17 (2d10 + 6) slashing damage. The target is grappled (escape DC 16) if the behir isn't already constricting a creature, and the target is restrained until this grapple ends.",attack_bonus:10,damage_dice:"2d10 + 2d10",damage_bonus:6},{name:"Lightning Breath (Recharge 5-6)",desc:"The behir exhales a line of lightning that is 20 ft. long and 5 ft. wide. Each creature in that line must make a DC 16 Dexterity saving throw, taking 66 (12d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d10"},{name:"Swallow",desc:`The behir makes one bite attack against a Medium or smaller target it is grappling. If the attack hits, the target is also swallowed, and the grapple ends. While swallowed, the target is blinded and restrained, it has total cover against attacks and other effects outside the behir, and it takes 21 (6d6) acid damage at the start of each of the behir's turns. A behir can have only one crLine truncated
|
||||
If the behir takes 30 damage or more on a single turn from the swallowed creature, the behir must succeed on a DC 14 Constitution saving throw at the end of that turn or regurgitate the creature, which falls prone in a space within 10 ft. of the behir. If the behir dies, a swallowed creature is no longer restrained by it and can escape from the corpse by using 15 ft. of movement, exiting prone.`,attack_bonus:0,damage_dice:"6d6"}]},{name:"Berserker",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any chaotic alignment",ac:13,hp:67,hit_dice:"9d8 + 26",speed:"30 ft.",stats:[16,12,17,9,11,9],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"2",bestiary:!0,traits:[{name:"Reckless",desc:"At the start of its turn, the berserker can gain advantage on all melee weapon attack rolls during that turn, but attack rolls against it have advantage until the start of its next turn.",attack_bonus:0}],actions:[{name:"Greataxe",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 9 (1d12 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d12",damage_bonus:3}]},{name:"Black Bear",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d8 + 5",speed:"40 ft., climb 30 ft.",stats:[15,10,14,2,12,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:2},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) slashing damage.",attack_bonus:3,damage_dice:"2d4",damage_bonus:2}]},{name:"Black Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic evil",ac:17,hp:33,hit_dice:"6d8 + 6",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[15,14,13,10,11,13],saves:[{dexterity:4},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage plus 2 (1d4) acid damage.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 15-foot line that is 5 feet wide. Each creature in that line must make a DC 11 Dexterity saving throw, taking 22 (Sd8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"5d8"}]},{name:"Black Pudding",source:"5e SRD",size:"Large",type:"ooze",subtype:"",alignment:"unaligned",ac:7,hp:85,hit_dice:"10d10 + 30",speed:"20 ft., climb 20 ft.",stats:[16,5,16,1,6,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid, cold, lightning, slashing",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"4",bestiary:!0,traits:[{name:"Amorphous",desc:"The pudding can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Corrosive Form",desc:"A creature that touches the pudding or hits it with a melee attack while within 5 feet of it takes 4 (1d8) acid damage. Any nonmagical weapon made of metal or wood that hits the pudding corrodes. After dealing damage, the weapon takes a permanent and cumulative -1 penalty to damage rolls. If its penalty drops to -5, the weapon is destroyed. Nonmagical ammunition made of metal or wood that hits the pudding is destroyed after dealing damage. The pudding can eat through 2-inch-thick, nonmagical wood or metal in 1 round.",attack_bonus:0,damage_dice:"1d8"},{name:"Spider Climb",desc:"The pudding can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage plus 18 (4d8) acid damage. In addition, nonmagical armor worn by the target is partly dissolved and takes a permanent and cumulative -1 penalty to the AC it offers. The armor is destroyed if the penalty reduces its AC to 10.",attack_bonus:5,damage_dice:"1d6 + 4d8",damage_bonus:3}],reactions
Line truncated
|
||||
Fire Breath. The dragon exhales fire in an 20-foot line that is 5 feet wide. Each creature in that line must make a DC 11 Dexterity saving throw, taking 14 (4d6) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Sleep Breath. The dragon exhales sleep gas in a 15-foot cone. Each creature in that area must succeed on a DC 11 Constitution saving throw or fall unconscious for 1 minute. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.`,attack_bonus:0,damage_dice:"4d6"}]},{name:"Bronze Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:"lawful good",ac:17,hp:32,hit_dice:"5d8 + 9",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[17,10,15,12,11,15],saves:[{dexterity:2},{constitution:4},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Lightning Breath. The dragon exhales lightning in a 40-foot line that is 5 feet wide. Each creature in that line must make a DC 12 Dexterity saving throw, taking 16 (3d10) lightning damage on a failed save, or half as much damage on a successful one.
|
||||
Repulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 12 Strength saving throw. On a failed save, the creature is pushed 30 feet away from the dragon.`,attack_bonus:0,damage_dice:"3d10"}]},{name:"Brown Bear",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:34,hit_dice:"4d10 + 12",speed:"40 ft., climb 30 ft.",stats:[19,10,16,2,13,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1",bestiary:!0,traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:4}]},{name:"Bugbear",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"goblinoid",alignment:"chaotic evil",ac:16,hp:27,hit_dice:"5d8 + 4",speed:"30 ft.",stats:[15,14,13,8,11,9],skillsaves:[{stealth:6},{survival:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Common, Goblin",cr:"1",bestiary:!0,traits:[{name:"Brute",desc:"A melee weapon deals one extra die of its damage when the bugbear hits with it (included in the attack).",attack_bonus:0},{name:"Surprise Attack",desc:"If the bugbear surprises a creature and hits it with an attack during the first round of combat, the target takes an extra 7 (2d6) damage from the attack.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Morningstar",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 11 (2d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"2d8",damage_bonus:2},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 9 (2d6 + 2) piercing damage in melee or 5 (1d6 + 2) piercing damage at range.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}]},{name:"Bulette",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:17,hp:94,hit_dice:"9d10 + 44",speed:"40 ft., burrow 40 ft.",stats:[19,11,21,2,10,5],skillsaves:[{perception:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 16",languages:"",cr:"5",bestiary:!0,traits:[{name:"Standing Leap",desc:"The bulette's long jump is up to 30 ft. and its high jump is up to 15 ft., with or without a running start.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 30 (4d12 + 4) piercing damage.",attack_bonus:7,damage_dice:"4d12",damage_bonus:4},{name:"Deadly Leap",desc:"If the bulette jumps at least 15 ft. as part of its movement, it can then use this action to land on its ft. in a space that contains one or more other creatures. Each of those creatures must succeed on a DC 16 Strength or Dexterity saving throw (target's choice) or be knocked prone and take 14 (3d6 + 4) bludgeoning damage plus 14 (3d6 + 4) slashing damage. On a successful save, the creature takes only half the damage, isn't knocked prone, and is pushed 5 ft. out of the bulette's space into an unoccupied space of the creature's choice. If no unoccupied space is within range, the creature instead falls prone in the bulette's space.",attack_bonus:0}]},{name:"Camel",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:9,hp:15,hit_dice:"2d10 + 4",speed:"50 ft.",stats:[16,8,14,2,8,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 9",languages:"",cr:"1/8",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage.",attack_bonus:5,damage_dice:"1d4"}]},{name:"Carrion Crawler",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:13,hp:51,hit_dice:"6d10 + 18",speed:"30 ft., climb 30 ft.",stats:[14,13,16,1,12,5],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"2",bestiary:!0,traits:[{name:"Keen Smell",desc:"The carrion crawler has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Spider Climb",desc:"The carrion crawler can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Multiatta
Line truncated
|
||||
Each animated chain is an object with AC 20, 20 hit points, resistance to piercing damage, and immunity to psychic and thunder damage. When the devil uses Multiattack on its turn, it can use each animated chain to make one additional chain attack. An animated chain can grapple one creature of its own but can't make attacks while grappling. An animated chain reverts to its inanimate state if reduced to 0 hit points or if the devil is incapacitated or dies.`,attack_bonus:0}],reactions:[{name:"Unnerving Mask",desc:"When a creature the devil can see starts its turn within 30 feet of the devil, the devil can create the illusion that it looks like one of the creature's departed loved ones or bitter enemies. If the creature can see the devil, it must succeed on a DC 14 Wisdom saving throw or be frightened until the end of its turn.",attack_bonus:0}]},{name:"Chimera",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:14,hp:114,hit_dice:"12d10 + 48",speed:"30 ft., fly 60 ft.",stats:[19,11,19,3,14,10],skillsaves:[{perception:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 18",languages:"understands Draconic but can't speak",cr:"6",bestiary:!0,actions:[{name:"Multiattack",desc:"The chimera makes three attacks: one with its bite, one with its horns, and one with its claws. When its fire breath is available, it can use the breath in place of its bite or horns.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Horns",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 10 (1d12 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"1d12",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon head exhales fire in a 15-foot cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 31 (7d8) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"7d8"}]},{name:"Chuul",source:"5e SRD",size:"Large",type:"aberration",subtype:"",alignment:"chaotic evil",ac:16,hp:93,hit_dice:"11d10 + 32",speed:"30 ft., swim 30 ft.",stats:[19,10,16,5,11,5],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 14",languages:"understands Deep Speech but can't speak",cr:"4",bestiary:!0,traits:[{name:"Amphibious",desc:"The chuul can breathe air and water.",attack_bonus:0},{name:"Sense Magic",desc:"The chuul senses magic within 120 feet of it at will. This trait otherwise works like the detect magic spell but isn't itself magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The chuul makes two pincer attacks. If the chuul is grappling a creature, the chuul can also use its tentacles once.",attack_bonus:0},{name:"Pincer",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage. The target is grappled (escape DC 14) if it is a Large or smaller creature and the chuul doesn't have two other creatures grappled.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Tentacles",desc:"One creature grappled by the chuul must succeed on a DC 13 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0}]},{name:"Clay Golem",source:"5e SRD",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:14,hp:133,hit_dice:"14d10 + 56",speed:"20 ft.",stats:[20,9,18,3,8,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid, poison, psychic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",condition_immunities:"charmed, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"understands the languages of its creator but can't speak",cr:"9",bestiary:!0,traits:[{name:"Acid Absorption",desc:"Whenever the golem is subjected to acid damage, it takes no damage and instead regains a number of hit points equal to the acid damage dealt.",attack_bonus:0},{name:"Berserk",desc:"Whenever the golem starts its turn with 60 hit points or fewer, roll a d6. On a 6, the golem goes berserk. On each of its turns while berserk, the golem attacks the nearest creature it can see. If no creature is near enough to move to and attack, the golem attacks an object, with preference for an object smaller than itself. Once the golem goes berserk, it continues to do so until it is destroyed or regains all its hit poiLine truncated
|
||||
Whenever any creature targets the cloaker with an attack or a harmful spell while a duplicate remains, that creature rolls randomly to determine whether it targets the cloaker or one of the duplicates. A creature is unaffected by this magical effect if it can't see or if it relies on senses other than sight.
|
||||
A duplicate has the cloaker's AC and uses its saving throws. If an attack hits a duplicate, or if a duplicate fails a saving throw against an effect that deals damage, the duplicate disappears.`,attack_bonus:0}]},{name:"Cloud Giant",source:"5e SRD",size:"Huge",type:"giant",subtype:"",alignment:"neutral good (50%) or neutral evil (50%)",ac:14,hp:200,hit_dice:"16d12 + 96",speed:"40 ft.",stats:[27,10,22,12,16,16],saves:[{constitution:10},{wisdom:7},{charisma:7}],skillsaves:[{insight:7},{perception:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 17",languages:"Common, Giant",cr:"9",bestiary:!0,traits:[{name:"Keen Smell",desc:"The giant has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The giant's innate spellcasting ability is Charisma. It can innately cast the following spells, requiring no material components:
|
||||
|
||||
At will: detect magic, fog cloud, light
|
||||
3/day each: feather fall, fly, misty step, telekinesis
|
||||
1/day each: control weather, gaseous form`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The giant makes two morningstar attacks.",attack_bonus:0},{name:"Morningstar",desc:"Melee Weapon Attack: +12 to hit, reach 10 ft., one target. Hit: 21 (3d8 + 8) piercing damage.",attack_bonus:12,damage_dice:"3d8",damage_bonus:8},{name:"Rock",desc:"Ranged Weapon Attack: +12 to hit, range 60/240 ft., one target. Hit: 30 (4d10 + 8) bludgeoning damage.",attack_bonus:12,damage_dice:"4d10",damage_bonus:8}]},{name:"Cockatrice",source:"5e SRD",size:"Small",type:"monstrosity",subtype:"",alignment:"unaligned",ac:11,hp:27,hit_dice:"6d6 + 6",speed:"20 ft., fly 40 ft.",stats:[6,12,12,2,13,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"",cr:"1/2",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 3 (1d4 + 1) piercing damage, and the target must succeed on a DC 11 Constitution saving throw against being magically petrified. On a failed save, the creature begins to turn to stone and is restrained. It must repeat the saving throw at the end of its next turn. On a success, the effect ends. On a failure, the creature is petrified for 24 hours.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1}]},{name:"Commoner",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:10,hp:4,hit_dice:"1d8 + -1",speed:"30 ft.",stats:[10,10,10,10,10,10],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"0",bestiary:!0,actions:[{name:"Club",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage.",attack_bonus:2,damage_dice:"1d4"}]},{name:"Constrictor Snake",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:13,hit_dice:"2d10 + 2",speed:"30 ft., swim 30 ft.",stats:[15,14,12,1,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 10",languages:"",cr:"1/4",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Constrict",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 6 (1d8 + 2) bludgeoning damage, and the target is grappled (escape DC 14). Until this grapple ends, the creature is restrained, and the snake can't constrict another target.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Copper Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic good",ac:16,hp:22,hit_dice:"4d8 + 4",speed:"30 ft., climb 30 ft., fly 60 ft.",stats:[15,12,13,14,11,13],saves:[{dexterity:3},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"1",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Acid Breath. The dragon exhales acid in an 20-foot line that is 5 feet wide. Each creature in that line must make a DC 11 Dexterity saving throw, taking 18 (4d8) acid damage on a failed save, or half as much damage on a successful one.
|
||||
Slowing Breath. The dragon exhales gas in a 1 5-foot cone. Each creature in that area must succeed on a DC 11 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.`,attack_bonus:0,damage_dice:"4d8"}]},{name:"Couatl",source:"5e SRD",size:"Medium",type:"celestial",subtype:"",alignment:"lawful good",ac:19,hp:97,hit_dice:"13d8 + 38",speed:"30 ft., fly 90 ft.",stats:[16,20,17,18,20,18],saves:[{constitution:5},{wisdom:7},{charisma:6}],damage_vulnerabilities:"",damage_resistances:"radiant",damage_immunities:"psychic; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"",senses:"truesight 120 ft., passive Perception 15",languages:"all, telepathy 120 ft.",cr:"4",bestiary:!0,traits:[{name:"Innate Spellcasting",desc:`The couatl's spellcasting ability is Charisma (spell save DC 14). It can innately cast the following spells, requiring only verbal components:
|
||||
|
||||
At will: detect evil and good, detect magic, detect thoughts
|
||||
3/day each: bless, create food and water, cure wounds, lesser restoration, protection from poison, sanctuary, shield
|
||||
1/day each: dream, greater restoration, scrying`,attack_bonus:0},{name:"Magic Weapons",desc:"The couatl's weapon attacks are magical.",attack_bonus:0},{name:"Shielded Mind",desc:"The couatl is immune to scrying and to any effect that would sense its emotions, read its thoughts, or detect its location.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one creature. Hit: 8 (1d6 + 5) piercing damage, and the target must succeed on a DC 13 Constitution saving throw or be poisoned for 24 hours. Until this poison ends, the target is unconscious. Another creature can use an action to shake the target awake.",attack_bonus:8,damage_dice:"1d6",damage_bonus:5},{name:"Constrict",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one Medium or smaller creature. Hit: 10 (2d6 + 3) bludgeoning damage, and the target is grappled (escape DC 15). Until this grapple ends, the target is restrained, and the couatl can't constrict another target.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Change Shape",desc:`The couatl magically polymorphs into a humanoid or beast that has a challenge rating equal to or less than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the couatl's choice).
|
||||
In a new form, the couatl retains its game statistics and ability to speak, but its AC, movement modes, Strength, Dexterity, and other actions are replaced by those of the new form, and it gains any statistics and capabilities (except class features, legendary actions, and lair actions) that the new form has but that it lacks. If the new form has a bite attack, the couatl can use its bite in that form.`,attack_bonus:0}]},{name:"Crab",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:2,hit_dice:"1d4",speed:"20 ft., swim 20 ft.",stats:[2,11,10,1,8,2],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 9",languages:"",cr:"0",bestiary:!0,traits:[{name:"Amphibious",desc:"The crab can breathe air and water.",attack_bonus:0}],actions:[{name:"Claw",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one target. Hit: 1 bludgeoning damage.",attack_bonus:0,damage_bonus:1}]},{name:"Crocodile",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:19,hit_dice:"3d10 + 2",speed:"20 ft., swim 20 ft.",stats:[15,10,13,2,10,5],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Hold Breath",desc:"The crocodile can hold its breath for 15 minutes.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 7 (1d10 + 2) piercing damage, and the target is grappled (escape DC 12). Until this grapple ends, the target is restrained, and the crocodile can't bite another target",attack_bonus:4,damage_dice:"1d10",damage_bonus:2}]},{name:"Cult Fanatic",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:13,hp:22,hit_dice:"6d8 + -5",speed:"30 ft.",stats:[11,14,12,10,13,14],skillsaves:[{deception:4},{persuasion:4},{religion:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"any one language (usually Common)",cr:"2",bestiary:!0,traits:[{name:"Dark Devotion",desc:"The fanatic has advantage on saving throws against being charmed or frightened.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The fanatic makes two melee attacks.",attack_bonus:0},{name:"Dagger",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 20/60 ft., one creature. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}],spells:["The fanatic is a 4th-level spellcaster. Its spell casting ability is Wisdom (spell save DC 11, +3 to hit with spell attacks). The fanatic has the following cleric spells prepared:","Cantrips (at will): light, sacred flame, thaumaturgy",{"1st level (4 slots)":"command, inflict wounds, shield of faith"},{"2nd level (3 slots)":"hold person, spiritual weapon"}]},{name:"Cultist",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:12,hp:9,hit_dice:"2d8",speed:"30 ft.",stats:[11,12,10,10,11,10],skillsaves:[{deception:2},{religion:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"1/8",bestiary:!0,traits:[{name:"Dark Devotion",desc:"The cultist has advantage on saving throws against being charmed or frightened.",attack_bonus:0}],actions:[{name:"Scimitar",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 4 (1d6 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Darkmantle",source:"5e SRD",size:"Small",type:"monstrosity",subtype:"",alignment:"unaligned",ac:11,hp:22,hit_dice:"5d6 + 4",speed:"10 ft., fly 30 ft.",stats:[16,12,13,2,10,5],skillsaves:[{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 10",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Echolocation",desc:"The darkmantle can't use its blindsight while deafened.",attack_bonus:0},{name:"False Appearance",desc:"While the darkmantle remains motionless, it is indistinguishable from a cave formation such as a stalactite or stalagmite.",attack_bonus:0}],actions:[{name:"Crush",desc:`Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 6 (1d6 + 3) bludgeoning damage, and the darkmantle attaches to the target. If the target is Medium or smaller and the darkmantle has advantage on the attack roll, it attaches by engulfing the target's head, and the target is also blinded and unable to breathe while the darkmantle is attached in this way.
|
||||
While attached to the target, the darkmantle can attack no other creature except the target but has advantage on its attack rolls. The darkmantle's speed also becomes 0, it can't benefit from any bonus to its speed, and it moves with the target.
|
||||
A creature can detach the darkmantle by making a successful DC 13 Strength check as an action. On its turn, the darkmantle can detach itself from the target by using 5 feet of movement.`,attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Darkness Aura (1/day)",desc:"A 15-foot radius of magical darkness extends out from the darkmantle, moves with it, and spreads around corners. The darkness lasts as long as the darkmantle maintains concentration, up to 10 minutes (as if concentrating on a spell). Darkvision can't penetrate this darkness, and no natural light can illuminate it. If any of the darkness overlaps with an area of light created by a spell of 2nd level or lower, the spell creating the light is dispelled.",attack_bonus:0}]},{name:"Death Dog",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:12,hp:39,hit_dice:"6d8 + 12",speed:"40 ft.",stats:[15,14,14,3,13,6],skillsaves:[{perception:5},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 15",languages:"",cr:"1",bestiary:!0,traits:[{name:"Two-Headed",desc:"The dog has advantage on Wisdom (Perception) checks and on saving throws against being blinded, charmed, deafened, frightened, stunned, or knocked unconscious.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dog makes two bite attacks.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage. If the target is a creature, it must succeed on a DC 12 Constitution saving throw against disease or become poisoned until the disease is cured. Every 24 hours that elapse, the creature must repeat the saving throw, reducing its hit point maximum by 5 (1d10) on a failure. This reduction lasts until the disease is cured. The creature dies if the disease reduces its hit point maximum to 0.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Deep Gnome (Svirfneblin)",source:"5e SRD",size:"Small",type:"humanoid",subtype:"gnome",alignment:"neutral good",ac:15,hp:16,hit_dice:"3d6 + 5",speed:"20 ft.",stats:[15,14,14,12,10,9],skillsaves:[{perception:2},{investigation:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 12",languages:"Gnomish, Terran, Undercommon",cr:"1/2",bestiary:!0,traits:[{name:"Stone Camouflage",desc:"The gnome has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0},{name:"Gnome Cunning",desc:"The gnome has advantage on Intelligence, Wisdom, and Charisma saving throws against magic.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The gnome's innate spellcasting ability is Intelligence (spell save DC 11). It can innately cast the following spells, requiring no material components:
|
||||
At will: nondetection (self only)
|
||||
1/day each: blindness/deafness, blur, disguise self`,attack_bonus:0}],actions:[{name:"War Pick",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Poisoned Dart",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one creature. Hit: 4 (1d4 + 2) piercing damage, and the target must succeed on a DC 12 Constitution saving throw or be poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Deer",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:4,hit_dice:"1d8 + -1",speed:"50 ft.",stats:[11,16,11,2,14,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"",cr:"0",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) piercing damage.",attack_bonus:2,damage_dice:"1d4"}]},{name:"Deva",source:"5e SRD",size:"Medium",type:"celestial",subtype:"",alignment:"lawful good",ac:17,hp:136,hit_dice:"16d8 + 64",speed:"30 ft., fly 90 ft.",stats:[18,18,18,17,20,20],saves:[{wisdom:9},{charisma:9}],skillsaves:[{insight:9},{perception:9}],damage_vulnerabilities:"",damage_resistances:"radiant; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"charmed, exhaustion, frightened",senses:"darkvision 120 ft., passive Perception 19",languages:"all, telepathy 120 ft.",cr:"10",bestiary:!0,traits:[{name:"Angelic Weapons",desc:"The deva's weapon attacks are magical. When the deva hits with any weapon, the weapon deals an extra 4d8 radiant damage (included in the attack).",attack_bonus:0},{name:"Innate Spellcasting",desc:`The deva's spellcasting ability is Charisma (spell save DC 17). The deva can innately cast the following spells, requiring only verbal components:
|
||||
At will: detect evil and good
|
||||
1/day each: commune, raise dead`,attack_bonus:0},{name:"Magic Resistance",desc:"The deva has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The deva makes two melee attacks.",attack_bonus:0},{name:"Mace",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 7 (1d6 + 4) bludgeoning damage plus 18 (4d8) radiant damage.",attack_bonus:8,damage_dice:"1d6 + 4d8",damage_bonus:4},{name:"Healing Touch (3/Day)",desc:"The deva touches another creature. The target magically regains 20 (4d8 + 2) hit points and is freed from any curse, disease, poison, blindness, or deafness.",attack_bonus:0},{name:"Change Shape",desc:`The deva magically polymorphs into a humanoid or beast that has a challenge rating equal to or less than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the deva's choice).
|
||||
In a new form, the deva retains its game statistics and ability to speak, but its AC, movement modes, Strength, Dexterity, and special senses are replaced by those of the new form, and it gains any statistics and capabilities (except class features, legendary actions, and lair actions) that the new form has but that it lacks.`,attack_bonus:0}]},{name:"Dire Wolf",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:37,hit_dice:"5d10 + 9",speed:"50 ft.",stats:[17,15,15,3,12,7],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Djinni",source:"5e SRD",size:"Large",type:"elemental",subtype:"",alignment:"chaotic good",ac:17,hp:161,hit_dice:"14d10 + 84",speed:"30 ft., fly 90 ft.",stats:[21,15,22,15,16,20],saves:[{dexterity:6},{wisdom:7},{charisma:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning, thunder",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 13",languages:"Auran",cr:"11",bestiary:!0,traits:[{name:"Elemental Demise",desc:"If the djinni dies, its body disintegrates into a warm breeze, leaving behind only equipment the djinni was wearing or carrying.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The djinni's innate spellcasting ability is Charisma (spell save DC 17, +9 to hit with spell attacks). It can innately cast the following spells, requiring no material components:
|
||||
|
||||
At will: detect evil and good, detect magic, thunderwave 3/day each: create food and water (can create wine instead of water), tongues, wind walk
|
||||
1/day each: conjure elemental (air elemental only), creation, gaseous form, invisibility, major image, plane shift`,attack_bonus:0},{name:"Variant: Genie Powers",desc:`Genies have a variety of magical capabilities, including spells. A few have even greater powers that allow them to alter their appearance or the nature of reality.
|
||||
|
||||
Disguises.
|
||||
Some genies can veil themselves in illusion to pass as other similarly shaped creatures. Such genies can innately cast the disguise self spell at will, often with a longer duration than is normal for that spell. Mightier genies can cast the true polymorph spell one to three times per day, possibly with a longer duration than normal. Such genies can change only their own shape, but a rare few can use the spell on other creatures and objects as well.
|
||||
Wishes.
|
||||
The genie power to grant wishes is legendary among mortals. Only the most potent genies, such as those among the nobility, can do so. A particular genie that has this power can grant one to three wishes to a creature that isn't a genie. Once a genie has granted its limit of wishes, it can't grant wishes again for some amount of time (usually 1 year). and cosmic law dictates that the same genie can expend its limit of wishes on a specific creature only once in that creature's existence.
|
||||
To be granted a wish, a creature within 60 feet of the genie states a desired effect to it. The genie can then cast the wish spell on the creature's behalf to bring about the effect. Depending on the genie's nature, the genie might try to pervert the intent of the wish by exploiting the wish's poor wording. The perversion of the wording is usually crafted to be to the genie's benefit.`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The djinni makes three scimitar attacks.",attack_bonus:0},{name:"Scimitar",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage plus 3 (1d6) lightning or thunder damage (djinni's choice).",attack_bonus:9,damage_dice:"2d6 + 1d6",damage_bonus:5},{name:"Create Whirlwind",desc:`A 5-foot-radius, 30-foot-tall cylinder of swirling air magically forms on a point the djinni can see within 120 feet of it. The whirlwind lasts as long as the djinni maintains concentration (as if concentrating on a spell). Any creature but the djinni that enters the whirlwind must succeed on a DC 18 Strength saving throw or be restrained by it. The djinni can move the whirlwind up to 60 feet as an action, and creatures restrained by the whirlwind move with it. The whirlwind ends if the djinni loses sight of it.
|
||||
A creature can use its action to free a creature restrained by the whirlwind, including itself, by succeeding on a DC 18 Strength check. If the check succeeds, the creature is no longer restrained and moves to the nearest space outside the whirlwind.`,attack_bonus:0}]},{name:"Doppelganger",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"shapechanger",alignment:"unaligned",ac:14,hp:52,hit_dice:"8d8 + 16",speed:"30 ft.",stats:[11,18,14,11,12,14],skillsaves:[{deception:6},{insight:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"charmed",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"Common",cr:"3",bestiary:!0,traits:[{name:"Shapechanger",desc:"The doppelganger can use its action to polymorph into a Small or Medium humanoid it has seen, or back into its true form. Its statistics, other than its size, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Ambusher",desc:"The doppelganger has advantage on attack rolls against any creature it has surprised.",attack_bonus:0},{name:"Surprise Attack",desc:"If the doppelganger surprises a creature and hits it with an attack during the first round of combat, the target takes an extra 10 (3d6) damage from the attack.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Multiattack",desc:"The doppelganger makes two melee attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 7 (1d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"1d6",damage_bonus:4},{name:"Read Thoughts",desc:"The doppelganger magically reads the surface thoughts of one creature within 60 ft. of it. The effect can penetrate barriers, but 3 ft. of wood or dirt, 2 ft. of stone, 2 inches of metal, or a thin sheet of lead blocks it. While the target is in range, the doppelganger can continue reading its thoughts, as long as the doppelganger's concentration isn't broken (as if concentrating on a spell). While reading the target's mind, the doppelganger has advantage on Wisdom (Insight) and Charisma (Deception, Intimidation, and Persuasion) checks against the target.",attack_bonus:0}]},{name:"Draft Horse",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:19,hit_dice:"3d10 + 2",speed:"40 ft.",stats:[18,10,12,2,11,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",bestiary:!0,actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (2d4 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d4",damage_bonus:4}]},{name:"Dragon Turtle",source:"5e SRD",size:"Gargantuan",type:"dragon",subtype:"",alignment:"neutral",ac:20,hp:341,hit_dice:"22d20 + 110",speed:"20 ft., swim 40 ft.",stats:[25,10,20,10,12,12],saves:[{dexterity:6},{constitution:11},{wisdom:7}],damage_vulnerabilities:"",damage_resistances:"fire",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 11",languages:"Aquan, Draconic",cr:"17",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon turtle can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon turtle makes three attacks: one with its bite and two with its claws. It can make one tail attack in place of its two claw attacks.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +13 to hit, reach 15 ft., one target. Hit: 26 (3d12 + 7) piercing damage.",attack_bonus:13,damage_dice:"3d12",damage_bonus:7},{name:"Claw",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 16 (2d8 + 7) slashing damage.",attack_bonus:13,damage_dice:"2d8",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +13 to hit, reach 15 ft., one target. Hit: 26 (3d12 + 7) bludgeoning damage. If the target is a creature, it must succeed on a DC 20 Strength saving throw or be pushed up to 10 feet away from the dragon turtle and knocked prone.",attack_bonus:13,damage_dice:"3d12",damage_bonus:7},{name:"Steam Breath (Recharge 5-6)",desc:"The dragon turtle exhales scalding steam in a 60-foot cone. Each creature in that area must make a DC 18 Constitution saving throw, taking 52 (15d6) fire damage on a failed save, or half as much damage on a successful one. Being underwater doesn't grant resistance against this damage.",attack_bonus:0,damage_dice:"15d6"}]},{name:"Dretch",source:"5e SRD",size:"Small",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:11,hp:18,hit_dice:"4d6 + 4",speed:"20 ft.",stats:[11,11,12,5,8,3],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"Abyssal, telepathy 60 ft. (works only with creatures that understand Abyssal)",cr:"1/4",bestiary:!0,actions:[{name:"Multiattack",desc:"The dretch makes two a
Line truncated
|
||||
At will: dancing lights
|
||||
1/day each: darkness, faerie fire`,attack_bonus:0},{name:"Spider Climb",desc:"The drider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the drider has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0},{name:"Web Walker",desc:"The drider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The drider makes three attacks, either with its longsword or its longbow. It can replace one of those attacks with a bite attack.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 2 (1d4) piercing damage plus 9 (2d8) poison damage.",attack_bonus:6,damage_dice:"1d4",damage_bonus:2},{name:"Longsword",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage, or 8 (1d10 + 3) slashing damage if used with two hands.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3},{name:"Longbow",desc:"Ranged Weapon Attack: +6 to hit, range 150/600 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 4 (1d8) poison damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3}]},{name:"Drow",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"elf",alignment:"neutral evil",ac:15,hp:13,hit_dice:"3d8 + -1",speed:"30 ft.",stats:[10,14,10,11,11,12],skillsaves:[{perception:2},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 12",languages:"Elvish, Undercommon",cr:"1/4",bestiary:!0,traits:[{name:"Fey Ancestry",desc:"The drow has advantage on saving throws against being charmed, and magic can't put the drow to sleep.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The drow's spellcasting ability is Charisma (spell save DC 11). It can innately cast the following spells, requiring no material components:
|
||||
At will: dancing lights
|
||||
1/day each: darkness, faerie fire`,attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the drow has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Shortsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Hand Crossbow",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage, and the target must succeed on a DC 13 Constitution saving throw or be poisoned for 1 hour. If the saving throw fails by 5 or more, the target is also unconscious while poisoned in this way. The target wakes up if it takes damage or if another creature takes an action to shake it awake.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Druid",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:11,hp:27,hit_dice:"5d8 + 4",speed:"30 ft.",stats:[10,12,13,12,15,11],skillsaves:[{nature:3},{medicine:4},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"Druidic plus any two languages",cr:"2",bestiary:!0,traits:[],actions:[{name:"Quarterstaff",desc:"Melee Weapon Attack: +2 to hit (+4 to hit with shillelagh), reach 5 ft., one target. Hit: 3 (1d6) bludgeoning damage, or 6 (1d8 + 2) bludgeoning damage with shillelagh or if wielded with two hands.",attack_bonus:2,damage_dice:"1d6"}],spells:["The druid is a 4th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 12, +4 to hit with spell attacks). It has the following druid spells prepared:",{"Cantrips (at will)":"druidcraft, produce flame, shillelagh"},{"1st level (4 slots)":"entangle, longstrider, speak with animals, thunderwave"},{"2nd level (3 slots)":"animal messenger, barkskin"}]},{name:"Dryad",source:"5e SRD",size:"Medium",type:"fey",subtype:"",alignment:"neutral",ac:11,hp:22,hit_dice:"5d8 + -1",speed:"30 ft.",stats:[10,12,11,14,15,18],skillsaves:[{perception:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Elvish, Sylvan",cr:"1",bestiary:!0,traits:[{name:"Innate Spellcasting",desc:`The dryad's innate spellcasting ability is Charisma (spell save DC 14). The dryad can innately cast the following spells, requiring no material components:
|
||||
|
||||
At will: druidcraft
|
||||
3/day each: entangle, goodberry
|
||||
1/day each: barkskin, pass without trace, shillelagh`,attack_bonus:0},{name:"Magic Resistance",desc:"The dryad has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Speak with Beasts and Plants",desc:"The dryad can communicate with beasts and plants as if they shared a language.",attack_bonus:0},{name:"Tree Stride",desc:"Once on her turn, the dryad can use 10 ft. of her movement to step magically into one living tree within her reach and emerge from a second living tree within 60 ft. of the first tree, appearing in an unoccupied space within 5 ft. of the second tree. Both trees must be large or bigger.",attack_bonus:0}],actions:[{name:"Club",desc:"Melee Weapon Attack: +2 to hit (+6 to hit with shillelagh), reach 5 ft., one target. Hit: 2 (1 d4) bludgeoning damage, or 8 (1d8 + 4) bludgeoning damage with shillelagh.",attack_bonus:2,damage_dice:"1d4"},{name:"Fey Charm",desc:`The dryad targets one humanoid or beast that she can see within 30 feet of her. If the target can see the dryad, it must succeed on a DC 14 Wisdom saving throw or be magically charmed. The charmed creature regards the dryad as a trusted friend to be heeded and protected. Although the target isn't under the dryad's control, it takes the dryad's requests or actions in the most favorable way it can.
|
||||
Each time the dryad or its allies do anything harmful to the target, it can repeat the saving throw, ending the effect on itself on a success. Otherwise, the effect lasts 24 hours or until the dryad dies, is on a different plane of existence from the target, or ends the effect as a bonus action. If a target's saving throw is successful, the target is immune to the dryad's Fey Charm for the next 24 hours.
|
||||
The dryad can have no more than one humanoid and up to three beasts charmed at a time.`,attack_bonus:0}]},{name:"Duergar",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"dwarf",alignment:"lawful evil",ac:16,hp:26,hit_dice:"4d8 + 8",speed:"25 ft.",stats:[14,11,14,11,10,9],damage_vulnerabilities:"",damage_resistances:"poison",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 10",languages:"Dwarvish, Undercommon",cr:"1",bestiary:!0,traits:[{name:"Duergar Resilience",desc:"The duergar has advantage on saving throws against poison, spells, and illusions, as well as to resist being charmed or paralyzed.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the duergar has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Enlarge (Recharges after a Short or Long Rest)",desc:"For 1 minute, the duergar magically increases in size, along with anything it is wearing or carrying. While enlarged, the duergar is Large, doubles its damage dice on Strength-based weapon attacks (included in the attacks), and makes Strength checks and Strength saving throws with advantage. If the duergar lacks the room to become Large, it attains the maximum size possible in the space available.",attack_bonus:0},{name:"War Pick",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage, or 11 (2d8 + 2) piercing damage while enlarged.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage, or 9 (2d6 + 2) piercing damage while enlarged.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Invisibility (Recharges after a Short or Long Rest)",desc:"The duergar magically turns invisible until it attacks, casts a spell, or uses its Enlarge, or until its concentration is broken, up to 1 hour (as if concentrating on a spell). Any equipment the duergar wears or carries is invisible with it .",attack_bonus:0}]},{name:"Dust Mephit",source:"5e SRD",size:"Small",type:"elemental",subtype:"",alignment:"neutral evil",ac:12,hp:17,hit_dice:"5d6 + -1",speed:"30 ft., fly 30 ft.",stats:[5,14,10,9,11,10],skillsaves:[{perception:2},{stealth:4}],damage_vulnerabilities:"fire",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 12",languages:"Auran, Terran",cr:"1/2",bestiary:!0,traits:[{name:"Death Burst",desc:"When the mephit dies, it explodes in a burst of dust. Each creature within 5 ft. of it must then succeed on a DC 10 Constitution saving throw or be blinded for 1 minute. A blinded creature can repeat the saving throw on each of its turns, ending the effect on itself on a success.",attack_bonus:0},{name:"Innate Spellcasting (1/Day)",desc:"The mephit can innately cast sleep, requiring no material components. Its innate spellcasting ability is Charisma.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Blinding Breath (Recharge 6)",desc:"The mephit exhales a 15-foot cone of blinding dust. Each creature in that area must succeed on a DC 10 Dexterity saving throw or be blinded for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0},{name:"Variant: Summon Mephits (1/Day)",desc:"The mephit has a 25 percent chance of summoning 1d4 mephits of its kind. A summoned mephit appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other mephits. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Eagle",source:"5e SRD",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:3,hit_dice:"1d6 + -1",speed:"10 ft., fly 60 ft.",stats:[6,15,10,2,14,7],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"0",bestiary:!0,traits:[{name:"Keen Sight",desc:"The eagle has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Earth Elemental",source:"5e SRD",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:17,hp:126,hit_dice:"12d10 + 60",speed:"30 ft., burrow 30 ft.",stats:[20,8,20,5,10,5],damage_vulnerabilities:"thunder",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, paralyzed, petrified, poisoned, unco
Line truncated
|
||||
|
||||
At will: detect magic
|
||||
3/day: enlarge/reduce, tongues
|
||||
1/day each: conjure elemental (fire elemental only), gaseous form, invisibility, major image, plane shift, wall of fire`,attack_bonus:0},{name:"Variant: Genie Powers",desc:`Genies have a variety of magical capabilities, including spells. A few have even greater powers that allow them to alter their appearance or the nature of reality.
|
||||
|
||||
Disguises.
|
||||
Some genies can veil themselves in illusion to pass as other similarly shaped creatures. Such genies can innately cast the disguise self spell at will, often with a longer duration than is normal for that spell. Mightier genies can cast the true polymorph spell one to three times per day, possibly with a longer duration than normal. Such genies can change only their own shape, but a rare few can use the spell on other creatures and objects as well.
|
||||
Wishes.
|
||||
The genie power to grant wishes is legendary among mortals. Only the most potent genies, such as those among the nobility, can do so. A particular genie that has this power can grant one to three wishes to a creature that isn't a genie. Once a genie has granted its limit of wishes, it can't grant wishes again for some amount of time (usually 1 year). and cosmic law dictates that the same genie can expend its limit of wishes on a specific creature only once in that creature's existence.
|
||||
To be granted a wish, a creature within 60 feet of the genie states a desired effect to it. The genie can then cast the wish spell on the creature's behalf to bring about the effect. Depending on the genie's nature, the genie might try to pervert the intent of the wish by exploiting the wish's poor wording. The perversion of the wording is usually crafted to be to the genie's benefit.`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The efreeti makes two scimitar attacks or uses its Hurl Flame twice.",attack_bonus:0},{name:"Scimitar",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage plus 7 (2d6) fire damage.",attack_bonus:10,damage_dice:"2d6 + 2d6",damage_bonus:6},{name:"Hurl Flame",desc:"Ranged Spell Attack: +7 to hit, range 120 ft., one target. Hit: 17 (5d6) fire damage.",attack_bonus:7,damage_dice:"5d6"}]},{name:"Elephant",source:"5e SRD",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:76,hit_dice:"8d12 + 24",speed:"40 ft.",stats:[22,9,17,3,11,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"4",bestiary:!0,traits:[{name:"Trampling Charge",desc:"If the elephant moves at least 20 ft. straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the elephant can make one stomp attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 19 (3d8 + 6) piercing damage.",attack_bonus:8,damage_dice:"3d8",damage_bonus:6},{name:"Stomp",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one prone creature. Hit: 22 (3d10 + 6) bludgeoning damage.",attack_bonus:8,damage_dice:"3d10",damage_bonus:6}]},{name:"Elk",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:13,hit_dice:"2d10 + 2",speed:"50 ft.",stats:[16,10,12,2,10,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Charge",desc:"If the elk moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 7 (2d6) damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage.",attack_bonus:0},{name:"Hooves",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one prone creature. Hit: 8 (2d4 + 3) bludgeoning damage.",attack_bonus:0}]},{name:"Erinyes",source:"5e SRD",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:18,hp:153,hit_dice:"18d8 + 72",speed:"30 ft., fly 60 ft.",stats:[18,16,18,14,14,18],saves:[{dexterity:7},{constitution:8},{wisdom:6},{charisma:8}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 12",languages:"Infernal, telepathy 120 ft.",cr:"12",bestiary:!0,traits:[{name:"Hellish Weapons",desc:"The erinyes's weapon attacks are magical and deal an extra 13 (3d8) poison damage on a hit (included in the attacks).",attack_bonus:0},{name:"Magic Resistance",desc:"The erinyes has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The erinyes makes three attacks",attack_bonus:0},{name:"Longsword",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) slashing damage, or 9 (1d10 + 4) slashing damage if used with two hands, plus 13 (3d8) poison damage.",attack_bonus:8,damage_dice:"1d8 + 3d8",damage_bonus:4},{name:"Longbow",desc:"Ranged Weapon Attack: +7 to hit, range 150/600 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 13 (3d8) poison damage, and the target must succeed on a DC 14 Constitution saving throw or be poisoned. The poison lasts until it is removed by the lesser restoration spell or similar magic.",attack_bonus:7,damage_dice:"1d8 + 3d8",damage_bonus:3},{name:"Variant: Rope of Entanglement",desc:"Some erinyes carry a rope of entanglement (detailed in the Dungeon Master's Guide). When such an erinyes uses its Multiattack, the erinyes can use the rope in place of two of the attacks.",attack_bonus:0}],reactions:[{name:"Parry",desc:"The erinyes adds 4 to its AC against one melee attack that would hit it. To do so, the erinyes must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Ettercap",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:13,hp:44,hit_dice:"8d8 + 8",speed:"30 ft., climb 30 ft.",stats:[14,15
Line truncated
|
||||
The golem's creator, if within 60 feet of the berserk golem, can try to calm it by speaking firmly and persuasively. The golem must be able to hear its creator, who must take an action to make a DC 15 Charisma (Persuasion) check. If the check succeeds, the golem ceases being berserk. If it takes damage while still at 40 hit points or fewer, the golem might go berserk again.`,attack_bonus:0},{name:"Aversion of Fire",desc:"If the golem takes fire damage, it has disadvantage on attack rolls and ability checks until the end of its next turn.",attack_bonus:0},{name:"Immutable Form",desc:"The golem is immune to any spell or effect that would alter its form.",attack_bonus:0},{name:"Lightning Absorption",desc:"Whenever the golem is subjected to lightning damage, it takes no damage and instead regains a number of hit points equal to the lightning damage dealt.",attack_bonus:0},{name:"Magic Resistance",desc:"The golem has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The golem's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The golem makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4}]},{name:"Flying Snake",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:5,hit_dice:"2d4",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[4,18,11,2,12,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 11",languages:"",cr:"1/8",bestiary:!0,traits:[{name:"Flyby",desc:"The snake doesn't provoke opportunity attacks when it flies out of an enemy's reach.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 1 piercing damage plus 7 (3d4) poison damage.",attack_bonus:6,damage_bonus:1}]},{name:"Flying Sword",source:"5e SRD",size:"Small",type:"construct",subtype:"",alignment:"unaligned",ac:17,hp:17,hit_dice:"5d6 + -1",speed:"0 ft., fly 50 ft. It can hover.",stats:[12,15,11,1,5,1],saves:[{dexterity:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic",condition_immunities:"blinded, charmed, deafened, frightened, paralyzed, petrified, poisoned",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 7",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Antimagic Susceptibility",desc:"The sword is incapacitated while in the area of an antimagic field. If targeted by dispel magic, the sword must succeed on a Constitution saving throw against the caster's spell save DC or fall unconscious for 1 minute.",attack_bonus:0},{name:"False Appearance",desc:"While the sword remains motionless and isn't flying, it is indistinguishable from a normal sword.",attack_bonus:0}],actions:[{name:"Longsword",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Frog",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"20 ft., swim 20 ft.",stats:[1,13,8,1,8,3],skillsaves:[{perception:1},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 11",languages:"",cr:"0",bestiary:!0,traits:[{name:"Amphibious",desc:"The frog can breathe air and water",attack_bonus:0},{name:"Standing Leap",desc:"The frog's long jump is up to 10 ft. and its high jump is up to 5 ft., with or without a running start.",attack_bonus:0}]},{name:"Frost Giant",source:"5e SRD",size:"Huge",type:"giant",subtype:"",alignment:"neutral evil",ac:15,hp:138,hit_dice:"12d12 + 60",speed:"40 ft.",stats:[23,9,21,9,10,12],saves:[{constitution:8},{wisdom:3},{charisma:4}],skillsaves:[{athletics:9},{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"passive Perception 13",languages:"Giant",cr:"8",bestiary:!0,actions:[{name:"Multiattack",desc:"The giant makes two greataxe attacks.",attack_bonus:0},{name:"Greataxe",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 25 (3d12 + 6) slashing damage.",attack_bonus:9,damage_dice:"3d12",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +9 to hit, range 60/240 ft., one target. Hit: 28 (4d10 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"4d10",damage_bonus:6}]},{name:"Gargoyle",source:"5e SRD",size:"Medium",type:"elemental",subtype:"",alignment:"chaotic evil",ac:15,hp:52,hit_dice:"7d8 + 20",speed:"30 ft., fly 60 ft.",stats:[15,11,16,6,11,7],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",damage_immunities:"poison",condition_immunities:"exhaustion, petrified, poisoned",senLine truncated
|
||||
Creatures inside the cube can be seen but have total cover.
|
||||
A creature within 5 feet of the cube can take an action to pull a creature or object out of the cube. Doing so requires a successful DC 12 Strength check, and the creature making the attempt takes 10 (3d6) acid damage.
|
||||
The cube can hold only one Large creature or up to four Medium or smaller creatures inside it at a time.`,attack_bonus:0},{name:"Transparent",desc:"Even when the cube is in plain sight, it takes a successful DC 15 Wisdom (Perception) check to spot a cube that has neither moved nor attacked. A creature that tries to enter the cube's space while unaware of the cube is surprised by the cube.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 10 (3d6) acid damage.",attack_bonus:4,damage_dice:"3d6"},{name:"Engulf",desc:`The cube moves up to its speed. While doing so, it can enter Large or smaller creatures' spaces. Whenever the cube enters a creature's space, the creature must make a DC 12 Dexterity saving throw.
|
||||
On a successful save, the creature can choose to be pushed 5 feet back or to the side of the cube. A creature that chooses not to be pushed suffers the consequences of a failed saving throw.
|
||||
On a failed save, the cube enters the creature's space, and the creature takes 10 (3d6) acid damage and is engulfed. The engulfed creature can't breathe, is restrained, and takes 21 (6d6) acid damage at the start of each of the cube's turns. When the cube moves, the engulfed creature moves with it.
|
||||
An engulfed creature can try to escape by taking an action to make a DC 12 Strength check. On a success, the creature escapes and enters a space of its choice within 5 feet of the cube.`,attack_bonus:0}]},{name:"Ghast",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:13,hp:36,hit_dice:"8d8",speed:"30 ft.",stats:[16,17,10,11,10,8],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"necrotic",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Common",cr:"2",bestiary:!0,traits:[{name:"Stench",desc:"Any creature that starts its turn within 5 ft. of the ghast must succeed on a DC 10 Constitution saving throw or be poisoned until the start of its next turn. On a successful saving throw, the creature is immune to the ghast's Stench for 24 hours.",attack_bonus:0},{name:"Turn Defiance",desc:"The ghast and any ghouls within 30 ft. of it have advantage on saving throws against effects that turn undead.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 12 (2d8 + 3) piercing damage.",attack_bonus:3,damage_dice:"2d8",damage_bonus:3},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage. If the target is a creature other than an undead, it must succeed on a DC 10 Constitution saving throw or be paralyzed for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Ghost",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"any alignment",ac:11,hp:45,hit_dice:"10d8",speed:"0 ft., fly 40 ft. It can hover.",stats:[7,13,10,10,12,17],damage_vulnerabilities:"",damage_resistances:"acid, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"cold, necrotic, poison",condition_immunities:"charmed, exhaustion, frightened, grappled, paralyzed, petrified, poisoned, prone, restrained",senses:"darkvision 60 ft., passive Perception 11",languages:"any languages it knew in life",cr:"4",bestiary:!0,traits:[{name:"Ethereal Sight",desc:"The ghost can see 60 ft. into the Ethereal Plane when it is on the Material Plane, and vice versa.",attack_bonus:0},{name:"Incorporeal Movement",desc:"The ghost can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0}],actions:[{name:"Withering Touch",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 17 (4d6 + 3) necrotic damage.",attack_bonus:5,damage_dice:"4d6",damage_bonus:3},{name:"Etherealness",desc:"The ghost enters the Ethereal Plane from the Material Plane, or vice versa. It is visible on the Material Plane while it is in the Border Ethereal, and vice versa, yet it can't affect or be affected by anything on the other plane.",attack_bonus:0},{name:"Horrifying Visage",desc:"Each non-undead creature within 60 ft. of the ghost that can see it must succeed on a DC 13 Wisdom saving throw or be frightened for 1 minute. If the save fails by 5 or more, the target also ages 1d4 _ 10 years. A frightened target can repeat the saving throw at the end of each of its turns, ending the frightened condition on itself on a success. If a target's saving throw is successful or the effect ends for it, the target is immune to this ghost's Horrifying Visage for the next 24 hours. The aging effect can be reversed with a greater restoration spell, but only within 24 hours of it occurring.",attack_bonus:0},{name:"Possession (Recharge 6)",desc:`One humanoid that the ghost can see within 5 ft. of it must succeed on a DC 13 Charisma saving throw or be possessed by the ghost; the ghost then disappears, and the target is incapacitated and loses control of its body. The ghost now controls the body but doesn't deprive the target of awareness. The ghost can't be targeted by any attack, spell, or other effect, except ones that turn undead, and it retains its alignment, Intelligence, Wisdom, Charisma, and immunity to being charmed and frightened. It otherwise uses the possessed target's statistics, but doesn't gain access to the target's knowledge, class features, or proficiencies.
|
||||
The possession lasts until the body drops to 0 hit points, the ghost ends it as a bonus action, or the ghost is turned or forced out by an effect like the dispel evil and good spell. When the possession ends, the ghost reappears in an unoccupied space within 5 ft. of the body. The target is immune to this ghost's Possession for 24 hours after succeeding on the saving throw or after the possession ends.`,attack_bonus:0}]},{name:"Ghoul",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"30 ft.",stats:[13,15,10,7,10,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Common",cr:"1",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one creature. Hit: 9 (2d6 + 2) piercing damage.",attack_bonus:2,damage_dice:"2d6",damage_bonus:2},{name:"Claws",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) slashing damage. If the target is a creature other than an elf or undead, it must succeed on a DC 10 Constitution saving throw or be paralyzed for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0}]},{name:"Giant Ape",source:"5e SRD",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:157,hit_dice:"15d12 + 59",speed:"40 ft., climb 40 ft.",stats:[23,14,18,7,12,7],skillsaves:[{athletics:9},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"7",bestiary:!0,actions:[{name:"Multiattack",desc:"The ape makes two fist attacks.",attack_bonus:0},{name:"Fist",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 22 (3d10 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"3d10",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +9 to hit, range 50/100 ft., one target. Hit: 30 (7d6 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"7d6",damage_bonus:6}]},{name:"Giant Badger",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:13,hit_dice:"2d8 + 4",speed:"30 ft., burrow 10 ft.",stats:[13,10,15,2,12,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 11",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Keen Smell",desc:"The badger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The badger makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 6 (2d4 + 1) slashing damage.",attack_bonus:3,damage_dice:"2d4",damage_bonus:1}]},{name:"Giant Bat",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:22,hit_dice:"4d10",speed:"10 ft., fly 60 ft.",stats:[15,16,11,2,12,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 11",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Echolocation",desc:"The bat can't use its blindsight while deafened.",attack_bonus:0},{name:"Keen Hearing",desc:"The bat has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Giant Boar",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:42,hit_dice:"5d10 + 14",speed:"40 ft.",stats:[17,10,16,2,7,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 8",languages:"",cr:"2",bestiary:!0,traits:[{name:"Charge",desc:"If the boar moves at least 20 ft. straight toward a target and then hits it with a tusk attack on the same turn, the target takes an extra 7 (2d6) slashing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"},{name:"Relentless (Recharges after a Short or Long Rest)",desc:"If the boar takes 10 damage or less that would reduce it to 0 hit points, it is reduced to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Tusk",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Giant Centipede",source:"5e SRD",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:4,hit_dice:"1d6",speed:"30 ft., climb 30 ft.",stats:[5,14,12,1,7,3],dLine truncated
|
||||
If the toad dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 5 feet of movement, exiting prone.`,attack_bonus:0}]},{name:"Giant Vulture",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"neutral evil",ac:10,hp:22,hit_dice:"3d10 + 5",speed:"10 ft., fly 60 ft.",stats:[15,10,15,6,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"understands Common but can't speak",cr:"1",bestiary:!0,traits:[{name:"Keen Sight and Smell",desc:"The vulture has advantage on Wisdom (Perception) checks that rely on sight or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The vulture has advantage on an attack roll against a creature if at least one of the vulture's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The vulture makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2},{name:"Talons",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}]},{name:"Giant Wasp",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:13,hit_dice:"3d8 + -1",speed:"10 ft., fly 50 ft., swim 50 ft.",stats:[10,14,10,1,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/2",bestiary:!0,actions:[{name:"Sting",desc:"Sting. Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 10 (3d6) poison damage on a failed save, or half as much damage on a successful one. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Giant Weasel",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:9,hit_dice:"2d8",speed:"40 ft.",stats:[11,16,10,4,12,5],skillsaves:[{perception:3},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"1/8",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The weasel has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d4 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3}]},{name:"Giant Wolf Spider",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:11,hit_dice:"2d8 + 2",speed:"40 ft., climb 40 ft.",stats:[12,16,13,3,12,4],skillsaves:[{perception:3},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 13",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Spider Climb",desc:"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The spider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 4 (1d6 + 1) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 7 (2d6) poison damage on a failed save, or half as much damage on a successful one. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Gibbering Mouther",source:"5e SRD",size:"Medium",type:"aberration",subtype:"",alignment:"neutral",ac:9,hp:67,hit_dice:"9d8 + 26",speed:"10 ft., swim 10 ft.",stats:[10,8,16,3,10,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"prone",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"2",bestiary:!0,traits:[{name:"Aberrant Ground",desc:"The ground in a 10-foot radius around the mouther is doughlike difficult terrain. Each creature that starts its turn in that area must succeed on a DC 10 Strength saving throw or have its speed reduced to 0 until the start of its next turn.",attack_bonus:0},{name:"Gibbering",desc:"The mouther babbles incoherently w
Line truncated
|
||||
At will: darkness, detect magic, dispel magic
|
||||
1/day each: confusion, fly, power word stun`,attack_bonus:0},{name:"Magic Resistance",desc:"The glabrezu has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The glabrezu makes four attacks: two with its pincers and two with its fists. Alternatively, it makes two attacks with its pincers and casts one spell.",attack_bonus:0},{name:"Pincer",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 16 (2d10 + 5) bludgeoning damage. If the target is a Medium or smaller creature, it is grappled (escape DC 15). The glabrezu has two pincers, each of which can grapple only one target.",attack_bonus:9,damage_dice:"2d10",damage_bonus:5},{name:"Fist",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) bludgeoning damage.",attack_bonus:9,damage_dice:"2d4",damage_bonus:2},{name:"Variant: Summon Demon (1/Day)",desc:`The demon chooses what to summon and attempts a magical summoning.
|
||||
A glabrezu has a 30 percent chance of summoning 1d3 vrocks, 1d2 hezrous, or one glabrezu.
|
||||
A summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.`,attack_bonus:0}]},{name:"Gladiator",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:16,hp:112,hit_dice:"15d8 + 44",speed:"30 ft.",stats:[18,15,16,10,12,15],saves:[{strength:7},{dexterity:5},{constitution:6}],skillsaves:[{intimidation:5},{athletics:10}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"any one language (usually Common)",cr:"5",bestiary:!0,traits:[{name:"Brave",desc:"The gladiator has advantage on saving throws against being frightened.",attack_bonus:0},{name:"Brute",desc:"A melee weapon deals one extra die of its damage when the gladiator hits with it (included in the attack).",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The gladiator makes three melee attacks or two ranged attacks.",attack_bonus:0},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +7 to hit, reach 5 ft. and range 20/60 ft., one target. Hit: 11 (2d6 + 4) piercing damage, or 13 (2d8 + 4) piercing damage if used with two hands to make a melee attack.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Shield Bash",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one creature. Hit: 9 (2d4 + 4) bludgeoning damage. If the target is a Medium or smaller creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.",attack_bonus:7,damage_dice:"2d4",damage_bonus:4}],reactions:[{name:"Parry",desc:"The gladiator adds 3 to its AC against one melee attack that would hit it. To do so, the gladiator must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Gnoll",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"gnoll",alignment:"chaotic evil",ac:15,hp:22,hit_dice:"5d8 + -1",speed:"30 ft.",stats:[14,12,11,6,10,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Gnoll",cr:"1/2",bestiary:!0,traits:[{name:"Rampage",desc:"When the gnoll reduces a creature to 0 hit points with a melee attack on its turn, the gnoll can take a bonus action to move up to half its speed and make a bite attack.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 5 (1d6 + 2) piercing damage, or 6 (1d8 + 2) piercing damage if used with two hands to make a melee attack.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +3 to hit, range 150/600 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Goat",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:4,hit_dice:"1d8 + -1",speed:"40 ft.",stats:[12,10,11,2,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"0",bestiary:!0,traits:[{name:"Charge",desc:"If the goat moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 2 (1d4) bludgeoning damage. If the target is a creature, it must succeed on a DC 10 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"1d4"},{name:"Sure-Footed",desc:"The goat has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.",attack_bonus:0}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1}]},{name:"Goblin",source:"5e SRD",size:"Small",type:"humanoid",subtype:"goblinoid",alignment:"neutral evil",ac:15,hp:7,hit_dice:"2d6",speed:"30 ft.",stats:[8,14,10,10,8,8],skillsaves:[{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 9",languages:"Common, Goblin",cr:"1/4",bestiary:!0,traits:[{name:"Nimble Escape",desc:"The goblin can take the Disengage or Hide action as a bonus action on each of its turns.",attack_bonus:0}],actions:[{name:"Scimitar",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Shortbow",desc:"Ranged Weapon Attack: +4 to hit, range 80/320 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Gold Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:
Line truncated
|
||||
Fire Breath. The dragon exhales fire in a 15-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 22 (4d10) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Weakening Breath. The dragon exhales gas in a 15-foot cone. Each creature in that area must succeed on a DC 13 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"4d10"}]},{name:"Gorgon",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:19,hp:114,hit_dice:"12d10 + 48",speed:"40 ft.",stats:[20,11,18,2,12,7],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"petrified",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"",cr:"5",bestiary:!0,traits:[{name:"Trampling Charge",desc:"If the gorgon moves at least 20 feet straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 16 Strength saving throw or be knocked prone. If the target is prone, the gorgon can make one attack with its hooves against it as a bonus action.",attack_bonus:0}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 18 (2d12 + 5) piercing damage.",attack_bonus:8,damage_dice:"2d12",damage_bonus:5},{name:"Hooves",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 16 (2d10 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"2d10",damage_bonus:5},{name:"Petrifying Breath (Recharge 5-6)",desc:"The gorgon exhales petrifying gas in a 30-foot cone. Each creature in that area must succeed on a DC 13 Constitution saving throw. On a failed save, a target begins to turn to stone and is restrained. The restrained target must repeat the saving throw at the end of its next turn. On a success, the effect ends on the target. On a failure, the target is petrified until freed by the greater restoration spell or other magic.",attack_bonus:0}]},{name:"Gray Ooze",source:"5e SRD",size:"Medium",type:"ooze",subtype:"",alignment:"unaligned",ac:8,hp:22,hit_dice:"3d8 + 8",speed:"10 ft., climb 10 ft.",stats:[12,6,16,1,6,2],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire",damage_immunities:"",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Amorphous",desc:"The ooze can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Corrode Metal",desc:`Any nonmagical weapon made of metal that hits the ooze corrodes. After dealing damage, the weapon takes a permanent and cumulative -1 penalty to damage rolls. If its penalty drops to -5, the weapon is destroyed. Nonmagical ammunition made of metal that hits the ooze is destroyed after dealing damage.
|
||||
The ooze can eat through 2-inch-thick, nonmagical metal in 1 round.`,attack_bonus:0},{name:"False Appearance",desc:"While the ooze remains motionless, it is indistinguishable from an oily pool or wet rock.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) bludgeoning damage plus 7 (2d6) acid damage, and if the target is wearing nonmagical metal armor, its armor is partly corroded and takes a permanent and cumulative -1 penalty to the AC it offers. The armor is destroyed if the penalty reduces its AC to 10.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Green Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:"lawful evil",ac:17,hp:38,hit_dice:"7d8 + 6",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[15,12,13,14,11,13],saves:[{dexterity:3},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage plus 3 (1d6) poison damage.",attack_bonus:4,damage_dice:"1d10 + 1d6",damage_bonus:3},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 15-foot cone. Each creature in that area must make a DC 11 Constitution saving throw, taking 21 (6d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"6d6"}]},{name:"Green Hag",source:"5e SRD",size:"Medium",type:"fey",subtype:"",alignment:"neutral evil",ac:17,hp:82,hit_dice:"11d8 + 32",speed:"30 ft.",stats:[18,12,16,13,14,14],skillsaves:[{arcana:3},{deception:4},{perception:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Common, Draconic, Sylvan",cr:"3",bestiary:!0,traits:[{name:"Amphibious",desc:"The hag can breathe air and water.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The hag's innate spellcasting ability is Charisma (spell save DC 12). She can innately cast the following spells, requiring no material components:
|
||||
|
||||
At will: dancing lights, minor illusion, vicious mockery`,attack_bonus:0},{name:"Mimicry",desc:"The hag can mimic animal sounds and humanoid voices. A creature that hears the sounds can tell they are imitations with a successful DC 14 Wisdom (Insight) check.",attack_bonus:0},{name:"Hag Coven",desc:`When hags must work together, they form covens, in spite of their selfish natures. A coven is made up of hags of any type, all of whom are equals within the group. However, each of the hags continues to desire more personal power.
|
||||
A coven consists of three hags so that any arguments between two hags can be settled by the third. If more than three hags ever come together, as might happen if two covens come into conflict, the result is usually chaos.`,attack_bonus:0},{name:"Shared Spellcasting (Coven Only)",desc:`While all three members of a hag coven are within 30 feet of one another, they can each cast the following spells from the wizard's spell list but must share the spell slots among themselves:
|
||||
|
||||
\u2022 1st level (4 slots): identify, ray of sickness
|
||||
\u2022 2nd level (3 slots): hold person, locate object
|
||||
\u2022 3rd level (3 slots): bestow curse, counterspell, lightning bolt
|
||||
\u2022 4th level (3 slots): phantasmal killer, polymorph
|
||||
\u2022 5th level (2 slots): contact other plane, scrying
|
||||
\u2022 6th level (1 slot): eye bite
|
||||
|
||||
For casting these spells, each hag is a 12th-level spellcaster that uses Intelligence as her spellcasting ability. The spell save DC is 12+the hag's Intelligence modifier, and the spell attack bonus is 4+the hag's Intelligence modifier.`,attack_bonus:0},{name:"Hag Eye (Coven Only)",desc:`A hag coven can craft a magic item called a hag eye, which is made from a real eye coated in varnish and often fitted to a pendant or other wearable item. The hag eye is usually entrusted to a minion for safekeeping and transport. A hag in the coven can take an action to see what the hag eye sees if the hag eye is on the same plane of existence. A hag eye has AC 10, 1 hit point, and darkvision with a radius of 60 feet. If it is destroyed, each coven member takes 3d10 psychic damage and is blinded for 24 hours.
|
||||
A hag coven can have only one hag eye at a time, and creating a new one requires all three members of the coven to perform a ritual. The ritual takes 1 hour, and the hags can't perform it while blinded. During the ritual, if the hags take any action other than performing the ritual, they must start over.`,attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4},{name:"Illusory Appearance",desc:`The hag covers herself and anything she is wearing or carrying with a magical illusion that makes her look like another creature of her general size and humanoid shape. The illusion ends if the hag takes a bonus action to end it or if she dies.
|
||||
The changes wrought by this effect fail to hold up to physical inspection. For example, the hag could appear to have smooth skin, but someone touching her would feel her rough flesh. Otherwise, a creature must take an action to visually inspect the illusion and succeed on a DC 20 Intelligence (Investigation) check to discern that the hag is disguised.`,attack_bonus:0},{name:"Invisible Passage",desc:"The hag magically turns invisible until she attacks or casts a spell, or until her concentration ends (as if concentrating on a spell). While invisible, she leaves no physical evidence of her passage, so she can be tracked only by magic. Any equipment she wears or carries is invisible with her.",attack_bonus:0}]},{name:"Grick",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"",alignment:"neutral",ac:14,hp:27,hit_dice:"6d8",speed:"30 ft., climb 30 ft.",stats:[14,14,11,3,14,5],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing damage from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 12",languages:"",cr:"2",bestiary:!0,traits:[{name:"Stone Camouflage",desc:"The grick has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The grick makes one attack with its tentacles. If that attack hits, the grick can make one beak attack against the same target.",attack_bonus:0},{name:"Tentacles",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2},{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Griffon",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:12,hp:59,hit_dice:"7d10 + 20",speed:"30 ft., fly 80 ft.",stats:[18,15,16,2,13,8],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"",cr:"2",bestiary:!0,traits:[{name:"Keen Sight",desc:"The griffon has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The griffon makes two attacks: one with its beak and one with its claws.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Grimlock",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"grimlock",alignment:"neutral evil",ac:11,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[16,12,12,9,8,6],skillsaves:[{athletics:5},{perception:3},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"blinded",condition_immunities:"",senses:"blindsight 30 ft. or 10 ft. while deafened (blind beyond this radius), passive Perception 13",languages:"Undercommon",cr:"1/4",bestiary:!0,traits:[{name:"Blind Senses",desc:"The grimlock can't use its blindsight while deafened and unable to smell.",attack_bonus:0},{name:"Keen Hearing and Smell",desc:"The grimlock has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Stone Camouflage",desc:"The grimlock has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0}],actions:[{name:"Spiked Bone Club",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d4 + 3) bludgeoning damage plus 2 (1d4) piercing damage.",attack_bonus:5,damage_dice:"1d4 + 1d4",damage_bonus:5}]},{name:"Guard",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:16,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[13,12,12,10,11,10],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any one language (usually Common)",cr:"1/8",bestiary:!0,actions:[{name:"Spear",desc:"Melee or Ranged Weapon Attack: +3 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d6 + 1) piercing damage or 5 (1d8 + 1) piercing damage if used with two hands to make a melee attack.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Guardian Naga",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"lawful good",ac:18,hp:127,hit_dice:"15d10 + 44",speed:"40 ft.",stats:[19,18,16,16,19,18],saves:[{dexterity:8},{constitution:7},{intelligence:7},{wisdom:8},{charisma:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, poisoned",senses:"darkvision 60 ft., passive Perception 14",languages:"Celestial, Common",cr:"10",bestiary:!0,tra
Line truncated
|
||||
While charmed by the harpy, a target is incapacitated and ignores the songs of other harpies. If the charmed target is more than 5 ft. away from the harpy, the must move on its turn toward the harpy by the most direct route. It doesn't avoid opportunity attacks, but before moving into damaging terrain, such as lava or a pit, and whenever it takes damage from a source other than the harpy, a target can repeat the saving throw. A creature can also repeat the saving throw at the end of each of its turns. If a creature's saving throw is successful, the effect ends on it.
|
||||
A target that successfully saves is immune to this harpy's song for the next 24 hours.`,attack_bonus:0}]},{name:"Hawk",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:1,hit_dice:"1d4 + -2",speed:"10 ft., fly 60 ft.",stats:[5,16,8,2,14,6],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"0",bestiary:!0,traits:[{name:"Keen Sight",desc:"The hawk has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 1 slashing damage.",attack_bonus:5,damage_bonus:1}]},{name:"Hell Hound",source:"5e SRD",size:"Medium",type:"fiend",subtype:"",alignment:"lawful evil",ac:15,hp:45,hit_dice:"7d8 + 13",speed:"50 ft.",stats:[17,12,14,6,13,6],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"understands Infernal but can't speak it",cr:"3",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The hound has advantage on an attack roll against a creature if at least one of the hound's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 7 (2d6) fire damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Fire Breath (Recharge 5-6)",desc:"The hound exhales fire in a 15-foot cone. Each creature in that area must make a DC 12 Dexterity saving throw, taking 21 (6d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"6d6"}]},{name:"Hezrou",source:"5e SRD",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:16,hp:136,hit_dice:"13d10 + 64",speed:"30 ft.",stats:[19,17,20,5,12,13],saves:[{strength:7},{constitution:8},{wisdom:4}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 11",languages:"Abyssal, telepathy 120 ft.",cr:"8",bestiary:!0,traits:[{name:"Magic Resistance",desc:"The hezrou has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Stench",desc:"Any creature that starts its turn within 10 feet of the hezrou must succeed on a DC 14 Constitution saving throw or be poisoned until the start of its next turn. On a successful saving throw, the creature is immune to the hezrou's stench for 24 hours.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The hezrou makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 15 (2d10 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Variant: Summon Demon (1/Day)",desc:`The demon chooses what to summon and attempts a magical summoning.
|
||||
A hezrou has a 30 percent chance of summoning 2d6 dretches or one hezrou.
|
||||
A summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.`,attack_bonus:0}]},{name:"Hill Giant",source:"5e SRD",size:"Huge",type:"giant",subtype:"",alignment:"chaotic evil",ac:13,hp:105,hit_dice:"10d12 + 40",speed:"40 ft.",stats:[21,8,19,5,9,6],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"Giant",cr:"5",bestiary:!0,actions:[{name:"Multiattack",desc:"The giant makes two greatclub attacks.",attack_bonus:0},{name:"Greatclub",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 18 (3d8 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"3d8",damage_bonus:5},{name:"Rock",desc:"Ranged Weapon Attack: +8 to hit, range 60/240 ft., one target. Hit: 21 (3d10 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"3d10",damage_bonus:5}]},{name:"Hippogriff",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d10 + 2",speed:"40 ft, fly 60 ft.",stats:[17,13,13,2,12,8],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 15",languages:"",cr:"1",bestiary:!0,traits:[{name:"Keen Sight",desc:"The hippogriff has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The hippogriff makes two attacks: one with its beak and one with its claws.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Hobgoblin",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"goblinoid",alignment:"lawful evil",ac:18,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[13,12,12,10,10,9],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Common, Goblin",cr:"1/2",bestiary:!0,traits:[{name:"Martial Advantage",desc:"Once per turn, the hobgoblin can deal an extra 7 (2d6) damage to a creature it hits with a weapon attack if that creature is within 5 ft. of an ally of the hobgoblin that isn't incapacitated.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Longsword",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) slashing damage, or 6 (1d10 + 1) slashing damage if used with two hands.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1},{name:"Longbow",desc:"Ranged Weapon Attack: +3 to hit, range 150/600 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Homunculus",source:"5e SRD",size:"Tiny",type:"construct",subtype:"",alignment:"neutral",ac:13,hp:5,hit_dice:"2d4",speed:"20 ft., fly 40 ft.",stats:[4,15,11,10,10,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"understands the languages of its creator but can't speak",cr:"0",bestiary:!0,traits:[{name:"Telepathic Bond",desc:"While the homunculus is on the same plane of existence as its master, it can magically convey what it senses to its master, and the two can communicate telepathically.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 1 piercing damage, and the target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. If the saving throw fails by 5 or more, the target is instead poisoned for 5 (1d10) minutes and unconscious while poisoned in this way.",attack_bonus:4,damage_bonus:1}]},{name:"Horned Devil",source:"5e SRD",size:"Large",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:18,hp:148,hit_dice:"17d10 + 54",speed:"20 ft., fly 60 ft.",stats:[22,17,21,12,16,17],saves:[{strength:10},{dexterity:7},{wisdom:7},{charisma:7}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 13",languages:"Infernal, telepathy 120 ft.",cr:"11",bestiary:!0,traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three melee attacks: two with its fork and one with its tail. It can usLine truncated
|
||||
Whenever the hydra takes 25 or more damage in a single turn, one of its heads dies. If all its heads die, the hydra dies.
|
||||
At the end of its turn, it grows two heads for each of its heads that died since its last turn, unless it has taken fire damage since its last turn. The hydra regains 10 hit points for each head regrown in this way.`,attack_bonus:0},{name:"Reactive Heads",desc:"For each head the hydra has beyond one, it gets an extra reaction that can be used only for opportunity attacks.",attack_bonus:0},{name:"Wakeful",desc:"While the hydra sleeps, at least one of its heads is awake.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The hydra makes as many bite attacks as it has heads.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 10 (1d10 + 5) piercing damage.",attack_bonus:8,damage_dice:"1d10",damage_bonus:5}]},{name:"Hyena",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:5,hit_dice:"1d8",speed:"50 ft.",stats:[11,13,12,2,12,5],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",bestiary:!0,traits:[{name:"Pack Tactics",desc:"The hyena has advantage on an attack roll against a creature if at least one of the hyena's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 3 (1d6) piercing damage.",attack_bonus:2,damage_dice:"1d6"}]},{name:"Ice Devil",source:"5e SRD",size:"Large",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:18,hp:180,hit_dice:"19d10 + 75",speed:"40 ft.",stats:[21,14,18,18,15,18],saves:[{dexterity:7},{constitution:9},{wisdom:7},{charisma:9}],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 12",languages:"Infernal, telepathy 120 ft.",cr:"14",bestiary:!0,traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three attacks: one with its bite, one with its claws, and one with its tail.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) piercing damage plus 10 (3d6) cold damage.",attack_bonus:10,damage_dice:"2d6 + 3d6",damage_bonus:5},{name:"Claws",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 10 (2d4 + 5) slashing damage plus 10 (3d6) cold damage.",attack_bonus:10,damage_dice:"2d4 + 3d6",damage_bonus:5},{name:"Tail",desc:"Melee Weapon Attack:+10 to hit, reach 10 ft., one target. Hit: 12 (2d6 + 5) bludgeoning damage plus 10 (3d6) cold damage.",attack_bonus:10,damage_dice:"2d6 + 3d6",damage_bonus:5},{name:"Wall of Ice",desc:`The devil magically forms an opaque wall of ice on a solid surface it can see within 60 feet of it. The wall is 1 foot thick and up to 30 feet long and 10 feet high, or it's a hemispherical dome up to 20 feet in diameter.
|
||||
When the wall appears, each creature in its space is pushed out of it by the shortest route. The creature chooses which side of the wall to end up on, unless the creature is incapacitated. The creature then makes a DC 17 Dexterity saving throw, taking 35 (10d6) cold damage on a failed save, or half as much damage on a successful one.
|
||||
The wall lasts for 1 minute or until the devil is incapacitated or dies. The wall can be damaged and breached; each 10-foot section has AC 5, 30 hit points, vulnerability to fire damage, and immunity to acid, cold, necrotic, poison, and psychic damage. If a section is destroyed, it leaves behind a sheet of frigid air in the space the wall occupied. Whenever a creature finishes moving through the frigid air on a turn, willingly or otherwise, the creature must make a DC 17 Constitution saving throw, taking 17 (5d6) cold damage on a failed save, or half as much damage on a successful one. The frigid air dissipates when the rest of the wall vanishes.`,attack_bonus:0}]},{name:"Ice Mephit",source:"5e SRD",size:"Small",type:"elemental",subtype:"",alignment:"neutral evil",ac:11,hp:21,hit_dice:"6d6",speed:"30 ft., fly 30 ft.",stats:[7,13,10,9,11,12],skillsaves:[{perception:2},{stealth:3}],damage_vulnerabilities:"bludgeoning, fire",damage_resistances:"",damage_immunities:"cold, poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 12",languages:"Aquan, Auran",cr:"1/2",bestiary:!0,traits:[{name:"Death Burst",desc:"When the mephit dies, it explodes in a burst of jagged ice. Each creature within 5 ft. of it must make a DC 10 Dexterity saving throw, taking 4 (1d8) slashing damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"1d8"},{name:"False Appearance",desc:"While the mephit remains motionless, it is indistinguishable from an ordinary shard of ice.",attack_bonus:0},{name:"Innate Spellcasting (1/Day)",desc:"The mephit can innately cast fog cloud, requiring no material components. Its innate spellcasting ability is Charisma.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 3 (1d4 + 1) slashing damage plus 2 (1d4) cold damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Frost Breath (Recharge 6)",desc:"The mephit exhales a 15-foot cone of cold air. Each creature in that area must succeed on a DC 10 Dexterity saving throw, taking 5 (2d4) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0},{name:"Variant: Summon Mephits (1/Day)",desc:"The mephit has a 25 percent chance of summoning 1d4 mephits of its kind. A summoned mephit appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other mephits. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Imp",source:"5e SRD",size:"Tiny",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:13,hp:10,hit_dice:"3d4 + 2",speed:"20 ft., fly 40 ft.",stats:[6,17,13,11,12,14],skillsaves:[{deception:4},{insight:3},{persuasion:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical/nonsilver weapons",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 11",languages:"Infernal, Common",cr:"1",bestiary:!0,traits:[{name:"Shapechanger",desc:"The imp can use its action to polymorph into a beast form that resembles a rat (speed 20 ft.), a raven (20 ft., fly 60 ft.), or a spider (20 ft., climb 20 ft.), or back into its true form. Its statistics are the same in each form, except for the speed changes noted. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Devil's Sight",desc:"Magical darkness doesn't impede the imp's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The imp has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Variant: Familiar",desc:"The imp can serve another creature as a familiar, forming a telepathic bond with its willing master. While the two are bonded, the master can sense what the quasit senses as long as they are within 1 mile of each other. While the imp is within 10 feet of its master, the master shares the quasit's Magic Resistance trait. At any time and for any reason, the imp can end its service as a familiar, ending the telepathic bond.",attack_bonus:0}],actions:[{name:"Sting (Bite in Beast Form)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft ., one target. Hit: 5 (1d4 + 3) piercing damage, and the target must make on a DC 11 Constitution saving throw, taking 10 (3d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3},{name:"Invisibility",desc:"The imp magically turns invisible until it attacks, or until its concentration ends (as if concentrating on a spell). Any equipment the imp wears or carries is invisible with it.",attack_bonus:0}]},{name:"Invisible Stalker",source:"5e SRD",size:"Medium",type:"elemental",subtype:"",alignment:"neutral",ac:14,hp:104,hit_dice:"16d8 + 32",speed:"50 ft., fly 50 ft. (hover)",stats:[16,19,14
Line truncated
|
||||
A marilith has a 50 percent chance of summoning 1d6 vrocks, 1d4 hezrous, 1d3 glabrezus, 1d2 nalfeshnees, or one marilith.
|
||||
A summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.`,attack_bonus:0}],reactions:[{name:"Parry",desc:"The marilith adds 5 to its AC against one melee attack that would hit it. To do so, the marilith must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Mastiff",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:5,hit_dice:"1d8",speed:"40 ft.",stats:[13,14,12,3,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/8",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The mastiff has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) piercing damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Medusa",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"",alignment:"lawful evil",ac:15,hp:127,hit_dice:"17d8 + 50",speed:"30 ft.",stats:[10,15,16,12,13,15],skillsaves:[{deception:5},{insight:4},{perception:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Common",cr:"6",bestiary:!0,traits:[{name:"Petrifying Gaze",desc:`When a creature that can see the medusa's eyes starts its turn within 30 ft. of the medusa, the medusa can force it to make a DC 14 Constitution saving throw if the medusa isn't incapacitated and can see the creature. If the saving throw fails by 5 or more, the creature is instantly petrified. Otherwise, a creature that fails the save begins to turn to stone and is restrained. The restrained creature must repeat the saving throw at the end of its next turn, becoming petrified on a failure or ending the effect on a success. The petrification lasts until the creature is freed by the greater restoration spell or other magic.
|
||||
Unless surprised, a creature can avert its eyes to avoid the saving throw at the start of its turn. If the creature does so, it can't see the medusa until the start of its next turn, when it can avert its eyes again. If the creature looks at the medusa in the meantime, it must immediately make the save.
|
||||
If the medusa sees itself reflected on a polished surface within 30 ft. of it and in an area of bright light, the medusa is, due to its curse, affected by its own gaze.`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The medusa makes either three melee attacks \u2014 one with its snake hair and two with its shortsword \u2014 or two ranged attacks with its longbow.",attack_bonus:0},{name:"Snake Hair",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) piercing damage plus 14 (4d6) poison damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:2},{name:"Shortsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +5 to hit, range 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage plus 7 (2d6) poison damage.",attack_bonus:5,damage_dice:"2d6"}]},{name:"Merfolk",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"merfolk",alignment:"neutral",ac:11,hp:11,hit_dice:"2d8 + 2",speed:"10 ft., swim 40 ft.",stats:[10,13,12,11,11,12],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"Aquan, Common",cr:"1/8",bestiary:!0,traits:[{name:"Amphibious",desc:"The merfolk can breathe air and water.",attack_bonus:0}],actions:[{name:"Spear",desc:"Melee or Ranged Weapon Attack: +2 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 3 (1d6) piercing damage, or 4 (1d8) piercing damage if used with two hands to make a melee attack.",attack_bonus:2,damage_dice:"1d6"}]},{name:"Merrow",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:13,hp:45,hit_dice:"6d10 + 12",speed:"10 ft., swim 40 ft.",stats:[18,10,15,8,10,9],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Abyssal, Aquan",cr:"2",bestiary:!0,traits:[{name:"Amphibious",desc:"The merrow can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The merrow makes two attacks: one with its bite and one with its claws or harpoon.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (2d4 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d4",damage_bonus:4},{name:"Harpoon",desc:"Melee or Ranged Weapon Attack: +6 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 11 (2d6 + 4) piercing damage. If the target is a Huge or smaller creature, it must succeed on a Strength contest against the merrow or be pulled up to 20 feet toward the merrow.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Mimic",source:"5e SRD",size:"Medium",type:"monstrosity",subtype:"shapechanger",alignment:"neutral",ac:12,hp:58,hit_dice:"9d8 + 17",speed:"15 ft.",stats:[17,12,15,5,13,8],skillsaves:[{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"prone",senses:"darkvision 60 ft., passive Perception 11",languages:"",cr:"2",bestiary:!0,traits:[{name:"Shapechanger",desc:"The mimic can use its action to polymorph into an object or back into its true, amorphous form. Its statistics are the same in each form. Any equipment it is wearing or carrying isn 't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Adhesive (Object Form Only)",desc:"The mimic adheres to anything that touches it. A Huge or smaller creature adhered to the mimic is also grappled by it (escape DC 13). Ability checks made to escape this grapple have disadvantage.",attack_bonus:0},{name:"False Appearance (Object Form Only)",desc:"While the mimic remains motionless, it is indistinguishable from an ordinary object.",attack_bonus:0},{name:"Grappler",desc:"The mimic has advantage on attack rolls against any creature grappled by it.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) bludgeoning damage. If the mimic is in object form, the target is subjected to its Adhesive trait.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 4 (1d8) acid damage.",attack_bonus:5,damage_dice:"1d8 + 1d8",damage_bonus:3}]},{name:"Minotaur",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:14,hp:76,hit_dice:"9d10 + 26",speed:"40 ft.",stats:[18,11,16,6,16,9],skillsaves:[{perception:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 17",languages:"Abyssal",cr:"3",bestiary:!0,traits:[{name:"Charge",desc:"If the min
Line truncated
|
||||
A nalfeshnee has a 50 percent chance of summoning 1d4 vrocks, 1d3 hezrous, 1d2 glabrezus, or one nalfeshnee.
|
||||
A summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.`,attack_bonus:0}]},{name:"Night Hag",source:"5e SRD",size:"Medium",type:"fiend",subtype:"",alignment:"neutral evil",ac:17,hp:112,hit_dice:"15d8 + 44",speed:"30 ft.",stats:[18,15,16,16,14,16],skillsaves:[{deception:7},{insight:6},{perception:6},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"cold, fire; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"",condition_immunities:"charmed",senses:"darkvision 120 ft., passive Perception 16",languages:"Abyssal, Common, Infernal, Primordial",cr:"5",bestiary:!0,traits:[{name:"Innate Spellcasting",desc:`The hag's innate spellcasting ability is Charisma (spell save DC 14, +6 to hit with spell attacks). She can innately cast the following spells, requiring no material components:
|
||||
|
||||
At will: detect magic, magic missile
|
||||
2/day each: plane shift (self only), ray of enfeeblement, sleep`,attack_bonus:0},{name:"Magic Resistance",desc:"The hag has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Night Hag Items",desc:`A night hag carries two very rare magic items that she must craft for herself If either object is lost, the night hag will go to great lengths to retrieve it, as creating a new tool takes time and effort.
|
||||
Heartstone: This lustrous black gem allows a night hag to become ethereal while it is in her possession. The touch of a heartstone also cures any disease. Crafting a heartstone takes 30 days.
|
||||
Soul Bag: When an evil humanoid dies as a result of a night hag's Nightmare Haunting, the hag catches the soul in this black sack made of stitched flesh. A soul bag can hold only one evil soul at a time, and only the night hag who crafted the bag can catch a soul with it. Crafting a soul bag takes 7 days and a humanoid sacrifice (whose flesh is used to make the bag).`,attack_bonus:0},{name:"Hag Coven",desc:`When hags must work together, they form covens, in spite of their selfish natures. A coven is made up of hags of any type, all of whom are equals within the group. However, each of the hags continues to desire more personal power.
|
||||
A coven consists of three hags so that any arguments between two hags can be settled by the third. If more than three hags ever come together, as might happen if two covens come into conflict, the result is usually chaos.`,attack_bonus:0},{name:"Shared Spellcasting (Coven Only)",desc:`While all three members of a hag coven are within 30 feet of one another, they can each cast the following spells from the wizard's spell list but must share the spell slots among themselves:
|
||||
|
||||
\u2022 1st level (4 slots): identify, ray of sickness
|
||||
\u2022 2nd level (3 slots): hold person, locate object
|
||||
\u2022 3rd level (3 slots): bestow curse, counterspell, lightning bolt
|
||||
\u2022 4th level (3 slots): phantasmal killer, polymorph
|
||||
\u2022 5th level (2 slots): contact other plane, scrying
|
||||
\u2022 6th level (1 slot): eye bite
|
||||
|
||||
For casting these spells, each hag is a 12th-level spellcaster that uses Intelligence as her spellcasting ability. The spell save DC is 12+the hag's Intelligence modifier, and the spell attack bonus is 4+the hag's Intelligence modifier.`,attack_bonus:0},{name:"Hag Eye (Coven Only)",desc:`A hag coven can craft a magic item called a hag eye, which is made from a real eye coated in varnish and often fitted to a pendant or other wearable item. The hag eye is usually entrusted to a minion for safekeeping and transport. A hag in the coven can take an action to see what the hag eye sees if the hag eye is on the same plane of existence. A hag eye has AC 10, 1 hit point, and darkvision with a radius of 60 feet. If it is destroyed, each coven member takes 3d10 psychic damage and is blinded for 24 hours.
|
||||
A hag coven can have only one hag eye at a time, and creating a new one requires all three members of the coven to perform a ritual. The ritual takes 1 hour, and the hags can't perform it while blinded. During the ritual, if the hags take any action other than performing the ritual, they must start over.`,attack_bonus:0}],actions:[{name:"Claws (Hag Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Change Shape",desc:"The hag magically polymorphs into a Small or Medium female humanoid, or back into her true form. Her statistics are the same in each form. Any equipment she is wearing or carrying isn't transformed. She reverts to her true form if she dies.",attack_bonus:0},{name:"Etherealness",desc:"The hag magically enters the Ethereal Plane from the Material Plane, or vice versa. To do so, the hag must have a heartstone in her possession.",attack_bonus:0},{name:"Nightmare Haunting (1/Day)",desc:"While on the Ethereal Plane, the hag magically touches a sleeping humanoid on the Material Plane. A protection from evil and good spell cast on the target prevents this contact, as does a magic circle. As long as the contact persists, the target has dreadful visions. If these visions last for at least 1 hour, the target gains no benefit from its rest, and its hit point maximum is reduced by 5 (1d10). If this effect reduces the target's hit point maximum to 0, the target dies, and if the target was evil, its soul is trapped in the hag's soul bag. The reduction to the target's hit point maximum lasts until removed by the greater restoration spell or similar magic.",attack_bonus:0}]},{name:"Nightmare",source:"5e SRD",size:"Large",type:"fiend",subtype:"",alignment:"neutral evil",ac:13,hp:68,hit_dice:"8d10 + 24",speed:"60 ft., fly 90 ft.",stats:[18,15,16,10,13,15],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"passive Perception 11",languages:"understands Abyssal, Common, and Infernal but can't speak",cr:"3",bestiary:!0,traits:[{name:"Confer Fire Resistance",desc:"The nightmare can grant resistance to fire damage to anyone riding it.",attack_bonus:0},{name:"Illumination",desc:"The nightmare sheds bright light in a 10-foot radius and dim light for an additional 10 feet.",attack_bonus:0}],actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage plus 7 (2d6) fire damage.",attack_bonus:6,damage_dice:"2d8 + 2d6",damage_bonus:4},{name:"Ethereal Stride",desc:"The nightmare and up to three willing creatures within 5 feet of it magically enter the Ethereal Plane from the Material Plane, or vice versa.",attack_bonus:0}]},{name:"Noble",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:15,hp:9,hit_dice:"2d8",speed:"30 ft.",stats:[11,12,11,12,14,16],skillsaves:[{deception:5},{insight:4},{persuasion:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any two languages",cr:"1/8",bestiary:!0,actions:[{name:"Rapier",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}],reactions:[{name:"Parry",desc:"The noble adds 2 to its AC against one melee attack that would hit it. To do so, the noble must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Ochre Jelly",source:"5e SRD",size:"Large",type:"ooze",subtype:"",alignment:"unaligned",ac:8,hp:45,hit_dice:"6d10 + 12",speed:"10 ft., climb 10 ft.",stats:[15,6,14,2,6,1],damage_vulnerabilities:"",damage_resistances:"acid",damage_immunities:"lightning, slashing",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"2",bestiary:!0,traits:[{name:"Amorphous",desc:"The jelly can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Spider Climb",desc:"The jelly can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) bludgeoning damage plus 3 (1d6) acid damage.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}],reactions:[{name:"Split",desc:"When a jelly that is Medium or larger is subjected to lightning or slashing damage, it splits into two new jellies if it has at least 10 hit points. Each new jelly has hit points equal to half the original jelly's, rounded down. New jellies are one size smaller than the original jelly.",attack_bonus:0}]},{name:"Octopus",source:"5e SRD",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:3,hit_dice:"1d6 + -1",speed:"5 ft., swim 30 ft.",stats:[4,1Line truncated
|
||||
|
||||
At will: darkness, invisibility
|
||||
1/day each: charm person, cone of cold, gaseous form, sleep`,attack_bonus:0},{name:"Magic Weapons",desc:"The oni's weapon attacks are magical.",attack_bonus:0},{name:"Regeneration",desc:"The oni regains 10 hit points at the start of its turn if it has at least 1 hit point.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The oni makes two attacks, either with its claws or its glaive.",attack_bonus:0},{name:"Claw (Oni Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:4},{name:"Glaive",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) slashing damage, or 9 (1d10 + 4) slashing damage in Small or Medium form.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Change Shape",desc:"The oni magically polymorphs into a Small or Medium humanoid, into a Large giant, or back into its true form. Other than its size, its statistics are the same in each form. The only equipment that is transformed is its glaive, which shrinks so that it can be wielded in humanoid form. If the oni dies, it reverts to its true form, and its glaive reverts to its normal size.",attack_bonus:0}]},{name:"Orc",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"orc",alignment:"chaotic evil",ac:13,hp:15,hit_dice:"2d8 + 6",speed:"30 ft.",stats:[16,12,16,7,11,10],skillsaves:[{intimidation:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Common, Orc",cr:"1/2",bestiary:!0,traits:[{name:"Aggressive",desc:"As a bonus action, the orc can move up to its speed toward a hostile creature that it can see.",attack_bonus:0}],actions:[{name:"Greataxe",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 9 (1d12 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d12",damage_bonus:3},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +5 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3}]},{name:"Otyugh",source:"5e SRD",size:"Large",type:"aberration",subtype:"",alignment:"neutral",ac:14,hp:114,hit_dice:"12d10 + 48",speed:"30 ft.",stats:[16,11,19,6,13,6],saves:[{constitution:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 11",languages:"Otyugh",cr:"5",bestiary:!0,traits:[{name:"Limited Telepathy",desc:"The otyugh can magically transmit simple messages and images to any creature within 120 ft. of it that can understand a language. This form of telepathy doesn't allow the receiving creature to telepathically respond.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The otyugh makes three attacks: one with its bite and two with its tentacles.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 12 (2d8 + 3) piercing damage. If the target is a creature, it must succeed on a DC 15 Constitution saving throw against disease or become poisoned until the disease is cured. Every 24 hours that elapse, the target must repeat the saving throw, reducing its hit point maximum by 5 (1d10) on a failure. The disease is cured on a success. The target dies if the disease reduces its hit point maximum to 0. This reduction to the target's hit point maximum lasts until the disease is cured.",attack_bonus:6,damage_dice:"2d8",damage_bonus:3},{name:"Tentacle",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 7 (1d8 + 3) bludgeoning damage plus 4 (1d8) piercing damage. If the target is Medium or smaller, it is grappled (escape DC 13) and restrained until the grapple ends. The otyugh has two tentacles, each of which can grapple one target.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3},{name:"Tentacle Slam",desc:"The otyugh slams creatures grappled by it into each other or a solid surface. Each creature must succeed on a DC 14 Constitution saving throw or take 10 (2d6 + 3) bludgeoning damage and be stunned until the end of the otyugh's next turn. On a successful save, the target takes half the bludgeoning damage and isn't stunned.",attack_bonus:0}]},{name:"Owl",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"5 ft., fly 60 ft.",stats:[3,13,8,2,12,7],skillsaves:[{perception:3},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 13",languages:"",cr:"0",bestiary:!0,traits:[{name:"Flyby",desc:"The owl doesn't provoke opportunity attacks when it flies out of an enemy's reach.",attack_bonus:0},{name:"Keen Hearing and Sight",desc:"The owl has advantage on Wisdom (Perception) checks that rely on hearing or sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target.
Line truncated
|
||||
At will: detect magic, fireball
|
||||
3/day each: hold monster, wall of fire`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The pit fiend makes four attacks: one with its bite, one with its claw, one with its mace, and one with its tail.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 22 (4d6 + 8) piercing damage. The target must succeed on a DC 21 Constitution saving throw or become poisoned. While poisoned in this way, the target can't regain hit points, and it takes 21 (6d6) poison damage at the start of each of its turns. The poisoned target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:14,damage_dice:"4d6",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft. , one target. Hit: 17 (2d8 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Mace",desc:"Melee Weapon Attack: +14 to hit, reach 10ft., one target. Hit: 15 (2d6 + 8) bludgeoning damage plus 21 (6d6) fire damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 10ft., one target. Hit: 24 (3d1O + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"3d10",damage_bonus:8}]},{name:"Planetar",source:"5e SRD",size:"Large",type:"celestial",subtype:"",alignment:"lawful good",ac:19,hp:200,hit_dice:"16d10 + 112",speed:"40 ft., fly 120 ft.",stats:[24,20,24,19,22,25],saves:[{constitution:12},{wisdom:11},{charisma:12}],skillsaves:[{perception:11}],damage_vulnerabilities:"",damage_resistances:"radiant; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"charmed, exhaustion, frightened",senses:"truesight 120 ft., passive Perception 21",languages:"all, telepathy 120 ft.",cr:"16",bestiary:!0,traits:[{name:"Angelic Weapons",desc:"The planetar's weapon attacks are magical. When the planetar hits with any weapon, the weapon deals an extra 5d8 radiant damage (included in the attack).",attack_bonus:0},{name:"Divine Awareness",desc:"The planetar knows if it hears a lie.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The planetar's spellcasting ability is Charisma (spell save DC 20). The planetar can innately cast the following spells, requiring no material components:
|
||||
At will: detect evil and good, invisibility (self only)
|
||||
3/day each: blade barrier, dispel evil and good, flame strike, raise dead
|
||||
1/day each: commune, control weather, insect plague`,attack_bonus:0},{name:"Magic Resistance",desc:"The planetar has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The planetar makes two melee attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 21 (4d6 + 7) slashing damage plus 22 (5d8) radiant damage.",attack_bonus:12,damage_dice:"4d6 + 5d8",damage_bonus:7},{name:"Healing Touch (4/Day)",desc:"The planetar touches another creature. The target magically regains 30 (6d8 + 3) hit points and is freed from any curse, disease, poison, blindness, or deafness.",attack_bonus:0}]},{name:"Plesiosaurus",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:68,hit_dice:"8d10 + 24",speed:"20 ft., swim 40 ft.",stats:[18,15,16,2,12,5],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"2",bestiary:!0,traits:[{name:"Hold Breath",desc:"The plesiosaurus can hold its breath for 1 hour.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 14 (3d6 + 4) piercing damage.",attack_bonus:6,damage_dice:"3d6",damage_bonus:4}]},{name:"Poisonous Snake",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:2,hit_dice:"1d4 + -1",speed:"30 ft., swim 30 ft.",stats:[2,16,11,1,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 10",languages:"",cr:"1/8",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 1 piercing damage, and the target must make a DC 10 Constitution saving throw, taking 5 (2d4) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:5,damage_bonus:1}]},{name:"Polar Bear",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:42,hit_dice:"5d10 + 14",speed:"40 ft., swim 30 ft.",stats:[20,10,16,2,13,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"2",bestiary:!0,traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 9 (1d8 + 5) piercing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:5},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:5}]},{name:"Pony",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:11,hit_dice:"2d8 + 2",speed:"40 ft.",stats:[15,10,13,2,11,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/8",bestiary:!0,actions:[{name:"Hooves",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2}]},{name:"Priest",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:13,hp:27,hit_dice:"5d8 + 4",speed:"25 ft.",stats:[10,10,12,13,16,13],skillsaves:[{medicine:7},{persuasion:3},{religion:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"any two languages",cr:"2",bestiary:!0,traits:[{name:"Divine Eminence",desc:"As a bonus action, the priest can expend a spell slot to cause its melee weapon attacks to magically deal an extra 10 (3d6) radiant damage to a target on a hit. This benefit lasts until the end of the turn. If the priest expends a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each level above 1st.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Mace",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 3 (1d6) bludgeoning damage.",attack_bonus:2,damage_dice:"1d6"}],spells:["The priest is a 5th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 13, +5 to hit with spell attacks). The priest has the following cleric spells prepared:",{"Cantrips (at will)":"light, sacred flame, thaumaturgy"},{"1st level (4 slots)":"cure wounds, guiding bolt, sanctuary"},{"2nd level (3 slots)":"lesser restoration, spiritual weapon"},{"3rd level (2 slots)":"dispel magic, spirit guardians"}]},{name:"Pseudodragon",source:"5e SRD",size:"Tiny",type:"dragon",subtype:"",alignment:"neutral good",ac:13,hp:7,hit_dice:"2d4 + 2",speed:"15 ft., fly 60 ft.",stats:[6,15
Line truncated
|
||||
If the worm takes 30 damage or more on a single turn from a creature inside it, the worm must succeed on a DC 21 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the worm. If the worm dies, a swallowed creature is no longer restrained by it and can escape from the corpse by using 20 feet of movement, exiting prone.`,attack_bonus:9,damage_dice:"3d8",damage_bonus:9},{name:"Tail Stinger",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one creature. Hit: 19 (3d6 + 9) piercing damage, and the target must make a DC 19 Constitution saving throw, taking 42 (12d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:9,damage_dice:"3d6",damage_bonus:9}]},{name:"Quasit",source:"5e SRD",size:"Tiny",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:13,hp:7,hit_dice:"3d4 + -1",speed:"40 ft.",stats:[5,17,10,7,10,10],skillsaves:[{stealth:5}],damage_vulnerabilities:"",damage_resistances:"cold; fire; lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"Abyssal, Common",cr:"1",bestiary:!0,traits:[{name:"Shapechanger",desc:"The quasit can use its action to polymorph into a beast form that resembles a bat (speed 10 ft. fly 40 ft.), a centipede (40 ft., climb 40 ft.), or a toad (40 ft., swim 40 ft.), or back into its true form . Its statistics are the same in each form, except for the speed changes noted. Any equipment it is wearing or carrying isn't transformed . It reverts to its true form if it dies.",attack_bonus:0},{name:"Magic Resistance",desc:"The quasit has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Variant: Familiar",desc:"The quasit can serve another creature as a familiar, forming a telepathic bond with its willing master. While the two are bonded, the master can sense what the quasit senses as long as they are within 1 mile of each other. While the quasit is within 10 feet of its master, the master shares the quasit's Magic Resistance trait. At any time and for any reason, the quasit can end its service as a familiar, ending the telepathic bond.",attack_bonus:0}],actions:[{name:"Claw (Bite in Beast Form)",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft ., one target. Hit: 5 (1d4 + 3) piercing damage, and the target must succeed on a DC 10 Constitution saving throw or take 5 (2d4) poison damage and become poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:4,damage_dice:"1d4",damage_bonus:3},{name:"Scare (1/day)",desc:"One creature of the quasit's choice within 20 ft. of it must succeed on a DC 10 Wisdom saving throw or be frightened for 1 minute. The target can repeat the saving throw at the end of each of its turns, with disadvantage if the quasit is within line of sight, ending the effect on itself on a success.",attack_bonus:0},{name:"Invisibility",desc:"The quasit magically turns invisible until it attacks or uses Scare, or until its concentration ends (as if concentrating on a spell). Any equipment the quasit wears or carries is invisible with it.",attack_bonus:0}]},{name:"Quipper",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:1,hit_dice:"1d4 + -2",speed:"swim 40 ft.",stats:[2,16,9,1,7,2],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 8",languages:"",cr:"0",bestiary:!0,traits:[{name:"Blood Frenzy",desc:"The quipper has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Water Breathing",desc:"The quipper can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:5,damage_bonus:1}]},{name:"Rakshasa",source:"5e SRD",size:"Medium",type:"fiend",subtype:"",alignment:"lawful evil",ac:16,hp:110,hit_dice:"13d8 + 51",speed:"40 ft.",stats:[14,17,18,13,16,20],skillsaves:[{deception:10},{insight:8}],damage_vulnerabilities:"piercing from magic weapons wielded by good creatures",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"Common, Infernal",cr:"13",bestiary:!0,traits:[{name:"Limited Magic Immunity",desc:"The rakshasa can't be affected or detected by spells of 6th level or lower unless it wishes to be. It has advantage on saving throws against all other spells and magical effects.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The rakshasa's innate spellcasting ability is Charisma (spell save DC 18, +10 to hit with spell attacks). The rakshasa can innately cast the folLine truncated
|
||||
|
||||
At will: detect thoughts, disguise self, mage hand, minor illusion
|
||||
3/day each: charm person, detect magic, invisibility, major image, suggestion
|
||||
1/day each: dominate person, fly, plane shift, true seeing`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The rakshasa makes two claw attacks",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) slashing damage, and the target is cursed if it is a creature. The magical curse takes effect whenever the target takes a short or long rest, filling the target's thoughts with horrible images and dreams. The cursed target gains no benefit from finishing a short or long rest. The curse lasts until it is lifted by a remove curse spell or similar magic.",attack_bonus:7,damage_dice:"2d6",damage_bonus:2}]},{name:"Rat",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:1,hit_dice:"1d4 + -2",speed:"20 ft.",stats:[2,11,9,2,10,4],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 10",languages:"",cr:"0",bestiary:!0,traits:[{name:"Keen Smell",desc:"The rat has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:0,damage_bonus:1}]},{name:"Raven",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:1,hit_dice:"1d4 + -2",speed:"10 ft., fly 50 ft.",stats:[2,14,8,2,12,6],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",bestiary:!0,traits:[{name:"Mimicry",desc:"The raven can mimic simple sounds it has heard, such as a person whispering, a baby crying, or an animal chittering. A creature that hears the sounds can tell they are imitations with a successful DC 10 Wisdom (Insight) check.",attack_bonus:0}],actions:[{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:0}]},{name:"Red Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic evil",ac:17,hp:75,hit_dice:"10d8 + 30",speed:"30 ft., climb 30 ft., fly 60 ft.",stats:[19,10,17,12,11,15],saves:[{dexterity:2},{constitution:5},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"4",bestiary:!0,actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (1d10 + 4) piercing damage plus 3 (1d6) fire damage.",attack_bonus:6,damage_dice:"1d10 + 1d6",damage_bonus:4},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon exhales fire in a 15-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 24 (7d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"7d6"}]},{name:"Reef Shark",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"4d8 + 4",speed:"swim 40 ft.",stats:[14,13,13,1,10,4],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 12",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Pack Tactics",desc:"The shark has advantage on an attack roll against a creature if at least one of the shark's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0},{name:"Water Breathing",desc:"The shark can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Remorhaz",source:"5e SRD",size:"Huge",type:"monstrosity",subtype:"",alignment:"unaligned",ac:17,hp:195,hit_dice:"17d12 + 84",speed:"30 ft., burrow 20 ft.",stats:[24,13,21,4,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold, fire",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 10",languages:"",cr:"11",bestiary:!0,traits:[{name:"Heated Body",desc:"A creature that touches the remorhaz or hits it with a melee attack while within 5 feet of it takes 10 (3d6) fire damage.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 40 (6d10 + 7) piercing damage plus 10 (3d6) fire damage. If the target is a creature, it is grappled (escape DC 17). Until this grapple ends, the target is restrained, and the remorhaz can't bite another target.",attack_bonus:11,damage_dice:"6d10 + 3d6",damage_bonus:7},{name:"Swallow",desc:`The remorhaz makes one bite attack against a Medium or smaller creature it is grappling. If the attack hits, that creature takes the bite's damage and is swallowed, andLine truncated
|
||||
If the remorhaz takes 30 damage or more on a single turn from a creature inside it, the remorhaz must succeed on a DC 15 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet oft he remorhaz. If the remorhaz dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 15 feet of movement, exiting prone.`,attack_bonus:0}]},{name:"Rhinoceros",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:45,hit_dice:"6d10 + 12",speed:"40 ft.",stats:[21,8,15,2,12,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"2",bestiary:!0,traits:[{name:"Charge",desc:"If the rhinoceros moves at least 20 ft. straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) bludgeoning damage. If the target is a creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d8"}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:5}]},{name:"Riding Horse",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:13,hit_dice:"2d10 + 2",speed:"60 ft.",stats:[16,10,12,2,11,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",bestiary:!0,actions:[{name:"Hooves",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (2d4 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"2d4",damage_bonus:3}]},{name:"Roc",source:"5e SRD",size:"Gargantuan",type:"monstrosity",subtype:"",alignment:"unaligned",ac:15,hp:248,hit_dice:"16d20 + 80",speed:"20 ft., fly 120 ft.",stats:[28,10,20,3,10,9],saves:[{dexterity:4},{constitution:9},{wisdom:4},{charisma:3}],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"11",bestiary:!0,traits:[{name:"Keen Sight",desc:"The roc has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The roc makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 27 (4d8 + 9) piercing damage.",attack_bonus:13,damage_dice:"4d8",damage_bonus:9},{name:"Talons",desc:"Melee Weapon Attack: +13 to hit, reach 5 ft., one target. Hit: 23 (4d6 + 9) slashing damage, and the target is grappled (escape DC 19). Until this grapple ends, the target is restrained, and the roc can't use its talons on another target.",attack_bonus:13,damage_dice:"4d6",damage_bonus:9}]},{name:"Roper",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:20,hp:93,hit_dice:"11d10 + 32",speed:"10 ft., climb 10 ft.",stats:[18,8,17,7,16,6],skillsaves:[{perception:6},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 16",languages:"",cr:"5",bestiary:!0,traits:[{name:"False Appearance",desc:"While the roper remains motionless, it is indistinguishable from a normal cave formation, such as a stalagmite.",attack_bonus:0},{name:"Grasping Tendrils",desc:"The roper can have up to six tendrils at a time. Each tendril can be attacked (AC 20; 10 hit points; immunity to poison and psychic damage). Destroying a tendril deals no damage to the roper, which can extrude a replacement tendril on its next turn. A tendril can also be broken if a creature takes an action and succeeds on a DC 15 Strength check against it.",attack_bonus:0},{name:"Spider Climb",desc:"The roper can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The roper makes four attacks with its tendrils, uses Reel, and makes one attack with its bite.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 22 (4d8 + 4) piercing damage.",attack_bonus:7,damage_dice:"4d8",damage_bonus:4},{name:"Tendril",desc:"Melee Weapon Attack: +7 to hit, reach 50 ft., one creature. Hit: The target is grappled (escape DC 15). Until the grapple ends, the target is restrained and has disadvantage on Strength checks and Strength saving throws, and the roper can't use the same tendril on another target.",attack_bonus:7},{name:"Reel",desc:"The roper pulls each creature grappled by it up to 25 ft. straight toward it.",attack_bonus:0}]},{name:"Rug of Smothering",source:"5e SRD",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:12,hp:33,hit_dice:"6d10",speed:"10 ft.",stats:[17,14,10,1,3,1],damage_vulnerabilitie
Line truncated
|
||||
If the object touched is either metal armor or a metal shield being worn or carried, its takes a permanent and cumulative -1 penalty to the AC it offers. Armor reduced to an AC of 10 or a shield that drops to a +0 bonus is destroyed. If the object touched is a held metal weapon, it rusts as described in the Rust Metal trait.`,attack_bonus:0}]},{name:"Saber-Toothed Tiger",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:52,hit_dice:"7d10 + 13",speed:"40 ft.",stats:[18,14,15,3,12,8],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"2",bestiary:!0,traits:[{name:"Keen Smell",desc:"The tiger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pounce",desc:"If the tiger moves at least 20 ft. straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the tiger can make one bite attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (1d10 + 5) piercing damage.",attack_bonus:6,damage_dice:"1d10",damage_bonus:5},{name:"Claw",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:5}]},{name:"Sahuagin",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"sahuagin",alignment:"lawful evil",ac:12,hp:22,hit_dice:"4d8 + 4",speed:"30 ft., swim 40 ft.",stats:[13,11,12,12,13,9],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 15",languages:"Sahuagin",cr:"1/2",bestiary:!0,traits:[{name:"Blood Frenzy",desc:"The sahuagin has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Limited Amphibiousness",desc:"The sahuagin can breathe air and water, but it needs to be submerged at least once every 4 hours to avoid suffocating.",attack_bonus:0},{name:"Shark Telepathy",desc:"The sahuagin can magically command any shark within 120 feet of it, using a limited telepathy.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The sahuagin makes two melee attacks: one with its bite and one with its claws or spear.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +3 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d6 + 1) piercing damage, or 5 (1d8 + 1) piercing damage if used with two hands to make a melee attack.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Salamander",source:"5e SRD",size:"Large",type:"elemental",subtype:"",alignment:"neutral evil",ac:15,hp:90,hit_dice:"12d10 + 24",speed:"30 ft.",stats:[18,14,15,11,10,12],damage_vulnerabilities:"cold",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"fire",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Ignan",cr:"5",bestiary:!0,traits:[{name:"Heated Body",desc:"A creature that touches the salamander or hits it with a melee attack while within 5 ft. of it takes 7 (2d6) fire damage.",attack_bonus:0,damage_dice:"2d6"},{name:"Heated Weapons",desc:"Any metal melee weapon the salamander wields deals an extra 3 (1d6) fire damage on a hit (included in the attack).",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The salamander makes two attacks: one with its spear and one with its tail.",attack_bonus:0},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +7 to hit, reach 5 ft. or range 20 ft./60 ft., one target. Hit: 11 (2d6 + 4) piercing damage, or 13 (2d8 + 4) piercing damage if used with two hands to make a melee attack, plus 3 (1d6) fire damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Tail",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage plus 7 (2d6) fire damage, and the target is grappled (escape DC 14). Until this grapple ends, the target is restrained, the salamander can automatically hit the target with its tail, and the salamander can't make tail attacks against other targets.",attack_bonus:7,damage_dice:"2d6 + 2d6",damage_bonus:4}]},{name:"Satyr",source:"5e SRD",size:"Medium",type:"fey",subtype:"",alignment:"chaotic neutral",ac:14,hp:31,hit_dice:"7d8 + -1",speed:"40 ft.",stats:[12,16,11,12,10,14],skillsaves:[{perception:2},{performance:6},{stealth:5}],damage_vulnerabilities:"",damage_resista
Line truncated
|
||||
Unless the target is surprised or the revelation of the hag's true form is sudden, the target can avert its eyes and avoid making the initial saving throw. Until the start of its next turn, a creature that averts its eyes has disadvantage on attack rolls against the hag.`,attack_bonus:0},{name:"Hag Coven",desc:`When hags must work together, they form covens, in spite of their selfish natures. A coven is made up of hags of any type, all of whom are equals within the group. However, each of the hags continues to desire more personal power.
|
||||
A coven consists of three hags so that any arguments between two hags can be settled by the third. If more than three hags ever come together, as might happen if two covens come into conflict, the result is usually chaos.`,attack_bonus:0},{name:"Shared Spellcasting (Coven Only)",desc:`While all three members of a hag coven are within 30 feet of one another, they can each cast the following spells from the wizard's spell list but must share the spell slots among themselves:
|
||||
|
||||
\u2022 1st level (4 slots): identify, ray of sickness
|
||||
\u2022 2nd level (3 slots): hold person, locate object
|
||||
\u2022 3rd level (3 slots): bestow curse, counterspell, lightning bolt
|
||||
\u2022 4th level (3 slots): phantasmal killer, polymorph
|
||||
\u2022 5th level (2 slots): contact other plane, scrying
|
||||
\u2022 6th level (1 slot): eye bite
|
||||
|
||||
For casting these spells, each hag is a 12th-level spellcaster that uses Intelligence as her spellcasting ability. The spell save DC is 12+the hag's Intelligence modifier, and the spell attack bonus is 4+the hag's Intelligence modifier.`,attack_bonus:0},{name:"Hag Eye (Coven Only)",desc:`A hag coven can craft a magic item called a hag eye, which is made from a real eye coated in varnish and often fitted to a pendant or other wearable item. The hag eye is usually entrusted to a minion for safekeeping and transport. A hag in the coven can take an action to see what the hag eye sees if the hag eye is on the same plane of existence. A hag eye has AC 10, 1 hit point, and darkvision with a radius of 60 feet. If it is destroyed, each coven member takes 3d10 psychic damage and is blinded for 24 hours.
|
||||
A hag coven can have only one hag eye at a time, and creating a new one requires all three members of the coven to perform a ritual. The ritual takes 1 hour, and the hags can't perform it while blinded. During the ritual, if the hags take any action other than performing the ritual, they must start over.`,attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Death Glare",desc:"The hag targets one frightened creature she can see within 30 ft. of her. If the target can see the hag, it must succeed on a DC 11 Wisdom saving throw against this magic or drop to 0 hit points.",attack_bonus:0},{name:"Illusory Appearance",desc:`The hag covers herself and anything she is wearing or carrying with a magical illusion that makes her look like an ugly creature of her general size and humanoid shape. The effect ends if the hag takes a bonus action to end it or if she dies.
|
||||
The changes wrought by this effect fail to hold up to physical inspection. For example, the hag could appear to have no claws, but someone touching her hand might feel the claws. Otherwise, a creature must take an action to visually inspect the illusion and succeed on a DC 16 Intelligence (Investigation) check to discern that the hag is disguised.`,attack_bonus:0}]},{name:"Sea Horse",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"swim 20 ft.",stats:[1,12,8,1,10,2],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"0",bestiary:!0,traits:[{name:"Water Breathing",desc:"The sea horse can breathe only underwater.",attack_bonus:0}]},{name:"Shadow",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:12,hp:16,hit_dice:"3d8 + 2",speed:"40 ft.",stats:[6,14,13,6,10,8],skillsaves:[{stealth:4}],damage_vulnerabilities:"radiant",damage_resistances:"acid, cold, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"necrotic, poison",condition_immunities:"exhaustion, frightened, grappled, paralyzed, petrified, poisoned, prone, restrained",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Amorphous",desc:"The shadow can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Shadow Stealth",desc:"While in dim light or darkness, the shadow can take the Hide action as a bonus action. Its stealth bonus is also improved to +6.",attack_bonus:0},{name:"Sunlight Weakness",desc:"While in sunlight, the shadow has disadvantage on attack rolls, ability checks, and saving throws.",attack_bonus:0}],actions:[{name:"Strength Drain",desc:`Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 9 (2d6 + 2) necrotic damage, and the target's Strength score is reduced by 1d4. The target dies if this reduces its Strength to 0. Otherwise, the reduction lasts until the target finishes a short or long rest.
|
||||
If a non-evil humanoid dies from this attack, a new shadow rises from the corpse 1d4 hours later.`,attack_bonus:4,damage_dice:"2d6",damage_bonus:2}]},{name:"Shambling Mound",source:"5e SRD",size:"Large",type:"plant",subtype:"",alignment:"unaligned",ac:15,hp:136,hit_dice:"16d10 + 48",speed:"20 ft., swim 20 ft.",stats:[18,8,16,5,10,5],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"cold, fire",damage_immunities:"lightning",condition_immunities:"blinded, deafened, exhaustion",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 10",languages:"",cr:"5",bestiary:!0,traits:[{name:"Lightning Absorption",desc:"Whenever the shambling mound is subjected to lightning damage, it takes no damage and regains a number of hit points equal to the lightning damage dealt.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The shambling mound makes two slam attacks. If both attacks hit a Medium or smaller target, the target is grappled (escape DC 14), and the shambling mound uses its Engulf on it.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Engulf",desc:"The shambling mound engulfs a Medium or smaller creature grappled by it. The engulfed target is blinded, restrained, and unable to breathe, and it must succeed on a DC 14 Constitution saving throw at the start of each of the mound's turns or take 13 (2d8 + 4) bludgeoning damage. If the mound moves, the engulfed target moves with it. The mound can have only one creature engulfed at a time.",attack_bonus:0}]},{name:"Shield Guardian",source:"5e SRD",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:17,hp:142,hit_dice:"15d10 + 59",speed:"30 ft.",stats:[18,8,18,7,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, exhaustion, frightened, paralyzed, poisoned",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 10",languages:"understands commands given in any language but can't speak",cr:"7",bestiary:!0,traits:[{name:"Bound",desc:"The shield guardian is magically bound to an amulet. As long as the guardian and its amulet are on the same plane of existence, the amulet's wearer can telepathically call the guardian to travel to it, and the guardian knows the distance and direction to the amulet. If the guardian is within 60 feet of the amulet's wearer, half of any damage the wearer takes (rounded up) is transferred to the guardian.",attack_bonus:0},{name:"Regeneration",desc:"The shield guardian regains 10 hit points at the start of its turn if it has at least 1 hit. point.",attack_bonus:0},{name:"Spell Storing",desc:"A spellcaster who wears the shield guardian's amulet can cause the guardian to store one spell of 4th level or lower. To do so, the wearer must cast the spell on the guardian. The spell has no effect but is stored within the guardian. When commanded to do so by the wearer or when a situation arises that was predefined by the spellcaster, the guardian casts the stored spell with any parameters set by the original caster, requiring no components. When the spell is cast or a new spell is stored, any previously stored spell is lost.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The guardian makes two fist attacks.",attack_bonus:0},{name:"Fist",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4}],reactions:[{name:"Shield",desc:"When a creature makes an attack against the wearer of the guardian's amulet, the guardian grants a +2 bonus to the wearer's AC if the guardian is within 5 feet of the wearer.",attack_bonus:0}]},{name:"Shrieker",source:"5e SRD",size:"Medium",type:"plant",subtype:"",alignment:"unaligned",ac:5,hp:13,hit_dice:"3d8 + -1",speed:"0 ft.",stats:[1,1,10,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"blinded, deafened, frightened",senses:"blindsight 30 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"0",bestiary:!0,traits:[{name:"False Appearance",desc:"While the shrieker remains motionless, it is indistinguishable from an ordinary fungus.",attack_bonus:0}],actions:[{name:"Shriek",desc:"When bright light or a creature is within 30 feet of the shrieker, it emits a shriek audible within 300 feet of it. The shrieker continues to shriek until the disturbance moves out of range and for 1d4 of the shrieker's turns afterward",attack_bonus:0}]},{name:"Silver Dragon Wyrmling",source:"5e SRD",size:"Medium",type:"dragon",subtype:"",alignment:"lawful good",ac:17,hp:45,hit_dice:"6d8 + 18",speed:"30 ft., fly 60 ft.",stats:[19,10,17,12,11,15],saves:[{dexterity:2},{constitution:5},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immuni
Line truncated
|
||||
Cold Breath. The dragon exhales an icy blast in a 15-foot cone. Each creature in that area must make a DC 13 Constitution saving throw, taking 18 (4d8) cold damage on a failed save, or half as much damage on a successful one.
|
||||
Paralyzing Breath. The dragon exhales paralyzing gas in a 15-foot cone. Each creature in that area must succeed on a DC 13 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"4d8"}]},{name:"Skeleton",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"lawful evil",ac:13,hp:13,hit_dice:"2d8 + 4",speed:"30 ft.",stats:[10,14,15,6,8,5],damage_vulnerabilities:"bludgeoning",damage_resistances:"",damage_immunities:"",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"understands all languages it spoke in life but can't speak",cr:"1/4",bestiary:!0,actions:[{name:"Shortsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Shortbow",desc:"Ranged Weapon Attack: +4 to hit, range 80/320 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Solar",source:"5e SRD",size:"Large",type:"celestial",subtype:"",alignment:"lawful good",ac:21,hp:243,hit_dice:"18d10 + 144",speed:"50 ft., fly 150 ft.",stats:[26,22,26,25,25,30],saves:[{intelligence:14},{wisdom:14},{charisma:17}],skillsaves:[{perception:14}],damage_vulnerabilities:"",damage_resistances:"radiant; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"necrotic, poison",condition_immunities:"charmed, exhaustion, frightened, poisoned",senses:"truesight 120 ft., passive Perception 24",languages:"all, telepathy 120 ft.",cr:"21",bestiary:!0,traits:[{name:"Angelic Weapons",desc:"The solar's weapon attacks are magical. When the solar hits with any weapon, the weapon deals an extra 6d8 radiant damage (included in the attack).",attack_bonus:0},{name:"Divine Awareness",desc:"The solar knows if it hears a lie.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The solar's spell casting ability is Charisma (spell save DC 25). It can innately cast the following spells, requiring no material components:
|
||||
At will: detect evil and good, invisibility (self only)
|
||||
3/day each: blade barrier, dispel evil and good, resurrection
|
||||
1/day each: commune, control weather`,attack_bonus:0},{name:"Magic Resistance",desc:"The solar has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The solar makes two greatsword attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +15 to hit, reach 5 ft., one target. Hit: 22 (4d6 + 8) slashing damage plus 27 (6d8) radiant damage.",attack_bonus:15,damage_dice:"4d6 + 6d8",damage_bonus:8},{name:"Slaying Longbow",desc:"Ranged Weapon Attack: +13 to hit, range 150/600 ft., one target. Hit: 15 (2d8 + 6) piercing damage plus 27 (6d8) radiant damage. If the target is a creature that has 190 hit points or fewer, it must succeed on a DC 15 Constitution saving throw or die.",attack_bonus:13,damage_dice:"2d8 + 6d8",damage_bonus:6},{name:"Flying Sword",desc:"The solar releases its greatsword to hover magically in an unoccupied space within 5 ft. of it. If the solar can see the sword, the solar can mentally command it as a bonus action to fly up to 50 ft. and either make one attack against a target or return to the solar's hands. If the hovering sword is targeted by any effect, the solar is considered to be holding it. The hovering sword falls if the solar dies.",attack_bonus:0},{name:"Healing Touch (4/Day)",desc:"The solar touches another creature. The target magically regains 40 (8d8 + 4) hit points and is freed from any curse, disease, poison, blindness, or deafness.",attack_bonus:0}],legendary_actions:[{name:"Teleport",desc:"The solar magically teleports, along with any equipment it is wearing or carrying, up to 120 ft. to an unoccupied space it can see.",attack_bonus:0},{name:"Searing Burst (Costs 2 Actions)",desc:"The solar emits magical, divine energy. Each creature of its choice in a 10 -foot radius must make a DC 23 Dexterity saving throw, taking 14 (4d6) fire damage plus 14 (4d6) radiant damage on a failed save, or half as much damage on a successful one.",attack_bonus:0},{name:"Blinding Gaze (Costs 3 Actions)",desc:"The solar targets one creature it can see within 30 ft. of it. If the target can see it, the target must succeed on a DC 15 Constitution saving throw or be blinded until magic such as the lesser restoration spell removes the blindness.",attack_bonus:0}]},{name:"Specter",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"0 ft., fly 50 ft. (hover)",stats:[1,14,11,10,10,11],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"necrotic, poison",condition_immunities:"charmed, exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"understands all languages it knew in life but can't speak",cr:"1",bestiary:!0,traits:[{name:"Incorporeal Movement",desc:"The specter can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the specter has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Life Drain",desc:"Melee Spell Attack: +4 to hit, reach 5 ft., one creature. Hit: 10 (3d6) necrotic damage. The target must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:4,damage_dice:"3d6"}]},{name:"Spider",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:1,hit_dice:"1d4 + -2",speed:"20 ft., climb 20 ft.",stats:[2,14,8,1,10,2],skillsaves:[{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 12",languages:"",cr:"0",bestiary:!0,traits:[{name:"Spider Climb",desc:"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The spider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 1 piercing damage, and the target must succeed on a DC 9 Constitution saving throw or take 2 (1d4) poison damage.",attack_bonus:4,damage_bonus:1}]},{name:"Spirit Naga",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:15,hp:75,hit_dice:"10d10 + 20",speed:"40 ft.",stats:[18,17,14,16,15,16],saves:[{dexterity:6},{constitutio
Line truncated
|
||||
The stirge can detach itself by spending 5 feet of its movement. It does so after it drains 10 hit points of blood from the target or the target dies. A creature, including the target, can use its action to detach the stirge.`,attack_bonus:5,damage_dice:"1d4",damage_bonus:3}]},{name:"Stone Giant",source:"5e SRD",size:"Huge",type:"giant",subtype:"",alignment:"neutral",ac:17,hp:126,hit_dice:"11d12 + 54",speed:"40 ft.",stats:[23,15,20,10,12,9],saves:[{dexterity:5},{constitution:8},{wisdom:4}],skillsaves:[{athletics:12},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Giant",cr:"7",bestiary:!0,traits:[{name:"Stone Camouflage",desc:"The giant has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The giant makes two greatclub attacks.",attack_bonus:0},{name:"Greatclub",desc:"Melee Weapon Attack: +9 to hit, reach 15 ft., one target. Hit: 19 (3d8 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"3d8",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +9 to hit, range 60/240 ft., one target. Hit: 28 (4d10 + 6) bludgeoning damage. If the target is a creature, it must succeed on a DC 17 Strength saving throw or be knocked prone.",attack_bonus:9,damage_dice:"4d10",damage_bonus:6}],reactions:[{name:"Rock Catching",desc:"If a rock or similar object is hurled at the giant, the giant can, with a successful DC 10 Dexterity saving throw, catch the missile and take no bludgeoning damage from it.",attack_bonus:0}]},{name:"Stone Golem",source:"5e SRD",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:17,hp:178,hit_dice:"17d10 + 84",speed:"30 ft.",stats:[22,9,20,3,11,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",condition_immunities:"charmed, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"understands the languages of its creator but can't speak",cr:"10",bestiary:!0,traits:[{name:"Immutable Form",desc:"The golem is immune to any spell or effect that would alter its form.",attack_bonus:0},{name:"Magic Resistance",desc:"The golem has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The golem's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The golem makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 19 (3d8 + 6) bludgeoning damage.",attack_bonus:10,damage_dice:"3d8",damage_bonus:6},{name:"Slow (Recharge 5-6)",desc:"The golem targets one or more creatures it can see within 10 ft. of it. Each target must make a DC 17 Wisdom saving throw against this magic. On a failed save, a target can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the target can take either an action or a bonus action on its turn, not both. These effects last for 1 minute. A target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0}]},{name:"Storm Giant",source:"5e SRD",size:"Huge",type:"giant",subtype:"",alignment:"chaotic good",ac:16,hp:230,hit_dice:"20d12 + 100",speed:"50 ft., swim 50 ft.",stats:[29,14,20,16,18,18],saves:[{strength:14},{constitution:10},{wisdom:9},{charisma:9}],skillsaves:[{arcana:8},{athletics:14},{history:8},{perception:9}],damage_vulnerabilities:"",damage_resistances:"cold",damage_immunities:"lightning, thunder",condition_immunities:"",senses:"passive Perception 19",languages:"Common, Giant",cr:"13",bestiary:!0,traits:[{name:"Amphibious",desc:"The giant can breathe air and water.",attack_bonus:0},{name:"Innate Spellcasting",desc:`The giant's innate spellcasting ability is Charisma (spell save DC 17). It can innately cast the following spells, requiring no material components:
|
||||
|
||||
At will: detect magic, feather fall, levitate, light
|
||||
3/day each: control weather, water breathing`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The giant makes two greatsword attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 30 (6d6 + 9) slashing damage.",attack_bonus:14,damage_dice:"6d6",damage_bonus:9},{name:"Rock",desc:"Ranged Weapon Attack: +14 to hit, range 60/240 ft., one target. Hit: 35 (4d12 + 9) bludgeoning damage.",attack_bonus:14,damage_dice:"4d12",damage_bonus:9},{name:"Lightning Strike (Recharge 5-6)",desc:"The giant hurls a magical lightning bolt at a point it can see within 500 feet of it. Each creature within 10 feet of that point must make a DC 17 Dexterity saving throw, taking 54 (12d8) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d8"}]},{name:"Succubus/Incubus",source:"5e SRD",size:"Medium",type:"fiend",subtype:"shapechanger",alignment:"neutral evil",ac:15,hp:66,hit_dice:"12d8 + 12",speed:"30 ft., fly 60 ft.",stats:[8,17,13,15,12,20],skillsaves:[{deception:9},{insight:5},{perception:5},{persuasion:9},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning, poison; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"Abyssal, Common, Infernal, telepathy 60 ft.",cr:"4",bestiary:!0,traits:[{name:"Telepathic Bond",desc:"The fiend ignores the range restriction on its telepathy when communicating with a creature it has charmed. The two don't even need to be on the same plane of existence.",attack_bonus:0},{name:"Shapechanger",desc:"The fiend can use its action to polymorph into a Small or Medium humanoid, or back into its true form. Without wings, the fiend loses its flying speed. Other than its size and speed, its statistics are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0}],actions:[{name:"Claw (Fiend Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Charm",desc:`One humanoid the fiend can see within 30 feet of it must succeed on a DC 15 Wisdom saving throw or be magically charmed for 1 day. The charmed target obeys the fiend's verbal or telepathic commands. If the target suffers any harm or receives a suicidal command, it can repeat the saving throw, ending the effect on a success. If the target successfully saves against the effect, or if the effect on it ends, the target is immune to this fiend's Charm for the next 24 hours.
|
||||
The fiend can have only one target charmed at a time. If it charms another, the effect on the previous target ends.`,attack_bonus:0},{name:"Draining Kiss",desc:"The fiend kisses a creature charmed by it or a willing creature. The target must make a DC 15 Constitution saving throw against this magic, taking 32 (5d10 + 5) psychic damage on a failed save, or half as much damage on a successful one. The target's hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:0,damage_dice:"5d10",damage_bonus:5},{name:"Etherealness",desc:"The fiend magically enters the Ethereal Plane from the Material Plane, or vice versa.",attack_bonus:0}]},{name:"Swarm of Bats",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"0 ft., fly 30 ft.",stats:[5,15,10,2,12,4],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 60 ft., passive Perception 11",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Echolocation",desc:"The swarm can't use its blindsight while deafened.",attack_bonus:0},{name:"Keen Hearing",desc:"The swarm has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0},{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny bat. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +4 to hit, reach 0 ft., one creature in the swarm's space. Hit: 5 (2d4) piercing damage, or 2 (1d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:4,damage_dice:"2d4"}]},{name:"Swarm of Beetles",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., burrow 5 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Centipedes",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:`Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.
|
||||
A creature reduced to 0 hit points by a swarm of centipedes is stable but poisoned for 1 hour, even after regaining hit points, and paralyzed while poisoned in this way.`,attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Insects",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Poisonous Snakes",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:14,hp:36,hit_dice:"8d8",speed:"30 ft., swim 30 ft.",stats:[8,18,11,1,10,3],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 10",languages:"",cr:"2",bestiary:!0,traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny snake. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +6 to hit, reach 0 ft., one creature in the swarm's space. Hit: 7 (2d6) piercing damage, or 3 (1d6) piercing damage if the swarm has half of its hit points or fewer. The target must make a DC 10 Constitution saving throw, taking 14 (4d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:6,damage_dice:"2d6"}]},{name:"Swarm of Quippers",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:13,hp:28,hit_dice:"8d8 + -8",speed:"0 ft., swim 40 ft.",stats:[13,16,9,1,7,2],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"darkvision 60 ft., passive Perception 8",languages:"",cr:"1",bestiary:!0,traits:[{name:"Blood Frenzy",desc:"The swarm has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny quipper. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0},{name:"Water Breathing",desc:"The swarm can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +5 to hit, reach 0 ft., one creature in the swarm's space. Hit: 14 (4d6) piercing damage, or 7 (2d6) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:5,damage_dice:"4d6"}]},{name:"Swarm of Rats",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:10,hp:24,hit_dice:"7d8 + -8",speed:"30 ft.",stats:[9,11,9,2,10,3],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"darkvision 30 ft., passive Perception 10",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Keen Smell",desc:"The swarm has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny rat. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +2 to hit, reach 0 ft., one target in the swarm's space. Hit: 7 (2d6) piercing damage, or 3 (1d6) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:2,damage_dice:"2d6"}]},{name:"Swarm of Ravens",source:"5e SRD",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:24,hit_dice:"7d8 + -8",speed:"10 ft., fly 50 ft.",stats:[6,14,8,3,12,6],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, pro
Line truncated
|
||||
If the tarrasque takes 60 damage or more on a single turn from a creature inside it, the tarrasque must succeed on a DC 20 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the tarrasque. If the tarrasque dies, a swallowed creature is no longer restrained by it and can escape from the corpse by using 30 feet of movement, exiting prone.`,attack_bonus:0}],legendary_actions:[{name:"Attack",desc:"The tarrasque makes one claw attack or tail attack.",attack_bonus:0},{name:"Move",desc:"The tarrasque moves up to half its speed.",attack_bonus:0},{name:"Chomp (Costs 2 Actions)",desc:"The tarrasque makes one bite attack or uses its Swallow.",attack_bonus:0}]},{name:"Thug",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:11,hp:32,hit_dice:"5d8 + 9",speed:"30 ft.",stats:[15,11,14,10,10,11],skillsaves:[{intimidation:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"1/2",bestiary:!0,traits:[{name:"Pack Tactics",desc:"The thug has advantage on an attack roll against a creature if at least one of the thug's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The thug makes two melee attacks.",attack_bonus:0},{name:"Mace",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Heavy Crossbow",desc:"Ranged Weapon Attack: +2 to hit, range 100/400 ft., one target. Hit: 5 (1d10) piercing damage.",attack_bonus:2,damage_dice:"1d10"}]},{name:"Tiger",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:37,hit_dice:"5d10 + 9",speed:"40 ft.",stats:[17,15,14,3,12,8],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"1",bestiary:!0,traits:[{name:"Keen Smell",desc:"The tiger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pounce",desc:"If the tiger moves at least 20 ft. straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the tiger can make one bite attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Claw",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage.",attack_bonus:0}]},{name:"Treant",source:"5e SRD",size:"Huge",type:"plant",subtype:"",alignment:"chaotic good",ac:16,hp:138,hit_dice:"12d12 + 60",speed:"30 ft.",stats:[23,8,21,12,16,12],damage_vulnerabilities:"fire",damage_resistances:"bludgeoning, piercing",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"Common, Druidic, Elvish, Sylvan",cr:"9",bestiary:!0,traits:[{name:"False Appearance",desc:"While the treant remains motionless, it is indistinguishable from a normal tree.",attack_bonus:0},{name:"Siege Monster",desc:"The treant deals double damage to objects and structures.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The treant makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 16 (3d6 + 6) bludgeoning damage.",attack_bonus:10,damage_dice:"3d6",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +10 to hit, range 60/180 ft., one target. Hit: 28 (4d10 + 6) bludgeoning damage.",attack_bonus:10,damage_dice:"4d10",damage_bonus:6},{name:"Animate Trees (1/Day)",desc:"The treant magically animates one or two trees it can see within 60 feet of it. These trees have the same statistics as a treant, except they have Intelligence and Charisma scores of 1, they can't speak, and they have only the Slam action option. An animated tree acts as an ally of the treant. The tree remains animate for 1 day or until it dies; until the treant dies or is more than 120 feet from the tree; or until the treant takes a bonus action to turn it back into an inanimate tree. The tree then takes root if possible.",attack_bonus:0}]},{name:"Tribal Warrior",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:12,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[13,11,12,8,11,8],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language",cr:"1/8",bestiary:!0,traits:[{name:"Pack Tactics",desc:"The warrior has advantage on an attack roll against a creature if at least
Line truncated
|
||||
1-10: Nothing else happens.
|
||||
11-14: One leg is severed from the troll if it has any legs left.
|
||||
15- 18: One arm is severed from the troll if it has any arms left.
|
||||
19-20: The troll is decapitated, but the troll dies only if it can't regenerate. If it dies, so does the severed head.
|
||||
If the troll finishes a short or long rest without reattaching a severed limb or head, the part regrows. At that point, the severed part dies. Until then, a severed part acts on the troll's initiative and has its own action and movement. A severed part has AC 13, 10 hit points, and the troll's Regeneration trait.
|
||||
A severed leg is unable to attack and has a speed of 5 feet.
|
||||
A severed arm has a speed of 5 feet and can make one claw attack on its turn, with disadvantage on the attack roll unless the troll can see the arm and its target. Each time the troll loses an arm, it loses a claw attack.
|
||||
If its head is severed, the troll loses its bite attack and its body is blinded unless the head can see it. The severed head has a speed of 0 feet and the troll's Keen Smell trait. It can make a bite attack but only against a target in its space.
|
||||
The troll's speed is halved if it's missing a leg. If it loses both legs, it falls prone. If it has both arms, it can crawl. With only one arm, it can still crawl, but its speed is halved. With no arms or legs, its speed is 0, and it can't benefit from bonuses to speed.`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The troll makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 7 (1d6 + 4) piercing damage.",attack_bonus:7,damage_dice:"1d6",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4}]},{name:"Tyrannosaurus Rex",source:"5e SRD",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:136,hit_dice:"13d12 + 51",speed:"50 ft.",stats:[25,10,19,2,12,9],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"8",bestiary:!0,actions:[{name:"Multiattack",desc:"The tyrannosaurus makes two attacks: one with its bite and one with its tail. It can't make both attacks against the same target.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 33 (4d12 + 7) piercing damage. If the target is a Medium or smaller creature, it is grappled (escape DC 17). Until this grapple ends, the target is restrained, and the tyrannosaurus can't bite another target.",attack_bonus:10,damage_dice:"4d12",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 20 (3d8 + 7) bludgeoning damage.",attack_bonus:10,damage_dice:"3d8",damage_bonus:7}]},{name:"Unicorn",source:"5e SRD",size:"Large",type:"celestial",subtype:"",alignment:"lawful good",ac:12,hp:67,hit_dice:"9d10 + 17",speed:"50 ft.",stats:[18,14,15,11,17,16],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, paralyzed, poisoned",senses:"darkvision 60 ft., passive Perception 13",languages:"Celestial, Elvish, Sylvan, telepathy 60 ft.",cr:"5",bestiary:!0,traits:[{name:"Charge",desc:"If the unicorn moves at least 20 ft. straight toward a target and then hits it with a horn attack on the same turn, the target takes an extra 9 (2d8) piercing damage. If the target is a creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d8"},{name:"Innate Spellcasting",desc:`The unicorn's innate spellcasting ability is Charisma (spell save DC 14). The unicorn can innately cast the following spells, requiring no components:
|
||||
|
||||
At will: detect evil and good, druidcraft, pass without trace
|
||||
1/day each: calm emotions, dispel evil and good, entangle`,attack_bonus:0},{name:"Magic Resistance",desc:"The unicorn has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The unicorn's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The unicorn makes two attacks: one with its hooves and one with its horn.",attack_bonus:0},{name:"Hooves",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft ., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Horn",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft ., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:4},{name:"Healing Touch (3/Day)",desc:"The unicorn touches another creature with its horn. The target magically regains 11 (2d8 + 2) hit points. In addition, the touch removes all diseases and neutralizes all poisons afflicting the target.",attack_bonus:0},{name:"Teleport (1/Day)",desc:"The unicorn magically teleports itself and up to three willing creatures it can see within 5 ft. of it, along with any equipment they are wearing or carrying, to a location the unicorn is familiar with, up to 1 mile away.",attack_bonus:0}],legendary_actions:[{name:"Hooves",desc:"The unicorn makes one attack with its hooves.",attack_bonus:0},{name:"Shimmering Shield (Costs 2 Actions)",desc:"The unicorn creates a shimmering, magical field around itself or another creature it can see within 60 ft. of it. The target gains a +2 bonus to AC until the end of the unicorn's next turn.",attack_bonus:0},{name:"Heal Self (Costs 3 Actions)",desc:"The unicorn magically regains 11 (2d8 + 2) hit points.",attack_bonus:0}]},{name:"Vampire",source:"5e SRD",size:"Medium",type:"undead",subtype:"shapechanger",alignment:"lawful evil",ac:16,hp:144,hit_dice:"17d8 + 67",speed:"30 ft.",stats:[18,18,18,17,15,18],saves:[{dexterity:9},{wisdom:7},{charisma:9}],skillsaves:[{perception:7},{stealth:9}],damage_vulnerabilities:"",damage_resistances:"necrotic; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 17",languages:"the languages it knew in life",cr:"13",bestiary:!0,traits:[{name:"Shapechanger",desc:`If the vampire isn't in sun light or running water, it can use its action to polymorph into a Tiny bat or a Medium cloud of mist, or back into its true form.
|
||||
While in bat form, the vampire can't speak, its walking speed is 5 feet, and it has a flying speed of 30 feet. Its statistics, other than its size and speed, are unchanged. Anything it is wearing transforms with it, but nothing it is carrying does. It reverts to its true form if it dies.
|
||||
While in mist form, the vampire can't take any actions, speak, or manipulate objects. It is weightless, has a flying speed of 20 feet, can hover, and can enter a hostile creature's space and stop there. In addition, if air can pass through a space, the mist can do so without squeezing, and it can't pass through water. It has advantage on Strength, Dexterity, and Constitution saving throws, and it is immune to all nonmagical damage, except the damage it takes from sunlight.`,attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the vampire fails a saving throw, it can choose to succeed instead.",attack_bonus:0},{name:"Misty Escape",desc:`When it drops to 0 hit points outside its resting place, the vampire transforms into a cloud of mist (as in the Shapechanger trait) instead of falling unconscious, provided that it isn't in sunlight or running water. If it can't transform, it is destroyed.
|
||||
While it has 0 hit points in mist form, it can't revert to its vampire form, and it must reach its resting place within 2 hours or be destroyed. Once in its resting place, it reverts to its vampire form. It is then paralyzed until it regains at least 1 hit point. After spending 1 hour in its resting place with 0 hit points, it regains 1 hit point.`,attack_bonus:0},{name:"Regeneration",desc:"The vampire regains 20 hit points at the start of its turn if it has at least 1 hit point and isn't in sunlight or running water. If the vampire takes radiant damage or damage from holy water, this trait doesn't function at the start of the vampire's next turn.",attack_bonus:0},{name:"Spider Climb",desc:"The vampire can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Vampire Weaknesses",desc:`The vampire has the following flaws:
|
||||
Forbiddance. The vampire can't enter a residence without an invitation from one of the occupants.
|
||||
Harmed by Running Water. The vampire takes 20 acid damage if it ends its turn in running water.
|
||||
Stake to the Heart. If a piercing weapon made of wood is driven into the vampire's heart while the vampire is incapacitated in its resting place, the vampire is paralyzed until the stake is removed.
|
||||
Sunlight Hypersensitivity. The vampire takes 20 radiant damage when it starts its turn in sunlight. While in sunlight, it has disadvantage on attack rolls and ability checks.`,attack_bonus:0}],actions:[{name:"Multiattack (Vampire Form Only)",desc:"The vampire makes two attacks, only one of which can be a bite attack.",attack_bonus:0},{name:"Unarmed Strike (Vampire Form Only)",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one creature. Hit: 8 (1d8 + 4) bludgeoning damage. Instead of dealing damage, the vampire can grapple the target (escape DC 18).",attack_bonus:9,damage_dice:"1d8",damage_bonus:4},{name:"Bite (Bat or Vampire Form Only)",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one willing creature, or a creature that is grappled by the vampire, incapacitated, or restrained. Hit: 7 (1d6 + 4) piercing damage plus 10 (3d6) necrotic damage. The target's hit point maximum is reduced by an amount equal to the necrotic damage taken, and the vampire regains hit points equal to that amount. The reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0. A humanoid slain in this way and then buried in the ground rises the following night as a vampire spawn under the vampire's control.",attack_bonus:9,damage_dice:"1d6 + 3d6",damage_bonus:4},{name:"Charm",desc:`The vampire targets one humanoid it can see within 30 ft. of it. If the target can see the vampire, the target must succeed on a DC 17 Wisdom saving throw against this magic or be charmed by the vampire. The charmed target regards the vampire as a trusted friend to be heeded and protected. Although the target isn't under the vampire's control, it takes the vampire's requests or actions in the most favorable way it can, and it is a willing target for the vampire's bit attack.
|
||||
Each time the vampire or the vampire's companions do anything harmful to the target, it can repeat the saving throw, ending the effect on itself on a success. Otherwise, the effect lasts 24 hours or until the vampire is destroyed, is on a different plane of existence than the target, or takes a bonus action to end the effect.`,attack_bonus:0},{name:"Children of the Night (1/Day)",desc:"The vampire magically calls 2d4 swarms of bats or rats, provided that the sun isn't up. While outdoors, the vampire can call 3d6 wolves instead. The called creatures arrive in 1d4 rounds, acting as allies of the vampire and obeying its spoken commands. The beasts remain for 1 hour, until the vampire dies, or until the vampire dismisses them as a bonus action.",attack_bonus:0}],legendary_actions:[{name:"Move",desc:"The vampire moves up to its speed without provoking opportunity attacks.",attack_bonus:0},{name:"Unarmed Strike",desc:"The vampire makes one unarmed strike.",attack_bonus:0},{name:"Bite (Costs 2 Actions)",desc:"The vampire makes one bite attack.",attack_bonus:0}]},{name:"Vampire Spawn",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"neutral evil",ac:15,hp:82,hit_dice:"11d8 + 32",speed:"30 ft.",stats:[16,16,16,11,10,12],saves:[{dexterity:6},{wisdom:3}],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"necrotic; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"the languages it knew in life",cr:"5",bestiary:!0,traits:[{name:"Regeneration",desc:"The vampire regains 10 hit points at the start of its turn if it has at least 1 hit point and isn't in sunlight or running water. If the vampire takes radiant damage or damage from holy water, this trait doesn't function at the start of the vampire's next turn.",attack_bonus:0},{name:"Spider Climb",desc:"The vampire can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Vampire Weaknesses",desc:`The vampire has the following flaws:
|
||||
Forbiddance. The vampire can't enter a residence without an invitation from one of the occupants.
|
||||
Harmed by Running Water. The vampire takes 20 acid damage when it ends its turn in running water.
|
||||
Stake to the Heart. The vampire is destroyed if a piercing weapon made of wood is driven into its heart while it is incapacitated in its resting place.
|
||||
Sunlight Hypersensitivity. The vampire takes 20 radiant damage when it starts its turn in sunlight. While in sunlight, it has disadvantage on attack rolls and ability checks.`,attack_bonus:0}],actions:[{name:"Multiattack",desc:"The vampire makes two attacks, only one of which can be a bite attack.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one willing creature, or a creature that is grappled by the vampire, incapacitated, or restrained. Hit: 6 (1d6 + 3) piercing damage plus 7 (2d6) necrotic damage. The target's hit point maximum is reduced by an amount equal to the necrotic damage taken, and the vampire regains hit points equal to that amount. The reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:61},{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 8 (2d4 + 3) slashing damage. Instead of dealing damage, the vampire can grapple the target (escape DC 13).",attack_bonus:6,damage_dice:"2d4",damage_bonus:3}]},{name:"Veteran",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:17,hp:58,hit_dice:"9d8 + 17",speed:"30 ft.",stats:[16,13,14,10,11,10],skillsaves:[{athletics:5},{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any one language (usually Common)",cr:"3",bestiary:!0,actions:[{name:"Multiattack",desc:"The veteran makes two longsword attacks. If it has a shortsword drawn, it can also make a shortsword attack.",attack_bonus:0},{name:"Longsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage, or 8 (1d10 + 3) slashing damage if used with two hands.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Shortsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Heavy Crossbow",desc:"Ranged Weapon Attack: +3 to hit, range 100/400 ft., one target. Hit: 6 (1d10 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d10",damage_bonus:1}]},{name:"Violet Fungus",source:"5e SRD",size:"Medium",type:"plant",subtype:"",alignment:"unaligned",ac:5,hp:18,hit_dice:"4d8",speed:"5 ft.",stats:[3,1,10,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"blinded, deafened, frightened",senses:"blindsight 30 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"False Appearance",desc:"While the violet fungus remains motionless, it is indistinguishable from an ordinary fungus.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The fungus makes 1d4 Rotting Touch attacks.",attack_bonus:0},{name:"Rotting Touch",desc:"Melee Weapon Attack: +2 to hit, reach 10 ft., one creature. Hit: 4 (1d8) necrotic damage.",attack_bonus:2,damage_dice:"1d8"}]},{name:"Vrock",source:"5e SRD",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:15,hp:104,hit_dice:"11d10 + 43",speed:"40 ft., fly 60 ft.",stats:[17,15,18,8,13,8],saves:[{dexterity:5},{wisdom:4},{charisma:2}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 11",languages:"Abyssal, telepathy 120 ft.",cr:"6",bestiary:!0,traits:[{name:"Magic Resistance",desc:"The vrock has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The vrock makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Talons",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 14 (2d10 + 3) slashing damage.",attack_bonus:6,damage_dice:"2d10",damage_bonus:3},{name:"Spores (Recharge 6)",desc:"A 15-foot-radius cloud of toxic spores extends out from the vrock. The spores spread around corners. Each creature in that area must succeed on a DC 14 Constitution saving throw or become poisoned. While poisoned in this way, a target takes 5 (1d10) poison damage at the start of each of its turns. A target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Emptying a vial of holy water on the target also ends the effect on it.",attack_bonus:0},{name:"Stunning Screech (1/Day)",desc:"The vrock emits a horrific screech. Each creature within 20 feet of it that can hear it and that isn't a demon must succeed on a DC 14 Constitution saving throw or be stunned until the end of the vrock's next turn .",attack_bonus:0},{name:"Variant: Summon Demon (1/Day)",desc:`The demon chooses what
Line truncated
|
||||
A vrock has a 30 percent chance of summoning 2d4 dretches or one vrock.
|
||||
A summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.`,attack_bonus:0}]},{name:"Vulture",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:5,hit_dice:"1d8",speed:"10 ft., fly 50 ft.",stats:[7,10,13,2,12,4],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",bestiary:!0,traits:[{name:"Keen Sight and Smell",desc:"The vulture has advantage on Wisdom (Perception) checks that rely on sight or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The vulture has advantage on an attack roll against a creature if at least one of the vulture's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Beak",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) piercing damage.",attack_bonus:2,damage_dice:"1d4"}]},{name:"Warhorse",source:"5e SRD",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d10 + 2",speed:"60 ft.",stats:[18,12,13,2,12,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"1/2",bestiary:!0,traits:[{name:"Trampling Charge",desc:"If the horse moves at least 20 ft. straight toward a creature and then hits it with a hooves attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the horse can make another attack with its hooves against it as a bonus action.",attack_bonus:0}],actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Warhorse Skeleton",source:"5e SRD",size:"Large",type:"undead",subtype:"",alignment:"lawful evil",ac:13,hp:22,hit_dice:"3d10 + 5",speed:"60 ft.",stats:[18,12,15,2,8,5],damage_vulnerabilities:"bludgeoning",damage_resistances:"",damage_immunities:"poison",condition_immunities:"exhaustion, poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"",cr:"1/2",bestiary:!0,actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Water Elemental",source:"5e SRD",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:14,hp:114,hit_dice:"12d10 + 48",speed:"30 ft., swim 90 ft.",stats:[18,14,18,5,10,8],damage_vulnerabilities:"",damage_resistances:"acid; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"Aquan",cr:"5",bestiary:!0,traits:[{name:"Water Form",desc:"The elemental can enter a hostile creature's space and stop there. It can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Freeze",desc:"If the elemental takes cold damage, it partially freezes; its speed is reduced by 20 ft. until the end of its next turn.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The elemental makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Whelm (Recharge 4-6)",desc:`Each creature in the elemental's space must make a DC 15 Strength saving throw. On a failure, a target takes 13 (2d8 + 4) bludgeoning damage. If it is Large or smaller, it is also grappled (escape DC 14). Until this grapple ends, the target is restrained and unable to breathe unless it can breathe water. If the saving throw is successful, the target is pushed out of the elemental's space.
|
||||
The elemental can grapple one Large creature or up to two Medium or smaller creatures at one time. At the start of each of the elemental's turns, each target grappled by it takes 13 (2d8 + 4) bludgeoning damage. A creature within 5 feet of the elemental can pull a creature or object out of it by taking an action to make a DC 14 Strength and succeeding.`,attack_bonus:0}]},{name:"Weasel",source:"5e SRD",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:1,hit_dice:"1d4 + -2",speed:"30 ft.",stats:[3,16,8,2,12,3],skillsaves:[{perception:3},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The weasel has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 1 piercing damage.",attack_bonus:5,damage_bonus:1}]},{name:"Werebear",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"human",alignment:"neutral good",ac:10,hp:135,hit_dice:"18d8 + 54",speed:"30 ft. (40 ft., climb 30 ft. in bear or hybrid form)",stats:[19,10,17,11,12,12],skillsaves:[{perception:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"passive Perception 17",languages:"Common (can't speak in bear form)",cr:"5",bestiary:!0,traits:[{name:"Shapechanger",desc:"The werebear can use its action to polymorph into a Large bear-humanoid hybrid or into a Large bear, or back into its true form, which is humanoid. Its statistics, other than its size and AC, are the same in each form. Any equipment it. is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Keen Smell",desc:"The werebear has advantage on WisGlom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"In bear form, the werebear makes two claw attacks. In humanoid form, it makes two greataxe attacks. In hybrid form, it can attack like a bear or a humanoid.",attack_bonus:0},{name:"Bite (Bear or Hybrid Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 15 (2d10 + 4) piercing damage. If the target is a humanoid, it must succeed on a DC 14 Constitution saving throw or be cursed with were bear lycanthropy.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claw (Bear or Hybrid Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Greataxe (Humanoid or Hybrid Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 10 (1d12 + 4) slashing damage.",attack_bonus:7,damage_dice:"1d12",damage_bonus:4}]},{name:"Wereboar",source:"5e SRD",size:"Medium",type:"humanoid",subtype:"human",alignment:"neutral evil",ac:10,hp:78,hit_dice:"12d8 + 24",speed:"30 ft. (40 ft. in boar form)",stats:[17,10,15,10,11,8],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"passive Perception 12",languages:"Common (can't speak in boar form)",cr:"4",bestiary:!0,traits:[{name:"Shapechanger",desc:"The wereboar can use its action to polymorph into a boar-humanoid hybrid or into a boar, or back into its true form, which is humanoid. Its statistics, other than its AC, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Charge (Boar or Hybrid Form Only)",desc:"If the wereboar moves at least 15 feet straight toward a target and then hits it with its tusks on the same turn, the target takes an extra 7 (2d6) slashing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"},{name:"Relentless (Recharges after a Short or Long Rest)",desc:"If the wereboar takes 14 damage or less that would reduce it to 0 hit points, it is reduced to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Multiattack (Humanoid or Hybrid Form Only)",desc:"The wereboar makes two attacks, only one of which can be with its tusks.",attack_bonus:0},{name:"Maul (Humanoid or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Tusks (Boar or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage. If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed with wereboar lycanthropy.",attack_bonus:5,damage_dice:"2d6",damaLine truncated
|
||||
A humanoid slain by this attack rises 24 hours later as a zombie under the wight's control, unless the humanoid is restored to life or its body is destroyed. The wight can have no more than twelve zombies under its control at one time.`,attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Longsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) slashing damage, or 7 (1d10 + 2) slashing damage if used with two hands.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +4 to hit, range 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Will-o'-Wisp",source:"5e SRD",size:"Tiny",type:"undead",subtype:"",alignment:"chaotic evil",ac:19,hp:22,hit_dice:"9d4 + -1",speed:"0 ft., fly 50 ft. (hover)",stats:[1,28,10,13,14,11],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire, necrotic, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"lightning, poison",condition_immunities:"exhaustion, grappled, paralyzed, poisoned, prone, restrained, unconscious",senses:"darkvision 120 ft., passive Perception 12",languages:"the languages it knew in life",cr:"2",bestiary:!0,traits:[{name:"Consume Life",desc:"As a bonus action, the will-o'-wisp can target one creature it can see within 5 ft. of it that has 0 hit points and is still alive. The target must succeed on a DC 10 Constitution saving throw against this magic or die. If the target dies, the will-o'-wisp regains 10 (3d6) hit points.",attack_bonus:0},{name:"Ephemeral",desc:"The will-o'-wisp can't wear or carry anything.",attack_bonus:0},{name:"Incorporeal Movement",desc:"The will-o'-wisp can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0},{name:"Variable Illumination",desc:"The will-o'-wisp sheds bright light in a 5- to 20-foot radius and dim light for an additional number of ft. equal to the chosen radius. The will-o'-wisp can alter the radius as a bonus action.",attack_bonus:0}],actions:[{name:"Shock",desc:"Melee Spell Attack: +4 to hit, reach 5 ft., one creature. Hit: 9 (2d8) lightning damage.",attack_bonus:4,damage_dice:"2d8"},{name:"Invisibility",desc:"The will-o'-wisp and its light magically become invisible until it attacks or uses its Consume Life, or until its concentration ends (as if concentrating on a spell).",attack_bonus:0}]},{name:"Winter Wolf",source:"5e SRD",size:"Large",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:13,hp:75,hit_dice:"10d10 + 20",speed:"50 ft.",stats:[18,13,14,7,12,8],skillsaves:[{perception:5},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"passive Perception 15",languages:"Common, Giant, Winter Wolf",cr:"3",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0},{name:"Snow Camouflage",desc:"The wolf has advantage on Dexterity (Stealth) checks made to hide in snowy terrain.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) piercing damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Cold Breath (Recharge 5-6)",desc:"The wolf exhales a blast of freezing wind in a 15-foot cone. Each creature in that area must make a DC 12 Dexterity saving throw, taking 18 (4d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"4d8"}]},{name:"Wolf",source:"5e SRD",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:11,hit_dice:"2d8 + 2",speed:"40 ft.",stats:[12,15,12,3,12,6],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/4",bestiary:!0,traits:[{name:"Keen Hearing and Smell",desc:"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) piercing damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2}]},{name:"Worg",source:"5e SRD",size:"Large",typeLine truncated
|
||||
Fire Breath. The dragon exhales fire in a 40-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw, taking 42 (12d6) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Sleep Breath. The dragon exhales sleep gas in a 30-foot cone. Each creature in that area must succeed on a DC 14 Constitution saving throw or fall unconscious for 5 minutes. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.`,attack_bonus:0,damage_dice:"12d6"}]},{name:"Young Bronze Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"lawful good",ac:18,hp:142,hit_dice:"15d10 + 59",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[21,10,19,14,13,17],saves:[{dexterity:3},{constitution:7},{wisdom:4},{charisma:6}],skillsaves:[{insight:4},{perception:7},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 17",languages:"Common, Draconic",cr:"8",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 16 (2d10 + 5) piercing damage.",attack_bonus:8,damage_dice:"2d10",damage_bonus:5},{name:"Claw",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:8,damage_dice:"2d6",damage_bonus:5},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Lightning Breath. The dragon exhales lightning in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 55 (10d10) lightning damage on a failed save, or half as much damage on a successful one.
|
||||
Repulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 15 Strength saving throw. On a failed save, the creature is pushed 40 feet away from the dragon.`,attack_bonus:0,damage_dice:"10d10"}]},{name:"Young Copper Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"chaotic good",ac:17,hp:119,hit_dice:"14d10 + 42",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[19,12,17,16,13,15],saves:[{dexterity:4},{constitution:6},{wisdom:4},{charisma:5}],skillsaves:[{deception:5},{perception:7},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 17",languages:"Common, Draconic",cr:"7",bestiary:!0,actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Acid Breath. The dragon exhales acid in an 40-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw, taking 40 (9d8) acid damage on a failed save, or half as much damage on a successful one.
|
||||
Slowing Breath. The dragon exhales gas in a 30-foot cone. Each creature in that area must succeed on a DC 14 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.`,attack_bonus:0,damage_dice:"9d8"}]},{name:"Young Gold Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"lawful good",ac:18,hp:178,hit_dice:"17d10 + 84",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[23,14,21,16,13,20],saves:[{dexterity:6},{constitution:9},{wisdom:5},{charisma:9}],skillsaves:[{insight:5},{perception:9},{persuasion:9},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 19",languages:"Common, Draconic",cr:"10",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:10,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:10,damage_dice:"2d6",damage_bonus:6},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Fire Breath. The dragon exhales fire in a 30-foot cone. Each creature in that area must make a DC 17 Dexterity saving throw, taking 55 (10d10) fire damage on a failed save, or half as much damage on a successful one.
|
||||
Weakening Breath. The dragon exhales gas in a 30-foot cone. Each creature in that area must succeed on a DC 17 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"10d10"}]},{name:"Young Green Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"lawful evil",ac:18,hp:136,hit_dice:"16d10 + 48",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[19,12,17,16,13,15],saves:[{dexterity:4},{constitution:6},{wisdom:4},{charisma:5}],skillsaves:[{deception:5},{perception:7},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 17",languages:"Common, Draconic",cr:"8",bestiary:!0,traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage plus 7 (2d6) poison damage.",attack_bonus:7,damage_dice:"2d10 + 2d6",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 30-foot cone. Each creature in that area must make a DC 14 Constitution saving throw, taking 42 (12d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d6"}]},{name:"Young Red Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"chaotic evil",ac:18,hp:178,hit_dice:"17d10 + 84",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[23,10,21,14,11,19],saves:[{dexterity:4},{constitution:9},{wisdom:4},{charisma:8}],skillsaves:[{perception:8},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 18",languages:"Common, Draconic",cr:"10",bestiary:!0,actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 3 (1d6) fire damage.",attack_bonus:10,damage_dice:"2d10 + 1d6",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:10,damage_dice:"2d6",damage_bonus:6},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon exhales fire in a 30-foot cone. Each creature in that area must make a DC 17 Dexterity saving throw, taking 56 (16d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d6"}]},{name:"Young Silver Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"lawful good",ac:18,hp:168,hit_dice:"16d10 + 80",speed:"40 ft., fly 80 ft.",stats:[23,10,21,14,11,19],saves:[{dexterity:4},{constitution:9},{wisdom:4},{charisma:8}],skillsaves:[{arcana:6},{history:6},{perception:8},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 18",languages:"Common, Draconic",cr:"9",bestiary:!0,actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:10,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:10,damage_dice:"2d6",damage_bonus:6},{name:"Breath Weapons (Recharge 5-6)",desc:`The dragon uses one of the following breath weapons.
|
||||
Cold Breath. The dragon exhales an icy blast in a 30-foot cone. Each creature in that area must make a DC 17 Constitution saving throw, taking 54 (12d8) cold damage on a failed save, or half as much damage on a successful one.
|
||||
Paralyzing Breath. The dragon exhales paralyzing gas in a 30-foot cone. Each creature in that area must succeed on a DC 17 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.`,attack_bonus:0,damage_dice:"12d8"}]},{name:"Young White Dragon",source:"5e SRD",size:"Large",type:"dragon",subtype:"",alignment:"chaotic evil",ac:17,hp:133,hit_dice:"14d10 + 56",speed:"40 ft., burrow 20 ft., fly 80 ft., swim 40 ft.",stats:[18,10,18,6,11,12],saves:[{dexterity:3},{constitution:7},{wisdom:3},{charisma:4}],skillsaves:[{perception:6},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 16",languages:"Common, Draconic",cr:"6",bestiary:!0,traits:[{name:"Ice Walk",desc:"The dragon can move across and climb icy surfaces without needing to make an ability check. Additionally, difficult terrain composed of ice or snow doesn't cost it extra moment.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage plus 4 (1d8) cold damage.",attack_bonus:7,damage_dice:"2d10 + 1d8",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast in a 30-foot cone. Each creature in that area must make a DC 15 Constitution saving throw, taking 45 (10d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"10d8"}]},{name:"Zombie",source:"5e SRD",size:"Medium",type:"undead",subtype:"",alignment:"neutral evil",ac:8,hp:22,hit_dice:"3d8 + 8",speed:"20 ft.",stats:[13,6,16,3,6,5],saves:[{wisdom:0}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 8",languages:"understands all languages it spoke in life but can't speak",cr:"1/4",bestiary:!0,traits:[{name:"Undead Fortitude",desc:"If damage reduces the zombie to 0 hit points, it must make a Constitution saving throw with a DC of 5+the damage taken, unless the damage is radiant or from a critical hit. On a success, the zombie drops to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Slam",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]}],ia=new Map(Qp.map(n=>[n.name,n]));var Ne,zt,On,aa,un,Zn,sa,$e,Qn,tt,oo,lo,Ti,ro=class{constructor(){Le(this,$e);Le(this,Ne,new Map);Le(this,zt,new Map);Le(this,On,new Map);Le(this,aa,!1);Le(this,un,new Map);Le(this,Zn,new Map);Le(this,sa,new Map);Le(this,tt)}getSortedBy(e){return X(this,sa).get(e)??[]}onSortedBy(e,t){let i=X(this,tt).on(`fantasy-statblocks:bestiary:sorted:${e}`,a=>t(a));return()=>{X(this,tt).offref(i)}}registerSorter(e,t){X(this,Zn).has(e)||X(this,Zn).set(e,t),Oe(this,$e,Qn).call(this,e)}getIndices(){return X(this,un)}getIndex(e){return X(this,un).get(e)??new Map}registerIndex(e){X(this,un).has(e)||X(this,un).set(e,new Map)}onIndexUpdated(e,t){if(!X(this,un).has(e))return()=>{};let i=X(this,tt).on(`fantasy-statblocks:bestiary:indexed:${e}`,()=>t());return()=>{X(this,tt).offref(i)}}initialize(e){this.registerIndex("source"),this.registerSorter("name",(t,i)=>t.name.localeCompare(i.name)),an(this,tt,e.app.workspace),kn.initialize(e).load(),e.addCommand({id:"parse-frontmatter",name:"Parse Frontmatter for Creatures",callback:()=>{kn.start(!0)}}),e.register(()=>kn.unload()),e.registerEvent(e.app.workspace.on("fantasy-statblocks:srd-change",t=>{this.enableSRD=t,t?an(this,Ne,new Map([...ia,...X(this,Ne)])):an(this,Ne,new Map([...X(this,zt),...X(this,On)]))})),this.enableSRD=!e.settings.disableSRD,this.enableSRD&&an(this,Ne,new Map(ia));for(let[,t]of e.settings.monsters)this.addLocalCreature(t)}hasLocal(e){return X(this,zt).has(e)}getLocal(e){return X(this,zt).get(e)}isLocal(e){return X(this,zt).has(e)&&X(this,Ne).get(e)===X(this,zt).get(e)}addLocalCreature(e){e.name&&(X(this,zt).set(e.name,e),X(this,Ne).set(e.name,e),Oe(this,$e,oo).call(this,e),Oe(this,$e,Ti).call(this),Oe(this,$e,Qn).call(this))}removeLocalCreature(e){X(this,Ne).has(e)&&X(this,Ne).get(e)===X(this,zt).get(e)&&X(this,Ne).delete(e),Oe(this,$e,lo).call(this,X(this,zt).get(e)),X(this,zt).delete(e),X(this,On).has(e)?X(this,Ne).set(e,X(this,On).get(e)):this.enableSRD&&ia.has(e)&&X(this,Ne).set(e,ia.get(e)),Oe(this,$e,Ti).call(this),Oe(this,$e,Qn).call(this)}addEphemeralCreature(e){e.name&&(X(this,On).set(e.name,e),X(this,Ne).set(e.name,e),X(this,tt).trigger("fantasy-statblocks:bestiary:creature-added",e),Oe(this,$e,oo).call(this,e),Oe(
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fa(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=_o(n))||e&&n&&typeof n.length=="number"){t&&(n=t);var i=0,a=function(){};return{s:a,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,r=!1,o;return{s:function(){t=t.call(n)},n:function(){var l=t.next();return s=l.done,l},e:function(l){r=!0,o=l},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(r)throw o}}}}var l1="finalize",c1="consider";function Ii(n,e,t){n.dispatchEvent(new CustomEvent(l1,{detail:{items:e,info:t}}))}function Fn(n,e,t){n.dispatchEvent(new CustomEvent(c1,{detail:{items:e,info:t}}))}var ys="draggedEntered",ma="draggedLeft",vs="draggedOverIndex",So="draggedLeftDocument",ds={LEFT_FOR_ANOTHER:"leftForAnother",OUTSIDE_OF_ANY:"outsideOfAny"};function u1(n,e,t){n.dispatchEvent(new CustomEvent(ys,{detail:{indexObj:e,draggedEl:t}}))}function d1(n,e,t){n.dispatchEvent(new CustomEvent(ma,{detail:{draggedEl:e,type:ds.LEFT_FOR_ANOTHER,theOtherDz:t}}))}function h1(n,e){n.dispatchEvent(new CustomEvent(ma,{detail:{draggedEl:e,type:ds.OUTSIDE_OF_ANY}}))}function f1(n,e,t){n.dispatchEvent(new CustomEvent(vs,{detail:{indexObj:e,draggedEl:t}}))}function m1(n){window.dispatchEvent(new CustomEvent(So,{detail:{draggedEl:n}}))}var Ye={DRAG_STARTED:"dragStarted",DRAGGED_ENTERED:ys,DRAGGED_ENTERED_ANOTHER:"dragEnteredAnother",DRAGGED_OVER_INDEX:vs,DRAGGED_LEFT:ma,DRAGGED_LEFT_ALL:"draggedLeftAll",DROPPED_INTO_ZONE:"droppedIntoZone",DROPPED_INTO_ANOTHER:"droppedIntoAnother",DROPPED_OUTSIDE_OF_ANY:"droppedOutsideOfAny",DRAG_STOPPED:"dragStopped"},je={POINTER:"pointer",KEYBOARD:"keyboard"},ks="isDndShadowItem",Co="data-is-dnd-shadow-item-internal",g1="data-is-dnd-shadow-item-hint",ii="id:dnd-shadow-placeholder-0000",p1="dnd-action-dragged-el",nt="id",go=0;function Yu(){go++}function Ju(){if(go===0)throw new Error("Bug! trying to decrement when there are no dropzones");go--}var xo=typeof window>"u",xe=function(){};function po(n){var e,t=n.getBoundingClientRect(),i=getComputedStyle(n),a=i.transform;if(a){var s,r,o,l;if(a.startsWith("matrix3d("))e=a.slice(9,-1).split(/, /),s=+e[0],r=+e[5],o=+e[12],l=+e[13];else if(a.startsWith("matrix("))e=a.slice(7,-1).split(/, /),s=+e[0],r=+e[3],o=+e[4],l=+e[5];else return t;var c=i.transformOrigin,d=t.x-o-(1-s)*parseFloat(c),u=t.y-l-(1-r)*parseFloat(c.slice(c.indexOf(" ")+1)),h=s?t.width/s:n.offsetWidth,f=r?t.height/r:n.offsetHeight;return{x:d,y:u,width:h,height:f,top:u,right:d+h,bottom:u+f,left:d}}else return t}function Xu(n){var e=po(n);return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function Qu(n){var e=n.getBoundingClientRect();return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function Zu(n){return{x:(n.left+n.right)/2,y:(n.top+n.bottom)/2}}function b1(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ws(n,e){return n.y<=e.bottom&&n.y>=e.top&&n.x>=e.left&&n.x<=e.right}function ua(n){return Zu(Qu(n))}function Bu(n,e){var t=ua(n),i=Xu(e);return ws(t,i)}function y1(n,e){var t=ua(n),i=ua(e);return b1(t,i)}function v1(n){var e=Qu(n);return e.right<0||e.left>document.documentElement.scrollWidth||e.bottom<0||e.top>document.documentElement.scrollHeight}var Di;function Ao(){xe(function(){return"resetting indexes cache"}),Di=new Map}Ao();function k1(n){var e=Array.from(n.children).findIndex(function(t){return t.getAttribute(Co)});if(e>=0)return Di.has(n)||Di.set(n,new Map),Di.get(n).set(e,Xu(n.children[e])),e}function w1(n,e){if(!Bu(n,e))return null;var t=e.children;if(t.length===0)return{index:0,isProximityBased:!0};for(var i=k1(e),a=0;a<t.length;a++)if(Bu(n,t[a])){var s=Di.has(e)&&Di.get(e).get(a);return s&&!ws(ua(n),s)?{index:i,isProximityBased:!1}:{index:a,isProximityBased:!1}}for(var r=Number.MAX_VALUE,o=void 0,l=0;l<t.length;l++){var c=y1(n,t[l]);c<r&&(r=c,o=l)}return{index:o,isProximityBased:!0}}function dn(n){return JSON.stringify(n,null,2)}function hs(n){if(!n)throw new Error("cannot get depth of a falsy node");return ed(n,0)}function ed(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.parentElement?ed(n.parentElement,e+1):e-1}function _1(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(var t in n)if(!{}.hasOwnProperty.call(e,t)||e[t]!==n[t])return!1;return!0}function S1(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}var C1=200,Fu=10,bo;function x1(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C1,i=arguments.length>3?arguments[3]:void 0,a,s,r=!1,o,l=Array.from(e).sort(function(d,u){return hs(u)-hs(d)});function c(){var d=ua(n),u=i.multiScrollIfNeeded();if(!u&&o&&Math.abs(o.x-d.x)<Fu&&Math.abs(o.y-d.y)<Fu){bo=window.setTimeout(c,t);return}if(v1(n)){xe(function(){return"off document"}),m1(n);return}o=d;var h=!1,f=fa(l),m;try{for(f.s();!(m=f.n()).done;){var p=m.value;u&&Ao();var b=w1(n,p);if(b!==null){var _=b.index;h=!0,p!==a?(a&&d1(a,n,p),u1(p,b,n),a=p):_!==s&&(f1(p,b,n),s=_);break}}}catch(S){f.e(S)}finally{f.f()}!h&&r&&a?(h1(a,n),a=void 0,s
Line truncated
|
||||
rendered. Conditions are evaluated top to bottom - the
|
||||
first to evaluate to</span> <code>true</code> <span>is the condition that will be used. If the last
|
||||
condition is left blank and no others were true, it will
|
||||
be used.</span> <br/> <br/> <span>The expression receives the</span> <code>monster</code> <span>parameter, which can be used to access properties of the
|
||||
monster being rendered, and the</span> <code>plugin</code> <span>parameter, which is a reference to the Fantasy Statblocks
|
||||
plugin and can be used for accessing app and plugin settings.</span> <br/> <br/> <strong>All conditions must return a true/false value. For
|
||||
example:</strong> <code>return monster.ac > 1</code>`,g(e,"class","setting-item-description")},m(a,s){D(a,e,s),i=!0},i(a){i||(a&&It(()=>{i&&(t||(t=Jn(e,Pi,{},!0)),t.run(1))}),i=!0)},o(a){a&&(t||(t=Jn(e,Pi,{},!1)),t.run(0)),i=!1},d(a){a&&x(e),a&&t&&t.end()}}}function Wb(n){let e,t,i,a,s,r,o,l,c,d,u,h,f=n[1]&&Ld(n);return c=new Nd({props:{conditions:n[2]}}),c.$on("sorted",n[7]),{c(){e=v("div"),t=v("div"),i=v("div"),f&&f.c(),a=R(),s=v("div"),r=v("div"),l=R(),ie(c.$$.fragment),g(i,"class","setting-item-info"),g(s,"class","setting-item-control"),g(t,"class","setting-item svelte-131x181"),g(e,"class","condition-builder-container svelte-131x181")},m(m,p){D(m,e,p),y(e,t),y(t,i),f&&f.m(i,null),y(t,a),y(t,s),y(s,r),y(e,l),te(c,e,null),d=!0,u||(h=[J(o=n[4].call(null,r)),z(r,"click",n[6])],u=!0)},p(m,[p]){m[1]?f?p&2&&E(f,1):(f=Ld(m),f.c(),E(f,1),f.m(i,null)):f&&(ce(),I(f,1,1,()=>{f=null}),ue())},i(m){d||(E(f),E(c.$$.fragment,m),d=!0)},o(m){I(f),I(c.$$.fragment,m),d=!1},d(m){m&&x(e),f&&f.d(),ne(c),u=!1,le(h)}}}function Hb(n,e,t){let i,{plugin:a}=e,{block:s}=e,r=Be(s.conditions),o=async()=>{t(5,a.settings.hideConditionHelp=!a.settings.hideConditionHelp,a),await a.saveSettings()},l=u=>{new Bd.ExtraButtonComponent(u).setIcon("help-circle")},c=()=>o(),d=u=>t(0,s.conditions=[...u.detail],s);return n.$$set=u=>{"plugin"in u&&t(5,a=u.plugin),"block"in u&&t(0,s=u.block)},n.$$.update=()=>{n.$$.dirty&32&&t(1,i=a.settings.hideConditionHelp)},[s,i,r,o,l,a,c,d]}var No=class extends U{constructor(e){super(),G(this,e,Hb,Wb,j,{plugin:5,block:0},Fb)}},Fd=No;var Hn=require("@codemirror/view");var Wo=La(Ts()),Ds=class extends Wo.FuzzyInputSuggest{getItemText(e){return e.name}renderNote(e,t){}renderTitle(e,t){this.renderMatches(e,t.item.name,t.match.matches)}},Es=class extends Wo.FuzzyInputSuggest{renderNote(e,t){}renderTitle(e,t){this.renderMatches(e,t.item,t.match.matches)}getItemText(e){return e}};var Vd=require("obsidian"),_t=class extends Vd.Modal{constructor(t){super(t.app);this.plugin=t;this.modalEl.addClass("fantasy-statblocks-modal"),t.register(()=>this.close())}};function Os(n,e,t){switch(e.type){case"group":case"inline":return new Ho(n,e);case"action":return new Uo(n,e);case"collapse":return new zo(n,e);case"ifelse":return new Vo(n,e);case"javascript":return new qo(n,e);case"heading":return new Go(n,e);case"layout":return new jo(n,e,t);case"property":return new Ko(n,e);case"saves":return new $o(n,e);case"spells":return new Yo(n,e);case"subheading":return new Jo(n,e);case"table":return new Xo(n,e);case"traits":return new Qo(n,e);case"text":return new Zo(n,e);default:return new si(n,e)}}var Wn=class extends _t{constructor(t,i){super(t);this.plugin=t;i&&(this.block=Ze(i)),this.containerEl.addClass("statblock-edit-block")}onOpen(){this.titleEl.setText("Edit Block"),this.display()}buildButtons(t){t.empty(),new me.Setting(t).addButton(i=>i.setCta().setIcon("checkmark").setTooltip("Save").onClick(()=>{this.saved=!0,this.close()})).addExtraButton(i=>i.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.close()}))}buildProperty(t){}},Ho=class extends Wn{async display(){this.contentEl.empty(),new me.Setting(this.contentEl).setName("Section Heading").setDesc("This text will be used for the section heading. Can be left blank.").addText(e=>{e.setValue(this.block.heading).onChange(t=>this.block.heading=t)}),new me.Setting(this.contentEl).setName("Has Rule").setDesc("If present, the block will have a horizontal rule placed after it.").addToggle(e=>{e.setValue(this.block.hasRule).onChange(t=>this.block.hasRule=t)}),new me.Setting(this.contentEl).setName("CSS Container Class").setDesc("All nested elements inside this group container will receive this CSS class. If blank, no class will be applied.").addText(e=>{e.setValue(this.block.cls).onChange(t=>this.block.cls=t)}),this.buildConditions(this.contentEl.createDiv()),this.buildButtons(this.contentEl.createDiv())}buildConditions(e){e.empty();let t=this.block;new me.Setting(e).setName("Conditional").setDesc("The block will not be added if the associated properties are not present.").addToggle(i=>{i.setValue(t.conditioned).onChange(a=>{t.conditioned=a,this.buildConditions(e)})})}},zo=class extends Wn{async display(){this.contentEl.empty(),new me.Setting(this.contentEl).setName("Section Heading").setDesc("This text will be used for the section heading. Can be left blank.").addText(e=>{e.setValue(this.block.heading).onChange(t=>this.block.heading=t)}),new me.Setting(this.contentEl).setName("Open by Default").setDesc("The block will start open.").addToggle(e=>{e.setValue(this.block.open).onChange(t=>this.block.open=t)}),new me.Setting(this.contentEl).setName("Has Rule").setDesc("If present, the block will have a horizontal rule placed after it.").addToggle(e=>{e.setValue(this.block.hasRule).onChange(t=>this.block.hasRule=t)}),this.buildButtons(this.contentEl.createDiv())}},qo=class extends Wn{async display(){this.contentEl.empty(),new me.Setting(this.contentEl).setName("JLine truncated
|
||||
begin parsing for dice.`,g(a,"class","defaults svelte-tnyfuy")},m(o,l){D(o,e,l),D(o,i,l),D(o,a,l),s||(r=J(t=n[7].call(null,e)),s=!0)},d(o){o&&(x(e),x(i),x(a)),s=!1,r()}}}function _0(n){let e,t,i,a,s,r;return{c(){e=v("div"),i=R(),a=v("span"),a.textContent=`This layout is currently using the default dice parsers. Add a
|
||||
custom dice parser to override this behavior.`,g(a,"class","defaults svelte-tnyfuy")},m(o,l){D(o,e,l),D(o,i,l),D(o,a,l),s||(r=J(t=n[7].call(null,e)),s=!0)},d(o){o&&(x(e),x(i),x(a)),s=!1,r()}}}function uh(n){let e,t;return e=new oh({props:{type:"dice",component:ch,items:n[1]??ns(),onDrop:n[3],showIcons:n[1]!=null,draggable:n[1]!=null}}),e.$on("advanced",n[11]),e.$on("trash",n[12]),{c(){ie(e.$$.fragment)},m(i,a){te(e,i,a),t=!0},p(i,a){let s={};a&2&&(s.items=i[1]??ns()),a&2&&(s.showIcons=i[1]!=null),a&2&&(s.draggable=i[1]!=null),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){ne(e,i)}}}function S0(n){let e,t,i,a,s,r,o,l,c,d,u,h,f,m,p,b,_,S,C,M,w,k,A,P,L=n[1],B,O,q;function Z(W,Y){if(!W[1])return _0;if(W[1].length==0)return w0}let ee=Z(n,-1),se=ee&&ee(n),K=uh(n);return{c(){e=v("div"),t=v("div"),t.innerHTML='<div class="setting-item-name">Columns</div> <div class="setting-item-description">Always try to split into this many columns, regardless of height.</div>',i=R(),a=v("div"),s=v("input"),r=R(),o=v("div"),l=v("div"),l.innerHTML='<div class="setting-item-name">Column width</div> <div class="setting-item-description">Width in pixels. Default: 400px</div>',c=R(),d=v("div"),u=v("input"),h=R(),f=v("div"),m=v("div"),m.innerHTML='<div class="setting-item-name">Force columns</div> <div class="setting-item-description">Ignore available space when calculating columns.</div>',p=R(),b=v("div"),S=R(),C=v("div"),w=R(),k=v("div"),A=v("div"),se&&se.c(),P=R(),K.c(),g(t,"class","setting-item-info"),g(s,"type","number"),g(s,"min","0"),g(a,"class","setting-item-control"),g(e,"class","setting-item"),g(l,"class","setting-item-info"),g(u,"type","number"),g(u,"min","0"),g(d,"class","setting-item-control"),g(o,"class","setting-item"),g(m,"class","setting-item-info"),g(b,"class","setting-item-control"),g(f,"class","setting-item"),g(A,"class","additional"),g(k,"class","dice-parsing statblock-additional-container")},m(W,Y){D(W,e,Y),y(e,t),y(e,i),y(e,a),y(a,s),ct(s,n[0].columns),D(W,r,Y),D(W,o,Y),y(o,l),y(o,c),y(o,d),y(d,u),ct(u,n[0].columnWidth),D(W,h,Y),D(W,f,Y),y(f,m),y(f,p),y(f,b),D(W,S,Y),D(W,C,Y),D(W,w,Y),D(W,k,Y),y(k,A),se&&se.m(A,null),y(A,P),K.m(A,null),B=!0,O||(q=[z(s,"input",n[9]),z(u,"input",n[10]),J(_=n[8].call(null,b)),J(M=n[6].call(null,C))],O=!0)},p(W,[Y]){Y&1&&$n(s.value)!==W[0].columns&&ct(s,W[0].columns),Y&1&&$n(u.value)!==W[0].columnWidth&&ct(u,W[0].columnWidth),ee!==(ee=Z(W,Y))&&(se&&se.d(1),se=ee&&ee(W),se&&(se.c(),se.m(A,P))),Y&2&&j(L,L=W[1])?(ce(),I(K,1,1,N),ue(),K=uh(W),K.c(),E(K,1),K.m(A,null)):K.p(W,Y)},i(W){B||(E(K),B=!0)},o(W){I(K),B=!1},d(W){W&&(x(e),x(r),x(o),x(h),x(f),x(S),x(C),x(w),x(k)),se&&se.d(),K.d(W),O=!1,le(q)}}}function C0(n,e,t){let i,a,s=At("layout");Se(n,s,_=>t(0,a=_));let r=At("plugin");function o(_){Ae(s,a.diceParsing=[..._],a)}let l=_=>{let S=new ya(r,_);S.onClose=()=>{if(!S.saved)return;a.diceParsing==null&&Ae(s,a.diceParsing=[],a);let C=a.diceParsing.indexOf(_);C===-1?a.diceParsing.push(S.item):a.diceParsing.splice(C,1,S.item),s.set(a)},S.open()},c=_=>{t(1,i=i.filter(S=>S.id!=_.id)),Ae(s,a.diceParsing=[...i],a)},d=_=>{new va.Setting(_).setHeading().setName("Dice Parsing").setDesc(createFragment(S=>{S.createSpan({text:"Add "}),S.createEl("a",{href:"https://regex101.com",text:"regular expressions"}),S.createSpan({text:" to detect dice rolls inside your layout."}),S.createEl("br"),S.createSpan({text:"These are parsed in order, and the first one to trigger is what will be used."})})).addExtraButton(S=>{S.setIcon("plus-with-circle").onClick(()=>{l()})})},u=_=>{new va.Setting(_).setName(i==null?"Remove default parsers":"Restore default parsers").addButton(S=>{S.setIcon(i==null?"trash":"archive-restore").onClick(()=>{t(1,i=i==null?[]:null)})})},h=_=>{new va.ToggleComponent(_).setValue(a.forceColumns).onChange(()=>{Ae(s,a.forceColumns=!a.forceColumns,a)})};function f(){a.columns=$n(this.value),s.set(a)}function m(){a.columnWidth=$n(this.value),s.set(a)}let p=_=>l(_.detail),b=_=>c(_.detail);return n.$$.update=()=>{n.$$.dirty&1&&t(1,i=a.diceParsing?[...a.diceParsing]:null)},[a,i,s,o,l,c,d,u,h,f,m,p,b]}var ol=class extends U{constructor(e){super(),G(this,e,C0,S0,j,{},k0)}},ll=ol;var tA=require("obsidian");var hl=require("obsidian");var wa=["primaryColor","ruleColor","backgroundColor","borderSize","borderColor","barColor","barBorderSize","barBorderColor","imageWidth","imageHeight","imageBorderSize","imageBorderColor","boxShadowColor","boxShadowXOffset","boxShadowYOffset","boxShadowBlur","fontColor","fontWeight","contentFont","contentFontSize","headingFont","headingFontColor","headingFontSize","headingFontVariant","headingFontWeight","propertyFont","propertyFontColor","propertyFontVariant","propertyFontSize","propertyFontWeight","propertyNameFont","propertyNameFontVariant","propertyNameFontSize","propertyNameFontColor","propertyNameFontWeight","sectionHeadingBorderSize","sectionHeadingBorderColor","sectionHeadingFont","sectionHeadingFontColor","sectionHea
Line truncated
|
||||
below.`,i=R(),a=v("div"),s=v("div"),r=R(),o=v("div"),c=R(),ie(d.$$.fragment),u=R(),h=v("div"),ie(f.$$.fragment),g(s,"class","preview-container inner svelte-1jv9opu"),g(a,"class","preview svelte-1jv9opu"),g(h,"class","definition svelte-1jv9opu"),g(e,"class","previewer svelte-1jv9opu"),g(e,"style",m=`--scale: ${n[1]}`),oe(e,"theme-light",n[2]===Te.Light),oe(e,"theme-dark",n[2]===Te.Dark)},m(S,C){D(S,e,C),y(e,t),y(e,i),y(e,a),y(a,s),n[13](s),y(e,r),y(e,o),y(e,c),te(d,e,null),y(e,u),y(e,h),te(f,h,null),p=!0,b||(_=J(l=n[5].call(null,o)),b=!0)},p(S,[C]){let M={};C&8&&(M.desc=S[3]),C&8388614&&(M.$$scope={dirty:C,ctx:S}),d.$set(M);let w={};C&8388608&&(w.$$scope={dirty:C,ctx:S}),f.$set(w),(!p||C&2&&m!==(m=`--scale: ${S[1]}`))&&g(e,"style",m),(!p||C&4)&&oe(e,"theme-light",S[2]===Te.Light),(!p||C&4)&&oe(e,"theme-dark",S[2]===Te.Dark)},i(S){p||(E(d.$$.fragment,S),E(f.$$.fragment,S),p=!0)},o(S){I(d.$$.fragment,S),I(f.$$.fragment,S),p=!1},d(S){S&&x(e),n[13](null),ne(d),ne(f),b=!1,_()}}}function U0(n,e,t){let i,a,s,r,{previewed:o}=e,l=At("plugin"),c=At("layout");Se(n,c,B=>t(19,s=B));let d=Me(),u=(B,O)=>{B.empty(),f.setCreature({monster:O}),f.init()},h,f;pn(()=>{let B={};try{B={...B,...(0,tn.parseYaml)(o)}}catch{}f=new Yt({plugin:l,container:h,layout:s,monster:B},!1)});let m=B=>{let O=new tn.SearchComponent(B).setPlaceholder("Find a creature");new Bi(l.app,O,l.api.getBestiaryCreatures()).onSelect(async Z=>{if(Z.item){O.setValue("");let ee=(0,tn.stringifyYaml)(Z.item);d("update",ee),p.dispatch({changes:[{from:0,to:p.state.doc.length,insert:ee}]})}})},p,b=B=>{p=pa(B,o,[],(0,tn.debounce)(O=>{try{let q=(0,tn.parseYaml)(O);d("update",O),u(h,q)}catch{}},500))},_=Be(Te.None);Se(n,_,B=>t(2,a=B));let S=B=>{a==B?Ae(_,a=Te.None,a):Ae(_,a=B,a)};bn(()=>{p&&p.destroy()});let C=Be(1);Se(n,C,B=>t(1,i=B));let M=B=>{new tn.ExtraButtonComponent(B).setIcon("undo").onClick(()=>{Ae(C,i=1,i)})},w=kt([_,C],([B,O])=>{let q=[`Scale: ${O}`];return B===Te.Light&&q.push("Mode: Light"),B===Te.Dark&&q.push("Mode: Dark"),q.join(", ")});Se(n,w,B=>t(3,r=B));function k(B){Re[B?"unshift":"push"](()=>{h=B,t(0,h)})}let A=()=>S(Te.Light),P=()=>S(Te.Dark);function L(){i=$n(this.value),C.set(i)}return n.$$set=B=>{"previewed"in B&&t(12,o=B.previewed)},[h,i,a,r,c,m,b,_,S,C,M,w,o,k,A,P,L]}var yl=class extends U{constructor(e){super(),G(this,e,U0,V0,j,{previewed:12},z0)}},_h=yl;function G0(n){re(n,"svelte-1idjk8u",".statblock-mobile.svelte-1idjk8u{display:flex;flex-flow:column;gap:0.25rem}.top.svelte-1idjk8u{display:flex;align-items:center;justify-content:space-between;padding:0.25rem}.buttons.svelte-1idjk8u{display:flex;align-items:center}.name.svelte-1idjk8u{display:flex;align-items:center}.name.svelte-1idjk8u .buttons{display:flex;justify-content:flex-end;align-items:center}.vertical-tab-header.svelte-1idjk8u{display:flex;flex-flow:column nowrap}.vertical-tab-content.svelte-1idjk8u{padding:var(--size-4-8)}.bottom.svelte-1idjk8u{display:flex;justify-content:flex-end;align-items:center;margin-top:auto}")}function Sh(n,e,t){let i=n.slice();return i[16]=e[t],i}function K0(n){let e,t,i,a,s,r,o,l,c,d,u,h,f,m,p,b,_,S;return f=new ll({}),p=new il({}),{c(){e=v("div"),t=v("div"),i=v("div"),s=R(),r=v("div"),o=v("div"),c=R(),d=v("div"),h=R(),ie(f.$$.fragment),m=R(),ie(p.$$.fragment),g(i,"class","name svelte-1idjk8u"),g(o,"class","save"),g(d,"class","cancel"),g(r,"class","buttons svelte-1idjk8u"),g(t,"class","top svelte-1idjk8u"),g(e,"class","statblock-mobile svelte-1idjk8u")},m(C,M){D(C,e,M),y(e,t),y(t,i),y(t,s),y(t,r),y(r,o),y(r,c),y(r,d),y(e,h),te(f,e,null),y(e,m),te(p,e,null),b=!0,_||(S=[J(a=n[5].call(null,i)),J(l=n[6].call(null,o)),J(u=n[7].call(null,d))],_=!0)},p:N,i(C){b||(E(f.$$.fragment,C),E(p.$$.fragment,C),b=!0)},o(C){I(f.$$.fragment,C),I(p.$$.fragment,C),b=!1},d(C){C&&x(e),ne(f),ne(p),_=!1,le(S)}}}function $0(n){let e,t,i,a,s,r,o,l,c,d,u,h,f,m,p,b,_,S,C,M,w,k,A,P,L,B=be(n[4]),O=[];for(let K=0;K<B.length;K+=1)O[K]=Ch(Sh(n,B,K));let q=n[1]==="General"&&xh(n),Z=n[1]==="Appearance"&&Ah(n),ee=n[1]==="Advanced"&&Th(n),se=n[1]==="Previewer"&&Dh(n);return{c(){e=v("div"),t=v("div"),i=v("h3"),i.textContent="Layout Editor",a=R(),s=v("div"),o=R(),l=v("div");for(let K=0;K<O.length;K+=1)O[K].c();c=R(),d=v("div"),u=v("div"),f=R(),m=v("div"),b=R(),_=v("div"),S=v("div"),q&&q.c(),C=R(),Z&&Z.c(),M=R(),ee&&ee.c(),w=R(),se&&se.c(),g(s,"class","name svelte-1idjk8u"),g(l,"class","vertical-tab-header-group-items"),g(t,"class","vertical-tab-header-group"),g(u,"class","save"),g(m,"class","cancel"),g(d,"class","bottom svelte-1idjk8u"),g(e,"class","vertical-tab-header svelte-1idjk8u"),g(S,"class","vertical-tab-content svelte-1idjk8u"),g(_,"class",k="vertical-tab-content-container "+n[1].toLowerCase()+"s svelte-1idjk8u")},m(K,W){D(K,e,W),y(e,t),y(t,i),y(t,a),y(t,s),y(t,o),y(t,l);for(let Y=0;Y<O.length;Y+=1)O[Y]&&O[Y].m(l,null);y(e,c),y(e,d),y(d,u),y(d,f),y(d,m),D(K,b,W),D(K,_,W),y(_,S),q&&q.m(S,null),y(S,C),Z&&Z.m(S,null),y(S,M),ee&&ee.m(S,null),y(S,w),se&&se.m(S,null),A=!0,P||(L=[J(r
Line truncated
|
||||
${n[2].join(`
|
||||
`)}
|
||||
</style>`,i,a,s,r,o,l=[$0,K0],c=[];function d(u,h){return nn.Platform.isMobile?1:0}return a=d(n,-1),s=c[a]=l[a](n),{c(){e=new gn(!1),i=R(),s.c(),r=_e(),e.a=i},m(u,h){e.m(t,u,h),D(u,i,h),c[a].m(u,h),D(u,r,h),o=!0},p(u,[h]){(!o||h&4)&&t!==(t=`<style>
|
||||
${u[2].join(`
|
||||
`)}
|
||||
</style>`)&&e.p(t),s.p(u,h)},i(u){o||(E(s),o=!0)},o(u){I(s),o=!1},d(u){u&&(e.d(),x(i),x(r)),c[a].d(u)}}}function J0(n,e,t){let i,a,{layout:s}=e,{plugin:r}=e,o=Be(s);Se(n,o,C=>t(14,i=C)),li("plugin",r),li("layout",o);let l="",c=["General","Appearance","Advanced","Previewer"],d=c[0],u=!1,h=C=>{if(C.empty(),u){let M=i.name;new nn.TextComponent(C).setValue(M).onChange(k=>{M=k});let w=C.createDiv("buttons");new nn.ExtraButtonComponent(w).setIcon("checkmark").setTooltip("Save").onClick(()=>{u=!1,Ae(o,i.name=M,i),h(C)}),new nn.ExtraButtonComponent(w).setIcon("cross-in-box").setTooltip("Cancel").onClick(()=>{u=!1,h(C)})}else C.createEl("h5",{text:i.name}),new nn.ExtraButtonComponent(C.createDiv("buttons")).setIcon("pencil").setTooltip("Edit Name").onClick(()=>{u=!0,h(C)})},f=Me(),m=C=>{new nn.ButtonComponent(C).setIcon("checkmark").setCta().setTooltip("Save").onClick(()=>{f("saved")})},p=C=>{new nn.ExtraButtonComponent(C).setIcon("cross").setTooltip("Cancel").onClick(()=>{f("cancel")})},b=kt(o,C=>r.manager.getSheetRules(C));Se(n,b,C=>t(2,a=C));let _=C=>t(1,d=C),S=C=>t(0,l=C.detail);return n.$$set=C=>{"layout"in C&&t(9,s=C.layout),"plugin"in C&&t(10,r=C.plugin)},[l,d,a,o,c,h,m,p,b,s,r,_,S]}var vl=class extends U{constructor(e){super(),G(this,e,J0,Y0,j,{layout:9,plugin:10},G0)}},Eh=vl;var Fi=(n=>(n.None="None",n.Average="Average",n.Roll="Roll",n))(Fi||{});var wf=La(Ts());function kl(){return na('var Vc=Object.create;var Il=Object.defineProperty;var qc=Object.getOwnPropertyDescriptor;var Uc=Object.getOwnPropertyNames;var Wc=Object.getPrototypeOf,zc=Object.prototype.hasOwnProperty;var St=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var jc=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Uc(e))!zc.call(i,n)&&n!==t&&Il(i,n,{get:()=>e[n],enumerable:!(r=qc(e,n))||r.enumerable});return i};var Gc=(i,e,t)=>(t=i!=null?Vc(Wc(i)):{},jc(e||!i||!i.__esModule?Il(t,"default",{value:i,enumerable:!0}):t,i));var ii=St(Ae=>{"use strict";function J0(i,e,t){if(t===void 0&&(t=Array.prototype),i&&typeof t.find=="function")return t.find.call(i,e);for(var r=0;r<i.length;r++)if(ti(i,r)){var n=i[r];if(e.call(void 0,n,r,i))return n}}function Ti(i,e){return e===void 0&&(e=Object),e&&typeof e.getOwnPropertyDescriptors=="function"&&(i=e.create(null,e.getOwnPropertyDescriptors(i))),e&&typeof e.freeze=="function"?e.freeze(i):i}function ti(i,e){return Object.prototype.hasOwnProperty.call(i,e)}function Q0(i,e){if(i===null||typeof i!="object")throw new TypeError("target is not an object");for(var t in e)ti(e,t)&&(i[t]=e[t]);return i}var mh=Ti({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});function Z0(i){return ti(mh,i.toLowerCase())}var yh=Ti({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function e2(i){return ti(yh,i.toLowerCase())}var Cr=Ti({script:!1,style:!1,textarea:!0,title:!0});function t2(i){var e=i.toLowerCase();return ti(Cr,e)&&!Cr[e]}function i2(i){var e=i.toLowerCase();return ti(Cr,e)&&Cr[e]}function bh(i){return i===Sr.HTML}function r2(i){return bh(i)||i===Sr.XML_XHTML_APPLICATION}var Sr=Ti({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n2=Object.keys(Sr).map(function(i){return Sr[i]});function s2(i){return n2.indexOf(i)>-1}var o2=Ti({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Ae.assign=Q0;Ae.find=J0;Ae.freeze=Ti;Ae.HTML_BOOLEAN_ATTRIBUTES=mh;Ae.HTML_RAW_TEXT_ELEMENTS=Cr;Ae.HTML_VOID_ELEMENTS=yh;Ae.hasDefaultHTMLNamespace=r2;Ae.hasOwn=ti;Ae.isHTMLBooleanAttribute=Z0;Ae.isHTMLRawTextElement=t2;Ae.isHTMLEscapableRawTextElement=i2;Ae.isHTMLMimeType=bh;Ae.isHTMLVoidElement=e2;Ae.isValidMimeType=s2;Ae.MIME_TYPE=Sr;Ae.NAMESPACE=o2});var kr=St(Tr=>{"use strict";var l2=ii();function wh(i,e){i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:i.name,enumerable:!0,writable:e}})}var Er=l2.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityErroLine truncated
|
||||
|
||||
${r.message}`),a.terminate(),this.workers.delete(s),i([])},a.postMessage({files:e,source:t})})}};var Q0=[{type:"inline",id:Q(),properties:[],hasRule:!0,nested:[{type:"group",id:Q(),properties:["name","description","aspects","temporaryAspects"],nested:[{type:"heading",id:Q(),properties:["name"],conditioned:!0,size:1},{type:"text",id:Q(),properties:["description"],conditioned:!0,markdown:!0,text:null,dice:!1},{type:"text",id:Q(),properties:["aspects"],markdown:!0,text:null,dice:!1,conditioned:!0,heading:"Aspects"},{type:"text",id:Q(),properties:["temporaryAspects"],markdown:!0,text:null,dice:!1,conditioned:!0,heading:"Temporary Aspects"}],conditioned:!0},{type:"image",id:Q(),properties:["image"],conditioned:!0}]},{type:"table",id:Q(),properties:["stress"],headers:["Physical","Mental"],calculate:!1,hasRule:!0,conditioned:!0},{type:"traits",id:Q(),properties:["consequences"],conditioned:!0,heading:"Consequences"},{type:"traits",id:Q(),properties:["skills"],conditioned:!0,hasRule:!1,heading:"Skills"},{type:"traits",id:Q(),properties:["stunts"],markdown:!0,dice:!1,conditioned:!0,heading:"Stunts"},{type:"traits",id:Q(),properties:["items"],heading:"Items",conditioned:!0,markdown:!0,dice:!1},{type:"traits",id:Q(),properties:["extras"],heading:"Extras",conditioned:!0,markdown:!0,dice:!1}],Mh={blocks:Q0,id:"basic-fate-core-layout",name:"Basic Fate Core Layout",edited:!1};var Ih={blocks:[{type:"inline",id:"e9b8483aeafa",properties:[],nested:[{type:"property",id:"2b596a6919fb",properties:["name"],fallback:"-",markdown:!0,dice:!1,conditioned:!0,display:" "},{type:"property",id:"98389a48f808",properties:["level"],fallback:"-",display:" ",conditioned:!0,markdown:!0,dice:!1}],hasRule:!0},{type:"group",id:"4b3a6809a938",properties:[],nested:[{type:"inline",id:"289a4b787968",properties:[],nested:[{type:"property",id:"694a3888b859",properties:["rare_01"],fallback:"-",conditioned:!0,markdown:!0},{type:"property",id:"590a88988ae8",properties:["rare_02"],fallback:"-",conditioned:!0,markdown:!0},{type:"property",id:"9a9be808699a",properties:["rare_03"],fallback:"-",conditioned:!0,markdown:!0},{type:"property",id:"2988db1a685a",properties:["rare_04"],fallback:"-",conditioned:!0,markdown:!0},{type:"property",id:"ba891ba8cbeb",properties:["alignment"],fallback:" ",display:" ",conditioned:!0,markdown:!0},{type:"property",id:"ebf9883938a8",properties:["size"],fallback:" ",display:" ",conditioned:!0,markdown:!0},{type:"property",id:"dabaf9e9fb68",properties:["trait_01"],fallback:" ",display:" ",conditioned:!0,markdown:!0},{type:"property",id:"e81a6aeadbf9",properties:["trait_02"],fallback:" ",display:" ",conditioned:!0,markdown:!0},{type:"property",id:"fa7919caabbb",properties:["trait_03"],fallback:"-",conditioned:!0,display:" ",markdown:!0},{type:"property",id:"58c9c8580b68",properties:["trait_04"],fallback:"-",conditioned:!0,display:" ",markdown:!0},{type:"property",id:"da894a7b8849",properties:["trait_05"],fallback:"-",display:" ",conditioned:!0,markdown:!0},{type:"property",id:"fb6b4b6bab49",properties:["trait_06"],fallback:"-",display:" ",conditioned:!0,markdown:!0},{type:"property",id:"480a5bfafb88",properties:["trait_07"],fallback:"-",display:" ",conditioned:!0,markdown:!0}],hasRule:!0,conditioned:!0}]},{type:"group",id:"5999ea79ca3b",properties:[],nested:[{type:"traits",id:"9a9af9fbe959",properties:["perception"],fallback:"-",heading:" ",conditioned:!0,dice:!0,markdown:!0,headingProp:!0},{type:"property",id:"ba28f9384918",properties:["languages"],fallback:"-",display:"Language",conditioned:!0,markdown:!0},{type:"traits",id:"a8f8187b89fb",properties:["skills"],fallback:"-",markdown:!0,dice:!0,conditioned:!0,heading:" "},{type:"table",id:"b82b0a1a9969",properties:["abilityMods"],headers:["Str","Dex","Con","Int","Wis","Cha"],calculate:!1,fallback:"-",conditioned:!0,dice:!0},{type:"traits",id:"e96ba9d8a80a",properties:["abilities_top"],fallback:"-",conditioned:!0,dice:!0,markdown:!0,heading:" ",hasRule:!1}],hasRule:!0},{type:"group",id:"faaa08993a98",properties:[],nested:[{type:"traits",id:"68ca69891bea",properties:["armorclass"],fallback:"-",heading:"",conditioned:!0,dice:!0,markdown:!0},{type:"traits",id:"9b1998e9a8da",properties:["health"],fallback:"-",heading:"",conditioned:!0,dice:!0,markdown:!0},{type:"traits",id:"ca2bf968987b",properties:["abilities_mid"],fallback:"-",heading:"",conditioned:!0,dice:!0,markdown:!0,hasRule:!1}],hasRule:!0},{type:"group",id:"cbeabaf93b58",properties:[],nested:[{type:"property",id:"0b4809ba0b29",properties:["speed"],fallback:"-",display:"Speed",conditioned:!0,markdown:!0,dice:!1},{type:"traits",id:"882bc9aa0898",properties:["attacks"],fallback:"-",conditioned:!0,dice:!0,markdown:!0,headingProp:!1,heading:""},{type:"traits",id:"6919b8996939",properties:["spellcasting"],fallback:"-",heading:" ",markdown:!0,dice:!0,conditioned:!0},{type:"traits",id:"aacb399a3b58",properties:["abilities_bot"],fallback:"-",conditioned:!0,dice:!0,markdown:!0,hasRule:!1}],hasRule:!0},{type:"text",id:"1b195a894b58",pr
Line truncated
|
||||
return ["(", { text }, ")"];`,id:Q(),desc:"(1d8+3)"},{regex:/(\w+?) ([+-])(\d+)/.source,parser:`let [, initial, sign, number] = matches;
|
||||
let mult = 1;
|
||||
if (sign === "-") {
|
||||
mult = -1;
|
||||
}
|
||||
let text;
|
||||
if (!isNaN(Number(number))) {
|
||||
text = \`1d20+\${mult * Number(number)}\`;
|
||||
}
|
||||
return [original, " (", { text }, ")"];`,id:Q(),desc:"longsword +15"}]},Oh={blocks:[{type:"inline",id:"e9b8483aeafa",properties:[],nested:[{type:"property",id:"2b596a6919fb",properties:["name"],fallback:"-",markdown:!0,dice:!1,conditioned:!0,display:" "},{type:"ifelse",id:"badbdb298988",conditions:[{nested:[{type:"group",id:"990a4a988ae8",properties:[],nested:[{type:"inline",id:"499aea6a9aca",properties:[],nested:[{type:"action",id:"8a6a7a499b78",icon:"sword",callback:`(async() => {
|
||||
if (!InitiativeTracker.plugin.view) {
|
||||
await InitiativeTracker.plugin.addTrackerView();
|
||||
}
|
||||
InitiativeTracker.newEncounter({
|
||||
roll: true,
|
||||
creatures: [monster]
|
||||
});
|
||||
if (InitiativeTracker.plugin.view) {
|
||||
InitiativeTracker.plugin
|
||||
.app
|
||||
.workspace
|
||||
.revealLeaf(InitiativeTracker.plugin.view.leaf);
|
||||
}
|
||||
})();`},{type:"action",id:"fbea380b09b9",icon:"plus-with-circle",callback:`(async() => {
|
||||
if (!InitiativeTracker.plugin.view) {
|
||||
await InitiativeTracker.plugin.addTrackerView();
|
||||
}
|
||||
InitiativeTracker.addCreatures([monster]);
|
||||
if (InitiativeTracker.plugin.view) {
|
||||
InitiativeTracker.plugin
|
||||
.app
|
||||
.workspace
|
||||
.revealLeaf(InitiativeTracker.plugin.view.leaf);
|
||||
}
|
||||
})();`}]}]}],condition:`return plugin.app.plugins.enabledPlugins.has("initiative-tracker");
|
||||
`}]},{type:"property",id:"98389a48f808",properties:["level"],fallback:"-",display:" ",conditioned:!0,markdown:!0,dice:!1}],hasRule:!0},{type:"group",id:"4b3a6809a938",properties:[],nested:[{type:"property",id:"0979a989583a",properties:[],fallback:"-",callback:`const traits = []
|
||||
if (monster.rarity && monster.rarity.toLowerCase() !== "common") {
|
||||
traits.push(\`<span class="rarity \${monster.rarity.toLowerCase()}">\${monster.rarity}</span>\`);
|
||||
}
|
||||
|
||||
if (monster.alignment) {
|
||||
traits.push(\`<span class=alignment>\${monster.alignment}</span>\`);
|
||||
}
|
||||
if (monster.size) {
|
||||
traits.push(\`<span class=size>\${monster.size}</span>\`);
|
||||
}
|
||||
|
||||
if (monster.traits) {
|
||||
traits.push(...monster.traits);
|
||||
}
|
||||
|
||||
return traits ? ("- " + traits.join("\\n- ")) : "";`,conditioned:!0,display:""}],hasRule:!0,cls:"pf2e-traits"},{type:"group",id:"5999ea79ca3b",properties:[],nested:[{type:"inline",id:"881859197838",properties:[],nested:[{type:"property",id:"4ad9f92ab8f8",properties:["modifier"],fallback:"-",display:"Perception",conditioned:!1,dice:!1,diceCallback:`const num = (property < 0 ? "-" : "+") + Math.abs(property);
|
||||
return [num, " (", { text: "1d20"+num }, ")"];`,callback:'return (monster.modifier < 0 ? "-" : "+") + Math.abs(monster.modifier);'},{type:"property",id:"8bd82998dadb",properties:["senses"],fallback:"-",conditioned:!0,display:""}],cls:"oneline",conditioned:!0},{type:"property",id:"ba28f9384918",properties:["languages"],fallback:"-",display:"Language",conditioned:!0,markdown:!0},{type:"saves",id:"6a2b78099b0b",properties:["skills"],fallback:"-",display:"Skills",conditioned:!0,dice:!0,callback:`const keys = [...Object.keys(property)];
|
||||
const name = keys.shift();
|
||||
|
||||
if (name === "note") {
|
||||
return {note: property.note};
|
||||
}
|
||||
|
||||
var note;
|
||||
var stats = [];
|
||||
for (const key of keys) {
|
||||
if (key === "note") {
|
||||
note = property[key];
|
||||
} else {
|
||||
const sign = property[key] < 0 ? "-" : "+";
|
||||
const num = Math.abs(property[key]);
|
||||
stats.push(\`(\${sign}\${num} \${key})\`);
|
||||
}
|
||||
}
|
||||
|
||||
if (stats.length == 0 && !note) {
|
||||
return property;
|
||||
}
|
||||
|
||||
stats.unshift(
|
||||
(property[name] < 0 ? "-" : "+") +
|
||||
Math.abs(property[name]));
|
||||
const parts = [stats.join(" ")];
|
||||
if (note) {
|
||||
parts.push(note);
|
||||
}
|
||||
return {[name]: parts.join(", ")};`},{type:"saves",id:"b82b0a1a9969",properties:["attributes"],fallback:"-",conditioned:!0,display:""},{type:"property",id:"1b6a98ba4888",properties:["items"],fallback:"-",display:"Items",conditioned:!0},{type:"traits",id:"e96ba9d8a80a",properties:["abilities_top"],fallback:"-",conditioned:!0,dice:!0,markdown:!0,heading:" ",hasRule:!1}],hasRule:!0},{type:"group",id:"faaa08993a98",properties:[],nested:[{type:"inline",id:"3a5ab84a2b89",properties:[],nested:[{type:"inline",id:"cb6a7809aa2b",properties:[],nested:[{type:"property",id:"6b0b0bda0a7a",properties:["ac"],fallback:"-",display:"AC"},{type:"property",id:"0908aaab3b1b",properties:["acNote"],fallback:"-",conditioned:!0,display:""}],cls:"withnote",conditioned:!0},{type:"saves",id:"9999386a58ea",properties:["saves"],fallback:"-",dice:!0,display:"",conditioned:!0,callback:`const keys = [...Object.keys(property)];
|
||||
const name = keys.shift();
|
||||
|
||||
if (name === "note") {
|
||||
return {note: property.note};
|
||||
}
|
||||
|
||||
var note;
|
||||
var stats = [];
|
||||
for (const key of keys) {
|
||||
if (key === "note") {
|
||||
note = property[key];
|
||||
} else {
|
||||
const sign = property[key] < 0 ? "-" : "+";
|
||||
const num = Math.abs(property[key]);
|
||||
stats.push(\`(\${sign}\${num} \${key})\`);
|
||||
}
|
||||
}
|
||||
|
||||
if (stats.length == 0 && !note) {
|
||||
return property;
|
||||
}
|
||||
|
||||
stats.unshift(
|
||||
(property[name] < 0 ? "-" : "+") +
|
||||
Math.abs(property[name]));
|
||||
const parts = [stats.join(" ")];
|
||||
if (note) {
|
||||
parts.push(note);
|
||||
}
|
||||
return {[name]: parts.join(", ")};`}],cls:"oneline",conditioned:!0},{type:"inline",id:"ea29d9ea5aa8",properties:[],nested:[{type:"inline",id:"39584be95ae9",properties:[],nested:[{type:"property",id:"bb6989092939",properties:["hp"],fallback:"-",display:"HP"},{type:"property",id:"b9fa1a89c8d9",properties:["hpNote"],fallback:"-",doNotAddClass:!1,conditioned:!0,display:""}],cls:"withnote",conditioned:!0},{type:"property",id:"4bbaa9380a9b",properties:["hardness"],fallback:"-",display:"Hardness",conditioned:!0},{type:"property",id:"0a8ac8d96bba",properties:["immunities"],fallback:"-",conditioned:!0,display:"Immunities"},{type:"property",id:"78689b6b6b79",properties:["weaknesses"],fallback:"-",conditioned:!0,display:"Weaknesses"},{type:"property",id:"8b7a3b89fa59",properties:["resistances"],fallback:"-",conditioned:!0,display:"Resistances"}],cls:"oneline",conditioned:!0},{type:"traits",id:"ca2bf968987b",properties:["abilities_mid"],fallback:"-",heading:"",conditioned:!0,dice:!0,markdown:!0,hasRule:!1}],hasRule:!0},{type:"group",id:"cbeabaf93b58",properties:[],nested:[{type:"property",id:"0b4809ba0b29",properties:["speed"],fallback:"-",display:"Speed",conditioned:!0,markdown:!0,dice:!1},{type:"traits",id:"882bc9aa0898",properties:["attacks"],fallback:"-",conditioned:!0,dice:!0,markdown:!0,headingProp:!1,heading:"",callback:`var s = "";
|
||||
if (property.bonus) {
|
||||
s += (property.bonus < 0 ? "-" : "+") + Math.abs(property.bonus);
|
||||
}
|
||||
if (property.desc) {
|
||||
s += " " + property.desc
|
||||
}
|
||||
if (property.damage) {
|
||||
s += ", __Damage__ " + property.damage
|
||||
}
|
||||
return s`},{type:"traits",id:"faeafb7b6b1b",properties:["spellcasting"],fallback:"-",conditioned:!0,dice:!0},{type:"traits",id:"aacb399a3b58",properties:["abilities_bot"],fallback:"-",conditioned:!0,dice:!0,markdown:!0,hasRule:!1}],hasRule:!0},{type:"text",id:"1b195a894b58",properties:["token"],text:null,fallback:"",heading:"Show to Players",conditioned:!0,markdown:!0},{type:"image",id:"1bba89582b29",properties:["token"],fallback:"",conditioned:!0,hasRule:!0},{type:"property",id:"88e97a485b79",properties:["sourcebook"],fallback:"-",conditioned:!0,markdown:!0,dice:!1,display:" Source:"}],name:"Pathfinder 2e Creature Layout",id:"b8ab3ae89a0a",diceParsing:[{regex:"(\\s|^)(\\d+d\\d+(?:\\s*[+-]\\s*\\d+)?)(\\W|$)",parser:`const [, before, text, after] = matches;
|
||||
return [before + text, " (", { text }, ")", after];`,id:"4a79397b896a",desc:"1d6+10"},{regex:"(^|\\s)([+-]\\d+)(\\W|$)(?!status|bonus)",parser:`let [, before, bonus, after] = matches;
|
||||
return [
|
||||
before + bonus,
|
||||
" (", { text: "1d20" + bonus }, ")",
|
||||
after
|
||||
];`,id:"8bb8fbbb0869",desc:"+15"}],edited:!0};var Ph={blocks:[{type:"inline",id:"2a9b58ba0ab8",properties:[],nested:[{type:"heading",id:"c89a2ae859f8",properties:["name"],size:1,fallback:"Creature"},{type:"image",id:"e83a48f858b8",properties:["image"],fallback:"TILE ART",conditioned:!0,hasRule:!1}],hasRule:!0},{type:"group",id:"fabb0b884838",properties:[],nested:[{type:"text",id:"5b7bc86b6919",properties:["flavor_text"],text:null,fallback:"-",conditioned:!0,markdown:!0,hasRule:!1}],cls:"flavor-text",hasRule:!0},{type:"group",id:"1a6999887a69",properties:[],nested:[{type:"javascript",id:"d958f898e9fa",conditioned:!1,code:`var base_string = \`\${monster.level} level \${monster.role}\`;
|
||||
|
||||
if (monster.size) {
|
||||
base_string = \`\${monster.size} \${base_string}\`;
|
||||
}
|
||||
|
||||
const monster_strength = document.createElement("p");
|
||||
monster_strength.innerHTML = base_string;
|
||||
monster_strength.classList.add("monster-strength");
|
||||
|
||||
if (monster.type) {
|
||||
const type = \`[\${monster.type}]\`;
|
||||
const type_block = document.createElement("span");
|
||||
type_block.classList.add("type");
|
||||
type_block.innerText = type;
|
||||
|
||||
monster_strength.append(type_block)
|
||||
}
|
||||
|
||||
return monster_strength;`},{type:"property",id:"780809c90898",properties:["initiative"],fallback:"+0",display:"Initiative: ",markdown:!0},{type:"property",id:"88eb4a6aea0b",properties:["vulnerability"],fallback:"-",display:"Vulnerability: ",conditioned:!0,markdown:!0}],hasRule:!0},{type:"group",id:"999bb81b7aab",properties:[],nested:[{type:"traits",id:"996ab9d9a86a",properties:["actions"],fallback:"-",markdown:!0,hasRule:!0},{type:"traits",id:"69ca5b7a3898",properties:["traits"],fallback:"-",conditioned:!0,markdown:!0,hasRule:!0},{type:"traits",id:"c8794b580948",properties:["triggered_actions"],fallback:"-",headingProp:!1,heading:"Triggered Abilities",conditioned:!0,markdown:!0,hasRule:!0},{type:"traits",id:"aa1a3a2abb19",properties:["nastier_traits"],fallback:"-",headingProp:!1,heading:"Nastier Specials",conditioned:!0,subheadingText:"",markdown:!0,hasRule:!0}],hasRule:!1,cls:"abilities"},{type:"group",id:"8a7969a96a48",properties:[],nested:[{type:"javascript",id:"f99b8b1bf908",conditioned:!1,code:`const getStatLine = (statName, statValue) => {
|
||||
const statLine = document.createElement("div");
|
||||
const statClass = \`\${statName.toLowerCase()}-block\`;
|
||||
statLine.classList.add("defense-line");
|
||||
statLine.classList.add(statClass);
|
||||
|
||||
const statNameBlock = document.createElement("span");
|
||||
statNameBlock.classList.add("defense-name");
|
||||
statNameBlock.innerText = statName.toUpperCase();
|
||||
|
||||
const statValueBlock = document.createElement("span");
|
||||
statValueBlock.classList.add("defense-value");
|
||||
|
||||
if (statName === "HP" && monster.mook !== undefined) {
|
||||
statValue = \`\${statValue} (mook)\`;
|
||||
}
|
||||
|
||||
statValueBlock.innerText = statValue;
|
||||
|
||||
statLine.append(statNameBlock);
|
||||
statLine.append(statValueBlock);
|
||||
|
||||
return statLine;
|
||||
}
|
||||
|
||||
const statFullBlock = document.createElement("div");
|
||||
statFullBlock.classList.add("defense-block");
|
||||
statFullBlock.append(getStatLine("AC", monster.ac));
|
||||
statFullBlock.append(getStatLine("PD", monster.pd));
|
||||
statFullBlock.append(getStatLine("MD", monster.md));
|
||||
statFullBlock.append(getStatLine("HP", monster.hp));
|
||||
|
||||
return statFullBlock;
|
||||
`},{type:"property",id:"6aa9684a08db",properties:["mook"],fallback:"-",display:"Mook",conditioned:!0,callback:"return `Kill one _${monster.name}_ for every ${monster.hp} damage dealt to the mob`",markdown:!0}],cls:"monster-stats"},{type:"group",id:"a96bcabad818",properties:[],nested:[{type:"text",id:"4a0b6a59385a",properties:["description"],text:null,conditioned:!0,fallback:"-",markdown:!0}],cls:"monster-description"}],name:"Basic 13th Age Monster Layout",id:"basic-13th-age-monster-block"};var Rh={blocks:[{type:"group",id:"0a58d8280a7b",properties:[],nested:[{type:"image",id:"48db7bfb6809",properties:["Token"],fallback:"-",conditioned:!0}]},{type:"group",id:"b8e9ea5a5b68",properties:[],nested:[{type:"inline",id:"7a3a6b3ad9d9",properties:[],nested:[{type:"heading",id:"0a982a598818",properties:["Name"],size:1,fallback:"-"},{type:"property",id:"cb1a28885afb",properties:["Type"],fallback:"Unknown.",conditioned:!1,display:" "}]},{type:"subheading",id:"4b3848590a48",properties:["TitleOfMob","FlavorText","TypeOfBoss"],separator:" , ",fallback:"-",conditioned:!0}],hasRule:!0},{type:"group",id:"fb98fb48f93a",properties:[],nested:[{type:"inline",id:"3898c8ea0bf9",properties:[],nested:[{type:"property",id:"a8980a09e92a",properties:["BadassRank"],fallback:" ",conditioned:!1,display:" "},{type:"property",id:"c83a18fb2ac9",properties:["MovementType"],fallback:" ",display:" ",callback:`const Move = monster.MovementType;
|
||||
const Types = ['move', 'flight', 'swim', 'burrow', 'teleport', 'leap', 'hover', 'climb',];
|
||||
const Symbols = ['\u2B47', '\u{E1502}', '\u{E1504}', '\u{E1506}', '\u{E1503}', '\u{E1501}', '\u{E1500}', '\u{E1505}',];
|
||||
|
||||
let Output = '';
|
||||
for (let i = 0; i < Types.length; i++) {
|
||||
for (let j = 0; j <= 10; j++) {
|
||||
if (Move.includes(\`\${Types[i]} \${j}\`)) {
|
||||
Output += \`\${Symbols[i]} \${j} Square\${j > 1 ? 's' : ''}\\n\`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Output.trim();`},{type:"inline",id:"59e8dad80b6b",properties:[],nested:[{type:"property",id:"d8d98b8b6bfa",properties:["Health"],fallback:"Dead",conditioned:!0,display:"Health:"},{type:"property",id:"c969ebe85aca",properties:["Shield"],fallback:"N/A",display:"Shield:",conditioned:!0},{type:"property",id:"b95a6a68e89b",properties:["Armor"],fallback:"N/A",conditioned:!0,display:"Armor:"},{type:"property",id:"cb4a68db0ad8",properties:["Traits"],fallback:"N/A",display:"Traits:",conditioned:!0,markdown:!0}],cls:"shat"}],cls:"bomshat"}]},{type:"group",id:"2a99795abbb8",properties:[],nested:[{type:"property",id:"1a4aaa3b78e9",properties:["Weapon"],fallback:"N/A",conditioned:!1,dice:!0,display:"Weapon:"},{type:"property",id:"4a8b3ae86bb8",properties:["Special"],fallback:"-",display:"Special:",dice:!0,markdown:!0},{type:"property",id:"d85b69696908",properties:["SuperSpecial"],fallback:"-",display:"Additional Effects:",conditioned:!0,markdown:!0,dice:!0,hasRule:!0}],hasRule:!1},{type:"group",id:"8ae89989a83b",properties:[],nested:[{type:"traits",id:"cb28b8484afa",properties:["Actions"],fallback:"-",heading:"Actions",conditioned:!0,hasRule:!1,markdown:!0,dice:!0},{type:"traits",id:"5beae9c80838",properties:["Mayhem"],fallback:"-",conditioned:!0,heading:"\u{E1531} Mayhem",dice:!0,markdown:!0},{type:"traits",id:"ea6b78db3b59",properties:["Loot"],fallback:"-",heading:"Loot",conditioned:!0,dice:!0,markdown:!0}],hasRule:!1,cls:""},{type:"group",id:"283a2b39ca3a",properties:[],nested:[{type:"text",id:"8a78b8393819",properties:["Image"],text:null,fallback:"-",heading:"",conditioned:!0},{type:"image",id:"2b09ea3958fa",properties:["Image"],fallback:"-",conditioned:!0}],cls:"biggies"}],id:"basic-bnb-bestiary-layout",name:"Basic BnB Bestiary Layout",edited:!1};var Nh={blocks:[{type:"inline",id:"aabbab5bb92a",properties:[],nested:[{type:"image",id:"a80b9a1a791b",properties:["Token"],fallback:"-",conditioned:!0}]},{type:"inline",id:"19788a293819",properties:[],nested:[{type:"heading",id:"bb98085bdbab",properties:["Name"],fallback:"Unknown",conditioned:!1,size:1},{type:"property",id:"f97b886ba819",properties:["Type"],fallback:"Unknown",display:"",conditioned:!0,markdown:!0,dice:!1}],hasRule:!0},{type:"group",id:"c81968abe80b",properties:[],nested:[{type:"inline",id:"4809ea49d92a",properties:[],nested:[{type:"inline",id:"48f93a487988",properties:[],nested:[{type:"property",id:"4dc7e12b6c6c",properties:["MovementType"],fallback:"-",display:" ",conditioned:!0,callback:`const Move = monster.MovementType;
|
||||
const Types = ['move', 'flight', 'swim', 'burrow', 'teleport', 'leap', 'hover', 'climb',];
|
||||
const Symbols = ['\u2B47', '\u{E1502}', '\u{E1504}', '\u{E1506}', '\u{E1503}', '\u{E1501}', '\u{E1500}', '\u{E1505}',];
|
||||
|
||||
let Output = '';
|
||||
for (let i = 0; i < Types.length; i++) {
|
||||
for (let j = 0; j <= 10; j++) {
|
||||
if (Move.includes(\`\${Types[i]} \${j}\`)) {
|
||||
Output += \`\${Symbols[i]} \${j} Square\${j > 1 ? 's' : ''}\\n\`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Output.trim();`,markdown:!1,hasRule:!1},{type:"inline",id:"294ad96ad9ba",properties:[],nested:[{type:"property",id:"4a3beb0948e9",properties:["Health"],fallback:"-",display:"Health:",conditioned:!0},{type:"property",id:"7ac8d84999bb",properties:["Regen"],fallback:"-",display:"HP Regen:",conditioned:!0,dice:!0},{type:"property",id:"ea8b1b5bfb4a",properties:["Shield"],fallback:"",display:"Shield:",conditioned:!0},{type:"property",id:"596b79ab7b6a",properties:["Charge"],fallback:"-",display:"SH Charge:",conditioned:!0,dice:!0},{type:"property",id:"f8aa6b4a396a",properties:["Armor"],fallback:"-",display:"Armor:",conditioned:!0},{type:"property",id:"8a2a6a691918",properties:["Repair"],fallback:"-",display:"AR Repair:",conditioned:!0,dice:!0},{type:"property",id:"2b5b9b0b689b",properties:["Traits"],fallback:"-",conditioned:!0,display:"Traits:"}],cls:"familiar-tams"}],cls:""}],hasRule:!1,cls:"move-shat"},{type:"table",id:"cb4bdb99abdb",properties:["Abilityscore"],headers:["ACC","DMG","SPD","MST"],calculate:!1,fallback:"-",conditioned:!0,dice:!0},{type:"property",id:"494b58086a5a",properties:["Damage"],fallback:"-",display:"Damage:",conditioned:!0,dice:!0,hasRule:!0}],hasRule:!1,conditioned:!0},{type:"group",id:"eaa94ab86ba9",properties:[],nested:[{type:"property",id:"3a4a88da394a",properties:["Weapon"],fallback:"N/A",markdown:!0,display:"Weapon:",dice:!0,conditioned:!0},{type:"property",id:"5a8b7b08b8ca",properties:["Special"],fallback:"N/A",display:"Special:",markdown:!0,hasRule:!1,dice:!0,conditioned:!0},{type:"traits",id:"b9da9b7a6958",properties:["SuperSpecial"],fallback:"-",conditioned:!0,dice:!0,markdown:!0}],hasRule:!0,conditioned:!0},{type:"group",id:"799ada4bc8c9",properties:[],nested:[{type:"table",id:"5a2bdb7819b8",properties:["Hit-Crit"],headers:["2-7","8-15","16+"],calculate:!1,fallback:"-",conditioned:!0,dice:!0},{type:"traits",id:"ea68aaba0819",properties:["Actions"],fallback:"-",heading:"Actions",conditioned:!0,markdown:!0,dice:!0},{type:"traits",id:"d979ba0a69da",properties:["Skills"],fallback:"-",headingProp:!1,heading:"Skills",conditioned:!0,markdown:!0,dice:!0}],conditioned:!1,hasRule:!0},{type:"image",id:"999b68298919",properties:["Image"],fallback:"-",conditioned:!0}],id:"basic-bnb-familiar-layout",name:"Basic BnB Familiar Layout",edited:!1};var ci=[rn,Mh,Ih,Oh,Ph,Rh,Nh];var ui=require("obsidian");function Z0(n){re(n,"svelte-xx603q",".pagination.svelte-xx603q.svelte-xx603q{display:flex;justify-content:space-between;align-items:center;gap:1rem}.paginated-container.svelte-xx603q.svelte-xx603q{display:flex;align-items:center;gap:1rem}.paginated.svelte-xx603q.svelte-xx603q{display:flex;align-items:center;gap:1rem}.clickable-icon.active.svelte-xx603q.svelte-xx603q{background-color:var(--background-modifier-hover)}.slicer.svelte-xx603q.svelte-xx603q{display:flex;align-items:center;gap:0.5rem}.slicer.svelte-xx603q .per.svelte-xx603q{color:var(--text-muted);font-size:var(--font-smallest)}")}function Lh(n,e,t){let i=n.slice();return i[16]=e[t],i}function ey(n){let e,t=n[16]+"",i,a,s,r;function o(){return n[14](n[16])}return{c(){e=v("span"),i=pe(t),a=R(),g(e,"class","clickable-icon svelte-xx603q"),oe(e,"active",n[16]==n[3])},m(l,c){D(l,e,c),y(e,i),y(e,a),s||(r=z(e,"click",o),s=!0)},p(l,c){n=l,c&16&&t!==(t=n[16]+"")&&we(i,t),c&24&&oe(e,"active",n[16]==n[3])},d(l){l&&x(e),s=!1,r()}}}function ty(n){let e,t,i;return{c(){e=v("span"),e.textContent="..."},m(a,s){D(a,e,s),t||(i=z(e,"click",n[13]),t=!0)},p:N,d(a){a&&x(e),t=!1,i()}}}function Bh(n){let e;function t(s,r){return s[16]==null?ty:ey}let i=t(n,-1),a=i(n);return{c(){a.c(),e=_e()},m(s,r){a.m(s,r),D(s,e,r)},p(s,r){i===(i=t(s,r))&&a?a.p(s,r):(a.d(1),a=i(s),a&&(a.c(),a.m(e.parentNode,e)))},d(s){s&&x(e),a.d(s)}}}function ny(n){let e,t,i,a,s,r,o,l,c,d,u,h,f,m,p,b,_,S=be(n[4]),C=[];for(let M=0;M<S.length;M+=1)C[M]=Bh(Lh(n,S,M));return{c(){e=v("div"),t=v("div"),i=v("div"),s=R(),r=v("span"),r.textContent="per page",o=R(),l=v("div"),c=v("div"),u=R(),h=v("div");for(let M=0;M<C.length;M+=1)C[M].c();f=R(),m=v("div"),g(r,"class","per svelte-xx603q"),g(t,"class","slicer svelte-xx603q"),g(c,"class","previous"),g(h,"class","paginated svelte-xx603q"),g(m,"class","next"),g(l,"class","paginated-container svelte-xx603q"),g(e,"class","pagination svelte-xx603q")},m(M,w){D(M,e,w),y(e,t),y(t,i),y(t,s),y(t,r),y(e,o),y(e,l),y(l,c),y(l,u),y(l,h);for(let k=0;k<C.length;k+=1)C[k]&&C[k].m(h,null);y(l,f),y(l,m),b||(_=[J(a=n[5].call(null,i)),J(d=n[6].call(null,c)),J(p=n[7].call(null,m))],b=!0)},p(M,[w]){if(w&280){S=be(M[4]);let k;for(k=0;k<S.length;k+=1){let A=Lh(M,S,k);C[k]?C[k].p(A,w):(C[k]=Bh(A),C[k].c(),C[k].m(h,null))}for(;k<C.length;k+=1)C[k].d(1);C.length=S.length}},i:N,o:N,d(M){M&&x(e),He(C,M),b=!1,le(_)}}}function iy(n,e,t){let i,a,s,r=N,o=()=>(r(),r=Dt(p,L=>t(3,s=L)),p),l,c=N,d=()=>(c(),c=Dt(b,L=>t(12,l=L)),b),u,h=N,f=()=>(h(),h=Dt(m,L=>t(15,u=L)),m);n.$$.on_destroy.push(()=>r()),n.$$.on_destroy.push(()=>c()),n.$$.on_destroy.push(()=>h());let{slice:m}=e;f();let{page:p
Line truncated
|
||||
|
||||
${S.message}`);return}i("save",a)})},d=_=>{new Pt.ExtraButtonComponent(_).setIcon("cross").setTooltip("Cancel").onClick(()=>{i("cancel")})};function u(){return s?JSON.stringify(a,null,2):!a||!Object.keys(a??{})?.length?"":(0,Pt.stringifyYaml)(a).trim()}function h(){try{s?t(8,a=JSON.parse(r.value)):t(8,a=(0,Pt.parseYaml)(r.value))}catch(_){console.error(_)}}let f=()=>t(0,s=!1),m=()=>t(0,s=!0);function p(_){Re[_?"unshift":"push"](()=>{r=_,t(1,r)})}let b=()=>h();return n.$$set=_=>{"monster"in _&&t(8,a=_.monster)},[s,r,o,l,c,d,u,h,a,f,m,p,b]}var Sl=class extends U{constructor(e){super(),G(this,e,ry,sy,j,{monster:8},ay)}},Hh=Sl;var Hi=class extends _t{constructor(t,i={}){super(t);this.monster=i}onOpen(){this._instance=new Hh({target:this.contentEl,props:{monster:this.monster}}),this._instance.$on("cancel",()=>{this.close()}),this._instance.$on("save",async({detail:t})=>{if(!t.name){new Bs.Notice("Creatures must be given a name.");return}await this.plugin.updateMonster(this.monster,t),this.close()})}onClose(){}close(){this._instance&&this._instance.$destroy(),super.close()}},Ls=class extends _t{constructor(t,i){super(t);this.monster=i}async display(){Bs.Platform.isMobile||(this.contentEl.style.maxWidth="85vw"),new Yt({container:this.contentEl,monster:this.monster,plugin:this.plugin})}onOpen(){this.display()}};var wn=Be(""),di=Be([]),Fs="None",zh=kt([wn,di],([n,e])=>(n?.length?1:0)+(e?.length?1:0));function oy(n){let e,t,i,a;return{c(){e=v("div"),g(e,"class","creature")},m(s,r){D(s,e,r),i||(a=J(t=n[0].call(null,e)),i=!0)},p:N,i:N,o:N,d(s){s&&x(e),i=!1,a()}}}function ly(n,e,t){let i;Se(n,wn,c=>t(3,i=c));let{item:a}=e,s=Me(),r=At("plugin"),o,l=c=>{t(2,o=new zi.Setting(c));let d,u=!1;if(Array.isArray(a.source)){let h=a.source.slice(0,4);a.source.length>4&&(h.push(`and ${a.source.length-4} more`),u=!0),d=ye(h,0,", ",!1)}else d=a.source;if(o.setDesc(d??""),u&&o.descEl.setAttr("aria-label",ye(a.source,0,", ",!1)),ve.isLocal(a.name))o.addExtraButton(h=>{h.setIcon("pencil").setTooltip("Edit").onClick(()=>{new Hi(r,a).open()})}).addExtraButton(h=>{h.setIcon("trash").setTooltip("Delete").onClick(async()=>{await r.deleteMonsters(a.name)})});else if(a.path){let h=r.app.vault.getFileByPath(a.path);if(!h)return;o.addExtraButton(f=>{f.setIcon("file-symlink").onClick(async()=>{await r.app.workspace.getLeaf().openFile(h),r.app.setting.close()})})}o.addExtraButton(h=>{h.setIcon("info").setTooltip("View").onClick(()=>{new Ls(r,a).open()})})};return n.$$set=c=>{"item"in c&&t(1,a=c.item)},n.$$.update=()=>{if(n.$$.dirty&14&&o)if(i.length){let c=(0,zi.prepareSimpleSearch)(i)(a.name);c&&(o.nameEl.empty(),(0,zi.renderMatches)(o.nameEl,a.name,c.matches))}else o.setName(a.name)},[l,a,o,i]}var Cl=class extends U{constructor(e){super(),G(this,e,ly,oy,j,{item:1})}},qh=Cl;var qs=require("obsidian");var Ws=require("obsidian");function cy(n){re(n,"svelte-1xutc2s",".search.svelte-1xutc2s,.search.svelte-1xutc2s input{width:100%}")}function uy(n){let e,t,i,a;return{c(){e=v("div"),g(e,"class","search svelte-1xutc2s")},m(s,r){D(s,e,r),i||(a=J(t=n[1].call(null,e)),i=!0)},p:N,i:N,o:N,d(s){s&&x(e),i=!1,a()}}}function dy(n,e,t){let i,a=N,s=()=>(a(),a=Dt(r,c=>t(3,i=c)),r);n.$$.on_destroy.push(()=>a());let{filter:r}=e;s();let{placeholder:o}=e,l=c=>{let d=new Ws.SearchComponent(c).setPlaceholder(o).onChange((0,Ws.debounce)(u=>{Ae(r,i=u,i)},10));r.subscribe(u=>{(!u||!u.length)&&d.setValue("")})};return n.$$set=c=>{"filter"in c&&s(t(0,r=c.filter)),"placeholder"in c&&t(2,o=c.placeholder)},[r,l,o]}var xl=class extends U{constructor(e){super(),G(this,e,dy,uy,j,{filter:0,placeholder:2},cy)}},jh=xl;function hy(n){re(n,"svelte-66wdl1","div.svelte-66wdl1{display:inline-block;vertical-align:middle;margin:0 3pt;border-width:calc(1em / 5);border-style:solid;border-radius:50%;animation:var(--duration) infinite svelte-66wdl1-rotate}@keyframes svelte-66wdl1-rotate{100%{transform:rotate(360deg)}}")}function fy(n){let e,t=`${n[0]} transparent ${n[0]}
|
||||
${n[0]}`;return{c(){e=v("div"),ze(e,"--duration",n[1]),g(e,"class","svelte-66wdl1"),ze(e,"border-color",t),ze(e,"width",n[2]),ze(e,"height",n[2])},m(i,a){D(i,e,a)},p(i,[a]){a&2&&ze(e,"--duration",i[1]);let s=a&2;(a&3&&t!==(t=`${i[0]} transparent ${i[0]}
|
||||
${i[0]}`)||s)&&ze(e,"border-color",t),(a&6||s)&&ze(e,"width",i[2]),(a&6||s)&&ze(e,"height",i[2])},i:N,o:N,d(i){i&&x(e)}}}function my(n,e,t){let{color:i="cornflowerblue"}=e,{duration:a="1.5s"}=e,{size:s="1em"}=e;return n.$$set=r=>{"color"in r&&t(0,i=r.color),"duration"in r&&t(1,a=r.duration),"size"in r&&t(2,s=r.size)},[i,a,s]}var Al=class extends U{constructor(e){super(),G(this,e,my,fy,j,{color:0,duration:1,size:2},hy)}},Tl=Al;function Hs(n){return Object.prototype.toString.call(n)==="[object Date]"}function Dl(n,e,t,i){if(typeof t=="number"||Hs(t)){let a=i-t,s=(t-e)/(n.dt||1/60),r=n.opts.stiffness*a,o=n.opts.damping*s,l=(r-o)*n.inv_mass,c=(s+l)*n.dt;return Math.abs(c)<n.opts.precision&&Math.abs(a)<n.opts.precision?i:(n.settled=!1,Hs(t)?new Date(t.getTime()+c):t+c)}else{if(Array.isArray(t))return t.map((a,s)=>Dl(n,e[s],t[s],i[s]));if(typeof t=="object"){let a={};for(let s in t)a[s]=Dl(n,e[s],t[s],i[s]);return a}else throw new Error(`Cannot spring ${typeof t} values`)}}function Vh(n,e={}){let t=Be(n),{stiffness:i=.15,damping:a=.8,precision:s=.01}=e,r,o,l,c=n,d=n,u=1,h=0,f=!1;function m(b,_={}){d=b;let S=l={};return n==null||_.hard||p.stiffness>=1&&p.damping>=1?(f=!0,r=An(),c=b,t.set(n=d),Promise.resolve()):(_.soft&&(h=1/((_.soft===!0?.5:+_.soft)*60),u=0),o||(r=An(),f=!1,o=Kn(C=>{if(f)return f=!1,o=null,!1;u=Math.min(u+h,1);let M={inv_mass:u,opts:p,settled:!0,dt:(C-r)*60/1e3},w=Dl(M,c,n,d);return r=C,c=n,t.set(n=w),M.settled&&(o=null),!M.settled})),new Promise(C=>{o.promise.then(()=>{S===l&&C()})}))}let p={set:m,update:(b,_)=>m(b(d,n),_),subscribe:t.subscribe,stiffness:i,damping:a,precision:s};return p}function gy(n){let e,t=`rotate(${n[0].angle}deg) scale(${n[0].scale}) translate(${n[0].dx}px,
|
||||
${n[0].dy}px)`,i,a=n[11].default,s=st(a,n,n[10],null);return{c(){e=v("span"),s&&s.c(),ze(e,"transform",t)},m(r,o){D(r,e,o),s&&s.m(e,null),i=!0},p(r,[o]){s&&s.p&&(!i||o&1024)&&ot(s,a,r,r[10],i?rt(a,r[10],o,null):lt(r[10]),null),o&1&&t!==(t=`rotate(${r[0].angle}deg) scale(${r[0].scale}) translate(${r[0].dx}px,
|
||||
${r[0].dy}px)`)&&ze(e,"transform",t)},i(r){i||(E(s,r),i=!0)},o(r){I(s,r),i=!1},d(r){r&&x(e),s&&s.d(r)}}}function py(n,e,t){let i,{$$slots:a={},$$scope:s}=e,{wiggle:r=!1}=e,{angle:o=0}=e,{scale:l=1}=e,{dx:c=0}=e,{dy:d=0}=e,{duration:u=200}=e,{stiffness:h=.05}=e,{damping:f=.1}=e,m={angle:0,scale:1,dx:0,dy:0},p=Vh(m,{stiffness:h,damping:f});return Se(n,p,b=>t(0,i=b)),n.$$set=b=>{"wiggle"in b&&t(2,r=b.wiggle),"angle"in b&&t(3,o=b.angle),"scale"in b&&t(4,l=b.scale),"dx"in b&&t(5,c=b.dx),"dy"in b&&t(6,d=b.dy),"duration"in b&&t(7,u=b.duration),"stiffness"in b&&t(8,h=b.stiffness),"damping"in b&&t(9,f=b.damping),"$$scope"in b&&t(10,s=b.$$scope)},n.$$.update=()=>{n.$$.dirty&132&&r&&setTimeout(()=>t(2,r=!1),u),n.$$.dirty&124&&p.set(r?{scale:l,angle:o,dx:c,dy:d}:m)},[i,p,r,o,l,c,d,u,h,f,s,a]}var El=class extends U{constructor(e){super(),G(this,e,py,gy,j,{wiggle:2,angle:3,scale:4,dx:5,dy:6,duration:7,stiffness:8,damping:9})}},Ml=El;function by(n){let e,t,i=[n[0],{fill:"currentColor"},{viewBox:"0 0 16 16"}],a={};for(let s=0;s<i.length;s+=1)a=at(a,i[s]);return{c(){e=Gt("svg"),t=Gt("path"),g(t,"d","M3.646 9.146a.5.5 0 0 1 .708 0L8 12.793l3.646-3.647a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708zm0-2.292a.5.5 0 0 0 .708 0L8 3.207l3.646 3.647a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 0 0 0 .708z"),cn(e,a)},m(s,r){D(s,e,r),y(e,t)},p(s,[r]){cn(e,a=In(i,[r&1&&s[0],{fill:"currentColor"},{viewBox:"0 0 16 16"}]))},i:N,o:N,d(s){s&&x(e)}}}function yy(n,e,t){return n.$$set=i=>{t(0,e=at(at({},e),Ut(i)))},e=Ut(e),[e]}var Il=class extends U{constructor(e){super(),G(this,e,yy,by,j,{})}},Ol=Il;function vy(n){let e,t,i=[n[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}],a={};for(let s=0;s<i.length;s+=1)a=at(a,i[s]);return{c(){e=Gt("svg"),t=Gt("path"),g(t,"d","M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"),cn(e,a)},m(s,r){D(s,e,r),y(e,t)},p(s,[r]){cn(e,a=In(i,[r&1&&s[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}]))},i:N,o:N,d(s){s&&x(e)}}}function ky(n,e,t){return n.$$set=i=>{t(0,e=at(at({},e),Ut(i)))},e=Ut(e),[e]}var Pl=class extends U{constructor(e){super(),G(this,e,ky,vy,j,{})}},zs=Pl;function wy(n){let e,t,i=[n[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}],a={};for(let s=0;s<i.length;s+=1)a=at(a,i[s]);return{c(){e=Gt("svg"),t=Gt("path"),g(t,"d","M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10Zm-4.906-3.68L18.32 7.094A8 8 0 0 1 7.094 18.32ZM5.68 16.906A8 8 0 0 1 16.906 5.68L5.68 16.906Z"),cn(e,a)},m(s,r){D(s,e,r),y(e,t)},p(s,[r]){cn(e,a=In(i,[r&1&&s[0],{viewBox:"0 0 24 24"},{fill:"currentColor"}]))},i:N,o:N,d(s){s&&x(e)}}}function _y(n,e,t){return n.$$set=i=>{t(0,e=at(at({},e),Ut(i)))},e=Ut(e),[e]}var Rl=class extends U{constructor(e){super(),G(this,e,_y,wy,j,{})}},Nl=Rl;var it=n=>n instanceof Object?(n.label===void 0&&console.error(`MultiSelect option ${JSON.stringify(n)} is an object but has no label key`),n.label):`${n}`;function Ca(n,e=null){if(!n?.style)return null;if(!["selected","option",null].includes(e)){console.error(`MultiSelect: Invalid key=${e} for get_style`);return}if(typeof n=="object"&&n.style){if(typeof n.style=="string")return n.style;if(typeof n.style=="object"){if(e&&e in n.style)return n.style[e];console.error(`Invalid style object for option=${JSON.stringify(n)}`)}}}var{Boolean:Sy}=$i;function Cy(n){re(n,"svelte-1r2hsto",".svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect){position:relative;align-items:center;display:flex;cursor:text;box-sizing:border-box;border:var(--sms-border, 1pt solid lightgray);border-radius:var(--sms-border-radius, 3pt);background:var(--sms-bg);width:var(--sms-width);max-width:var(--sms-max-width);padding:var(--sms-padding, 0 3pt);color:var(--sms-text-color);font-size:var(--sms-font-size, inherit);min-height:var(--sms-min-height, 22pt);margin:var(--sms-margin)}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect.open){z-index:var(--sms-open-z-index, 4)}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect:focus-within){border:var(--sms-focus-border, 1pt solid var(--sms-active-color, cornflowerblue))}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect.disabled){background:var(--sms-disabled-bg, lightgray);cursor:not-allowed}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect > ul.selected){display:flex;flex:1;padding:0;margin:0;flex-wrap:wrap}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect > ul.selected > li){align-items:center;border-radius:3pt;display:flex;margin:2pt;line-height:normal;transition:0.3s;white-space:nowrap;background:var(--sms-selected-bg, rgba(0, 0, 0, 0.15));padding:var(--sms-selected-li-padding, 1pt 5pt);color:var(--sms-selected-text-color, var(--sms-text-color))}.svelte-1r2hsto.svelte-1r2hsto.svelte-1r2hsto:where(div.multiselect > ul.selected > li[draggable=
Line truncated
|
||||
|
||||
${u}`),console.error(u)});await this.plugin.saveSettings(),s.value="",this.buildCustomLayouts(o,t)}catch{}},a.addButton(l=>{l.setIcon("upload"),l.buttonEl.addClass("statblock-file-upload"),l.buttonEl.appendChild(s),l.onClick(()=>s.click())}),new ke.Setting(i).setName("Add New Layout").addButton(l=>l.setIcon("plus-with-circle").setTooltip("Add New Layout").onClick(()=>{let c=new Aa(this.plugin);c.onClose=async()=>{if(!c.saved)return;let d=this.getDuplicate(c.layout);this.plugin.settings.layouts.push(d),this.plugin.manager.addLayout(d),await this.plugin.saveSettings(),this.buildCustomLayouts(o,t)},c.open()}));let r=i.createDiv("additional");new ke.Setting(r).setName("Default Layout").setDesc("Change the default statblock layout used, if not specified.").addDropdown(async l=>{for(let c of this.plugin.manager.getAllLayouts())l.addOption(c.id,c.name);(!this.plugin.settings.default||!this.plugin.manager.getAllLayouts().find(({id:c})=>c==this.plugin.settings.default))&&(this.plugin.settings.default=rn.id,await this.plugin.saveSettings()),l.setValue(this.plugin.settings.default??rn.id),l.onChange(async c=>{this.plugin.settings.default=c,this.plugin.manager.setDefaultLayout(c),await this.plugin.saveSettings()})}),new ke.Setting(r).setName("Show Advanced Options").setDesc("Show advanced options when editing layout blocks.").addToggle(l=>l.setValue(this.plugin.settings.showAdvanced).onChange(async c=>{this.plugin.settings.showAdvanced=c,await this.plugin.saveSettings()}));let o=i.createDiv("additional");this.buildCustomLayouts(o,t)}getDuplicate(t){if(!this.plugin.manager.getAllLayouts().find(o=>o.name==t.name))return t;let i=this.plugin.manager.getSortedLayoutNames().filter(o=>o.contains(`${t.name} Copy`)),a=`${t.name} Copy`,s=a,r=1;for(;i.includes(s);)s=`${a} (${r})`,r++;return{blocks:Ze(t.blocks),name:s,id:Q()}}buildCustomLayouts(t,i){t.empty(),this.plugin.manager.getAllDefaultLayouts().some(a=>a.removed)&&new ke.Setting(t).setName("Restore Default Layouts").addButton(a=>{a.setIcon("rotate-ccw").onClick(async()=>{for(let s of Object.values(this.plugin.settings.defaultLayouts))s.removed=!1,s.edited||delete this.plugin.settings.defaultLayouts[s.id];await this.plugin.saveSettings(),this.generateLayouts(i)})});for(let a of this.plugin.manager.getAllDefaultLayouts()){if(a.removed)continue;let s=new ke.Setting(t).setName(a.name).addExtraButton(r=>{r.setIcon("pencil").setTooltip("Edit").onClick(()=>{let o=new Aa(this.plugin,a);o.onClose=async()=>{o.saved&&(o.layout.edited=!0,this.plugin.settings.defaultLayouts[a.id]=o.layout,await this.plugin.saveSettings(),this.plugin.manager.updateDefaultLayout(a.id,o.layout),this.generateLayouts(i))},o.open()})});a.edited&&s.addExtraButton(r=>r.setIcon("undo").onClick(async()=>{let o=ci.find(({id:l})=>l==a.id);delete this.plugin.settings.defaultLayouts[a.id],await this.plugin.saveSettings(),this.plugin.manager.updateDefaultLayout(a.id,o),this.generateLayouts(i)})),s.addExtraButton(r=>{r.setIcon("duplicate-glyph").setTooltip("Create Copy").onClick(async()=>{let o=this.getDuplicate(a);this.plugin.settings.layouts.push(o),await this.plugin.saveSettings(),this.plugin.manager.addLayout(o),this.buildCustomLayouts(t,i)})}).addExtraButton(r=>{r.setIcon("import-glyph").setTooltip("Export as JSON").onClick(()=>{let o=createEl("a"),l=new Blob([JSON.stringify(a)],{type:"json"}),c=URL.createObjectURL(l);o.href=c,o.download=`${a.name}.json`,o.click(),URL.revokeObjectURL(c)})}).addExtraButton(r=>{r.setIcon("trash").setTooltip("Delete").onClick(async()=>{a.removed=!0,this.plugin.settings.defaultLayouts[a.id]=a,await this.plugin.saveSettings(),this.generateLayouts(i)})})}for(let a of this.plugin.settings.layouts)new ke.Setting(t).setName(a.name).addExtraButton(s=>{s.setIcon("pencil").setTooltip("Edit").onClick(()=>{let r=new Aa(this.plugin,a);r.onClose=async()=>{r.saved&&(ci.find(({id:o})=>o==a.id)&&(r.layout.edited=!0),this.plugin.settings.layouts.splice(this.plugin.settings.layouts.indexOf(a),1,r.layout),await this.plugin.saveSettings(),this.plugin.manager.updateLayout(a.id,r.layout),this.generateLayouts(i))},r.open()})}).addExtraButton(s=>{s.setIcon("duplicate-glyph").setTooltip("Create Copy").onClick(async()=>{let r=this.getDuplicate(a);this.plugin.settings.layouts.push(r),await this.plugin.saveSettings(),this.plugin.manager.addLayout(r),this.buildCustomLayouts(t,i)})}).addExtraButton(s=>{s.setIcon("import-glyph").setTooltip("Export as JSON").onClick(()=>{let r=createEl("a"),o=new Blob([JSON.stringify(a)],{type:"json"}),l=URL.createObjectURL(o);r.href=l,r.download=`${a.name}.json`,r.click(),URL.revokeObjectURL(l)})}).addExtraButton(s=>{s.setIcon("trash").setTooltip("Delete").onClick(async()=>{this.plugin.settings.layouts=this.plugin.settings.layouts.filter(r=>r.id!==a.id),await this.plugin.saveSettings(),this.plugin.manager.removeLayout(a.id),this.generateLayouts(i)})})}generateImports(t){t.empty(),new ke.Setting(t).setHeading().setName("Import Homebrew Creatures");let i=t.createDiv("statblock-addi
Line truncated
|
||||
- name:
|
||||
desc:`,o=t.length-10;break}case"table":{t=`${t}: []`,o=t.length-1;break}case"saves":case"spells":{t=`${t}:
|
||||
- `,o=t.length;break}case"inline":case"group":case"ifelse":case"collapse":case"javascript":case"layout":default:break}else t=`${t}: `,o=t.length;this.context.editor.replaceRange(`${t}`,this.context.start,{...this.context.end,ch:this.context.start.ch+this.context.query.length+(r?.length??0)},"statblocks"),this.context.editor.setCursor(this.context.start.line,this.context.start.ch+o),this.close()}onTrigger(t,i,a){let s=i.getRange({line:0,ch:0},t);if(s.indexOf("```statblock\n")===-1)return null;let r=s.split(`
|
||||
`),o=!1,l;for(let d=r.length-1;d>=0;d--){let u=r[d];if(/^\`\`\`$/.test(u))return null;if(/^\`\`\`statblock/.test(u)){o=!0,l=d;break}}if(!o)return;let c=i.getLine(t.line);if(this._context=4,/^name/.test(c))return null;if(/^(dice|render)/.test(c)){this._context=3;let d=c.match(/^(dice|render):\s?(.*)\n?/);if(!d)return null;let[u,h,f]=d;return f==="true"||f==="false"?null:{end:t,start:{ch:h.length+2,line:t.line},query:f}}if(/^(monster|creature|extends):/.test(c)){this._context=1;let d=c.match(/^(monster|creature|extends):\s?(.*)\n?/);if(!d)return null;let[u,h,f]=d;return ve.getBestiaryNames().find(m=>m.toLowerCase()==f.toLowerCase())?null:{end:t,start:{ch:h.length+2,line:t.line},query:f}}if(/^(layout):/m.test(c)){this._context=0;let d=c.match(/^(layout):\s?(.*)\n?/);if(!d)return null;let[u,h,f]=d;return this.plugin.manager.getAllLayouts().find(p=>p.name.toLowerCase()==f.toLowerCase())?null:{end:t,start:{ch:h.length+2,line:t.line},query:f}}try{let d=i.getValue().split(`
|
||||
`);d.splice(t.line,1),d=d.slice(l+1);let u=d.findIndex(f=>/^```$/.test(f));u<0&&(u=d.length);let h=(0,Vs.parseYaml)(d.slice(0,u).join(`
|
||||
`));this._keys=Object.keys(h),this._layout=h.layout??this.plugin.manager.getDefaultLayout().name}catch{this._keys=[]}return this._keys||(this._keys=[]),this._context=2,{end:t,start:{ch:0,line:t.line},query:c}}};var fi,St,jl,Us,Ea,fn,_n,Ma,Vl,Ul,Da=class{constructor(){Le(this,St);Le(this,fi,new Map);Le(this,Ea);Le(this,fn,new Map);Le(this,_n,new Map);Le(this,Ma,new WeakMap)}initialize(e){this.setDefaultLayout(e.default),this.setDefaultLayouts(e.defaultLayouts),this.setLayouts(e.layouts);for(let t of this.getAllLayouts())this.addStyleSheet(t)}unload(){for(let e of X(this,fi).values())e.detach()}addStyleSheet(e){this.removeStyleSheet(e.id);let t=this.generateStyleSheet(e);t&&X(this,fi).set(e.id,t)}removeStyleSheet(e){X(this,fi).has(e)&&X(this,fi).get(e).detach()}getSheetRules(e){if(!e.cssProperties)return[];let t=`.${e.name.toLowerCase().replace(/\s+/g,"-")}`,i=[Oe(this,St,Us).call(this,t,{...cl,...e.cssProperties})];return Te.Light in e.cssProperties&&i.push(Oe(this,St,Us).call(this,`.theme-light ${t}`,e.cssProperties[Te.Light])),Te.Dark in e.cssProperties&&i.push(Oe(this,St,Us).call(this,`.theme-dark ${t}`,e.cssProperties[Te.Dark])),i}generateStyleSheet(e,t=`FS_CSS_PROPERTIES_${e.id}`){if(!e.cssProperties)return null;let i=document.head.createEl("style",{attr:{id:t}}),a=this.getSheetRules(e);for(let s of a)i.sheet.insertRule(s,i.sheet.cssRules.length);return i}updateDefaultLayout(e,t){X(this,fn).delete(e),this.setDefaultLayouts({[t.id]:t}),this.addStyleSheet(t)}removeDefaultLayout(e){X(this,fn).delete(e),this.removeStyleSheet(e)}setDefaultLayouts(e){for(let t of ci)X(this,fn).set(t.id,t.id in e?e[t.id]:t);setTimeout(()=>{for(let t of X(this,fn).values())Oe(this,St,Vl).call(this,t)},0)}setDefaultLayout(e){an(this,Ea,e)}getDefaultLayout(){return this.getAllLayouts()?.find(e=>e.id==X(this,Ea))??rn}setLayouts(e){for(let t of e)X(this,_n).set(t.id,t);setTimeout(()=>{for(let t of e)Oe(this,St,Vl).call(this,t)},0)}getCustomLayouts(){return X(this,_n).values()}getAllLayouts(){return[...X(this,fn).values(),...X(this,_n).values()].filter(e=>!("removed"in e)||!e.removed)}getAllDefaultLayouts(){return[...X(this,fn).values()]}getLayout(e){return X(this,_n).get(e)??X(this,fn).get(e)??null}getLayoutOrDefault(e){return this.getAllLayouts().find(t=>t.name==e)??this.getDefaultLayout()}updateLayout(e,t){X(this,_n).delete(e),this.setLayouts([t]),this.addStyleSheet(t)}removeLayout(e){X(this,_n).delete(e),this.removeStyleSheet(e)}addLayout(e){this.setLayouts([e]),this.addStyleSheet(e)}getSortedLayoutNames(){let e=new Set([this.getDefaultLayout().name]);for(let t of this.getAllLayouts())e.has(t.name)||e.add(t.name);return[...e]}getProperties(e){let t=typeof e=="string"?this.getLayout(e):e;return X(this,Ma).get(t)}};fi=new WeakMap,St=new WeakSet,jl=function(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)},Us=function(e,t){let i=[];for(let[a,s]of Object.entries(t)){if(a==Te.Dark||a==Te.Light)continue;let r=wa.includes(s)?`var(--statblock-${Oe(this,St,jl).call(this,s)})`:s;i.push(`
|
||||
--statblock-${Oe(this,St,jl).call(this,a)}: ${r};`)}return`${e} {${i.join("")}
|
||||
}`},Ea=new WeakMap,fn=new WeakMap,_n=new WeakMap,Ma=new WeakMap,Vl=function(e){let t=new Map;X(this,Ma).set(e,Oe(this,St,Ul).call(this,e.blocks,t))},Ul=function(e,t){for(let i of e){if("nested"in i){Oe(this,St,Ul).call(this,i.nested,t);continue}if("properties"in i)for(let a of i.properties)t.set(a,i)}return t};var zn=require("obsidian");var Sn="fantasy-statblocks-creature-pane",Ia=class extends zn.ItemView{constructor(t,i){super(t);this.plugin=i;this.topEl=this.contentEl.createDiv("creature-view-top-pane");this.statblockEl=this.contentEl.createDiv("creature-statblock-container");this.load(),this.containerEl.addClasses(["fantasy-statblocks","creature-view-container"]),this.containerEl.on("mouseover","a.internal-link",(0,zn.debounce)(a=>{this.plugin.app.workspace.trigger("hover-link",{event:a,source:this.plugin.manifest.id,hoverParent:this.leaf,targetEl:a.target,linktext:a.target.dataset.href})},10)),this.containerEl.on("click","a.internal-link",a=>this.app.workspace.openLinkText(a.target.dataset.href,"fantasy-statblocks"))}onload(){let t=new zn.SearchComponent(this.topEl).setPlaceholder("Find a creature"),i=new Bi(this.plugin.app,t,ve.getBestiaryCreatures());ve.onResolved(()=>{i.items=ve.getBestiaryCreatures()}),i.onSelect(async a=>{a&&(await this.render(a.item),t.setValue(""))}),new zn.ExtraButtonComponent(this.topEl).setIcon("cross").setTooltip("Close Statblock").onClick(async()=>{await this.render(),t.setValue("")})}async render(t){if(this.statblockEl.empty(),!t){this.statblockEl.createEl("em",{text:"Select a creature to view it here."});return}let i=this.plugin.api.render(t,this.statblockEl);this.addChild(i)}getDisplayText(){return"Combatant"}getIcon(){return"skull"}getViewType(){return Sn}};var Ks=require("obsidian");var qn,Gs=class{constructor(e){Le(this,qn);an(this,qn,e)}getVersion(){return X(this,qn).settings.version}getBestiary(){return ve.getBestiary()}getBestiaryCreatures(){return ve.getBestiaryCreatures()}getBestiaryNames(){return ve.getBestiaryNames()}hasCreature(e){return ve.hasCreature(e)}getCreatureFromBestiary(e){return ve.getCreatureFromBestiarySync(e)}async getCreature(e){return await ve.getCreatureFromBestiary(e)}getSortedBy(e){return ve.getSortedBy(e)}onSortedBy(e,t){return ve.onSortedBy(e,t)}registerSorter(e,t){return ve.registerSorter(e,t)}getIndices(){return ve.getIndices()}getIndex(e){return ve.getIndex(e)}registerIndex(e){return ve.registerIndex(e)}onIndexUpdated(e,t){return ve.onIndexUpdated(e,t)}isResolved(){return ve.isResolved()}onResolved(e){return ve.onResolved(e)}onUpdated(e){return ve.onUpdated(e)}render(e,t,i){let a=Object.assign({},Ze(this.getCreatureFromBestiary(e.name??"")??{}),Ze(e));return a?(i&&(a.name=i),new Yt({container:t,monster:a,plugin:X(this,qn),context:"STATBLOCK_RENDERER"})):new Ks.Component}isStatblockLink(e){return Ht.isStatblockLink(e)}parseStatblockLink(e){return Ht.stringifyLinks(e)}stringifyLinks(e){return Ht.stringifyLinks(e)}transformLinks(e){return Ht.transformSource(e)}renderMarkdown(e,t,i="",a=X(this,qn)){Ks.MarkdownRenderer.render(X(this,qn).app,e,t,i,a)}};qn=new WeakMap;var hi="FANTASY_STATBLOCKS_PLUGIN",fv={monsters:[],defaultLayouts:{},layouts:[],default:rn.name,useDice:!0,renderDice:!1,export:!0,showAdvanced:!1,version:{major:null,minor:null,patch:null},paths:["/"],autoParse:!1,disableSRD:!1,tryToRenderLinks:!0,debug:!1,notifiedOfFantasy:!1,hideConditionHelp:!1,alwaysImport:!1,defaultLayoutsIntegrated:!1,atomicWrite:!1},Ys,$s=class extends jn.Plugin{constructor(){super(...arguments);this.manager=new Da;this.api=new Gs(this);Le(this,Ys,t=>{let i=t?.creature??t?.name??"";if(ve.hasCreature(i)){let a=ve.get(i);this.creature_view?this.creature_view.render(a):this.openCreatureView().then(s=>s.render(a))}})}getRoller(t){return this.canUseDiceRoller?window.DiceRoller.getRollerSync(t,hi):void 0}getRollerString(t){return this.canUseDiceRoller?window.DiceRoller.getRollerString(t,hi):t}get diceRollerInstalled(){return window.DiceRoller!=null}get canUseDiceRoller(){return this.diceRollerInstalled?this.settings.useDice:!1}get creature_view(){let t=this.app.workspace.getLeavesOfType(Sn),i=t?.length?t[0]:null;if(i&&i.view&&i.view instanceof Ia)return i.view}async openCreatureView(t=!1){let i,a=this.app.workspace.getLeavesOfType(Sn);return!t&&a?.length?i=a.shift():(t&&a?.length?i=this.app.workspace.createLeafInParent(a[0].parent,a[0].parent.children.length):i=this.app.workspace.getRightLeaf(!0),await i.setViewState({type:Sn})),this.app.workspace.revealLeaf(i),i.view}async onload(){console.log("Fantasy StatBlocks loaded"),this.app.workspace.trigger("fantasy-statblocks:loaded",null),await this.loadSettings(),await this.saveSettings(),this.manager.initialize(this.settings),this.register(()=>this.manager.unload()),ve.initialize(this),ut.initialize(this.app.metadataCache,this.app),this.register(()=>ut.unload()),this.registerHoverLinkSource(this.manifest.id,{display:this.manifest.name,defaultMod:!1}),this.addCommand({id:"open-creature-view",name:"Open Creat
Line truncated
|
||||
|
||||
${r.message}`),console.error(r)})}get layouts(){return this.manager.getAllLayouts()}get defaultLayout(){return this.manager.getDefaultLayout()}getLayoutOrDefault(t){return this.manager.getLayoutOrDefault(t.layout)}async postprocessor(t,i,a){try{t=ut.transformSource(t);let s=(0,jn.parseYaml)(t);i.addClass("statblock-plugin-container"),i.parentElement?.addClass("statblock-plugin-parent");let r=new Yt({container:i,plugin:this,params:s,context:a.sourcePath});a.addChild(r)}catch(s){console.error(`Obsidian Statblock Error:
|
||||
${s}`),createEl("pre").setText(`\`\`\`statblock
|
||||
There was an error rendering the statblock:
|
||||
${s.stack.split(`
|
||||
`).filter(o=>!/^at/.test(o?.trim())).join(`
|
||||
`)}
|
||||
\`\`\``)}}render(t,i,a){this.api.render(t,i,a)}};Ys=new WeakMap;
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "obsidian-5e-statblocks",
|
||||
"name": "Fantasy Statblocks",
|
||||
"version": "4.9.1",
|
||||
"description": "Create Fantasy Statblocks in Obsidian.md",
|
||||
"minAppVersion": "0.12.0",
|
||||
"author": "Jeremy Valentine",
|
||||
"authorUrl": "",
|
||||
"fundingUrl": "https://www.buymeacoffee.com/valentine195",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
@charset "UTF-8";:root{--statblock-primary-color: #7a200d;--statblock-rule-color: #922610;--statblock-background-color: #fdf1dc;--statblock-bar-color: #e69a28;--statblock-bar-border-size: 1px;--statblock-bar-border-color: #000;--statblock-image-width: 75px;--statblock-image-height: 75px;--statblock-image-border-size: 2px;--statblock-image-border-color: var(--statblock-primary-color);--statblock-border-size: 1px;--statblock-border-color: #ddd;--statblock-box-shadow-color: #ddd;--statblock-box-shadow-x-offset: 0;--statblock-box-shadow-y-offset: 0;--statblock-box-shadow-blur: 1.5em;--statblock-font-color: var(--statblock-primary-color);--statblock-font-weight: 700;--statblock-content-font: "Noto Sans", "Myriad Pro", Calibri, Helvetica, Arial, sans-serif;--statblock-content-font-size: 14px;--statblock-heading-font: "Libre Baskerville", "Lora", "Calisto MT", "Bookman Old Style", Bookman, "Goudy Old Style", Garamond, "Hoefler Text", "Bitstream Charter", Georgia, serif;--statblock-heading-font-color: var(--statblock-font-color);--statblock-heading-font-size: 23px;--statblock-heading-font-variant: small-caps;--statblock-heading-font-weight: var(--statblock-font-weight);--statblock-heading-line-height: inherit;--statblock-property-line-height: 1.4;--statblock-property-font-color: var(--statblock-font-color);--statblock-property-name-font-color: var(--statblock-font-color);--statblock-property-name-font-weight: bold;--statblock-section-heading-border-size: 1px;--statblock-section-heading-border-color: var(--statblock-primary-color);--statblock-section-heading-font-color: var(--statblock-font-color);--statblock-section-heading-font-size: 21px;--statblock-section-heading-font-variant: small-caps;--statblock-section-heading-font-weight: normal;--statblock-saves-line-height: 1.4;--statblock-spells-font-style: italic;--statblock-subheading-font-size: 12px;--statblock-subheading-font-style: italic;--statblock-subheading-font-weight: normal;--statblock-table-header-font-weight: bold;--statblock-traits-name-font-weight: bold;--statblock-traits-name-font-style: italic;--statblock-link-style: italic}.statblock-detached{position:absolute;top:-9999px;width:auto}.statblock-item-container{margin-bottom:.25rem}.statblock-item-inline{display:flex;justify-content:space-between}.statblock-filter-container .search-input-container{margin-bottom:0}.no-border-top{border-top:0}.statblock-edit-block .statblock-additional-container>.additional>.setting-item .setting-item-name{font-size:small;font-style:italic}.statblock-edit-block .statblock-additional-container>.additional>.setting-item{color:var(--text-muted)}.statblock-edit-block .statblock-additional-container>:not(.additional){padding-bottom:0}.fantasy-statblocks-modal .copy-code-button,.statblock-edit-block .copy-code-button{display:none}.statblock-edit-block .setting-item{border:0;padding-top:0rem}.statblock-edit-block textarea{width:100%;resize:vertical;overflow:hidden}.statblock-additional-container.statblock-monsters button{margin-right:0}.statblock-file-upload>input[type=file]{display:none}.statblock-additional-container{border-top:1px solid var(--background-modifier-border);border-bottom:0px solid var(--background-modifier-border);padding:18px 0 0;background-color:inherit}.statblock-additional-container details{padding:18px 0}.statblock-additional-container .clickable-icon{margin:0 6px}.statblock-additional-container .task-list-inline{display:grid;grid-template-columns:1fr 1fr;gap:0 3em;padding-bottom:0;margin:0}.statblock-monster-filter{position:sticky;top:calc(-1 * var(--statblock-filter-offset));background-color:var(--statblock-filter-bg);z-index:99999}.statblock-additional-container>.setting-item-heading:only-child{padding-bottom:18px}.statblock-additional-container>.additional{margin:6px 12px}.statblock-additional-container .setting-item{border-top:0}.statblock-additional-container>.additional>.setting-item{padding-top:9px}.statblock-additional-container>.additional>.setting-item>.setting-item-control>*:first-child{margin:0 6px}.statblock-settings .coffee{width:60%;color:var(--text-faint);margin:1rem auto;text-align:center}.statblock-settings .coffee img{height:30px}details.statblock-nested-settings>summary{outline:none;display:flex;justify-content:space-between;min-height:1rem;border-top-left-radius:.1rem;border-top-right-radius:.1rem;cursor:pointer;position:relative;margin-bottom:1rem}details.statblock-nested-settings>summary>.setting-item{padding-bottom:0}.statblock-nested-settings .cm-editor{margin-bottom:1rem}details.statblock-nested-settings>summary::-webkit-details-marker,details.statblock-nested-settings>summary::marker{display:none!important}details.statblock-nested-settings .summary-content{display:flex;align-items:center;justify-content:space-between}details.statblock-nested-settings[open] .summary-content{border-bottom:1px solid var(--background-modifier-border)}details.statblock-nested-settings .summary-content .setting-item-heading{padding:0}details.statblock-Line truncated
|
||||
/*!
|
||||
Pathfinder TTRPG General Statblock Layout CSS
|
||||
|
||||
version: 1.6.1
|
||||
by: Moritz Jung (https://github.com/mProjectsCode) and Sigrunixia
|
||||
repo: https://github.com/mProjectsCode/obsidian-pathfinder2e-statblocks
|
||||
|
||||
This file was generated from SCSS.
|
||||
Looking for `!important`?
|
||||
- Check for:
|
||||
Rare_0X
|
||||
Trait_0X
|
||||
Popover
|
||||
|
||||
That is the only spots they are used in this file.
|
||||
*/
|
||||
/*!
|
||||
/* @settings
|
||||
name: Pathfinder 2e Statblocks
|
||||
id: pathfinder-2e-statblocks
|
||||
collapsed: true
|
||||
settings:
|
||||
-
|
||||
id: layout-theme-basic
|
||||
title: Creature Statblock Theme
|
||||
description: The theme of the creature statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: basic-pathfinder-2e-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: basic-pathfinder-2e-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: basic-pathfinder-2e-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-action
|
||||
title: Action Statblock Theme
|
||||
description: The theme of the action statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-action-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-action-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-action-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-hazard
|
||||
title: Hazard Statblock Theme
|
||||
description: The theme of the hazard statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-hazard-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-hazard-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-hazard-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-influence
|
||||
title: Influence Statblock Theme
|
||||
description: The theme of the influence subsystem statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-influence-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-influence-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-influence-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-item
|
||||
title: Item Statblock Theme
|
||||
description: The theme of the item statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-item-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-item-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-item-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-misc
|
||||
title: Misc Statblock Theme
|
||||
description: The theme of the misc statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-misc-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-misc-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-misc-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-plane
|
||||
title: Plane Statblock Theme
|
||||
description: The theme of the plane statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-plane-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-plane-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-plane-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-quest
|
||||
title: Quest Statblock Theme
|
||||
description: The theme of the quest statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-quest-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-quest-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-quest-layout-theme-kingmaker
|
||||
-
|
||||
id: layout-theme-settlement
|
||||
title: Settlement Statblock Theme
|
||||
description: The theme of the settlement statblock
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: pathfinder-2e-settlement-layout-theme-default
|
||||
options:
|
||||
-
|
||||
label: Default
|
||||
value: pathfinder-2e-settlement-layout-theme-default
|
||||
-
|
||||
label: Kingmaker
|
||||
value: pathfinder-2e-settlement-layout-theme-kingmaker
|
||||
*/
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"userAdmonitions": {
|
||||
"statblock": {
|
||||
"type": "statblock",
|
||||
"icon": {
|
||||
"name": "dragon",
|
||||
"type": "font-awesome"
|
||||
},
|
||||
"command": false,
|
||||
"injectColor": false,
|
||||
"noTitle": false,
|
||||
"copy": false,
|
||||
"color": "100, 182, 252"
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "flowchart",
|
||||
"icon": {
|
||||
"name": "map",
|
||||
"type": "font-awesome"
|
||||
},
|
||||
"command": false,
|
||||
"injectColor": false,
|
||||
"noTitle": true,
|
||||
"copy": false,
|
||||
"color": "239, 213, 149"
|
||||
},
|
||||
"gallery": {
|
||||
"type": "gallery",
|
||||
"icon": {
|
||||
"name": "image",
|
||||
"type": "font-awesome"
|
||||
},
|
||||
"command": false,
|
||||
"injectColor": false,
|
||||
"noTitle": true,
|
||||
"copy": false,
|
||||
"color": "151, 213, 6"
|
||||
},
|
||||
"readaloud": {
|
||||
"type": "readaloud",
|
||||
"icon": {
|
||||
"name": "book-reader",
|
||||
"type": "font-awesome"
|
||||
},
|
||||
"title": "Read Aloud",
|
||||
"command": false,
|
||||
"injectColor": false,
|
||||
"noTitle": false,
|
||||
"copy": false,
|
||||
"color": "50, 96, 169"
|
||||
}
|
||||
},
|
||||
"syntaxHighlight": false,
|
||||
"copyButton": false,
|
||||
"version": "10.3.2",
|
||||
"autoCollapse": false,
|
||||
"defaultCollapseType": "open",
|
||||
"injectColor": true,
|
||||
"parseTitles": true,
|
||||
"dropShadow": true,
|
||||
"hideEmpty": false,
|
||||
"open": {
|
||||
"admonitions": true,
|
||||
"icons": true,
|
||||
"other": true,
|
||||
"advanced": false
|
||||
},
|
||||
"icons": [],
|
||||
"useFontAwesome": true,
|
||||
"rpgDownloadedOnce": false,
|
||||
"msDocConverted": false,
|
||||
"useSnippet": false,
|
||||
"snippetPath": "custom-admonitions.c3af89"
|
||||
}
|
||||
+513
@@ -0,0 +1,513 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var t4=Object.create;var J=Object.defineProperty;var s4=Object.getOwnPropertyDescriptor;var h4=Object.getOwnPropertyNames;var v4=Object.getPrototypeOf,m4=Object.prototype.hasOwnProperty;var F1=i=>J(i,"__esModule",{value:!0});var z4=(i,c)=>()=>(c||i((c={exports:{}}).exports,c),c.exports),p4=(i,c)=>{F1(i);for(var a in c)J(i,a,{get:c[a],enumerable:!0})},d4=(i,c,a)=>{if(c&&typeof c=="object"||typeof c=="function")for(let e of h4(c))!m4.call(i,e)&&e!=="default"&&J(i,e,{get:()=>c[e],enumerable:!(a=s4(c,e))||a.enumerable});return i},S=i=>d4(F1(J(i!=null?t4(v4(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var X1=z4((LL,Q1)=>{"use strict";var h1=Object.defineProperty,H4=Object.getOwnPropertyDescriptor,V4=Object.getOwnPropertyNames,g4=Object.prototype.hasOwnProperty,L4=(i,c)=>{for(var a in c)h1(i,a,{get:c[a],enumerable:!0})},x4=(i,c,a,e)=>{if(c&&typeof c=="object"||typeof c=="function")for(let n of V4(c))!g4.call(i,n)&&n!==a&&h1(i,n,{get:()=>c[n],enumerable:!(e=H4(c,n))||e.enumerable});return i},b4=i=>x4(h1({},"__esModule",{value:!0}),i),$1={};L4($1,{FileInputSuggest:()=>A4,FolderInputSuggest:()=>N4,FuzzyInputSuggest:()=>m1,createCollapsibleSection:()=>w4,setNodeIcon:()=>y4});Q1.exports=b4($1);var v1=require("obsidian"),m1=class extends v1.AbstractInputSuggest{constructor(i,c,a){super(i,c.inputEl);this.items=a}getSuggestions(i){let c=(0,v1.prepareSimpleSearch)(i),a=[];for(let e of this.items){let n=c(this.getItemText(e));n&&a.push({item:e,match:n})}return a}renderSuggestion(i,c){c.addClass("mod-complex");let a=c.createDiv({cls:"suggestion-content"});if(!i?.item){a.setText("No match found"),a.parentElement?.addClass("is-selected");return}this.renderTitle(a.createDiv("suggestion-title"),i),this.renderNote?.(a.createDiv("suggestion-note"),i),this.renderFlair?.(c.createDiv("suggestion-aux").createDiv("suggestion-flair"),i)}renderMatches(i,c,a,e){(0,v1.renderMatches)(i,c,a,e)}},Y1=require("obsidian"),N4=class extends m1{getItemText(i){return i.path}renderNote(i,c){let{item:a,match:e}=c;(0,Y1.renderMatches)(i,a.path,e.matches)}renderTitle(i,c){let{item:a,match:e}=c;(0,Y1.renderMatches)(i,a.name,e.matches,a.path.length-a.name.length)}},K1=require("obsidian"),A4=class extends m1{getItemText(i){return i.path}renderNote(i,c){let{item:a,match:e}=c;(0,K1.renderMatches)(i,a.path,e.matches)}renderTitle(i,c){let{item:a,match:e}=c;(0,K1.renderMatches)(i,a.name,e.matches,a.path.length-a.name.length)}},S4=require("obsidian");function y4(i,c){i.addClass("has-node-icon"),(0,S4.setIcon)(i,c)}var J1=require("obsidian");function w4(i,c,a,e){let n=i.createEl("details",{cls:"javalent-nested-settings",attr:{...a??!0?{open:"open"}:{}}});n.ontoggle=async()=>{e&&e(n.open)};let l=n.createEl("summary");return new J1.Setting(l).setHeading().setName(c),(0,J1.setIcon)(l.createDiv("handle"),"chevron-right"),n}});p4(exports,{default:()=>B1});var d=S(require("obsidian"));var q1=S(require("obsidian"));function M4(i,c){for(let a=0;a<c.length;a++)if(i.startsWith(c[a]))return a;return!1}function R1(i,c,a){let e=a.title??i[0].toUpperCase()+i.slice(1).toLowerCase(),n=["title:","collapse:","icon:","color:","metadata:"],l=["title","collapse","icon","color","metadata"],o=c.split(`
|
||||
`),r=0,f={};for(let H=0;H<o.length;H++){let p=M4(o[H],n);if(p===!1)break;let u=l[p];if(f[u]!==void 0)break;f[u]=o[H].slice(n[p].length).trim(),++r}let{title:s,collapse:h,icon:t,color:m,metadata:z}=f;if(m&&m.startsWith("rgb")&&(m=m.slice(4,-1)),m&&m.startsWith("#")){let H=m.slice(1),p=parseInt(H,16),u=p>>16&255,g=p>>8&255,L=p&255;m=`${u}, ${g}, ${L}`}if(m&&m.startsWith("hsl")){let[H,p,u]=m.slice(4,-1).split(",").map(Z=>Number(Z.replace("%","").trim())),[g,L,w]=u4(H,p,u);m=`${g}, ${L}, ${w}`}if(m&&(m.startsWith("hsb")||m.startsWith("hsv"))){let[H,p,u]=m.slice(4,-1).split(",").map(Z=>Number(Z.replace("%","").trim())),[g,L,w]=C4(H,p,u);m=`${g}, ${L}, ${w}`}let V=o.slice(r).join(`
|
||||
`);return h!==void 0&&h!=="none"&&h!=="open"&&h!=="closed"&&(h="closed"),"title"in f||a.noTitle||(s=e),s&&s.trim()===""&&h!==void 0&&h!=="none"&&(s=e,new q1.Notice("An admonition must have a title if it is collapsible.")),{title:s,collapse:h,content:V,icon:t,color:m,metadata:z}}function u4(i,c,a){i/=360,c/=100,a/=100;let e,n,l;if(c===0)e=n=l=a;else{let o=(s,h,t)=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(h-s)*6*t:t<1/2?h:t<2/3?s+(h-s)*(2/3-t)*6:s),r=a<.5?a*(1+c):a+c-a*c,f=2*a-r;e=o(f,r,i+1/3),n=o(f,r,i),l=o(f,r,i-1/3)}return[Math.round(e*255),Math.round(n*255),Math.round(l*255)]}function C4(i,c,a){i/=360,c/=100,a/=100;let e,n,l,o=Math.floor(i*6),r=i*6-o,f=a*(1-c),s=a*(1-r*c),h=a*(1-(1-r)*c);switch(o%6){case 0:e=a,n=h,l=f;break;case 1:e=s,n=a,l=f;break;case 2:e=f,n=a,l=h;break;case 3:e=f,n=s,l=a;break;case 4:e=h,n=f,l=a;break;case 5:e=a,n=f,l=s;break}return[Math.round(e*255),Math.round(n*255),Math.round(l*255)]}var U1='<svg viewBox="0 0 100 100" class="add-admonition-command"><path fill="currentColor" stroke="currentColor" d="M37,16c-4.4,0-8.3,3.3-9.2,7.6l-11.6,52c-0.5,2.2,0,4.3,1.2,5.9c1.2,1.6,3.2,2.6,5.4,2.6H79c4.4,0,8.3-3.3,9.2-7.6 l11.6-52c0.5-2.2,0-4.3-1.2-5.9C97.4,17,95.4,16,93.2,16L37,16z M37,20h56.2c1.1,0,1.8,0.4,2.2,1c0.5,0.6,0.7,1.4,0.4,2.6l-1,4.4 H30.8l0.8-3.6C32.1,22.2,34.8,20,37,20z M29.9,32H94l-9.6,43.6C83.9,77.8,81.2,80,79,80H22.8c-1.1,0-1.8-0.4-2.2-1 c-0.5-0.6-0.7-1.4-0.4-2.6L29.9,32z M0,36v4h19.6l0.9-4L0,36z M36.7,38c-0.8,0.1-1.4,0.7-1.6,1.5l-3.5,14c-0.2,0.6,0,1.2,0.4,1.7 c0.4,0.5,1,0.8,1.6,0.8H81c0.9,0,1.7-0.6,1.9-1.5l3.5-14c0.2-0.6,0-1.3-0.4-1.8c-0.4-0.5-1-0.8-1.6-0.8H37.1c-0.1,0-0.1,0-0.2,0 C36.9,38,36.8,38,36.7,38L36.7,38z M38.7,42h43.2l-2.4,10H36.2L38.7,42z M0,52v4h16l0.9-4H0z M0,68v4h12.4l0.9-4H0z"></path><circle fill="white" transform="translate(50 50) scale(3 3)" cx="8" cy="8" r="8"/><path fill="green" transform="translate(50 50) scale(3 3)" d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/></svg>',Q="admonition-add-command",G1='<svg viewBox="0 0 100 100" class="remove-admonition-command"><path fill="currentColor" stroke="currentColor" d="M37,16c-4.4,0-8.3,3.3-9.2,7.6l-11.6,52c-0.5,2.2,0,4.3,1.2,5.9c1.2,1.6,3.2,2.6,5.4,2.6H79c4.4,0,8.3-3.3,9.2-7.6 l11.6-52c0.5-2.2,0-4.3-1.2-5.9C97.4,17,95.4,16,93.2,16L37,16z M37,20h56.2c1.1,0,1.8,0.4,2.2,1c0.5,0.6,0.7,1.4,0.4,2.6l-1,4.4 H30.8l0.8-3.6C32.1,22.2,34.8,20,37,20z M29.9,32H94l-9.6,43.6C83.9,77.8,81.2,80,79,80H22.8c-1.1,0-1.8-0.4-2.2-1 c-0.5-0.6-0.7-1.4-0.4-2.6L29.9,32z M0,36v4h19.6l0.9-4L0,36z M36.7,38c-0.8,0.1-1.4,0.7-1.6,1.5l-3.5,14c-0.2,0.6,0,1.2,0.4,1.7 c0.4,0.5,1,0.8,1.6,0.8H81c0.9,0,1.7-0.6,1.9-1.5l3.5-14c0.2-0.6,0-1.3-0.4-1.8c-0.4-0.5-1-0.8-1.6-0.8H37.1c-0.1,0-0.1,0-0.2,0 C36.9,38,36.8,38,36.7,38L36.7,38z M38.7,42h43.2l-2.4,10H36.2L38.7,42z M0,52v4h16l0.9-4H0z M0,68v4h12.4l0.9-4H0z"></path><circle fill="white" transform="translate(50 50) scale(3 3)" cx="8" cy="8" r="8"/><path fill="#dc3545" transform="translate(50 50) scale(3 3)" d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM4.5 7.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7z"/></svg>',X="admonition-remove-command",_1='<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --><path d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"/></svg>',G="admonition-warning",W1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M304 48C304 74.51 282.5 96 256 96C229.5 96 208 74.51 208 48C208 21.49 229.5 0 256 0C282.5 0 304 21.49 304 48zM304 464C304 490.5 282.5 512 256 512C229.5 512 208 490.5 208 464C208 437.5 229.5 416 256 416C282.5 416 304 437.5 304 464zM0 256C0 229.5 21.49 208 48 208C74.51 208 96 229.5 96 256C96 282.5 74.51 304 48 304C21.49 304 0 282.5 0 256zM512 256C512 282.5 490.5 304 464 304C437.5 304 416 282.5 416 256C416 229.5 437.5 208 464 208C490.5 208 512 229.5 512 256zM74.98 437C56.23 418.3 56.23 387.9 74.98 369.1C93.73 350.4 124.1 350.4 142.9 369.1C161.6 387.9 161.6 418.3 142.9 437C124.1 455.8 93.73 455.8 74.98 437V437zM142.9 142.9C124.1 161.6 93.73 161.6 74.98 142.9C56.24 124.1 56.24 93.73 74.98 74.98C93.73 56.23 124.1 56.23 142.9 74.98C161.6 93.73 161.6 124.1 142.9 142.9zM369.1 369.1C387.9 350.4 418.3 350.4 437 369.1C455.8 387.9 455.8 418.3 437 437C418.3 455.8 387.9 455.8 369.1 437C350.4
Line truncated
|
||||
|
||||
`],l=new Blob([this.plugin.calloutManager.generateCssString()],{type:"text/css"});createEl("a",{attr:{download:"custom_callouts.css",href:URL.createObjectURL(l)}}).click()}).setDisabled(!Object.keys(this.plugin.data.userAdmonitions).length)),new v.Setting(c).setName("Export Custom Types as JSON").setDesc("Choose custom types to export as a JSON file that you can then share with other users.").addButton(e=>e.setButtonText("Download All").setCta().onClick(()=>{let n=Object.values(this.plugin.data.userAdmonitions);this.download(n)})).addButton(e=>e.setButtonText("Select & Download").onClick(()=>{let n=new a1(this.plugin);n.onClose=()=>{if(!n.export)return;let l=Object.values(this.plugin.data.userAdmonitions);this.download(l.filter(o=>n.selectedAdmonitions.includes(o.type)))},n.open()})),new v.Setting(c).setName("Use CSS Snippet for Custom Callouts").setDesc("Instead of managing it internally, Admonitions will maintain a CSS snippet to enable your custom types for callouts.").addToggle(e=>e.setValue(this.plugin.data.useSnippet).onChange(n=>{this.plugin.data.useSnippet=n,this.plugin.saveSettings(),this.plugin.calloutManager.setUseSnippet()})),new v.Setting(c).setName(M("Add New")).setDesc("Add a new Admonition type. All custom Admonitions will also be usable as callouts.").addButton(e=>e.setTooltip(M("Add Additional")).setButtonText("+").onClick(async()=>{let l=new T(this.plugin);l.onClose=async()=>{if(l.saved){let o={type:l.type,color:l.color,icon:l.icon,command:!1,title:l.title,injectColor:l.injectColor,noTitle:l.noTitle,copy:l.copy};this.plugin.addAdmonition(o),this.plugin.calloutManager.addAdmonition(o),this.display()}},l.open()})),new v.Setting(c).setName("Import Admonition(s)").setDesc("Import admonitions from a JSON definition.").addButton(e=>{let n=createEl("input",{attr:{type:"file",name:"merge",accept:".json",multiple:!0,style:"display: none;"}});n.onchange=async()=>{let{files:l}=n;if(!!l.length){try{let o=[];for(let r of Array.from(l))o.push(JSON.parse(await r.text()));for(let r of o.flat()){if(typeof r!="object")continue;r.icon||(r.icon={name:"pencil-alt",type:"font-awesome"});let f=y.validateImport(this.plugin,r);if(f.success==!1){new v.Notice(createFragment(s=>{s.createSpan({text:`There was an issue importing the ${r.type} admonition:`}),s.createEl("br"),s.createSpan({text:f.message})}));continue}f.messages?.length&&new v.Notice(createFragment(s=>{s.createSpan({text:`There was an issue importing the ${r.type} admonition:`});for(let h of f.messages)s.createEl("br"),s.createSpan({text:h})})),await this.plugin.addAdmonition(r)}this.display()}catch(o){new v.Notice(`There was an error while importing the admonition${l.length==1?"":"s"}.`),console.error(o)}n.value=null}},e.setButtonText("Choose Files"),e.buttonEl.appendChild(n),e.onClick(()=>n.click())}).addExtraButton(e=>e.setIcon("info").onClick(()=>{let n=new v.Modal(this.plugin.app);n.onOpen=()=>{n.contentEl.createSpan({text:"Import one or more admonition definitions as a JSON array. An admonition definition should look as follows at minimum:"}),n.contentEl.createEl("br");let l=new v.TextAreaComponent(n.contentEl.createDiv()).setDisabled(!0).setValue(JSON.stringify({type:"embed-affliction",color:"149, 214, 148",icon:{name:"head-side-cough",type:"font-awesome"}},null,4));l.inputEl.setAttribute("style",`height: ${l.inputEl.scrollHeight}px; resize: none;`),n.contentEl.createEl("br"),n.contentEl.createSpan({text:"See the plugin ReadMe for more information."})},n.open()})),this.additionalEl=c.createDiv("additional"),this.buildTypes(),this.buildAdmonitions(this.containerEl.createEl("details",{cls:"admonitions-nested-settings",attr:{...this.plugin.data.open.admonitions?{open:!0}:{}}})),this.buildIcons(this.containerEl.createEl("details",{cls:"admonitions-nested-settings",attr:{...this.plugin.data.open.icons?{open:!0}:{}}})),this.buildOtherSyntaxes(this.containerEl.createEl("details",{cls:"admonitions-nested-settings",attr:{...this.plugin.data.open.other?{open:!0}:{}}})),this.buildAdvanced(this.containerEl.createEl("details",{cls:"admonitions-nested-settings",attr:{...this.plugin.data.open.advanced?{open:!0}:{}}})),this.containerEl.createDiv("coffee").createEl("a",{href:"https://www.buymeacoffee.com/valentine195"}).createEl("img",{attr:{src:"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=\u2615&slug=valentine195&button_colour=e3e7ef&font_colour=262626&font_family=Inter&outline_colour=262626&coffee_colour=ff0000"}})}download(c){if(!c.length){new v.Notice("At least one admonition must be chosen to export.");return}let a=createEl("a"),e=new Blob([JSON.stringify(c)],{type:"json"}),n=URL.createObjectURL(e);a.href=n,a.download="admonitions.json",a.click(),URL.revokeObjectURL(n)}buildAdmonitions(c){c.empty(),c.ontoggle=()=>{this.plugin.data.open.admonitions=c.open,this.plugin.saveSettings()};let a=c.createEl("summary");new v.Setting(a).setHeading().setName("Admonitions & Callouts"),a.createDiv("collapser").createDiv("handle"),new v.Setting(c).
Line truncated
|
||||
`).slice(1,-1)){if(f){if(/^title:/.test(h)){l=h.match(/^title:(.*)/)?.[1].trim()??n[0].toUpperCase()+n.slice(1).toLowerCase();continue}if(/^collapse:/.test(h)){o=(h.match(/^collapse:\s?(.*)/)?.[1].trim()??"open")=="open"?"+":"-";continue}/^(title|collapse|color|icon):/.test(h)||(f=!1)}r.push(h)}let s=r.join(`
|
||||
`);/^(`{3,})ad-(\w+)([\s\S]*?)?\n^\1/m.test(s)&&(s=this.replaceCodeBlockInPlace(s)),c=c.replace(e,`> [!${n}]${o}${l.length?" ":""}${l}
|
||||
> ${s.split(`
|
||||
`).join(`
|
||||
> `)}`),this.converted++}return c}buildAdvanced(c){c.empty(),c.ontoggle=()=>{this.plugin.data.open.advanced=c.open,this.plugin.saveSettings()};let a=c.createEl("summary");new v.Setting(a).setHeading().setName("Advanced Settings"),a.createDiv("collapser").createDiv("handle"),new v.Setting(c).setName(M("Markdown Syntax Highlighting")).setDesc(M("Use Obsidian's markdown syntax highlighter in admonition code blocks. This setting is experimental and could cause errors.")).addToggle(e=>{e.setValue(this.plugin.data.syntaxHighlight),e.onChange(async n=>{this.plugin.data.syntaxHighlight=n,n?this.plugin.turnOnSyntaxHighlighting():this.plugin.turnOffSyntaxHighlighting(),await this.plugin.saveSettings()})})}buildTypes(){this.additionalEl.empty();for(let c of Object.values(this.plugin.data.userAdmonitions)){let a=new v.Setting(this.additionalEl),e=this.plugin.getAdmonitionElement(c.type,c.type[0].toUpperCase()+c.type.slice(1).toLowerCase(),c.icon,c.injectColor??this.plugin.data.injectColor?c.color:null);a.infoEl.replaceWith(e),c.command?a.addExtraButton(n=>{n.setIcon(X.toString()).setTooltip(M("Unregister Commands")).onClick(async()=>{this.plugin.unregisterCommandsFor(c),await this.plugin.saveSettings(),this.display()})}):a.addExtraButton(n=>{n.setIcon(Q.toString()).setTooltip(M("Register Commands")).onClick(async()=>{this.plugin.registerCommandsFor(c),await this.plugin.saveSettings(),this.display()})}),a.addExtraButton(n=>{n.setIcon("pencil").setTooltip(M("Edit")).onClick(()=>{let l=new T(this.plugin,c);l.onClose=async()=>{if(l.saved){let o=c.command,r={type:l.type,color:l.color,icon:l.icon,command:o,title:l.title,injectColor:l.injectColor,noTitle:l.noTitle,copy:l.copy};if(r.type!=c.type){this.plugin.unregisterType(c);let f=Object.entries(this.plugin.data.userAdmonitions);this.plugin.data.userAdmonitions=Object.fromEntries(f.map(([s,h])=>s==c.type?[r.type,r]:[s,h]))}else this.plugin.data.userAdmonitions[r.type]=r;this.plugin.registerType(r.type),this.plugin.calloutManager.addAdmonition(r),this.display()}},l.open()})}).addExtraButton(n=>{n.setIcon("trash").setTooltip(M("Delete")).onClick(()=>{this.plugin.removeAdmonition(c),this.display()})})}}},T=class extends v.Modal{constructor(c,a){super(c.app);this.plugin=c;this.color="#7d7d7d";this.icon={};this.saved=!1;this.error=!1;this.injectColor=this.plugin.data.injectColor;this.noTitle=!1;this.editing=!1;a&&(this.editing=!0,this.color=a.color,this.icon=a.icon,this.type=a.type,this.originalType=a.type,this.title=a.title,this.injectColor=a.injectColor??this.injectColor,this.noTitle=a.noTitle??!1,this.copy=a.copy??this.plugin.data.copyButton)}setAdmonitionElement(c){this.admonitionPreviewParent.empty(),this.admonitionPreview=this.plugin.getAdmonitionElement(this.type,c[0].toUpperCase()+c.slice(1).toLowerCase(),this.icon,this.injectColor??this.plugin.data.injectColor?this.color:null),this.admonitionPreview.createDiv("callout-content admonition-content").createEl("p",{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla."}),this.admonitionPreviewParent.appendChild(this.admonitionPreview)}async display(){this.containerEl.addClass("admonition-settings-modal"),this.titleEl.setText(`${this.editing?"Edit":"Add"} Admonition`);let{contentEl:c}=this;c.empty();let a=c.createDiv(),e=this.title??this.type??"...";this.admonitionPreviewParent=c.createDiv(),this.setAdmonitionElement(e[0].toUpperCase()+e.slice(1).toLowerCase());let n,l=new v.Setting(a).setName(M("Admonition Type")).addText(t=>{n=t,n.setValue(this.type).onChange(m=>{let z=y.validateType(m,this.plugin,this.originalType);if(z.success==!1){T.setValidationError(t.inputEl,z.message);return}T.removeValidationError(t.inputEl),this.type=m,this.title||this.setAdmonitionElement(this.type?.[0].toUpperCase()+this.type?.slice(1).toLowerCase())})});l.controlEl.addClass("admonition-type-setting"),l.descEl.createSpan({text:"This is used to create the admonition (e.g., "}),l.descEl.createEl("code",{text:"note"}),l.descEl.createSpan({text:" or "}),l.descEl.createEl("code",{text:"abstract"}),l.descEl.createSpan({text:")"}),new v.Setting(a).setName(M("Admonition Title")).setDesc(M("This will be the default title for this admonition type.")).addText(t=>{t.setValue(this.title).onChange(m=>{if(!m.length){this.title=null,this.setAdmonitionElement(this.type?.[0].toUpperCase()+e.slice(1).toLowerCase());return}this.title=m,this.setAdmonitionElement(this.title)})}),new v.Setting(a).setName(M("No Admonition Title by Default")).setDesc(createFragment(t=>{t.createSpan({text:M("The admonition will have no title unless ")}),t.createEl("code",{text:"title"}),t.createSpan({text:M(" is explicitly provided.")})})).addToggle(t=>{t.setValue(this.noTitle).onChange(m=>this.noTitle=m)}),new v.Setting(a).setName(M("Show Copy Button")).setDesc(createFragment(t=>{t.createSpan({text:"A copy button will be added to the admonition & callout."})})).addToggle(t=>{t.setValue(this.copy).onChange(m=>this.copy=m)});let o=createEl("input",{attr:{tyLine truncated
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.svg-inline--fa {
|
||||
display: inline-block;
|
||||
font-size: inherit;
|
||||
height: 1em;
|
||||
overflow: visible;
|
||||
vertical-align: -0.125em;
|
||||
}
|
||||
.svg-inline--fa.fa-lg {
|
||||
vertical-align: -0.225em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-1 {
|
||||
width: 0.0625em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-2 {
|
||||
width: 0.125em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-3 {
|
||||
width: 0.1875em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-4 {
|
||||
width: 0.25em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-5 {
|
||||
width: 0.3125em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-6 {
|
||||
width: 0.375em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-7 {
|
||||
width: 0.4375em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-8 {
|
||||
width: 0.5em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-9 {
|
||||
width: 0.5625em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-10 {
|
||||
width: 0.625em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-11 {
|
||||
width: 0.6875em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-12 {
|
||||
width: 0.75em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-13 {
|
||||
width: 0.8125em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-14 {
|
||||
width: 0.875em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-15 {
|
||||
width: 0.9375em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-16 {
|
||||
width: 1em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-17 {
|
||||
width: 1.0625em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-18 {
|
||||
width: 1.125em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-19 {
|
||||
width: 1.1875em;
|
||||
}
|
||||
.svg-inline--fa.fa-w-20 {
|
||||
width: 1.25em;
|
||||
}
|
||||
.svg-inline--fa.fa-pull-left {
|
||||
margin-right: 0.3em;
|
||||
width: auto;
|
||||
}
|
||||
.svg-inline--fa.fa-pull-right {
|
||||
margin-left: 0.3em;
|
||||
width: auto;
|
||||
}
|
||||
.svg-inline--fa.fa-border {
|
||||
height: 1.5em;
|
||||
}
|
||||
.svg-inline--fa.fa-li {
|
||||
width: 2em;
|
||||
}
|
||||
.svg-inline--fa.fa-fw {
|
||||
width: 1.25em;
|
||||
}
|
||||
|
||||
.fa-layers svg.svg-inline--fa {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.fa-layers {
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
vertical-align: -0.125em;
|
||||
width: 1em;
|
||||
}
|
||||
.fa-layers svg.svg-inline--fa {
|
||||
-webkit-transform-origin: center center;
|
||||
transform-origin: center center;
|
||||
}
|
||||
|
||||
.fa-layers-counter, .fa-layers-text {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fa-layers-text {
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
-webkit-transform-origin: center center;
|
||||
transform-origin: center center;
|
||||
}
|
||||
|
||||
.fa-layers-counter {
|
||||
background-color: #ff253a;
|
||||
border-radius: 1em;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
height: 1.5em;
|
||||
line-height: 1;
|
||||
max-width: 5em;
|
||||
min-width: 1.5em;
|
||||
overflow: hidden;
|
||||
padding: 0.25em;
|
||||
right: 0;
|
||||
text-overflow: ellipsis;
|
||||
top: 0;
|
||||
-webkit-transform: scale(0.25);
|
||||
transform: scale(0.25);
|
||||
-webkit-transform-origin: top right;
|
||||
transform-origin: top right;
|
||||
}
|
||||
|
||||
.fa-layers-bottom-right {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
top: auto;
|
||||
-webkit-transform: scale(0.25);
|
||||
transform: scale(0.25);
|
||||
-webkit-transform-origin: bottom right;
|
||||
transform-origin: bottom right;
|
||||
}
|
||||
|
||||
.fa-layers-bottom-left {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: auto;
|
||||
top: auto;
|
||||
-webkit-transform: scale(0.25);
|
||||
transform: scale(0.25);
|
||||
-webkit-transform-origin: bottom left;
|
||||
transform-origin: bottom left;
|
||||
}
|
||||
|
||||
.fa-layers-top-right {
|
||||
right: 0;
|
||||
top: 0;
|
||||
-webkit-transform: scale(0.25);
|
||||
transform: scale(0.25);
|
||||
-webkit-transform-origin: top right;
|
||||
transform-origin: top right;
|
||||
}
|
||||
|
||||
.fa-layers-top-left {
|
||||
left: 0;
|
||||
right: auto;
|
||||
top: 0;
|
||||
-webkit-transform: scale(0.25);
|
||||
transform: scale(0.25);
|
||||
-webkit-transform-origin: top left;
|
||||
transform-origin: top left;
|
||||
}
|
||||
|
||||
.fa-lg {
|
||||
font-size: 1.3333333333em;
|
||||
line-height: 0.75em;
|
||||
vertical-align: -0.0667em;
|
||||
}
|
||||
|
||||
.fa-xs {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
.fa-sm {
|
||||
font-size: 0.875em;
|
||||
}
|
||||
|
||||
.fa-1x {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.fa-2x {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.fa-3x {
|
||||
font-size: 3em;
|
||||
}
|
||||
|
||||
.fa-4x {
|
||||
font-size: 4em;
|
||||
}
|
||||
|
||||
.fa-5x {
|
||||
font-size: 5em;
|
||||
}
|
||||
|
||||
.fa-6x {
|
||||
font-size: 6em;
|
||||
}
|
||||
|
||||
.fa-7x {
|
||||
font-size: 7em;
|
||||
}
|
||||
|
||||
.fa-8x {
|
||||
font-size: 8em;
|
||||
}
|
||||
|
||||
.fa-9x {
|
||||
font-size: 9em;
|
||||
}
|
||||
|
||||
.fa-10x {
|
||||
font-size: 10em;
|
||||
}
|
||||
|
||||
.fa-fw {
|
||||
text-align: center;
|
||||
width: 1.25em;
|
||||
}
|
||||
|
||||
.fa-ul {
|
||||
list-style-type: none;
|
||||
margin-left: 2.5em;
|
||||
padding-left: 0;
|
||||
}
|
||||
.fa-ul > li {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fa-li {
|
||||
left: -2em;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
width: 2em;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.fa-border {
|
||||
border: solid 0.08em #eee;
|
||||
border-radius: 0.1em;
|
||||
padding: 0.2em 0.25em 0.15em;
|
||||
}
|
||||
|
||||
.fa-pull-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.fa-pull-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.fa.fa-pull-left,
|
||||
.fas.fa-pull-left,
|
||||
.far.fa-pull-left,
|
||||
.fal.fa-pull-left,
|
||||
.fab.fa-pull-left {
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
.fa.fa-pull-right,
|
||||
.fas.fa-pull-right,
|
||||
.far.fa-pull-right,
|
||||
.fal.fa-pull-right,
|
||||
.fab.fa-pull-right {
|
||||
margin-left: 0.3em;
|
||||
}
|
||||
|
||||
.fa-spin {
|
||||
-webkit-animation: fa-spin 2s infinite linear;
|
||||
animation: fa-spin 2s infinite linear;
|
||||
}
|
||||
|
||||
.fa-pulse {
|
||||
-webkit-animation: fa-spin 1s infinite steps(8);
|
||||
animation: fa-spin 1s infinite steps(8);
|
||||
}
|
||||
|
||||
@-webkit-keyframes fa-spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fa-spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
.fa-rotate-90 {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
|
||||
-webkit-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.fa-rotate-180 {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
|
||||
-webkit-transform: rotate(180deg);
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.fa-rotate-270 {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
|
||||
-webkit-transform: rotate(270deg);
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
|
||||
.fa-flip-horizontal {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
|
||||
-webkit-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
.fa-flip-vertical {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
|
||||
-webkit-transform: scale(1, -1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
|
||||
-webkit-transform: scale(-1, -1);
|
||||
transform: scale(-1, -1);
|
||||
}
|
||||
|
||||
:root .fa-rotate-90,
|
||||
:root .fa-rotate-180,
|
||||
:root .fa-rotate-270,
|
||||
:root .fa-flip-horizontal,
|
||||
:root .fa-flip-vertical,
|
||||
:root .fa-flip-both {
|
||||
-webkit-filter: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.fa-stack {
|
||||
display: inline-block;
|
||||
height: 2em;
|
||||
position: relative;
|
||||
width: 2.5em;
|
||||
}
|
||||
|
||||
.fa-stack-1x,
|
||||
.fa-stack-2x {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.svg-inline--fa.fa-stack-1x {
|
||||
height: 1em;
|
||||
width: 1.25em;
|
||||
}
|
||||
.svg-inline--fa.fa-stack-2x {
|
||||
height: 2em;
|
||||
width: 2.5em;
|
||||
}
|
||||
|
||||
.fa-inverse {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
border: 0;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.sr-only-focusable:active, .sr-only-focusable:focus {
|
||||
clip: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
position: static;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.svg-inline--fa .fa-primary {
|
||||
fill: var(--fa-primary-color, currentColor);
|
||||
opacity: 1;
|
||||
opacity: var(--fa-primary-opacity, 1);
|
||||
}
|
||||
|
||||
.svg-inline--fa .fa-secondary {
|
||||
fill: var(--fa-secondary-color, currentColor);
|
||||
opacity: 0.4;
|
||||
opacity: var(--fa-secondary-opacity, 0.4);
|
||||
}
|
||||
|
||||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||||
opacity: 0.4;
|
||||
opacity: var(--fa-secondary-opacity, 0.4);
|
||||
}
|
||||
|
||||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||||
opacity: 1;
|
||||
opacity: var(--fa-primary-opacity, 1);
|
||||
}
|
||||
|
||||
.svg-inline--fa mask .fa-primary,
|
||||
.svg-inline--fa mask .fa-secondary {
|
||||
fill: black;
|
||||
}
|
||||
|
||||
.fad.fa-inverse {
|
||||
color: #fff;
|
||||
}`;function hL(){var i=D2,c=E2,a=b.familyPrefix,e=b.replacementClass,n=sL;if(a!==i||e!==c){var l=new RegExp("\\.".concat(i,"\\-"),"g"),o=new RegExp("\\--".concat(i,"\\-"),"g"),r=new RegExp("\\.".concat(c),"g");n=n.replace(l,".".concat(a,"-")).replace(o,"--".concat(a,"-")).replace(r,".".concat(e))}return n}var vL=function(){function i(){Sg(this,i),this.definitions={}}return yg(i,[{key:"add",value:function(){for(var a=this,e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(r){a.definitions[r]=C({},a.definitions[r]||{},o[r]),J2(r,o[r]),X2()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(a,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(l){var o=n[l],r=o.prefix,f=o.iconName,s=o.icon;a[r]||(a[r]={}),a[r][f]=s}),a}}]),i}();function mL(){b.autoAddCss&&!n4&&(Kg(hL()),n4=!0)}function zL(i,c){return Object.defineProperty(i,"abstract",{get:c}),Object.defineProperty(i,"html",{get:function(){return i.abstract.map(function(e){return a4(e)})}}),Object.defineProperty(i,"node",{get:function(){if(!!L1){var e=x.createElement("div");return e.innerHTML=i.html,e.children}}}),i}function F(i){var c=i.prefix,a=c===void 0?"fa":c,e=i.iconName;if(!!e)return c4(P1.definitions,a,e)||c4(k.styles,a,e)}function pL(i){return function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=(c||{}).icon?c:F(c||{}),n=a.mask;return n&&(n=(n||{}).icon?n:F(n||{})),i(e,C({},a,{mask:n}))}}var P1=new vL;var n4=!1;var l4=pL(function(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.transform,e=a===void 0?U:a,n=c.symbol,l=n===void 0?!1:n,o=c.mask,r=o===void 0?null:o,f=c.maskId,s=f===void 0?null:f,h=c.title,t=h===void 0?null:h,m=c.titleId,z=m===void 0?null:m,V=c.classes,H=V===void 0?[]:V,p=c.attributes,u=p===void 0?{}:p,g=c.styles,L=g===void 0?{}:g;if(!!i){var w=i.prefix,Z=i.iconName,E=i.icon;return zL(C({type:"icon"},i),function(){return mL(),b.autoA11y&&(t?u["aria-labelledby"]="".concat(b.replacementClass,"-title-").concat(z||f1()):(u["aria-hidden"]="true",u.focusable="false")),nL({icons:{main:i4(E),mask:r?i4(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:Z,transform:C({},U,e),symbol:l,title:t,maskId:s,titleId:z,extra:{attributes:u,styles:L,classes:H}})})}});var I=S(require("obsidian"));P1.add(H1,C1,V1,u1);var D1=class{constructor(c){this.plugin=c;this.DOWNLOADED={};this.FONT_AWESOME_MAP=new Map([Object.values(H1),Object.values(C1),Object.values(V1)].flat().map(c=>[c.iconName,{name:c.iconName,type:"font-awesome"}]));this.iconDefinitions=[]}async load(){for(let c of this.plugin.data.icons)await this.plugin.app.vault.adapter.exists(this.localIconPath(c))?this.DOWNLOADED[c]=JSON.parse(await this.plugin.app.vault.adapter.read(`${this.plugin.app.plugins.getPluginFolder()}/obsidian-admonition/${c}.json`)):await this.downloadIcon(c);this.setIconDefinitions()}setIconDefinitions(){let c=[];for(let a of this.plugin.data.icons){if(!(a in this.DOWNLOADED))continue;let e=this.DOWNLOADED[a];c.push(...Object.keys(e).map(n=>({type:a,name:n})))}this.iconDefinitions=[...this.plugin.data.useFontAwesome?this.FONT_AWESOME_MAP.values():[],...(0,I.getIconIds)().map(a=>({type:"obsidian",name:a})),...c]}iconPath(c){return`https://raw.githubusercontent.com/valentine195/obsidian-admonition/master/icons/${c}/icons.json`}localIconPath(c){return`${this.plugin.app.plugins.getPluginFolder()}/obsidian-admonition/${c}.json`}async downloadIcon(c){try{let a=await(await fetch(this.iconPath(c))).json();this.plugin.data.icons.push(c),this.plugin.data.icons=[...new Set(this.plugin.data.icons)],await this.plugin.app.vault.adapter.write(this.localIconPath(c),JSON.stringify(a)),this.DOWNLOADED[c]=a,await this.plugin.saveSettings(),this.setIconDefinitions(),new I.Notice(`${B[c]} successfully downloaded.`)}catch(a){console.error(a),new I.Notice("Could not download icon pack")}}async removeIcon(c){await this.plugin.app.vault.adapter.remove(this.localIconPath(c)),delete this.DOWNLOADED[c],this.plugin.data.icons.remove(c),this.plugin.data.icons=[...new Set(this.plugin.data.icons)],await this.plugin.saveSettings(),this.setIconDefinitions()}getIconType(c){if(F({iconName:c,prefix:"fas"})||F({iconName:c,prefix:"far"})||F({iconName:c,prefix:"fab"}))return"font-awesome";if((0,I.getIconIds)().includes(c))return"obsidian";for(let[a,e]of Object.entries(this.DOWNLOADED))if(c in e)return a}getIconModuleName(c){if(c.type==="font-awesome")return"Font Awesome";if(c.type==="obsidian")return"Obsidian Icon";if(c.type!=="image"&&c.type in B)return B[c.type]}getIconNode(c){if(c.type==="image"){let a=new Image;return a.src=c.name,a}if(c.type=="obsidian"){let a=createDiv();return(0,I.setIcon)(a,c.name),a}if(this.DOWNLOADED[c.type]?.[c.name]){let a=createDiv();return a.innerHTML=this.DOWNLOADED[c.type]?.[c.name],a.children[0]}for(let a of["fas","far","fab"]){let e=F({iconName:c.name,prefix:a});if(e)
Line truncated
|
||||
`)[h],[,z]=m.match(/> \[!.+\|(.*)]/)??[];if(z&&(e.dataset.calloutMetadata=z),r&&(this.plugin.admonitions[n].copy??this.plugin.data.copyButton)){let V=r.createDiv("admonition-content-copy");(0,q.setIcon)(V,"copy"),V.addEventListener("click",()=>{navigator.clipboard.writeText(s.split(`
|
||||
`).slice(h+1,t+1).join(`
|
||||
`).replace(/^> /gm,"")).then(async()=>{new q.Notice("Callout content copied to clipboard.")})})}}if(l.noTitle&&!e.dataset.calloutFold&&o.querySelector(".callout-title-inner")?.textContent?.toLowerCase()===l.type.toLowerCase()&&o.addClass("no-title"),!l.noTitle&&this.plugin.data.autoCollapse&&!e.dataset.calloutFold&&this.setCollapsible(e),l.title&&o.textContent==n[0].toUpperCase()+n.slice(1).toLowerCase()){let s=o.querySelector(".callout-title-inner");s&&s.setText(l.title)}this.plugin.data.dropShadow&&e.addClass("drop-shadow")}setCollapsible(c){let a=c.querySelector(".callout-title"),e=c.querySelector(".callout-content");if(!e)return;c.addClass("is-collapsible"),this.plugin.data.defaultCollapseType=="closed"?(c.dataset.calloutFold="-",c.addClass("is-collapsed")):c.dataset.calloutFold="+";let n=a.createDiv("callout-fold");(0,q.setIcon)(n,"chevron-down");let l=c.hasClass("is-collapsed");if(this.getComputedHeights(e),l)for(let o of this.heights)e.style.setProperty(o,"0px");a.onclick=o=>{this.collapse(c,o)}}collapse(c,a){a?.preventDefault();let e=c.querySelector(".callout-content");function n(o){e.removeEventListener("transitionend",n),e.style.removeProperty("transition")}e.addEventListener("transitionend",n),e.style.setProperty("transition","all 100ms cubic-bezier(.02, .01, .47, 1)");let l=c.hasClass("is-collapsed");if(!a||a.button==0){let o=this.getComputedHeights(e);for(let r of this.heights)e.style.setProperty(r,l?o[r]:"0px");c.toggleClass("is-collapsed",!l)}}getComputedHeights(c){if(this.heightMap.has(c))return this.heightMap.get(c);let a=getComputedStyle(c),e={};for(let n of this.heights)e[n]=a.getPropertyValue(n);return this.heightMap.set(c,e),e}generateCssString(){let c=[`/* This snippet was auto-generated by the Admonitions plugin */
|
||||
|
||||
`];for(let a of Array.from(this.sheet.cssRules))c.push(a.cssText);return c.join(`
|
||||
|
||||
`)}addAdmonition(c){if(!c.icon)return;let a,e=c.injectColor??this.plugin.data.injectColor?`--callout-color: ${c.color};`:"";c.icon.type=="obsidian"?a=`.callout[data-callout="${c.type.toLowerCase()}"] {
|
||||
${e}
|
||||
--callout-icon: ${c.icon.name}; /* Icon name from the Obsidian Icon Set */
|
||||
}`:a=`.callout[data-callout="${c.type.toLowerCase()}"] {
|
||||
${e}
|
||||
--callout-icon: "${(this.plugin.iconManager.getIconNode(c.icon)?.outerHTML??"").replace(/(width|height)=(\\?"|')\d+(\\?"|')/g,"").replace(/"/g,'\\"')}";
|
||||
}`,this.indexing.contains(c.type)&&this.sheet.deleteRule(this.indexing.indexOf(c.type)),this.indexing=[...this.indexing.filter(n=>n!=c.type),c.type],this.sheet.insertRule(a,this.sheet.cssRules.length),this.updateSnippet()}removeAdmonition(c){if(!this.indexing.contains(c.type))return;let a=this.indexing.indexOf(c.type);this.sheet.deleteRule(a),this.indexing.splice(a,1),this.updateSnippet()}get sheet(){return this.style.sheet}unload(){this.style.detach()}get snippetPath(){return this.plugin.app.customCss.getSnippetPath(this.plugin.data.snippetPath)}setUseSnippet(){this.plugin.data.useSnippet&&this.updateSnippet()}async updateSnippet(){!this.plugin.data.useSnippet||(await this.plugin.app.vault.adapter.exists(this.snippetPath)?await this.plugin.app.vault.adapter.write(this.snippetPath,this.generateCssString()):await this.plugin.app.vault.create(this.snippetPath,this.generateCssString()),this.plugin.app.customCss.setCssEnabledStatus(this.plugin.data.snippetPath,!0),this.plugin.app.customCss.readSnippets())}};var dL={userAdmonitions:{},syntaxHighlight:!1,copyButton:!1,version:"",autoCollapse:!1,defaultCollapseType:"open",injectColor:!0,parseTitles:!0,dropShadow:!0,hideEmpty:!1,open:{admonitions:!0,icons:!0,other:!0,advanced:!1},icons:[],useFontAwesome:!0,rpgDownloadedOnce:!1,msDocConverted:!1,useSnippet:!1,snippetPath:`custom-admonitions.${[...Array(6).keys()].map(()=>(16*Math.random()|0).toString(16)).join("")}`},B1=class extends d.Plugin{constructor(){super(...arguments);this.postprocessors=new Map;this.iconManager=new D1(this)}get types(){return Object.keys(this.admonitions)}get admonitionArray(){return Object.keys(this.admonitions).map(c=>({...this.admonitions[c],type:c}))}async onload(){console.log("Obsidian Admonition loaded"),this.postprocessors=new Map,await this.loadSettings(),await this.iconManager.load(),this.app.workspace.onLayoutReady(async()=>{this.addChild(this.calloutManager=new s1(this)),this.registerEditorSuggest(new Z1(this)),Object.keys(this.admonitions).forEach(c=>{this.registerType(c)}),this.addSettingTab(new e1(this.app,this)),(0,d.addIcon)(Q,U1),(0,d.addIcon)(X,G1),(0,d.addIcon)(G,_1),(0,d.addIcon)(_,W1),this.addCommand({id:"collapse-admonitions",name:"Collapse Admonitions in Note",checkCallback:c=>{if(c)return!!this.app.workspace.getActiveViewOfType(d.MarkdownView);let a=this.app.workspace.getActiveViewOfType(d.MarkdownView);if(!a||!(a instanceof d.MarkdownView))return;let e=a.contentEl.querySelectorAll(".callout.is-collapsible:not(.is-collapsed)");for(let n=0;n<e.length;n++){let l=e[n];this.calloutManager.collapse(l)}}}),this.addCommand({id:"open-admonitions",name:"Open Admonitions in Note",checkCallback:c=>{if(c)return!!this.app.workspace.getActiveViewOfType(d.MarkdownView);let a=this.app.workspace.getActiveViewOfType(d.MarkdownView);if(!a||!(a instanceof d.MarkdownView))return;let e=a.contentEl.querySelectorAll(".callout.is-collapsible.is-collapsed");for(let n=0;n<e.length;n++){let l=e[n];this.calloutManager.collapse(l)}}}),this.addCommand({id:"insert-admonition",name:"Insert Admonition",editorCallback:(c,a)=>{let e=new c1(this);e.onClose=()=>{if(!e.insert)return;let n="",l="";e.title.length&&e.title.toLowerCase()!=e.type.toLowerCase()&&(n=`title: ${e.title}
|
||||
`),(this.data.autoCollapse&&e.collapse!=this.data.defaultCollapseType||!this.data.autoCollapse&&e.collapse!="none")&&(l=`collapse: ${e.collapse}
|
||||
`),c.getDoc().replaceSelection(`\`\`\`ad-${e.type}
|
||||
${n}${l}
|
||||
${c.getDoc().getSelection()}
|
||||
\`\`\`
|
||||
`);let o=c.getCursor();c.setCursor(o.line-3)},e.open()}}),this.addCommand({id:"insert-callout",name:"Insert Callout",editorCallback:(c,a)=>{let e=new c1(this);e.onClose=()=>{if(!e.insert)return;let n="",l="";if(this.data.autoCollapse&&e.collapse!=this.data.defaultCollapseType||!this.data.autoCollapse&&e.collapse!="none")switch(e.collapse){case"open":{l="+";break}case"closed":{l="-";break}}e.title.length&&e.title.toLowerCase()!=e.type.toLowerCase()&&(n=` ${e.title}`);let o=c.getDoc().getSelection();c.getDoc().replaceSelection(`> [!${e.type}]${l}${n}
|
||||
> ${o.split(`
|
||||
`).join(`
|
||||
> `)}
|
||||
`)},e.open()}})})}async downloadIcon(c){this.iconManager.downloadIcon(c)}async removeIcon(c){this.iconManager.removeIcon(c)}async postprocessor(c,a,e,n){if(!!this.admonitions[c])try{let l=typeof n=="string"?n:n?.sourcePath??this.app.workspace.getActiveFile()?.path??"",{title:o,collapse:r,content:f,icon:s,color:h,metadata:t}=R1(c,a,this.admonitions[c]);this.data.autoCollapse&&!r?r=this.data.defaultCollapseType??"open":r&&r.trim()==="none"&&(r="");let m=this.admonitions[c],z=this.getAdmonitionElement(c,o,this.iconManager.iconDefinitions.find(({name:p})=>s===p)??m.icon,h??(m.injectColor??this.data.injectColor?m.color:null),r,l,t);this.renderAdmonitionContent(z,c,f,n,l,a),r&&r!="none"&&this.calloutManager.setCollapsible(z);let V=e.parentElement;V&&V.addClass("admonition-parent",`admonition-${c}-parent`),e.replaceWith(z);let H=app.workspace.getActiveViewOfType(d.MarkdownView);if(H?.editor?.cm?.state?.field(d.editorLivePreviewField)){let p=H.editor.cm;z.onClickEvent(u=>{if(!(u.defaultPrevented||u.detail>1||u.shiftKey))try{setTimeout(()=>{try{let g=p.posAtDOM(z);p.focus(),p.dispatch({selection:{head:g,anchor:g}})}catch{}},10)}catch{}})}return z}catch(l){console.error(l);let o=createEl("pre");o.createEl("code",{attr:{style:"color: var(--text-error) !important"}}).createSpan({text:`There was an error rendering the admonition:
|
||||
|
||||
`+a}),e.replaceWith(o)}}getAdmonitionElement(c,a,e,n,l,o,r){let f=createDiv({cls:`callout admonition admonition-${c} admonition-plugin ${a?.trim().length?"":"no-title"}`,attr:{style:n?`--callout-color: ${n};`:"","data-callout":c,"data-callout-fold":"","data-callout-metadata":r??""}}),s=f.createDiv({cls:`callout-title admonition-title ${a?.trim().length?"":"no-title"}`});if(a&&a.trim().length){let h=s.createDiv("callout-icon admonition-title-icon");e&&e.name&&e.type&&h.appendChild(this.iconManager.getIconNode(e)??createDiv());let t=s.createDiv("callout-title-inner admonition-title-content");d.MarkdownRenderer.render(this.app,a,t,o??"",this),t.firstElementChild&&t.firstElementChild instanceof HTMLParagraphElement&&t.setChildrenInPlace(Array.from(t.firstElementChild.childNodes))}return l&&(f.addClass("is-collapsible"),l=="closed"&&f.addClass("is-collapsed")),this.data.dropShadow||f.addClass("no-drop"),f}renderAdmonitionContent(c,a,e,n,l,o){let r=new d.MarkdownRenderChild(c);if(r.containerEl=c,n&&typeof n!="string"&&n.addChild(r),e&&e?.trim().length){let f=this.getAdmonitionContentElement(a,c,e);if(/^`{3,}mermaid/m.test(e)){let h=!c.hasAttribute("open");c instanceof HTMLDetailsElement&&c.setAttribute("open","open"),setImmediate(()=>{d.MarkdownRenderer.renderMarkdown(e,f,l,r),c instanceof HTMLDetailsElement&&h&&c.removeAttribute("open")})}else d.MarkdownRenderer.renderMarkdown(e,f,l,r);(!e.length||f.textContent.trim()=="")&&this.data.hideEmpty&&c.addClass("no-content");let s=f.querySelectorAll(".task-list-item-checkbox");if(s?.length){let h=o.split(`
|
||||
`),t=0;s.forEach(m=>{let z=h.slice(t).findIndex(V=>/^[ \t>]*\- \[.\]/.test(V));z!=-1&&(m.dataset.line=`${z+t+1}`,t=z+t+1)})}}}getAdmonitionContentElement(c,a,e){let n=a.createDiv("callout-content admonition-content");if(this.admonitions[c].copy??this.data.copyButton){let l=n.createDiv("admonition-content-copy");(0,d.setIcon)(l,"copy"),l.addEventListener("click",()=>{navigator.clipboard.writeText(e.trim()).then(async()=>{new d.Notice("Admonition content copied to clipboard.")})})}return n}registerType(c){this.data.syntaxHighlight&&this.turnOnSyntaxHighlighting([c]),this.postprocessors.has(c)&&d.MarkdownPreviewRenderer.unregisterCodeBlockPostProcessor(`ad-${c}`),this.postprocessors.set(c,this.registerMarkdownCodeBlockProcessor(`ad-${c}`,(e,n,l)=>this.postprocessor(c,e,n,l)));let a=this.admonitions[c];a.command&&this.registerCommandsFor(a)}get admonitions(){return{...j1,...this.data.userAdmonitions}}async addAdmonition(c){this.data.userAdmonitions={...this.data.userAdmonitions,[c.type]:c},this.registerType(c.type),this.calloutManager.addAdmonition(c),await this.saveSettings()}registerCommandsFor(c){c.command=!0,this.addCommand({id:`insert-${c.type}-callout`,name:`Insert ${c.type} Callout`,editorCheckCallback:(a,e,n)=>{if(a)return c.command;if(c.command)try{let l=e.getDoc().getSelection();e.getDoc().replaceSelection(`> [!${c.type}]
|
||||
> ${l.split(`
|
||||
`).join(`
|
||||
> `)}
|
||||
`);let o=e.getCursor();e.setCursor(o.line-2)}catch{new d.Notice("There was an issue inserting the admonition.")}}}),this.addCommand({id:`insert-${c.type}`,name:`Insert ${c.type}`,editorCheckCallback:(a,e,n)=>{if(a)return c.command;if(c.command)try{e.getDoc().replaceSelection(`\`\`\`ad-${c.type}
|
||||
|
||||
${e.getDoc().getSelection()}
|
||||
|
||||
\`\`\`
|
||||
`);let l=e.getCursor();e.setCursor(l.line-2)}catch{new d.Notice("There was an issue inserting the admonition.")}}}),this.addCommand({id:`insert-${c.type}-with-title`,name:`Insert ${c.type} With Title`,editorCheckCallback:(a,e,n)=>{if(a)return c.command;if(c.command)try{let l=c.title??"";e.getDoc().replaceSelection(`\`\`\`ad-${c.type}
|
||||
title: ${l}
|
||||
|
||||
${e.getDoc().getSelection()}
|
||||
|
||||
\`\`\`
|
||||
`);let o=e.getCursor();e.setCursor(o.line-3)}catch{new d.Notice("There was an issue inserting the admonition.")}}})}unregisterType(c){this.data.syntaxHighlight&&this.turnOffSyntaxHighlighting([c.type]),c.command&&this.unregisterCommandsFor(c),this.postprocessors.has(c.type)&&(d.MarkdownPreviewRenderer.unregisterPostProcessor(this.postprocessors.get(c.type)),d.MarkdownPreviewRenderer.unregisterCodeBlockPostProcessor(`ad-${c.type}`),this.postprocessors.delete(c.type))}async removeAdmonition(c){this.data.userAdmonitions[c.type]&&delete this.data.userAdmonitions[c.type],this.unregisterType(c),this.calloutManager.removeAdmonition(c),await this.saveSettings()}unregisterCommandsFor(c){c.command=!1,this.app.commands.findCommand(`obsidian-admonition:insert-${c.type}`)&&(delete this.app.commands.editorCommands[`obsidian-admonition:insert-${c.type}`],delete this.app.commands.editorCommands[`obsidian-admonition:insert-${c.type}-with-title`],delete this.app.commands.commands[`obsidian-admonition:insert-${c.type}`],delete this.app.commands.commands[`obsidian-admonition:insert-${c.type}-with-title`])}async saveSettings(){this.data.version=this.manifest.version,await this.saveData(this.data)}async loadSettings(){let c=await this.loadData();if(this.data=Object.assign({},dL,c),this.data.userAdmonitions){if(!this.data.version||Number(this.data.version.split(".")[0])<5)for(let a in this.data.userAdmonitions)Object.prototype.hasOwnProperty.call(this.data.userAdmonitions[a],"type")||(this.data.userAdmonitions[a]={...this.data.userAdmonitions[a],icon:{type:"font-awesome",name:this.data.userAdmonitions[a].icon}});(!this.data.version||Number(this.data.version.split(".")[0])<8)&&new d.Notice(createFragment(a=>{a.createSpan({text:"Admonitions: Obsidian now has native support for callouts! Check out the "}),a.createEl("a",{text:"Admonitions ReadMe",href:"obsidian://show-plugin?id=obsidian-admonition"}),a.createSpan({text:" for what that means for Admonitions going forward."})}),0)}if(!this.data.rpgDownloadedOnce&&this.data.userAdmonitions&&Object.values(this.data.userAdmonitions).some(a=>{if(a.icon.type=="rpg")return!0})&&!this.data.icons.includes("rpg"))try{await this.downloadIcon("rpg"),this.data.rpgDownloadedOnce=!0}catch{}await this.saveSettings()}turnOnSyntaxHighlighting(c=Object.keys(this.admonitions)){!this.data.syntaxHighlight||(c.forEach(a=>{if(this.data.syntaxHighlight){let[,e]=`${a}`.match(/^([\w+#-]*)[^\n`]*$/);window.CodeMirror.defineMode(`ad-${e}`,(n,l)=>window.CodeMirror.getMode({},"hypermd"))}}),this.app.workspace.onLayoutReady(()=>this.app.workspace.iterateCodeMirrors(a=>a.setOption("mode",a.getOption("mode")))))}turnOffSyntaxHighlighting(c=Object.keys(this.admonitions)){c.forEach(a=>{window.CodeMirror.modes.hasOwnProperty(`ad-${a}`)&&delete window.CodeMirror.modes[`ad-${a}`]}),this.app.workspace.onLayoutReady(()=>this.app.workspace.iterateCodeMirrors(a=>a.setOption("mode",a.getOption("mode"))))}async onunload(){console.log("Obsidian Admonition unloaded"),this.postprocessors=null,this.turnOffSyntaxHighlighting()}};
|
||||
/*!
|
||||
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-admonition",
|
||||
"name": "Admonition",
|
||||
"version": "10.3.2",
|
||||
"minAppVersion": "1.1.0",
|
||||
"description": "Enhanced callouts for Obsidian.md",
|
||||
"author": "Jeremy Valentine",
|
||||
"authorUrl": "",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
:root{--admonition-details-icon: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http: //www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z'/></svg>");--admonition-margin-top: 1.5rem;--admonition-margin-bottom: var(--admonition-margin-top);--admonition-margin-top-lp: 0px;--admonition-margin-bottom-lp: .75rem}.admonition{margin-top:var(--admonition-margin-top);margin-bottom:var(--admonition-margin-bottom);box-shadow:0 .2rem .5rem var(--background-modifier-box-shadow)}.admonition.no-title .admonition-content{margin-top:0;margin-bottom:0}.admonition li.task-list-item.is-checked p{text-decoration:line-through}.admonition.no-drop{box-shadow:none}.admonition.no-drop>.admonition-title.no-title+.admonition-content{margin-top:0;margin-bottom:0}.admonition.no-drop .admonition .admonition-content{border-right:.0625rem solid rgba(var(--admonition-color),.2);border-bottom:.0625rem solid rgba(var(--admonition-color),.2)}.admonition.no-drop .admonition .admonition-title.no-title+.admonition-content{border-top:.0625rem solid rgba(var(--admonition-color),.2);margin-top:0;margin-bottom:0}:is(.markdown-source-view.mod-cm6) .admonition .math-block>mjx-container{display:block;text-align:center;padding:1rem}:is(.markdown-reading-view) .admonition .math-block>mjx-container{display:block;text-align:center;padding:.0625rem}*:not(.is-live-preview) .admonition.no-content{display:none}.is-live-preview .admonition{margin-top:var(--admonition-margin-top-lp);margin-bottom:var(--admonition-margin-bottom-lp)}.is-live-preview .admonition.no-content{opacity:.1}.is-live-preview .admonition-content p{line-height:inherit;margin:revert}.is-live-preview .admonition-content p br{display:initial}.is-live-preview .admonition-content p ul>li>ul{border-left:var(--blockquote-border-thickness);border-left-color:var(--list-marker-color);border-left-style:solid}.is-live-preview .admonition-content:first-child{margin-top:.8rem}.is-live-preview .admonition-content:last-child{margin-bottom:.8rem}.admonition-title.no-title{display:none}.admonition-title:hover+.admonition-content .admonition-content-copy{opacity:.7}.admonition-content,.callout-content{position:relative}.admonition-content-copy{color:var(--text-faint);cursor:pointer;opacity:0;position:absolute;margin:.375rem;right:0;top:0;transition:.3s opacity ease-in}.admonition-content-copy:hover{color:var(--text-normal)}.admonition:hover .admonition-content-copy,.callout:hover .admonition-content-copy,.admonition-content-copy:hover{opacity:1}.admonition-settings .additional{margin:.375rem .75rem}.admonition-settings .additional>.setting-item{border-top:0;padding-top:.5625rem}.admonition-settings .coffee{width:60%;color:var(--text-faint);margin:1rem auto;text-align:center}.admonition-settings .coffee img{height:30px}.admonition-settings details>summary{outline:none;display:block!important;list-style:none!important;list-style-type:none!important;min-height:1rem;border-top-left-radius:.1rem;border-top-right-radius:.1rem;cursor:pointer;position:relative}.admonition-settings details>summary>.collapser{position:absolute;top:50%;right:.5rem;transform:translateY(-50%);content:""}.admonition-settings details>summary>.collapser>.handle{transform:rotate(0);transition:transform .25s;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-image:var(--admonition-details-icon);mask-image:var(--admonition-details-icon);width:20px;height:20px}.admonition-settings details[open]>summary>.collapser>.handle{transform:rotate(90deg)}.setting-item>.admonition{width:50%;margin:0}.unset-align-items{align-items:unset}.admonition-settings-modal .has-invalid-message{display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr 1fr;grid-template-areas:"text image" "inv inv"}.admonition-settings-modal input.is-invalid{border-color:#dc3545!important;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.admonition-settings-modal .admonition-type-setting input{grid-column:span 2}.admonition-settings-modal .invalid-feedback{display:block;grid-area:inv;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.suggestion-content.admonition-icon{display:flex;align-items:center;justify-content:space-between;flex-flow:row wrap}.suggestion-content.admonition-icon>.suggestion-text.admonition-text{width:fit-content}.suggestion-content.admonition-icon>.suggestion-flair.admonition-suggester-icon{width:min-content;position:relative;top:unset;left:unset;right:unset;bottom:unset;display:Line truncated
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"position": "RIGHT",
|
||||
"showFudgeIcon": false,
|
||||
"rollLinksForTags": false,
|
||||
"copyContentButton": true,
|
||||
"customFormulas": [],
|
||||
"displayFormulaForMod": true,
|
||||
"displayResultsInline": false,
|
||||
"displayFormulaAfter": false,
|
||||
"escapeDiceMod": true,
|
||||
"signed": false,
|
||||
"displayLookupRoll": true,
|
||||
"formulas": {},
|
||||
"defaultRoll": 1,
|
||||
"defaultFace": 100,
|
||||
"renderer": false,
|
||||
"renderAllDice": false,
|
||||
"addToView": false,
|
||||
"renderTime": 2000,
|
||||
"colorfulDice": false,
|
||||
"scaler": 1,
|
||||
"diceColor": "#202020",
|
||||
"textColor": "#ffffff",
|
||||
"textFont": "Arial",
|
||||
"showLeafOnStartup": true,
|
||||
"narrativeSymbolSet": "Genesys",
|
||||
"displayAsSymbols": false,
|
||||
"displayAsEmbed": true,
|
||||
"round": "None",
|
||||
"initialDisplay": "Roll",
|
||||
"icons": [
|
||||
{
|
||||
"id": "dice-roller-d4",
|
||||
"shape": "Triangle",
|
||||
"formula": "d4",
|
||||
"text": "4"
|
||||
},
|
||||
{
|
||||
"id": "dice-roller-d6",
|
||||
"shape": "Square",
|
||||
"formula": "d6",
|
||||
"text": "6"
|
||||
},
|
||||
{
|
||||
"id": "dice-roller-d8",
|
||||
"shape": "Diamond",
|
||||
"formula": "d8",
|
||||
"text": "8"
|
||||
},
|
||||
{
|
||||
"id": "dice-roller-d10",
|
||||
"shape": "Diamond",
|
||||
"formula": "d10",
|
||||
"text": "10"
|
||||
},
|
||||
{
|
||||
"id": "dice-roller-d12",
|
||||
"shape": "Dodecahedron",
|
||||
"formula": "d12",
|
||||
"text": "12"
|
||||
},
|
||||
{
|
||||
"id": "dice-roller-d20",
|
||||
"shape": "Icosahedron",
|
||||
"formula": "d20",
|
||||
"text": "20"
|
||||
},
|
||||
{
|
||||
"id": "dice-roller-d100",
|
||||
"shape": "Circle",
|
||||
"formula": "d%",
|
||||
"text": "%"
|
||||
}
|
||||
],
|
||||
"showRenderNotice": true,
|
||||
"diceModTemplateFolders": {},
|
||||
"replaceDiceModInLivePreview": true,
|
||||
"version": "11.4.2",
|
||||
"viewResults": []
|
||||
}
|
||||
+3107
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-dice-roller",
|
||||
"name": "Dice Roller",
|
||||
"version": "11.4.2",
|
||||
"minAppVersion": "0.12.15",
|
||||
"description": "Inline dice rolling for Obsidian.md",
|
||||
"author": "Jeremy Valentine",
|
||||
"authorUrl": "",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.dice-roller{position:relative;display:inline-flex;align-items:center;gap:.25rem;cursor:pointer;margin:0 .25em 0 0;vertical-align:top}.dice-roller.no-icon{margin:0}.dice-roller>div{display:inline-block}.dice-roller:not(.has-embed) span{font-weight:700}.dice-roller>.dice-roller-button{display:inline-flex;position:relative;font-size:inherit}.dice-roller>.dice-roller-formula{display:inline-flex;position:relative;font-size:inherit}.dice-roller.has-embed .dice-roller-result{width:100%;padding:1rem}.dice-roller.has-embed .dice-roller-result .markdown-embed{display:flex;margin-top:.5rem;padding-right:0}.dice-roller.has-embed .dice-roller-button{padding-top:.5rem}.dice.tooltip{max-width:unset!important}.workspace .markdown-preview-view .dice-roller.has-embed{display:flex;padding-right:.25rem;margin:.25rem 0}.dice-no-results{font-style:italic;text-align:center}.dice-roller.has-embed .internal-embed{width:100%}.dice-roller.has-embed .internal-embed .dice-roller>.dice-roller-button,.dice-roller.has-embed .internal-embed .dice-roller>.dice-roller-result{display:inline;padding:0}.dice-roller.has-embed .internal-embed .dice-roller>.dice-roller-result .embedded-table-result{margin-bottom:0}.dice-roller.has-embed .internal-embed *:last-child:not(svg):not(.dice-content-copy):not(.markdown-embed .dice-roller):not(.dice-roller-result>.embedded-table-result *){margin-bottom:15px}.dice-roller.has-embed .dice-file-name{font-style:italic}.dice-section-result{position:relative}.dice-content-copy{color:var(--text-faint);cursor:pointer;height:fit-content}.dice-content-copy.no-show{display:none}.dice-content-copy:hover{color:var(--text-normal)}.dice-roller.has-embed .dice-section-result .dice-content-copy,.dice-content-copy:hover{opacity:1}.dice-roller-result{position:relative;display:inline-flex;align-items:center}.dice-roller-result .embedded-table-result p{margin:0}.dice-roller-settings .coffee{width:60%;color:var(--text-faint);margin:.5rem auto;text-align:center}.dice-roller-settings .coffee img{height:30px}.dice-roller-setting-additional-container>.setting-item:not(.setting-item-heading){border:0px}.dice-roller-setting-additional-container .additional{padding:0 18px}.dice-roller-setting-additional-container{border-bottom:1px solid var(--background-modifier-border);border-top:1px solid var(--background-modifier-border);padding:18px 0}.dice-roller-setting-additional-container>.setting-item-heading:only-child{padding-bottom:18px}.dice-roller-setting-additional-container>.additional .no-formulas{width:auto;display:block;text-align:center}.dice-roller-setting-additional-container>.additional>.setting-item{border-top:0;padding-top:9px}.dice-roller-setting-additional-container>.additional>.setting-item>.setting-item-control>*:first-child{margin:0 6px}.dice-roller-setting-additional-container>.additional>.setting-item>.setting-item-control>.dice-mod-template-use-subfolders{margin:0 px;font-style:italic;font-size:small}.dice-roller-setting-additional-container .add-new-formula{margin:0 1rem;padding:1rem 1rem 0;border-radius:.5rem;box-shadow:0 0 .25rem var(--background-modifier-box-shadow)}.dice-roller-setting-additional-container .add-new-formula .formula-data .setting-item{border:0}.should-spin{border-bottom-color:transparent;border-radius:50%;display:inline-flex;align-items:center;box-sizing:border-box;animation:rotation 1s ease infinite}@keyframes rotation{0%{transform:scale(1) rotate(-60deg)}20%{transform:rotate(-90deg)}50%{transform:rotate(690deg)}to{transform:rotate(660deg)}}.renderer-container{position:absolute;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:9999999;transition:opacity 1s ease-out}.dice-roller-view .dice-roller-roll:disabled{cursor:not-allowed;opacity:.75}.workspace-split.mod-right-split .view-content.dice-roller-view{padding:.5rem;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:12px}.dice-roller-view .dice-roller-grid{display:grid;grid-template-rows:auto auto;justify-content:center;gap:6px}.dice-roller-view .dice-roller-grid .dice-buttons{display:flex;flex-flow:row wrap;align-items:center;justify-content:center;width:fit-content}.dice-roller-view .dice-roller-grid .dice-custom-formula-container{display:flex;justify-content:space-between;align-items:center}.dice-roller-view .dice-roller-grid .dice-custom-formula{display:flex;justify-content:flex-start;align-items:center}.dice-roller-view .setting-editor-extra-setting-button{width:fit-content}.dice-button svg{width:36px;height:36px}.dice-roller-view .dice-context{display:grid;grid-template-columns:1fr auto}.dice-roller-view .dice-context .add-subtract{display:flex;align-items:center}.dice-roller-view input,.dice-roller-view textarea{width:100%}.dice-roller-view .dice-roller-grid .advantage-disadvantage{display:flex;justify-content:center;align-items:center;gap:.5rem}.dice-roller-view .dice-roller-grid .advantage-disadvantage button{margin:0;min-width:66px}.dice-roller-view .dice-roller-formula{display:flex;flex-flow:column nowrLine truncated
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"mapMarkers": [],
|
||||
"defaultMarker": {
|
||||
"type": "default",
|
||||
"iconName": "map-marker",
|
||||
"color": "#dddddd",
|
||||
"transform": {
|
||||
"size": 6,
|
||||
"x": 0,
|
||||
"y": -2
|
||||
}
|
||||
},
|
||||
"markerIcons": [],
|
||||
"color": "#dddddd",
|
||||
"lat": 39.983334,
|
||||
"long": -82.98333,
|
||||
"notePreview": false,
|
||||
"layerMarkers": true,
|
||||
"previousVersion": "6.0.5",
|
||||
"version": {
|
||||
"major": 6,
|
||||
"minor": 0,
|
||||
"patch": 5
|
||||
},
|
||||
"warnedAboutMapMarker": false,
|
||||
"copyOnClick": false,
|
||||
"displayMarkerTooltips": "hover",
|
||||
"displayOverlayTooltips": true,
|
||||
"configDirectory": null,
|
||||
"mapViewEnabled": true,
|
||||
"mapViewParameters": {},
|
||||
"enableDraw": true,
|
||||
"defaultUnitType": "imperial",
|
||||
"defaultTile": "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png",
|
||||
"defaultTileDark": "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png",
|
||||
"defaultAttribution": "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors © <a href=\"https://carto.com/attributions\">CARTO</a>",
|
||||
"defaultTileSubdomains": "a,b,c,d"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see main.js.LICENSE.txt */
|
||||
(()=>{var t={520:function(t,e){!function(t){"use strict";function e(t){return t&&t.normalize&&t.normalize(),t&&t.textContent||""}function a(t,e){const a=t.getElementsByTagName(e);return a.length?a[0]:null}function i(t){const i={};if(t){const n=a(t,"line");if(n){const t=e(a(n,"color")),s=parseFloat(e(a(n,"opacity"))),r=parseFloat(e(a(n,"width")));t&&(i.stroke=t),isNaN(s)||(i["stroke-opacity"]=s),isNaN(r)||(i["stroke-width"]=96*r/25.4)}}return i}function n(t,i){const n={};let s,r;for(r=0;r<i.length;r++)s=a(t,i[r]),s&&(n[i[r]]=e(s));return n}function s(t){const a=n(t,["name","cmt","desc","type","time","keywords"]),i=t.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/GpxExtensions/v3","*");for(let n=0;n<i.length;n++){const s=i[n];s.parentNode.parentNode===t&&(a[s.tagName.replace(":","_")]=e(s))}const s=t.getElementsByTagName("link");s.length&&(a.links=[]);for(let t=0;t<s.length;t++)a.links.push(Object.assign({href:s[t].getAttribute("href")},n(s[t],["text","type"])));return a}function r(t){const i=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))],n=a(t,"ele"),s=a(t,"gpxtpx:hr")||a(t,"hr"),r=a(t,"time");let c;n&&(c=parseFloat(e(n)),isNaN(c)||i.push(c));const o={coordinates:i,time:r?e(r):null,extendedValues:[]};s&&o.extendedValues.push(["heart",parseFloat(e(s))]);const l=a(t,"extensions");if(null!==l)for(const t of["speed","course","hAcc","vAcc"]){const i=parseFloat(e(a(l,t)));isNaN(i)||o.extendedValues.push([t,i])}return o}function c(t){const e=o(t,"rtept");if(e)return{type:"Feature",properties:Object.assign(s(t),i(a(t,"extensions")),{_gpxType:"rte"}),geometry:{type:"LineString",coordinates:e.line}}}function o(t,e){const a=t.getElementsByTagName(e);if(a.length<2)return;const i=[],n=[],s={};for(let t=0;t<a.length;t++){const e=r(a[t]);i.push(e.coordinates),e.time&&n.push(e.time);for(let i=0;i<e.extendedValues.length;i++){const[n,r]=e.extendedValues[i],c="heart"===n?n:n+"s";s[c]||(s[c]=Array(a.length).fill(null)),s[c][t]=r}}return{line:i,times:n,extendedValues:s}}function l(t){const e=t.getElementsByTagName("trkseg"),n=[],r=[],c=[];for(let t=0;t<e.length;t++){const a=o(e[t],"trkpt");a&&(c.push(a),a.times&&a.times.length&&r.push(a.times))}if(0===c.length)return;const l=c.length>1,h=Object.assign(s(t),i(a(t,"extensions")),{_gpxType:"trk"},r.length?{coordinateProperties:{times:l?r:r[0]}}:{});for(let t=0;t<c.length;t++){const e=c[t];n.push(e.line);for(const[a,i]of Object.entries(e.extendedValues)){let e=h;"heart"===a&&(h.coordinateProperties||(h.coordinateProperties={}),e=h.coordinateProperties),l?(e[a]||(e[a]=c.map((t=>new Array(t.line.length).fill(null)))),e[a][t]=i):e[a]=i}}return{type:"Feature",properties:h,geometry:l?{type:"MultiLineString",coordinates:n}:{type:"LineString",coordinates:n[0]}}}function*h(t){const e=t.getElementsByTagName("trk"),a=t.getElementsByTagName("rte"),i=t.getElementsByTagName("wpt");for(let t=0;t<e.length;t++){const a=l(e[t]);a&&(yield a)}for(let t=0;t<a.length;t++){const e=c(a[t]);e&&(yield e)}for(let t=0;t<i.length;t++)yield(o=i[t],{type:"Feature",properties:Object.assign(s(o),n(o,["sym"])),geometry:{type:"Point",coordinates:r(o).coordinates}});var o}const u=[["heartRate","heartRates"],["Cadence","cadences"],["Speed","speeds"],["Watts","watts"]],d=[["TotalTimeSeconds","totalTimeSeconds"],["DistanceMeters","distanceMeters"],["MaximumSpeed","maxSpeed"],["AverageHeartRateBpm","avgHeartRate"],["MaximumHeartRateBpm","maxHeartRate"],["AvgSpeed","avgSpeed"],["AvgWatts","avgWatts"],["MaxWatts","maxWatts"]];function f(t,i){const n=[];for(const[s,r]of i){let i=a(t,s);if(!i){const e=t.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/ActivityExtension/v2",s);e.length&&(i=e[0])}const c=parseFloat(e(i));isNaN(c)||n.push([r,c])}return n}function p(t){const i=e(a(t,"LongitudeDegrees")),n=e(a(t,"LatitudeDegrees"));if(!i.length||!n.length)return null;const s=[parseFloat(i),parseFloat(n)],r=a(t,"AltitudeMeters"),c=a(t,"HeartRateBpm"),o=a(t,"Time");let l;return r&&(l=parseFloat(e(r)),isNaN(l)||s.push(l)),{coordinates:s,time:o?e(o):null,heartRate:c?parseFloat(e(c)):null,extensions:f(t,u)}}function m(t,e){const a=t.getElementsByTagName(e),i=[],n=[],s=[];if(a.length<2)return null;const r={extendedProperties:{}};for(let t=0;t<a.length;t++){const e=p(a[t]);if(null!==e){i.push(e.coordinates),e.time&&n.push(e.time),e.heartRate&&s.push(e.heartRate);for(const[i,n]of e.extensions)r.extendedProperties[i]||(r.extendedProperties[i]=Array(a.length).fill(null)),r.extendedProperties[i][t]=n}}return Object.assign(r,{line:i,times:n,heartRates:s})}function g(t){const i=t.getElementsByTagName("Track"),n=[],s=[],r=[],c=[];let o;const l=function(t){const e={};for(const[a,i]of t)e[a]=i;return e}(f(t,d)),h=a(t,"Name");h&&(l.name=e(h));for(let t=0;t<i.length;t++)o=m(i[t],"Trackpoint"),o&&(n.push(o.line),o.times.length&&s.push(o.times),o.heartRates.length&&r.push(o.heartRates),c.push(o.extendedProperties));for(let t=0;t<c.length;t++){const e=c[t];for(const a in e)1===i.length?l[a]=o.extendedPropertLine truncated
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-leaflet-plugin",
|
||||
"name": "Leaflet",
|
||||
"description": "Interactive maps inside your notes",
|
||||
"version": "6.0.5",
|
||||
"minAppVersion": "0.12.12",
|
||||
"author": "Jeremy Valentine",
|
||||
"repo": "valentine195/obsidian-leaflet-plugin",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+1314
File diff suppressed because it is too large.
Load diff
+123
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
||||
if you want to view the source visit the plugins github repository
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var obsidian = require('obsidian');
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
function __awaiter(thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
}
|
||||
|
||||
const labeledRegex = /^[ \t]*date:(.+?)(?:^[ \t]*title:(.+?))?(?:^[ \t]*content:(.+?))?(?=^[ \t]*date:)/gimsu;
|
||||
const timelineLabeledParser = (source) => {
|
||||
source += "\ndate: ";
|
||||
let sourceMatch;
|
||||
const parsed = [];
|
||||
while ((sourceMatch = labeledRegex.exec(source)) !== null) {
|
||||
parsed.push({
|
||||
time: sourceMatch[1],
|
||||
title: sourceMatch[2],
|
||||
description: sourceMatch[3]
|
||||
});
|
||||
}
|
||||
return parsed;
|
||||
};
|
||||
const timelineParser = (source) => {
|
||||
const sourceSplitted = source.split(/^\s*\+ ?/gm).slice(1);
|
||||
sourceSplitted.push("", "");
|
||||
const parsed = [];
|
||||
const counter = sourceSplitted.length - (sourceSplitted.length % 3);
|
||||
for (let i = 0; i < counter; i += 3) {
|
||||
parsed.push({
|
||||
time: sourceSplitted[i],
|
||||
title: sourceSplitted[i + 1],
|
||||
description: sourceSplitted[i + 2]
|
||||
});
|
||||
}
|
||||
return parsed;
|
||||
};
|
||||
const toExport = [
|
||||
{ tag: "timeline", parser: timelineParser },
|
||||
{ tag: "timeline-labeled", parser: timelineLabeledParser },
|
||||
];
|
||||
|
||||
class TimelineElement {
|
||||
constructor(root, sourcePath) {
|
||||
this.addEvent = (info) => {
|
||||
Object.entries(info).map(([key, val]) => {
|
||||
const element = this.root.createDiv({ cls: key });
|
||||
const text = val;
|
||||
obsidian.MarkdownRenderer.renderMarkdown(text, element, this.sourcePath, null);
|
||||
return [key, element];
|
||||
});
|
||||
};
|
||||
this.getElement = () => this.root;
|
||||
this.root = root.createDiv({ cls: 'timeline' });
|
||||
this.sourcePath = sourcePath;
|
||||
}
|
||||
}
|
||||
|
||||
const classRegex = /(?<=^\s*)\[.+?\]/gs;
|
||||
const toClassArray = (input) => {
|
||||
input = input.trim();
|
||||
if (input[0] != "[" || input[input.length - 1] != "]")
|
||||
return [];
|
||||
return input
|
||||
.substring(1, input.length - 1)
|
||||
.trim()
|
||||
.split(/\s*,\s*/);
|
||||
};
|
||||
class TimelinePlugin extends obsidian.Plugin {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.onload = () => __awaiter(this, void 0, void 0, function* () {
|
||||
toExport.forEach(({ tag, parser }) => {
|
||||
this.registerMarkdownCodeBlockProcessor(tag, (source, root, ctx) => {
|
||||
const timelineElement = new TimelineElement(root, ctx.sourcePath);
|
||||
const el = timelineElement.getElement();
|
||||
el.addClass("timeline");
|
||||
const classMatch = source.match(classRegex);
|
||||
if (classMatch !== null) {
|
||||
const classes = toClassArray(classMatch[0]);
|
||||
el.addClasses(classes);
|
||||
}
|
||||
const events = parser(source);
|
||||
events.forEach(e => timelineElement.addEvent(e));
|
||||
});
|
||||
});
|
||||
console.log("timeline load");
|
||||
});
|
||||
this.onunload = () => __awaiter(this, void 0, void 0, function* () {
|
||||
console.log("timeline onunload");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TimelinePlugin;
|
||||
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-timeline",
|
||||
"name": "Timeline",
|
||||
"version": "1.1.0",
|
||||
"minAppVersion": "0.15.6",
|
||||
"description": "Used to build great timelines",
|
||||
"author": "George Butco",
|
||||
"authorUrl": "",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.timeline.line-2 .time::before,.timeline.line-2 .time::after{right:-2.2rem;top:50%;transform:translateY(-50%);border-radius:50%}.timeline.line-2 .time::before{height:1.2rem;width:1.2rem}.timeline.line-2 .time::after{background:rgba(0,0,0,0);border:.2rem solid var(--text-normal);height:.8rem;width:.8rem;opacity:.15}.timeline.line-2::before{width:.2rem;opacity:.15}.timeline.line-3 .time::before{background:var(--timeline-active-color);height:1rem;width:1rem;border:.3rem solid var(--background-primary);right:-2.45rem;top:50%;transform:translateY(-50%);border-radius:50%}.timeline.line-3 .time::after{background:rgba(0,0,0,0)}.timeline.line-3::before{width:.3rem;opacity:.15}.timeline.line-4 .time::before,.timeline.line-4 .time::after{top:50%;transform:translateY(-50%);border-radius:50%}.timeline.line-4 .time::before{background:var(--text-normal);height:1.3rem;width:1.3rem;right:-2.225rem}.timeline.line-4 .time::after{opacity:1;background:var(--timeline-active-color);height:.85rem;width:.85rem;right:-2rem}.timeline.line-4::before{opacity:1;width:.15rem;background-color:rgba(0,0,0,0);background-image:linear-gradient(var(--text-normal) 60%, rgba(255, 255, 255, 0) 0%);background-position:right;background-size:.15rem 1.5rem;background-repeat:repeat-y}.timeline.line-5 .time::before,.timeline.line-5 .time::after{top:50%}.timeline.line-5 .time::before{width:3rem;height:3rem;right:-3.1rem;transform:translateY(-50%)}.timeline.line-5 .time::after{width:1rem;height:1rem;right:0;transform:translateY(-50%) translateX(2.1rem) rotate(45deg)}.timeline.line-5::before{width:.2rem;opacity:.25}.timeline.spaced-lines>.description p{line-height:1.7rem}.timeline.hide-titles>.title{display:none}.timeline{--timeline-active-color: var(--background-modifier-success)}.timeline.active-color-background-modifier-success{--timeline-active-color: var(--background-modifier-success)}.timeline.active-color-background-modifier-error{--timeline-active-color: var(--background-modifier-error)}.timeline.active-color-background-modifier-error-hover{--timeline-active-color: var(--background-modifier-error-hover)}.timeline.active-color-text-accent{--timeline-active-color: var(--text-accent)}.timeline.active-color-text-accent-hover{--timeline-active-color: var(--text-accent-hover)}.timeline.active-color-text-error{--timeline-active-color: var(--text-error)}.timeline.active-color-text-error-hover{--timeline-active-color: var(--text-error-hover)}.timeline.active-color-text-selection{--timeline-active-color: var(--text-selection)}.timeline.active-color-interactive-accent{--timeline-active-color: var(--interactive-accent)}.timeline.active-color-interactive-accent-hover{--timeline-active-color: var(--interactive-accent-hover)}.timeline.active-color-interactive-success{--timeline-active-color: var(--interactive-success)}.timeline{display:grid;grid-template-columns:auto auto 1fr;column-gap:1.5rem;margin:2.3rem 0}.timeline .time>*:first-child,.timeline .title>*:first-child,.timeline .description>*:first-child{margin-top:0}.timeline .time>*:last-child,.timeline .title>*:last-child,.timeline .description>*:last-child{margin-bottom:0}.timeline .description,.timeline .title{grid-column:3}.timeline .time,.timeline .title{display:flex;flex-direction:column;justify-content:center;padding:.4em 0}.timeline .time>*,.timeline .title>*{font-size:1.3em;font-weight:bold}.timeline .time{grid-column:1;position:relative;justify-self:right;text-align:right}.timeline .time::before,.timeline .time::after{content:" ";position:absolute;height:100%;width:.5rem;right:-2rem;top:0}.timeline .time::before{background-color:var(--background-primary)}.timeline .time::after{background-color:var(--text-normal);opacity:.25}.timeline .description{position:relative;margin-bottom:4.5rem;padding-top:.4em}.timeline .description::after{content:" ";position:absolute;border-bottom:.1rem dashed var(--text-normal);opacity:.1;width:100%;height:2.25rem}.timeline .description:last-child{margin-bottom:.4em}.timeline .description:last-child::after{display:none}.timeline::before{content:"";height:100%;width:.5rem;grid-column:2/span 1;grid-row-start:1;grid-row-end:span 1000;background-color:var(--text-normal);opacity:.1}.timeline.body-2>.title,.timeline.body-2>.description,.timeline.body-3>.title,.timeline.body-3>.description,.timeline.body-4>.title,.timeline.body-4>.description{background-color:var(--background-primary-alt)}.timeline.body-2 .description::after,.timeline.body-3 .description::after,.timeline.body-4 .description::after{display:none}.timeline.body-2 .description,.timeline.body-2 .title,.timeline.body-4 .description,.timeline.body-4 .title{padding:1.5rem;padding-top:.4em}.timeline.body-2 .title,.timeline.body-4 .title{padding-bottom:0}.timeline.body-2 .time,.timeline.body-4 .time{margin-top:.4em}.timeline.body-2 .title{border-radius:1.5rem 1.5rem 0 0}.timeline.body-2 .description{border-radius:0 0 1.5rem 1.5rem}.timeline.body-3 .title,.timeline.body-3 .description{margin-left:1rem}.timeline.body-3 .titLine truncated
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"formatType": "normal",
|
||||
"showRibbonIcon": true,
|
||||
"bindEnter": true,
|
||||
"bindTab": true
|
||||
}
|
||||
+236
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var c9=Object.create;var x1=Object.defineProperty;var f9=Object.getOwnPropertyDescriptor;var h9=Object.getOwnPropertyNames;var d9=Object.getPrototypeOf,g9=Object.prototype.hasOwnProperty;var we=(s,r)=>()=>(r||s((r={exports:{}}).exports,r),r.exports),p9=(s,r)=>{for(var l in r)x1(s,l,{get:r[l],enumerable:!0})},wl=(s,r,l,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of h9(r))!g9.call(s,d)&&d!==l&&x1(s,d,{get:()=>r[d],enumerable:!(c=f9(r,d))||c.enumerable});return s};var y1=(s,r,l)=>(l=s!=null?c9(d9(s)):{},wl(r||!s||!s.__esModule?x1(l,"default",{value:s,enumerable:!0}):l,s)),m9=s=>wl(x1({},"__esModule",{value:!0}),s);var O1=we(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});L1.Point=void 0;var s3=class{constructor(r,l){this.row=r,this.column=l}equals(r){return this.row===r.row&&this.column===r.column}};L1.Point=s3});var P1=we(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});S1.Range=void 0;var l3=class{constructor(r,l){this.start=r,this.end=l}};S1.Range=l3});var W1=we(I1=>{"use strict";Object.defineProperty(I1,"__esModule",{value:!0});I1.Focus=void 0;var u3=class s{constructor(r,l,c){this.row=r,this.column=l,this.offset=c}posEquals(r){return this.row===r.row&&this.column===r.column}setRow(r){return new s(r,this.column,this.offset)}setColumn(r){return new s(this.row,r,this.offset)}setOffset(r){return new s(this.row,this.column,r)}};I1.Focus=u3});var vi=we(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.HeaderAlignment=Dn.DefaultAlignment=Dn.Alignment=void 0;var _l;(function(s){s.NONE="none",s.LEFT="left",s.RIGHT="right",s.CENTER="center"})(_l||(Dn.Alignment=_l={}));var bl;(function(s){s.LEFT="left",s.RIGHT="right",s.CENTER="center"})(bl||(Dn.DefaultAlignment=bl={}));var El;(function(s){s.FOLLOW="follow",s.LEFT="left",s.RIGHT="right",s.CENTER="center"})(El||(Dn.HeaderAlignment=El={}))});var Pr=we(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});D1.TableCell=void 0;var M1=vi(),a3=class{constructor(r){this.rawContent=r,this.content=r.trim(),this.paddingLeft=this.content===""?this.rawContent===""?0:1:this.rawContent.length-this.rawContent.trimLeft().length,this.paddingRight=this.rawContent.length-this.content.length-this.paddingLeft}toText(){return this.rawContent}isDelimiter(){return/^\s*:?-+:?\s*$/.test(this.rawContent)}getAlignment(){if(this.isDelimiter())return this.content[0]===":"?this.content[this.content.length-1]===":"?M1.Alignment.CENTER:M1.Alignment.LEFT:this.content[this.content.length-1]===":"?M1.Alignment.RIGHT:M1.Alignment.NONE}computeContentOffset(r){return this.content===""||r<this.paddingLeft?0:r<this.paddingLeft+this.content.length?r-this.paddingLeft:this.content.length}computeRawOffset(r){return r+this.paddingLeft}};D1.TableCell=a3});var _i=we(F1=>{"use strict";Object.defineProperty(F1,"__esModule",{value:!0});F1.TableRow=void 0;var w9=Pr(),c3=class s{constructor(r,l,c){this._cells=r.slice(),this.marginLeft=l,this.marginRight=c}getWidth(){return this._cells.length}getCells(){return this._cells.slice()}getCellAt(r){return this._cells[r]}setCellAt(r,l){let c=this.getCells();return c[r]=new w9.TableCell(l),new s(c,this.marginLeft,this.marginRight)}toText(){if(this._cells.length===0)return this.marginLeft;let r=this._cells.map(l=>l.toText()).join("|");return`${this.marginLeft}|${r}|${this.marginRight}`}isDelimiter(){return this._cells.every(r=>r.isDelimiter())}};F1.TableRow=c3});var Xt=we(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.Err=ct.Ok=ct.err=ct.ok=void 0;var C9=s=>new k1(s);ct.ok=C9;var v9=s=>new U1(s);ct.err=v9;var k1=class{constructor(r){this.value=r,this.match=(l,c)=>l(this.value)}isOk(){return!0}isErr(){return!this.isOk()}map(r){return(0,ct.ok)(r(this.value))}mapErr(r){return(0,ct.ok)(this.value)}andThen(r){return r(this.value)}unwrapOr(r){return this.value}_unsafeUnwrap(){return this.value}_unsafeUnwrapErr(){throw new Error("Called `_unsafeUnwrapErr` on an Ok")}};ct.Ok=k1;var U1=class{constructor(r){this.error=r,this.match=(l,c)=>c(this.error)}isOk(){return!1}isErr(){return!this.isOk()}map(r){return(0,ct.err)(this.error)}mapErr(r){return(0,ct.err)(r(this.error))}andThen(r){return(0,ct.err)(this.error)}unwrapOr(r){return r}_unsafeUnwrap(){throw new Error("Called `_unsafeUnwrap` on an Err")}_unsafeUnwrapErr(){return this.error}};ct.Err=U1});var $t=we(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.prettyPrintAST=St.checkChildLength=St.checkType=St.errRelativeReferenceIndex=St.errIndex0=void 0;St.errIndex0=new Error("Index 0 used to create a reference");St.errRelativeReferenceIndex=new Error("Can not use relative reference where absolute reference is required");var _9=(s,...r)=>{if(!(r.indexOf(s.type)>=0))return new Error(`Formula element '${s.text}' is a ${s.type} but expected one of ${r} in this position.`)};St.checkType=_9;var b9=(s,r)=>{if(s.children.length!==r)return new Error(`Formula element '${s.text}' was expected to have ${r} elements,
Line truncated
|
||||
/* [wrapped with `+t+`] */
|
||||
`)}function B6(e){return he(e)||ur(e)||!!(P0&&e&&e[P0])}function mn(e,t){var n=typeof e;return t=t==null?_t:t,!!t&&(n=="number"||n!="symbol"&&g.test(e))&&e>-1&&e%1==0&&e<t}function ut(e,t,n){if(!ke(n))return!1;var i=typeof t;return(i=="number"?gt(n)&&mn(t,n.length):i=="string"&&t in n)?Yt(n[t],e):!1}function H2(e,t){if(he(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Nt(e)?!0:Ho.test(e)||!qo.test(e)||t!=null&&e in Se(t)}function z6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function B2(e){var t=p1(e),n=w[t];if(typeof n!="function"||!(t in be.prototype))return!1;if(e===n)return!0;var i=k2(n);return!!i&&e===i[0]}function $6(e){return!!N0&&N0 in e}var Z6=Zi?wn:o3;function mi(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ar;return e===n}function Ns(e){return e===e&&!ke(e)}function Ls(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==s||e in Se(n))}}function G6(e){var t=b1(e,function(i){return n.size===m&&n.clear(),i}),n=t.cache;return t}function V6(e,t){var n=e[1],i=t[1],h=n|i,v=h<(Y|se|te),b=i==te&&n==D||i==te&&n==J&&e[7].length<=t[8]||i==(te|J)&&t[7].length<=t[8]&&n==D;if(!(v||b))return e;i&Y&&(e[2]=t[2],h|=n&Y?0:ge);var R=t[3];if(R){var O=e[3];e[3]=O?fs(O,R,t[4]):R,e[4]=O?Nn(e[3],A):t[4]}return R=t[5],R&&(O=e[5],e[5]=O?hs(O,R,t[6]):R,e[6]=O?Nn(e[5],A):t[6]),R=t[7],R&&(e[7]=R),i&te&&(e[8]=e[8]==null?t[8]:tt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=h,e}function K6(e){var t=[];if(e!=null)for(var n in Se(e))t.push(n);return t}function Y6(e){return Vi.call(e)}function Os(e,t,n){return t=$e(t===s?e.length-1:t,0),function(){for(var i=arguments,h=-1,v=$e(i.length-t,0),b=W(v);++h<v;)b[h]=i[t+h];h=-1;for(var R=W(t+1);++h<t;)R[h]=i[h];return R[t]=n(b),Rt(e,this,R)}}function Ss(e,t){return t.length<2?e:or(e,Ht(t,0,-1))}function J6(e,t){for(var n=e.length,i=tt(t.length,n),h=dt(e);i--;){var v=t[i];e[i]=mn(v,n)?h[v]:s}return e}function z2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ps=Ws(ts),wi=f4||function(e,t){return Ve.setTimeout(e,t)},$2=Ws(v6);function Is(e,t,n){var i=t+"";return $2(e,H6(i,X6(k6(i),n)))}function Ws(e){var t=0,n=0;return function(){var i=p4(),h=ot-(i-n);if(n=i,h>0){if(++t>=Pe)return arguments[0]}else t=0;return e.apply(s,arguments)}}function w1(e,t){var n=-1,i=e.length,h=i-1;for(t=t===s?i:t;++n<t;){var v=x2(n,h),b=e[v];e[v]=e[n],e[n]=b}return e.length=t,e}var Ms=G6(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bo,function(n,i,h,v){t.push(h?v.replace(Jo,"$1"):i||n)}),t});function sn(e){if(typeof e=="string"||Nt(e))return e;var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function lr(e){if(e!=null){try{return Gi.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function X6(e,t){return Ft(pr,function(n){var i="_."+n[0];t&n[1]&&!Hi(e,i)&&e.push(i)}),e.sort()}function Ds(e){if(e instanceof be)return e.clone();var t=new Ut(e.__wrapped__,e.__chain__);return t.__actions__=dt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Q6(e,t,n){(n?ut(e,t,n):t===s)?t=1:t=$e(de(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var h=0,v=0,b=W(ji(i/t));h<i;)b[v++]=Ht(e,h,h+=t);return b}function j6(e){for(var t=-1,n=e==null?0:e.length,i=0,h=[];++t<n;){var v=e[t];v&&(h[i++]=v)}return h}function ea(){var e=arguments.length;if(!e)return[];for(var t=W(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return yn(he(n)?dt(n):[n],Je(t,1))}var ta=me(function(e,t){return qe(e)?fi(e,Je(t,1,qe,!0)):[]}),na=me(function(e,t){var n=Bt(t);return qe(n)&&(n=s),qe(e)?fi(e,Je(t,1,qe,!0),le(n,2)):[]}),ra=me(function(e,t){var n=Bt(t);return qe(n)&&(n=s),qe(e)?fi(e,Je(t,1,qe,!0),s,n):[]});function ia(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===s?1:de(t),Ht(e,t<0?0:t,i)):[]}function oa(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===s?1:de(t),t=i-t,Ht(e,0,t<0?0:t)):[]}function sa(e,t){return e&&e.length?a1(e,le(t,3),!0,!0):[]}function la(e,t){return e&&e.length?a1(e,le(t,3),!0):[]}function ua(e,t,n,i){var h=e==null?0:e.length;return h?(n&&typeof n!="number"&&ut(e,t,n)&&(n=0,i=h),e6(e,t,n,i)):[]}function Fs(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var h=n==null?0:de(n);return h<0&&(h=$e(i+h,0)),Bi(e,le(t,3),h)}function ks(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var h=i-1;return n!==s&&(h=de(n),h=n<0?$e(i+h,0):tt(h,i-1)),Bi(e,le(t,3),h,!0)}function Us(e){var t=e==null?0:e.length;return t?Je(e,1):[]}function aa(e){var t=e==null?0:e.length;return t?Je(e,vt):[]}function ca(e,t){var n=e==null?0:e.length;return n?(t=t===s?1:de(t),Je(e,t)):[]}function fa(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var h=e[t];i[h[0]]=h[1]}return i}function qs(e){return e&&e.length?e[0]:s}function ha(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var h=n==null?0:de(n);return h<0&&(h=$e(i+h,0)),_r(e,t,h)}function da(e){var t=e==null?0:e.length;return t?Ht(e,0,-1):[]}var ga=me(function(e){var t=Fe(e,S2);return t.length&&t[0]===
Line truncated
|
||||
`;e.replace(X,function(ae,ve,Ee,Lt,at,Ot){return Ee||(Ee=Lt),Z+=e.slice(q,Ot).replace(T,Zu),ve&&(R=!0,Z+=`' +
|
||||
__e(`+ve+`) +
|
||||
'`),at&&(O=!0,Z+=`';
|
||||
`+at+`;
|
||||
__p += '`),Ee&&(Z+=`' +
|
||||
((__t = (`+Ee+`)) == null ? '' : __t) +
|
||||
'`),q=Ot+ae.length,ae}),Z+=`';
|
||||
`;var ue=Ne.call(t,"variable")&&t.variable;if(!ue)Z=`with (obj) {
|
||||
`+Z+`
|
||||
}
|
||||
`;else if(Yo.test(ue))throw new fe(C);Z=(O?Z.replace(Io,""):Z).replace(Wo,"$1").replace(Mo,"$1;"),Z="function("+(ue||"obj")+`) {
|
||||
`+(ue?"":`obj || (obj = {});
|
||||
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(O?`, __j = Array.prototype.join;
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+Z+`return __p
|
||||
}`;var pe=gl(function(){return Te(v,ne+"return "+Z).apply(s,b)});if(pe.source=Z,Y2(pe))throw pe;return pe}function wc(e){return xe(e).toLowerCase()}function Cc(e){return xe(e).toUpperCase()}function vc(e,t,n){if(e=xe(e),e&&(n||t===s))return A0(e);if(!e||!(t=yt(t)))return e;var i=Vt(e),h=Vt(t),v=T0(i,h),b=R0(i,h)+1;return Wn(i,v,b).join("")}function _c(e,t,n){if(e=xe(e),e&&(n||t===s))return e.slice(0,y0(e)+1);if(!e||!(t=yt(t)))return e;var i=Vt(e),h=R0(i,Vt(t))+1;return Wn(i,0,h).join("")}function bc(e,t,n){if(e=xe(e),e&&(n||t===s))return e.replace(ni,"");if(!e||!(t=yt(t)))return e;var i=Vt(e),h=T0(i,Vt(t));return Wn(i,h).join("")}function Ec(e,t){var n=G,i=Ce;if(ke(t)){var h="separator"in t?t.separator:h;n="length"in t?de(t.length):n,i="omission"in t?yt(t.omission):i}e=xe(e);var v=e.length;if(br(e)){var b=Vt(e);v=b.length}if(n>=v)return e;var R=n-Er(i);if(R<1)return i;var O=b?Wn(b,0,R).join(""):e.slice(0,R);if(h===s)return O+i;if(b&&(R+=O.length-R),J2(h)){if(e.slice(R).search(h)){var q,H=O;for(h.global||(h=h2(h.source,xe(qi.exec(h))+"g")),h.lastIndex=0;q=h.exec(H);)var Z=q.index;O=O.slice(0,Z===s?R:Z)}}else if(e.indexOf(yt(h),R)!=R){var X=O.lastIndexOf(h);X>-1&&(O=O.slice(0,X))}return O+i}function Ac(e){return e=xe(e),e&&Do.test(e)?e.replace(ki,Qu):e}var Tc=Nr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),j2=ps("toUpperCase");function dl(e,t,n){return e=xe(e),t=n?s:t,t===s?Vu(e)?t4(e):ku(e):e.match(t)||[]}var gl=me(function(e,t){try{return Rt(e,s,t)}catch(n){return Y2(n)?n:new fe(n)}}),Rc=pn(function(e,t){return Ft(t,function(n){n=sn(n),dn(e,n,V2(e[n],e))}),e});function xc(e){var t=e==null?0:e.length,n=le();return e=t?Fe(e,function(i){if(typeof i[1]!="function")throw new kt(d);return[n(i[0]),i[1]]}):[],me(function(i){for(var h=-1;++h<t;){var v=e[h];if(Rt(v[0],this,i))return Rt(v[1],this,i)}})}function yc(e){return Q4(qt(e,P))}function e3(e){return function(){return e}}function Nc(e,t){return e==null||e!==e?t:e}var Lc=ws(),Oc=ws(!0);function mt(e){return e}function t3(e){return V0(typeof e=="function"?e:qt(e,P))}function Sc(e){return Y0(qt(e,P))}function Pc(e,t){return J0(e,qt(t,P))}var Ic=me(function(e,t){return function(n){return hi(n,e,t)}}),Wc=me(function(e,t){return function(n){return hi(e,n,t)}});function n3(e,t,n){var i=Ke(t),h=s1(t,i);n==null&&!(ke(t)&&(h.length||!i.length))&&(n=t,t=e,e=this,h=s1(t,Ke(t)));var v=!(ke(n)&&"chain"in n)||!!n.chain,b=wn(e);return Ft(h,function(R){var O=t[R];e[R]=O,b&&(e.prototype[R]=function(){var q=this.__chain__;if(v||q){var H=e(this.__wrapped__),Z=H.__actions__=dt(this.__actions__);return Z.push({func:O,args:arguments,thisArg:e}),H.__chain__=q,H}return O.apply(e,yn([this.value()],arguments))})}),e}function Mc(){return Ve._===this&&(Ve._=l4),this}function r3(){}function Dc(e){return e=de(e),me(function(t){return X0(t,e)})}var Fc=W2(Fe),kc=W2(C0),Uc=W2(o2);function pl(e){return H2(e)?s2(sn(e)):p6(e)}function qc(e){return function(t){return e==null?s:or(e,t)}}var Hc=vs(),Bc=vs(!0);function i3(){return[]}function o3(){return!1}function zc(){return{}}function $c(){return""}function Zc(){return!0}function Gc(e,t){if(e=de(e),e<1||e>_t)return[];var n=j,i=tt(e,j);t=le(t),e-=j;for(var h=a2(i,t);++n<e;)t(n);return h}function Vc(e){return he(e)?Fe(e,sn):Nt(e)?[e]:dt(Ms(xe(e)))}function Kc(e){var t=++o4;return xe(e)+t}var Yc=h1(function(e,t){return e+t},0),Jc=M2("ceil"),Xc=h1(function(e,t){return e/t},1),Qc=M2("floor");function jc(e){return e&&e.length?o1(e,mt,_2):s}function e9(e,t){return e&&e.length?o1(e,le(t,2),_2):s}function t9(e){return b0(e,mt)}function n9(e,t){return b0(e,le(t,2))}function r9(e){return e&&e.length?o1(e,mt,T2):s}function i9(e,t){return e&&e.length?o1(e,le(t,2),T2):s}var o9=h1(function(e,t){return e*t},1),s9=M2("round"),l9=h1(function(e,t){return e-t},0);function u9(e){return e&&e.length?u2(e,mt):0}function a9(e,t){return e&&e.length?u2(e,le(t,2)):0}return w.after=S8,w.ary=Gs,w.assign=C5,w.assignIn=sl,w.assignInWith=R1,w.assignWith=v5,w.at=_5,w.before=Vs,w.bind=V2,w.bindAll=Rc,w.bindKey=Ks,w.castArray=z8,w.chain=zs,w.chunk=Q6,w.compact=j6,w.concat=ea,w.cond=xc,w.conforms=yc,w.constant=e3,w.countBy=u8,w.create=b5,w.curry=Ys,w.curryRight=Js,w.debounce=Xs,w.defaults=E5,w.defaultsDeep=A5,w.defer=P8,w.delay=I8,w.difference=ta,w.differenceBy=na,w.differenceWith=ra,w.drop=ia,w.dropRight=oa,w.dropRightWhile=sa,w.dropWhile=la,w.fill=ua,w.filter=c8,w.flatMap=d8,w.flatMapDeep=g8,w.flatMapDepth=p8,w.flatten=Us,w.flattenDeep=aa,w.flattenDepth=ca,w.flip=W8,w.flow=Lc,w.flowRight=Oc,w.fromPairs=fa,w.functions=O5,w.functionsIn=S5,w.groupBy=m8,w.initial=da,w.intersection=ga,w.intersectionBy=pa,w.intersectionWith=ma,w.invert=I5,w.invertBy=W5,w.invokeMap=C8,w.iteratee=t3,w.keyBy=v8,w.keys=Ke,w.keysIn=pt,w.map=v1,w.mapKeys=D5,w.mapValues=F5,w.matches=Sc,w.matchesProperty=Pc,w.memoize=b1,w.merge=k5,w.mergeWith=ll,w.method=Ic,w.methodOf=Wc,w.mixin=n3,w.negate=E1,w.nthArg=Dc,w.omit=U5,w.omitBy=q5,w.once=M8,w.orderBy=_8,w.over=Fc,w.overArgs=D8,w.overEvery=kc,w.overSome=Uc,w.
Line truncated
|
||||
`))}getAST(r,l){l||(l=this.grammarRules.filter(d=>!d.fragment&&d.name.indexOf("%")!=0)[0].name);let c=this.parse(r,l);if(c){Hl(c.errors,c),ql(c,0),W3(c,/^%/),(!this.options||!this.options.keepUpperRules)&&W3(c,Ml);let d=c.rest;d&&new lo.TokenError(`Unexpected end of input:
|
||||
`+d,c),Ul(c),c.rest=d}return c}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(r,l,c=0){let d=null,C=hr(l),_,m=this.debug&&!Ml.test(C.name);m&&console.log(new Array(c).join("\u2502 ")+"Trying to get "+l+" from "+JSON.stringify(r.split(`
|
||||
`)[0]));let A=C.name,P=Bl(C.name,this);if(C.name=="EOF"){if(r.length)return null;if(r.length==0)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!P&&C.isLiteral){let y=C.name.trim();if(y.startsWith('"')?y=JSON.parse(y):y.startsWith("'")&&(y=y.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),y==="")return{type:"%%EMPTY%%",text:"",rest:r,start:0,end:0,fullText:"",errors:[],children:[],parent:null};_=new RegExp(kl(y)),A=null}}catch(y){return y instanceof ReferenceError&&console.error(y),null}if(_){let y=I3(r,_);if(y)return y.type=A,y}else{let y=P.bnf;y instanceof Array&&y.forEach(S=>{if(d)return;let V=null,M={type:C.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:r};P.fragment&&(M.fragment=!0);let Y=r,se=0,ge=S.length>0,D=!1;for(let $=0;$<S.length;$++)if(typeof S[$]=="string"){let U=hr(S[$]);ge=ge&&U.isOptional;let K,te=!1;do{if(K=null,P.implicitWs&&(K=this.parse(Y,U.name,c+1),!K)){let J;do if(J=this.parse(Y,so,c+1),J)M.text=M.text+J.text,M.end=M.text.length,J.parent=M,M.children.push(J),Y=Y.substr(J.text.length),se+=J.text.length;else break;while(J&&J.text.length)}if(K=K||this.parse(Y,U.name,c+1),U.lookupNegative){if(K)return;break}if(U.lookupPositive&&!K)return;if(!K&&(U.isOptional||U.atLeastOne&&te))break;if(K&&P.pinned==$+1&&(V=K,m&&console.log(new Array(c+1).join("\u2502 ")+"\u2514\u2500 "+K.type+" PINNED")),K||(K=this.parseRecovery(P,Y,c+1)),!K)if(V)d=M,K={type:"SyntaxError",text:Y,children:[],end:Y.length,errors:[],fullText:"",parent:null,start:0,rest:""},Y.length?new lo.TokenError(`Unexpected end of input. Expecting ${U.name} Got: ${Y}`,K):new lo.TokenError(`Unexpected end of input. Missing ${U.name}`,K),m&&console.log(new Array(c+1).join("\u2502 ")+"\u2514\u2500 "+K.type+" "+JSON.stringify(K.text));else return;if(te=!0,D=!0,K.type=="%%EMPTY%%")break;K.start+=se,K.end+=se,!U.lookupPositive&&K.type&&(K.fragment?K.children&&K.children.forEach(J=>{J.start+=se,J.end+=se,J.parent=M,M.children.push(J)}):(K.parent=M,M.children.push(K))),U.lookup&&(K.lookup=!0),m&&console.log(new Array(c+1).join("\u2502 ")+"\u2514\u2500 "+K.type+" "+JSON.stringify(K.text)),!U.lookup&&!K.lookup&&(M.text=M.text+K.text,M.end=M.text.length,Y=Y.substr(K.text.length),se+=K.text.length),M.rest=Y}while(K&&U.allowRepetition&&Y.length&&!K.lookup)}else{let U=I3(Y,S[$]);if(!U)return;m&&console.log(new Array(c+1).join("\u2502 ")+"\u2514> "+JSON.stringify(U.text)+S[$].source),D=!0,U.start+=se,U.end+=se,M.text=M.text+U.text,M.end=M.text.length,Y=Y.substr(U.text.length),se+=U.text.length,M.rest=Y}D&&(d=M,m&&console.log(new Array(c).join("\u2502 ")+"\u251C<\u2500\u2534< PUSHING "+d.type+" "+JSON.stringify(d.text)))}),d&&P.simplifyWhenOneChildren&&d.children.length==1&&(d=d.children[0])}return d||m&&console.log(l+" NOT RESOLVED FROM "+r),d}parseRecovery(r,l,c){if(r.recover&&l.length){let d=this.debug;d&&console.log(new Array(c+1).join("\u2502 ")+"Trying to recover until token "+r.recover+" from "+JSON.stringify(l.split(`
|
||||
`)[0]+l.split(`
|
||||
`)[1]));let C={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""},_;do if(_=this.parse(l,r.recover,c+1),_){new lo.TokenError('Unexpected input: "'+C.text+`" Expecting: ${r.name}`,C);break}else C.text=C.text+l[0],C.end=C.text.length,l=l.substr(1);while(!_&&l.length>0);if(C.text.length>0&&_)return d&&console.log(new Array(c+1).join("\u2502 ")+"Recovered text: "+JSON.stringify(C.text)),C}return null}};It.Parser=uo;It.default=uo});var zl=we(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.findChildrenByType=void 0;function Y9(s,r){return s.children?s.children.filter(l=>l.type==r):[]}ao.findChildrenByType=Y9});var $l=we(F3=>{"use strict";Object.defineProperty(F3,"__esModule",{value:!0});var Bn=zl(),M3=Li(),D3;(function(s){s.RULES=[{name:"syntax",bnf:[["RULE_EOL*","rule+"]]},{name:"rule",bnf:[['" "*','"<"',"rule-name",'">"','" "*','"::="',"firstExpression","otherExpression*",'" "*',"RULE_EOL+",'" "*']]},{name:"firstExpression",bnf:[['" "*',"list"]]},{name:"otherExpression",bnf:[['" "*','"|"','" "*',"list"]]},{name:"RULE_EOL",bnf:[['"\\r"'],['"\\n"']]},{name:"list",bnf:[["term",'" "*',"list"],["term"]]},{name:"term",bnf:[["literal"],['"<"',"rule-name",'">"']]},{name:"literal",bnf:[[`'"'`,"RULE_CHARACTER1*",`'"'`],[`"'"`,"RULE_CHARACTER2*",`"'"`]]},{name:"RULE_CHARACTER",bnf:[['" "'],["RULE_LETTER"],["RULE_DIGIT"],["RULE_SYMBOL"]]},{name:"RULE_LETTER",bnf:[['"A"'],['"B"'],['"C"'],['"D"'],['"E"'],['"F"'],['"G"'],['"H"'],['"I"'],['"J"'],['"K"'],['"L"'],['"M"'],['"N"'],['"O"'],['"P"'],['"Q"'],['"R"'],['"S"'],['"T"'],['"U"'],['"V"'],['"W"'],['"X"'],['"Y"'],['"Z"'],['"a"'],['"b"'],['"c"'],['"d"'],['"e"'],['"f"'],['"g"'],['"h"'],['"i"'],['"j"'],['"k"'],['"l"'],['"m"'],['"n"'],['"o"'],['"p"'],['"q"'],['"r"'],['"s"'],['"t"'],['"u"'],['"v"'],['"w"'],['"x"'],['"y"'],['"z"']]},{name:"RULE_DIGIT",bnf:[['"0"'],['"1"'],['"2"'],['"3"'],['"4"'],['"5"'],['"6"'],['"7"'],['"8"'],['"9"']]},{name:"RULE_SYMBOL",bnf:[['"-"'],['"_"'],['"!"'],['"#"'],['"$"'],['"%"'],['"&"'],['"("'],['")"'],['"*"'],['"+"'],['","'],['"-"'],['"."'],['"/"'],['":"'],['";"'],['"<"'],['"="'],['">"'],['"?"'],['"@"'],['"["'],['"\\"'],['"]"'],['"^"'],['"_"'],['"`"'],['"{"'],['"|"'],['"}"'],['"~"']]},{name:"RULE_CHARACTER1",bnf:[["RULE_CHARACTER"],[`"'"`]]},{name:"RULE_CHARACTER2",bnf:[["RULE_CHARACTER"],[`'"'`]]},{name:"rule-name",bnf:[["RULE_LETTER","RULE_CHAR*"]]},{name:"RULE_CHAR",bnf:[["RULE_LETTER"],["RULE_DIGIT"],['"_"'],['"-"']]}],s.defaultParser=new M3.Parser(s.RULES,{debug:!1});function r(C){let _=Bn.findChildrenByType(C,"term").map(m=>Bn.findChildrenByType(m,"literal").concat(Bn.findChildrenByType(m,"rule-name"))[0].text);return Bn.findChildrenByType(C,"list").forEach(m=>{_=_.concat(r(m))}),_}function l(C,_=s.defaultParser){let m=_.getAST(C);if(!m)throw new Error("Could not parse "+C);if(m.errors&&m.errors.length)throw m.errors[0];let P=Bn.findChildrenByType(m,"rule").map(y=>{let S=Bn.findChildrenByType(y,"rule-name")[0].text,V=Bn.findChildrenByType(y,"firstExpression").concat(Bn.findChildrenByType(y,"otherExpression")),M=[];return V.forEach(Y=>{M.push(r(Y))}),{name:S,bnf:M}});return P.some(y=>y.name=="EOL")||P.push({name:"EOL",bnf:[['"\\r\\n"','"\\r"','"\\n"']]}),P}s.getRules=l;function c(C,_=s.defaultParser){return l(C.join(""),_)}s.Transform=c;class d extends M3.Parser{constructor(_,m){let A=m&&m.debugRulesParser===!0?new M3.Parser(s.RULES,{debug:!0}):s.defaultParser;super(l(_,A),m),this.source=_}emitSource(){return this.source}}s.Parser=d})(D3||(D3={}));F3.default=D3});var Zl=we(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});var Oi=Li(),k3;(function(s){s.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[[`'"'`,/[^"]*/,`'"'`],[`"'"`,/[^']*/,`"'"`]],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RU
Line truncated
|
||||
`)}s.emit=A;let P=0;function y(D,$){throw console.log("reberia restar "+$+" a "+D),new Error("Difference not supported yet")}function S(D){return new RegExp(D.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function V(D,$,U){let K=null,te=[];return $.children.forEach((J,Q)=>{J.type=="Minus"&&y(K,J);let G=$.children[Q+1];G=G&&G.type=="PrimaryDecoration"&&G.text||"";let Ce="";switch(J.type){case"SubItem":let Pe="%"+(U+P++);M(D,J,Pe),te.push(Ce+Pe+G);break;case"NCName":case"StringLiteral":te.push(Ce+J.text+G);break;case"CharCode":case"CharClass":if(G||Ce){let ot={name:"%"+(U+P++),bnf:[[S(J.text)]]};D.push(ot),te.push(Ce+ot.name+G)}else te.push(S(J.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+J.type+" -> "+JSON.stringify(J.text))}K=J}),te}function M(D,$,U){let K=$.children.filter(Q=>Q.type=="SequenceOrDifference").map(Q=>V(D,Q,U)),te={name:U,bnf:K},J=null;K.forEach(Q=>{J=J||Q.recover,delete Q.recover}),U.indexOf("%")==0&&(te.fragment=!0),J&&(te.recover=J),D.push(te)}function Y(D,$=s.defaultParser){let U=$.getAST(D);if(!U)throw new Error("Could not parse "+D);if(U.errors&&U.errors.length)throw U.errors[0];let K=[];return U.children.filter(te=>te.type=="Production").map(te=>{let J=te.children.filter(Q=>Q.type=="NCName")[0].text;M(K,te,J)}),K}s.getRules=Y;function se(D,$=s.defaultParser){return Y(D.join(""),$)}s.Transform=se;class ge extends Oi.Parser{constructor($,U){let K=U&&U.debugRulesParser===!0?new Oi.Parser(s.RULES,{debug:!0}):s.defaultParser;super(Y($,K),U)}emitSource(){return A(this)}}s.Parser=ge})(k3||(k3={}));U3.default=k3});var Gl=we(H3=>{"use strict";Object.defineProperty(H3,"__esModule",{value:!0});var co=oo(),kr=Li(),q3;(function(s){s.RULES=[{name:"Grammar",bnf:[["RULE_S*","Attributes?","RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","%Choice","RULE_WHITESPACE*","Attributes?","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Attributes",bnf:[['"{"',"Attribute","%Attributes*","RULE_S*",'"}"']]},{name:"%Attributes",bnf:[["RULE_S*",'","',"Attribute"]],fragment:!0},{name:"Attribute",bnf:[["RULE_S*","NCName","RULE_WHITESPACE*",'"="',"RULE_WHITESPACE*","AttributeValue"]]},{name:"AttributeValue",bnf:[["NCName"],[/[1-9][0-9]*/]]},{name:"%Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_S*",'"|"',"RULE_S*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["%Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","%Item"],["%Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"%Item",bnf:[["RULE_WHITESPACE*","PrimaryPreDecoration?","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"PrimaryPreDecoration",bnf:[['"&"'],['"!"'],['"~"']]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_S*","%Choice","RULE_S*",'")"']]},{name:"StringLiteral",bnf:[[`'"'`,/[^"]*/,`'"'`],[`"'"`,/[^']*/,`"'"`]]},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[[/[^*]/],['"*"+',/[^/]*/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],s.defaultParser=new kr.Parser(s.RULES,{debug:!1});let r=/^(!|&)/,l=/(\?|\+|\*)$/,c=/^%/;function d(D,$){if(typeof D=="string"){let U=l.exec(D),K=r.exec(D),te=K?K[0]:"",J=U?U[0]+" ":"";return c.test(D)?C(D,$)?te+m(D,$)+J:te+"("+m(D,$)+")"+J:D.replace(r,te)}else return D.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}function C(D,$){let U=kr.findRuleByName(D,$);return U&&U.bnf.length==1&&U.bnf[0].length==1&&(U.bnf[0][0]instanceof RegExp||U.bnf[0][0][0]=='"'||U.bnf[0][0][0]=="'")}function _(D,$){return D.map(U=>d(U,$)).join(" ")}function m(D,$){let U=kr.findRuleByName(D,$);return U?U.bnf.map(K=>_(K,$)).join(" | "):"RU
Line truncated
|
||||
`)}s.emit=A;let P=0;function y(D,$){throw console.log("reberia restar "+$+" a "+D),new Error("Difference not supported yet")}function S(D){return new RegExp(D.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function V(D,$,U,K){let te=null,J=[];return $.children.forEach((Q,G)=>{Q.type=="Minus"&&y(te,Q);let Ce=$.children[G+1];Ce=Ce&&Ce.type=="PrimaryDecoration"&&Ce.text||"";let Pe="";te&&te.type=="PrimaryPreDecoration"&&(Pe=te.text);let ot=Pe=="~"?1:void 0;switch(ot&&(Pe=""),Q.type){case"SubItem":let B="%"+(U+P++);M(D,Q,B,K),J.push(Pe+B+Ce);break;case"NCName":J.push(Pe+Q.text+Ce);break;case"StringLiteral":if(Ce||Pe||!/^['"/()a-zA-Z0-9&_.:=,+*\-\^\\]+$/.test(Q.text))J.push(Pe+Q.text+Ce);else for(let Oe of Q.text.slice(1,-1))K&&K.ignoreCase=="true"&&/[a-zA-Z]/.test(Oe)?J.push(new RegExp("["+Oe.toUpperCase()+Oe.toLowerCase()+"]")):J.push(new RegExp(kr.escapeRegExp(Oe)));break;case"CharCode":case"CharClass":if(Ce||Pe){let Oe={name:"%"+(U+P++),bnf:[[S(Q.text)]],pinned:ot};D.push(Oe),J.push(Pe+Oe.name+Ce)}else J.push(S(Q.text));break;case"PrimaryPreDecoration":case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+Q.type+" -> "+JSON.stringify(Q.text))}te=Q}),J}function M(D,$,U,K=void 0){let te=$.children.filter(Ce=>Ce.type=="Attributes")[0],J={};te&&te.children.forEach(Ce=>{let Pe=Ce.children.filter(ot=>ot.type=="NCName")[0].text;if(Pe in J)throw new co.TokenError("Duplicated attribute "+Pe,Ce);J[Pe]=Ce.children.filter(ot=>ot.type=="AttributeValue")[0].text});let Q=$.children.filter(Ce=>Ce.type=="SequenceOrDifference").map(Ce=>V(D,Ce,U,K||J)),G={name:U,bnf:Q};if(U.indexOf("%")==0&&(G.fragment=!0),J.recoverUntil&&(G.recover=J.recoverUntil,G.bnf.length>1))throw new co.TokenError("only one-option productions are suitable for error recovering",$);if("pin"in J){let Ce=parseInt(J.pin);if(isNaN(Ce)||(G.pinned=Ce),G.bnf.length>1)throw new co.TokenError("only one-option productions are suitable for pinning",$)}"ws"in J?G.implicitWs=J.ws!="explicit":G.implicitWs=null,G.fragment=G.fragment||J.fragment=="true",G.simplifyWhenOneChildren=J.simplifyWhenOneChildren=="true",D.push(G)}function Y(D,$=s.defaultParser){let U=$.getAST(D);if(!U)throw new Error("Could not parse "+D);if(U.errors&&U.errors.length)throw U.errors[0];let K=null,te=U.children.filter(G=>G.type=="Attributes")[0],J={};te&&te.children.forEach(G=>{let Ce=G.children.filter(Pe=>Pe.type=="NCName")[0].text;if(Ce in J)throw new co.TokenError("Duplicated attribute "+Ce,G);J[Ce]=G.children.filter(Pe=>Pe.type=="AttributeValue")[0].text}),K=J.ws=="implicit";let Q=[];return U.children.filter(G=>G.type=="Production").map(G=>{let Ce=G.children.filter(Pe=>Pe.type=="NCName")[0].text;M(Q,G,Ce)}),Q.forEach(G=>{G.implicitWs===null&&(G.implicitWs=K)}),Q}s.getRules=Y;function se(D,$=s.defaultParser){return Y(D.join(""),$)}s.Transform=se;class ge extends kr.Parser{constructor($,U){let K=U&&U.debugRulesParser===!0?new kr.Parser(s.RULES,{debug:!0}):s.defaultParser;super(Y($,K),U)}emitSource(){return A(this)}}s.Parser=ge})(q3||(q3={}));H3.default=q3});var Vl=we(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var J9=$l();Object.defineProperty(Si,"BNF",{enumerable:!0,get:function(){return J9.default}});var X9=Zl();Object.defineProperty(Si,"W3C",{enumerable:!0,get:function(){return X9.default}});var Q9=Gl();Object.defineProperty(Si,"Custom",{enumerable:!0,get:function(){return Q9.default}})});var Kl=we(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var j9=Li();Object.defineProperty(Pi,"Parser",{enumerable:!0,get:function(){return j9.Parser}});var e7=oo();Object.defineProperty(Pi,"TokenError",{enumerable:!0,get:function(){return e7.TokenError}});Pi.Grammars=Vl()});var Ai=we(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.parseFormula=en.parseAndApply=en.Source=en.Formula=void 0;var Xe=Xt(),t7=Rl(),B3=$t(),n7=xl(),Yl=yl(),r7=Pl(),Jl=Il(),i7=x3(),o7=T3(),s7=Wl(),l7=Kl(),u7=Wr(),a7=`
|
||||
tblfm_line ::= "<!-- TBLFM: " formula_list " -->"
|
||||
formula_list ::= formula ( "::" formula_list )?
|
||||
formula ::= destination "=" source display_directive?
|
||||
|
||||
source ::= range | source_reference | single_param_function_call | conditional_function_call | algebraic_operation | float | real
|
||||
range ::= source_reference ".." source_reference
|
||||
source_reference ::= absolute_reference | relative_reference
|
||||
destination ::= range | absolute_reference
|
||||
|
||||
relative_reference ::= (relative_row | absolute_row) (relative_column | absolute_column) | relative_row | relative_column
|
||||
relative_row ::= "@" ( "-" | "+" ) int
|
||||
relative_column ::= "$" ( "-" | "+" ) int
|
||||
|
||||
absolute_reference ::= absolute_row absolute_column | absolute_row | absolute_column
|
||||
absolute_row ::= "@" ( "I" | "<" | ">" | int )
|
||||
absolute_column ::= "$" ( "<" | ">" | int )
|
||||
|
||||
single_param_function_call ::= single_param_function "(" source ")"
|
||||
single_param_function ::= "mean" | "sum"
|
||||
|
||||
conditional_function_call ::= "if(" predicate "," " "? source "," " "? source ")"
|
||||
predicate ::= source_without_range conditional_operator source_without_range
|
||||
source_without_range ::= source_reference | single_param_function_call | conditional_function_call | algebraic_operation | float | real
|
||||
conditional_operator ::= ">" | "<" | ">=" | "<=" | "==" | "!="
|
||||
|
||||
algebraic_operation ::= "(" source " "? algebraic_operator " "? source ")"
|
||||
algebraic_operator ::= "+" | "-" | "*" | "/"
|
||||
|
||||
display_directive ::= ";" display_directive_option
|
||||
display_directive_option ::= formatting_directive | datetime_directive | hourminute_directive
|
||||
formatting_directive ::= "%." int "f"
|
||||
datetime_directive ::= "dt"
|
||||
hourminute_directive ::= "hm"
|
||||
|
||||
float ::= "-"? int "." int
|
||||
real ::= "-"? int
|
||||
int ::= [0-9]+
|
||||
`,fo=class{constructor(r,l){this.merge=C=>this.destination.merge(this.source,C);let c=new Jl.DefaultFormatter;r.children.length===3&&(c=new Jl.DisplayDirective(r.children[2]));let d=(0,r7.newDestination)(r.children[0],l,c);if(d.isErr())throw d.error;this.destination=d.value,this.source=new ho(r.children[1],l)}};en.Formula=fo;var ho=class{constructor(r,l){if(this.getValue=(C,_)=>this.locationDescriptor.getValue(C,_),r.type!=="source"&&r.type!=="source_without_range")throw Error("Invalid AST token type of "+r.type);if(r.children.length!==1)throw Error("Unexpected children length in Source");let c=r.children[0],d=c7(c,l);if(d.isErr())throw d.error;this.locationDescriptor=d.value}};en.Source=ho;var c7=(s,r)=>{try{switch(s.type){case"range":return(0,Xe.ok)(new i7.Range(s,r));case"source_reference":let l=(0,B3.checkChildLength)(s,1);return l?(0,Xe.err)(l):(0,Xe.ok)(new o7.Reference(s.children[0],r));case"single_param_function_call":return(0,Xe.ok)(new s7.SingleParamFunctionCall(s,r));case"conditional_function_call":return(0,Xe.ok)(new n7.ConditionalFunctionCall(s,r));case"algebraic_operation":return(0,Xe.ok)(new t7.AlgebraicOperation(s,r));case"real":return(0,Xe.ok)(new Yl.Constant(s,r));case"float":return(0,Xe.ok)(new Yl.Constant(s,r));default:throw Error("Unrecognized valueProvider type "+s.type)}}catch(l){return(0,Xe.err)(l)}},f7=(s,r)=>s.reduce((c,d)=>c.andThen(C=>{let _=(0,en.parseFormula)(d,r);return _.isErr()?_:(0,Xe.ok)((0,u7.concat)(_.value,C))}),(0,Xe.ok)([])).andThen(c=>c.reduceRight((d,C)=>d.andThen(_=>C.merge(_)),(0,Xe.ok)(r)));en.parseAndApply=f7;var h7=(s,r)=>{let c=new l7.Grammars.W3C.Parser(a7).getAST(s);if(!c)return(0,Xe.err)(new Error(`Formula '${s}' could not be parsed`));let d=(0,B3.checkType)(c,"tblfm_line");if(d)return(0,Xe.err)(d);let C=(0,B3.checkChildLength)(c,1);if(C)return(0,Xe.err)(C);let _=c.children[0].children,m=[];try{do m.push(new fo(_[0],r)),_.length>1&&_[1].type==="formula_list"?_=_[1].children:_=[];while(_.length>0);return(0,Xe.ok)(m)}catch(A){return(0,Xe.err)(A)}};en.parseFormula=h7});var Ii=we(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.Table=void 0;var d7=Ai(),Xl=W1(),go=O1(),g7=P1(),z3=class s{constructor(r){this._rows=r.slice()}getHeight(){return this._rows.length}getWidth(){return this._rows.map(r=>r.getWidth()).reduce((r,l)=>Math.max(r,l),0)}getHeaderWidth(){return this._rows[0].getWidth()}getRows(){return this._rows.slice()}getDelimiterRow(){let r=this._rows[1];if(r!==void 0&&r.isDelimiter())return r}getCellAt(r,l){let c=this._rows[r];if(c!==void 0)return c.getCellAt(l)}getFocusedCell(r){return this.getCellAt(r.row,r.column)}toLines(){return this._rows.map(r=>r.toText())}setCellAt(r,l,c){let d=this.getRows();return d[r]=d[r].setCellAt(l,c),new s(d)}focusOfPosition(r,l){let c=r.row-l,d=this._rows[c];if(d===void 0)return;if(r.column<d.marginLeft.length+1)return new Xl.Focus(c,-1,r.column);let C=d.getCells().map(P=>P.rawContent.length),_=d.marginLeft.length+1,m=0;for(;m<C.length&&!(_+C[m]+1>r.column);m++)_+=C[m]+1;let A=r.column-_;return new Xl.Focus(c,m,A)}positionOfFocus(r,l){let c=this._rows[r.row];if(c===void 0)return;let d=r.row+l;if(r.column<0)return new go.Point(d,r.offset);let C=c.getCells().map(A=>A.rawContent.length),_=Math.min(r.column,C.length),m=c.marginLeft.length+1;for(let A=0;A<_;A++)m+=C[A]+1;return new go.Point(d,m+r.offset)}selectionRangeOfFocus(r,l){let c=this._rows[r.row];if(c===void 0)return;let d=c.getCellAt(r.column);if(d===void 0||d.content==="")return;let C=r.row+l,_=c.getCells().map(A=>A.rawContent.length),m=c.marginLeft.length+1;for(let A=0;A<r.column;A++)m+=_[A]+1;return m+=d.paddingLeft,new g7.Range(new go.Point(C,m),new go.Point(C,m+d.content.length))}applyFormulas(r){return(0,d7.parseAndApply)(r,this)}};po.Table=z3});var $3=we(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.readTable=rt._marginRegex=rt.marginRegexSrc=rt._readRow=rt._splitCells=void 0;var p7=Ii(),m7=Pr(),w7=_i(),C7=s=>{let r=[],l="",c=s;for(;c!=="";)switch(c[0]){case"`":{let d=c.match(/^`*/);if(d===null)break;let C=d[0],_=C,m=c.substr(C.length),A=!1;for(;m!=="";)if(m[0]==="`"){let P=m.match(/^`*/);if(P===null)break;let y=P[0];if(_+=y,m=m.substr(y.length),y.length===C.length){A=!0;break}}else _+=m[0],m=m.substr(1);A?(l+=_,c=m):(l+="`",c=c.substr(1))}break;case"\\":c.length>=2?(l+=c.substr(0,2),c=c.substr(2)):(l+="\\",c=c.substr(1));break;case"[":if(l+="[",c=c.substr(1),/\[[^\\|\]]+\|[^|\]]+]]/.test(c)){let d=c.indexOf("|");l+=c.slice(0,d),l+="\\|",c=c.substr(d+1)}break;case"|":r.push(l),l="",c=c.substr(1);break;default:l+=c[0],c=c.substr(1)}return r.push(l),r};rt._splitCells=C7;var v7=(s,r=/^\s*$/)=>{let l=(0,rt._splitCells)(s),c;l.length>0&&r.test(l[0])?(c=l[0],l=l.slice(1)):c="";let d;return l.length>1&&/^\s*$/.test(l[l.length-1])?(d=l[l.length-1],l=l.slice(0,l.length-1)):d="",new w7.TableRow(l.map(C=>new m7.TableCell(C)),c,d)};rt._readRow=v7;var _7=s=>{let r="";return s.forEach(l=>{l!=="|"&&l!=="\\"&&l!=="`"&&(r+=`\\u{${l.Line truncated
|
||||
`):void 0}withCompletedTable(r,l){return this._withTable(r,c=>{let d=c.focus,C=(0,Le.completeTable)(c.table,r);C.delimiterInserted&&d.row>0&&(d=d.setRow(d.row+1));let _=(0,Le.formatTable)(C.table,r);return d=d.setOffset((0,We._computeNewOffset)(d,C.table,_,!1)),c.table=_.table,c.focus=d,l(c)})}formatAndApply(r,l,c,d,C,_,m=!1){let A=(0,Le.formatTable)(C,r);return _=_.setOffset((0,We._computeNewOffset)(_,C,A,m)),this._textEditor.transact(()=>{this._updateLines(l.start.row,l.end.row+1,A.table.toLines(),c),m?this._selectFocus(l.start.row,A.table,_):this._moveToFocus(l.start.row,A.table,_)}),this.resetSmartCursor(),{range:l,lines:c,formulaLines:d,table:A.table,focus:_}}};We.TableEditor=Q3});var Mi=we(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.SortOrder=re.TableEditor=re.optionsWithDefaults=re.defaultOptions=re.ITextEditor=re.shortestEditScript=re.applyEditScript=re.Delete=re.Insert=re.moveColumn=re.deleteColumn=re.insertColumn=re.moveRow=re.deleteRow=re.insertRow=re.alterAlignment=re.formatTable=re.completeTable=re.FormatType=re.readTable=re.Table=re.TableRow=re.TableCell=re.HeaderAlignment=re.DefaultAlignment=re.Alignment=re.Focus=re.Range=re.Point=void 0;var j7=O1();Object.defineProperty(re,"Point",{enumerable:!0,get:function(){return j7.Point}});var ef=P1();Object.defineProperty(re,"Range",{enumerable:!0,get:function(){return ef.Range}});var tf=W1();Object.defineProperty(re,"Focus",{enumerable:!0,get:function(){return tf.Focus}});var j3=vi();Object.defineProperty(re,"Alignment",{enumerable:!0,get:function(){return j3.Alignment}});Object.defineProperty(re,"DefaultAlignment",{enumerable:!0,get:function(){return j3.DefaultAlignment}});Object.defineProperty(re,"HeaderAlignment",{enumerable:!0,get:function(){return j3.HeaderAlignment}});var nf=Pr();Object.defineProperty(re,"TableCell",{enumerable:!0,get:function(){return nf.TableCell}});var rf=_i();Object.defineProperty(re,"TableRow",{enumerable:!0,get:function(){return rf.TableRow}});var of=Ii();Object.defineProperty(re,"Table",{enumerable:!0,get:function(){return of.Table}});var sf=$3();Object.defineProperty(re,"readTable",{enumerable:!0,get:function(){return sf.readTable}});var an=wo();Object.defineProperty(re,"FormatType",{enumerable:!0,get:function(){return an.FormatType}});Object.defineProperty(re,"completeTable",{enumerable:!0,get:function(){return an.completeTable}});Object.defineProperty(re,"formatTable",{enumerable:!0,get:function(){return an.formatTable}});Object.defineProperty(re,"alterAlignment",{enumerable:!0,get:function(){return an.alterAlignment}});Object.defineProperty(re,"insertRow",{enumerable:!0,get:function(){return an.insertRow}});Object.defineProperty(re,"deleteRow",{enumerable:!0,get:function(){return an.deleteRow}});Object.defineProperty(re,"moveRow",{enumerable:!0,get:function(){return an.moveRow}});Object.defineProperty(re,"insertColumn",{enumerable:!0,get:function(){return an.insertColumn}});Object.defineProperty(re,"deleteColumn",{enumerable:!0,get:function(){return an.deleteColumn}});Object.defineProperty(re,"moveColumn",{enumerable:!0,get:function(){return an.moveColumn}});var bo=K3();Object.defineProperty(re,"Insert",{enumerable:!0,get:function(){return bo.Insert}});Object.defineProperty(re,"Delete",{enumerable:!0,get:function(){return bo.Delete}});Object.defineProperty(re,"applyEditScript",{enumerable:!0,get:function(){return bo.applyEditScript}});Object.defineProperty(re,"shortestEditScript",{enumerable:!0,get:function(){return bo.shortestEditScript}});var lf=eu();Object.defineProperty(re,"ITextEditor",{enumerable:!0,get:function(){return lf.ITextEditor}});var lu=ru();Object.defineProperty(re,"defaultOptions",{enumerable:!0,get:function(){return lu.defaultOptions}});Object.defineProperty(re,"optionsWithDefaults",{enumerable:!0,get:function(){return lu.optionsWithDefaults}});var uu=su();Object.defineProperty(re,"TableEditor",{enumerable:!0,get:function(){return uu.TableEditor}});Object.defineProperty(re,"SortOrder",{enumerable:!0,get:function(){return uu.SortOrder}})});var ff={};p9(ff,{default:()=>No});module.exports=m9(ff);var Cl=require("obsidian"),N1={spreadsheet:`
|
||||
<svg version="1.1" viewBox="0 0 482.81 482.81" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="currentColor" d="m457.58 25.464-432.83 0.42151c-13.658 0.013314-24.758 11.115-24.757 24.757l0.031024 347.45c7.4833e-4 8.3808 4.211 15.772 10.608 20.259 3.4533 2.4499 5.0716 3.2901 8.879 3.9022 1.7033 0.37333 3.4561 0.59471 5.2692 0.59294l432.84-0.42151c1.809-1e-3 3.5618-0.21823 5.2568-0.59294h1.2174v-0.37196c10.505-2.8727 18.279-12.397 18.278-23.788l-0.031-347.43c1e-3 -13.649-11.107-24.763-24.768-24.763zm3.5453 24.763v71.344h-163.31v-74.886h159.76c1.9641 0.0014 3.5467 1.5922 3.5467 3.5425zm-1.6737 350.37h-161.6v-67.207h163.31v64.268c1e-3 1.2572-0.70549 2.321-1.7033 2.9386zm-438.21-2.5171v-64.268h76.646v67.207h-74.942c-0.99784-0.61765-1.7033-1.6814-1.7033-2.9386zm255.28-155.18v69.688h-157.42v-69.688zm0 90.913v67.207h-157.42v-67.207zm-0.031-211.83h-157.42v-74.886h157.42zm0 21.226v77.826h-157.42v-77.826zm-178.64 77.826h-76.646v-77.826h76.646zm0.03102 21.862v69.688h-76.646v-69.688zm199.95 69.268v-69.697h163.31v69.697zm-0.031-91.552v-77.826h163.31v77.826z" stroke-width="1.3725"/>
|
||||
</svg>`,alignLeft:`
|
||||
<svg class="widget-icon" enable-background="new 0 0 512 512" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="matrix(-1 0 0 1 512 0)">
|
||||
<path d="m501.33 170.67h-320c-5.896 0-10.667 4.771-10.667 10.667v21.333c0 5.896 4.771 10.667 10.667 10.667h320c5.896 0 10.667-4.771 10.667-10.667v-21.333c0-5.896-4.771-10.667-10.667-10.667z"/>
|
||||
<path d="m501.33 298.67h-490.67c-5.896 0-10.667 4.771-10.667 10.666v21.333c0 5.896 4.771 10.667 10.667 10.667h490.67c5.896 0 10.667-4.771 10.667-10.667v-21.333c-1e-3 -5.895-4.772-10.666-10.668-10.666z"/>
|
||||
<path d="m501.33 426.67h-320c-5.896 0-10.667 4.771-10.667 10.667v21.333c0 5.896 4.771 10.667 10.667 10.667h320c5.896 0 10.667-4.771 10.667-10.667v-21.333c0-5.896-4.771-10.667-10.667-10.667z"/>
|
||||
<path d="m501.33 42.667h-490.67c-5.896 0-10.667 4.771-10.667 10.666v21.333c0 5.896 4.771 10.667 10.667 10.667h490.67c5.896 0 10.667-4.771 10.667-10.667v-21.333c-1e-3 -5.895-4.772-10.666-10.668-10.666z"/>
|
||||
</g>
|
||||
</svg>`,alignCenter:`
|
||||
<svg class="widget-icon" enable-background="new 0 0 512 512" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="matrix(-1 0 0 1 512 0)">
|
||||
<path d="m416 170.67h-320c-5.896 0-10.667 4.771-10.667 10.667v21.333c0 5.896 4.771 10.667 10.667 10.667h320c5.896 0 10.667-4.771 10.667-10.667v-21.333c0-5.896-4.771-10.667-10.667-10.667z"/>
|
||||
<path d="m501.33 298.67h-490.67c-5.896 0-10.667 4.771-10.667 10.666v21.333c0 5.896 4.771 10.667 10.667 10.667h490.67c5.896 0 10.667-4.771 10.667-10.667v-21.333c-1e-3 -5.895-4.772-10.666-10.668-10.666z"/>
|
||||
<path d="m416 426.67h-320c-5.896 0-10.667 4.771-10.667 10.667v21.333c0 5.896 4.771 10.667 10.667 10.667h320c5.896 0 10.667-4.771 10.667-10.667v-21.333c0-5.896-4.771-10.667-10.667-10.667z"/>
|
||||
<path d="m501.33 42.667h-490.67c-5.896 0-10.667 4.771-10.667 10.666v21.333c0 5.896 4.771 10.667 10.667 10.667h490.67c5.896 0 10.667-4.771 10.667-10.667v-21.333c-1e-3 -5.895-4.772-10.666-10.668-10.666z"/>
|
||||
</g>
|
||||
</svg>`,alignRight:`
|
||||
<svg class="widget-icon" enable-background="new 0 0 512 512" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m501.33 170.67h-320c-5.896 0-10.667 4.771-10.667 10.667v21.333c0 5.896 4.771 10.667 10.667 10.667h320c5.896 0 10.667-4.771 10.667-10.667v-21.333c0-5.896-4.771-10.667-10.667-10.667z"/>
|
||||
<path d="m501.33 298.67h-490.67c-5.896 0-10.667 4.771-10.667 10.666v21.333c0 5.896 4.771 10.667 10.667 10.667h490.67c5.896 0 10.667-4.771 10.667-10.667v-21.333c-1e-3 -5.895-4.772-10.666-10.668-10.666z"/>
|
||||
<path d="m501.33 426.67h-320c-5.896 0-10.667 4.771-10.667 10.667v21.333c0 5.896 4.771 10.667 10.667 10.667h320c5.896 0 10.667-4.771 10.667-10.667v-21.333c0-5.896-4.771-10.667-10.667-10.667z"/>
|
||||
<path d="m501.33 42.667h-490.67c-5.896 0-10.667 4.771-10.667 10.666v21.333c0 5.896 4.771 10.667 10.667 10.667h490.67c5.896 0 10.667-4.771 10.667-10.667v-21.333c-1e-3 -5.895-4.772-10.666-10.668-10.666z"/>
|
||||
</svg>`,deleteColumn:`
|
||||
<svg class="widget-icon" enable-background="new 0 0 26 26" version="1.1" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m13.594 20.85v3.15h-10v-22h10v3.15c0.633-0.323 1.304-0.565 2-0.727v-3.423c0-0.551-0.448-1-1-1h-12c-0.55 0-1 0.449-1 1v24c0 0.551 0.449 1 1 1h12c0.552 0 1-0.449 1-1v-3.424c-0.696-0.161-1.367-0.403-2-0.726z"/>
|
||||
<path d="m17.594 6.188c-3.762 0-6.813 3.051-6.812 6.813-1e-3 3.761 3.05 6.812 6.812 6.812s6.813-3.051 6.813-6.813-3.052-6.812-6.813-6.812zm3.632 7.802-7.267 1e-3v-1.982h7.268l-1e-3 1.981z"/>
|
||||
</svg>`,deleteRow:`
|
||||
<svg class="widget-icon" enable-background="new 0 0 15.381 15.381" version="1.1" viewBox="0 0 15.381 15.381" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0,1.732v7.732h6.053c0-0.035-0.004-0.07-0.004-0.104c0-0.434,0.061-0.854,0.165-1.255H1.36V3.092 h12.662v2.192c0.546,0.396,1.01,0.897,1.359,1.477V1.732H0z"/>
|
||||
<path d="m11.196 5.28c-2.307 0-4.183 1.877-4.183 4.184 0 2.308 1.876 4.185 4.183 4.185 2.309 0 4.185-1.877 4.185-4.185 0-2.307-1.876-4.184-4.185-4.184zm0 7.233c-1.679 0-3.047-1.367-3.047-3.049 0-1.68 1.368-3.049 3.047-3.049 1.684 0 3.05 1.369 3.05 3.049 0 1.682-1.366 3.049-3.05 3.049z"/>
|
||||
<rect x="9.312" y="8.759" width="3.844" height="1.104"/>
|
||||
</svg>`,insertColumn:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="-21 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m288 106.67c-3.9258 0-7.8516-1.4297-10.922-4.3125l-80-74.664c-4.8008-4.4805-6.3789-11.457-3.9688-17.559 2.4102-6.1016 8.3203-10.133 14.891-10.133h160c6.5703 0 12.48 4.0117 14.891 10.133 2.4102 6.125 0.83203 13.078-3.9688 17.559l-80 74.664c-3.0703 2.8828-6.9961 4.3125-10.922 4.3125zm-39.402-74.668 39.402 36.777 39.402-36.777z"/>
|
||||
<path d="m432 512h-53.332c-20.59 0-37.336-16.746-37.336-37.332v-330.67c0-20.586 16.746-37.332 37.336-37.332h53.332c20.586 0 37.332 16.746 37.332 37.332v330.67c0 20.586-16.746 37.332-37.332 37.332zm-53.332-373.33c-2.9453 0-5.3359 2.3867-5.3359 5.332v330.67c0 2.9414 2.3906 5.332 5.3359 5.332h53.332c2.9453 0 5.332-2.3906 5.332-5.332v-330.67c0-2.9453-2.3867-5.332-5.332-5.332z"/>
|
||||
<path d="m197.33 512h-160c-20.586 0-37.332-16.746-37.332-37.332v-330.67c0-20.586 16.746-37.332 37.332-37.332h160c20.59 0 37.336 16.746 37.336 37.332v330.67c0 20.586-16.746 37.332-37.336 37.332zm-160-373.33c-2.9414 0-5.332 2.3867-5.332 5.332v330.67c0 2.9414 2.3906 5.332 5.332 5.332h160c2.9453 0 5.3359-2.3906 5.3359-5.332v-330.67c0-2.9453-2.3906-5.332-5.3359-5.332z"/>
|
||||
<path d="m453.33 325.33h-96c-8.832 0-16-7.168-16-16s7.168-16 16-16h96c8.832 0 16 7.168 16 16s-7.168 16-16 16z"/>
|
||||
<path d="m218.67 325.33h-202.67c-8.832 0-16-7.168-16-16s7.168-16 16-16h202.67c8.832 0 16 7.168 16 16s-7.168 16-16 16z"/>
|
||||
<path d="m117.33 512c-8.832 0-16-7.168-16-16v-373.33c0-8.832 7.168-16 16-16s16 7.168 16 16v373.33c0 8.832-7.168 16-16 16z"/>
|
||||
</svg>`,insertRow:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 -21 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m16 277.33c-1.9844 0-3.9688-0.36328-5.8672-1.1094-6.1211-2.4102-10.133-8.3203-10.133-14.891v-160c0-6.5703 4.0117-12.48 10.133-14.891 6.1445-2.4102 13.078-0.85156 17.559 3.9688l74.664 80c5.7617 6.1445 5.7617 15.68 0 21.824l-74.664 80c-3.0938 3.3281-7.3398 5.0977-11.691 5.0977zm16-135.4v78.805l36.777-39.402z"/>
|
||||
<path d="m474.67 128h-330.67c-20.586 0-37.332-16.746-37.332-37.332v-53.336c0-20.586 16.746-37.332 37.332-37.332h330.67c20.586 0 37.332 16.746 37.332 37.332v53.336c0 20.586-16.746 37.332-37.332 37.332zm-330.67-96c-2.9453 0-5.332 2.3906-5.332 5.332v53.336c0 2.9414 2.3867 5.332 5.332 5.332h330.67c2.9414 0 5.332-2.3906 5.332-5.332v-53.336c0-2.9414-2.3906-5.332-5.332-5.332z"/>
|
||||
<path d="m474.67 469.33h-330.67c-20.586 0-37.332-16.746-37.332-37.332v-160c0-20.586 16.746-37.332 37.332-37.332h330.67c20.586 0 37.332 16.746 37.332 37.332v160c0 20.586-16.746 37.332-37.332 37.332zm-330.67-202.66c-2.9453 0-5.332 2.3867-5.332 5.332v160c0 2.9453 2.3867 5.332 5.332 5.332h330.67c2.9414 0 5.332-2.3867 5.332-5.332v-160c0-2.9453-2.3906-5.332-5.332-5.332z"/>
|
||||
<path d="m309.33 128c-8.832 0-16-7.168-16-16v-96c0-8.832 7.168-16 16-16s16 7.168 16 16v96c0 8.832-7.168 16-16 16z"/>
|
||||
<path d="m309.33 469.33c-8.832 0-16-7.168-16-16v-202.66c0-8.832 7.168-16 16-16s16 7.168 16 16v202.66c0 8.832-7.168 16-16 16z"/>
|
||||
<path d="m496 368h-373.33c-8.832 0-16-7.168-16-16s7.168-16 16-16h373.33c8.832 0 16 7.168 16 16s-7.168 16-16 16z"/>
|
||||
</svg>`,moveColumnLeft:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512.02 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m357.35 512.01h96c32.363 0 58.668-26.305 58.668-58.668v-394.66c0-32.363-26.305-58.668-58.668-58.668h-96c-32.363 0-58.664 26.305-58.664 58.668v394.66c0 32.363 26.301 58.668 58.664 58.668zm96-480c14.699 0 26.668 11.969 26.668 26.668v394.66c0 14.699-11.969 26.668-26.668 26.668h-96c-14.699 0-26.664-11.969-26.664-26.668v-394.66c0-14.699 11.965-26.668 26.664-26.668z"/>
|
||||
<path d="m16.016 272.01h224c8.832 0 16-7.168 16-16s-7.168-16-16-16h-224c-8.832 0-16 7.168-16 16s7.168 16 16 16z"/>
|
||||
<path d="m101.35 357.34c4.0976 0 8.1914-1.5547 11.309-4.6914 6.25-6.25 6.25-16.383 0-22.637l-74.027-74.023 74.027-74.027c6.25-6.25 6.25-16.387 0-22.637s-16.383-6.25-22.637 0l-85.332 85.336c-6.25 6.25-6.25 16.383 0 22.633l85.332 85.332c3.1367 3.1602 7.2344 4.7148 11.328 4.7148z"/>
|
||||
</svg>`,moveColumnRight:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512.02 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m154.67 512.01h-96c-32.363 0-58.668-26.305-58.668-58.668v-394.66c0-32.363 26.305-58.668 58.668-58.668h96c32.363 0 58.664 26.305 58.664 58.668v394.66c0 32.363-26.301 58.668-58.664 58.668zm-96-480c-14.699 0-26.668 11.969-26.668 26.668v394.66c0 14.699 11.969 26.668 26.668 26.668h96c14.699 0 26.664-11.969 26.664-26.668v-394.66c0-14.699-11.965-26.668-26.664-26.668z"/>
|
||||
<path d="m496 272.01h-224c-8.832 0-16-7.168-16-16 0-8.832 7.168-16 16-16h224c8.832 0 16 7.168 16 16 0 8.832-7.168 16-16 16z"/>
|
||||
<path d="m410.67 357.34c-4.0977 0-8.1914-1.5547-11.309-4.6914-6.25-6.25-6.25-16.383 0-22.637l74.027-74.023-74.027-74.027c-6.25-6.25-6.25-16.387 0-22.637s16.383-6.25 22.637 0l85.332 85.336c6.25 6.25 6.25 16.383 0 22.633l-85.332 85.332c-3.1367 3.1602-7.2344 4.7148-11.328 4.7148z"/>
|
||||
</svg>`,moveRowDown:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m453.33 213.33h-394.66c-32.363 0-58.668-26.301-58.668-58.664v-96c0-32.363 26.305-58.668 58.668-58.668h394.66c32.363 0 58.668 26.305 58.668 58.668v96c0 32.363-26.305 58.664-58.668 58.664zm-394.66-181.33c-14.699 0-26.668 11.969-26.668 26.668v96c0 14.699 11.969 26.664 26.668 26.664h394.66c14.699 0 26.668-11.965 26.668-26.664v-96c0-14.699-11.969-26.668-26.668-26.668z"/>
|
||||
<path d="m256 512c-8.832 0-16-7.168-16-16v-224c0-8.832 7.168-16 16-16s16 7.168 16 16v224c0 8.832-7.168 16-16 16z"/>
|
||||
<path d="m256 512c-4.0977 0-8.1914-1.5586-11.309-4.6914l-85.332-85.336c-6.25-6.25-6.25-16.383 0-22.633s16.383-6.25 22.637 0l74.023 74.027 74.027-74.027c6.25-6.25 16.387-6.25 22.637 0s6.25 16.383 0 22.633l-85.336 85.336c-3.1562 3.1328-7.25 4.6914-11.348 4.6914z"/>
|
||||
</svg>`,moveRowUp:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m453.33 298.67h-394.66c-32.363 0-58.668 26.301-58.668 58.664v96c0 32.363 26.305 58.668 58.668 58.668h394.66c32.363 0 58.668-26.305 58.668-58.668v-96c0-32.363-26.305-58.664-58.668-58.664zm-394.66 181.33c-14.699 0-26.668-11.969-26.668-26.668v-96c0-14.699 11.969-26.664 26.668-26.664h394.66c14.699 0 26.668 11.965 26.668 26.664v96c0 14.699-11.969 26.668-26.668 26.668z"/>
|
||||
<path d="m256 0c-8.832 0-16 7.168-16 16v224c0 8.832 7.168 16 16 16s16-7.168 16-16v-224c0-8.832-7.168-16-16-16z"/>
|
||||
<path d="m256 0c-4.0977 0-8.1914 1.5586-11.309 4.6914l-85.332 85.336c-6.25 6.25-6.25 16.383 0 22.633s16.383 6.25 22.637 0l74.023-74.027 74.027 74.027c6.25 6.25 16.387 6.25 22.637 0s6.25-16.383 0-22.633l-85.336-85.336c-3.1562-3.1328-7.25-4.6914-11.348-4.6914z"/>
|
||||
</svg>`,transpose:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m19 26h-5v-2h5a5.0055 5.0055 0 0 0 5-5v-5h2v5a7.0078 7.0078 0 0 1-7 7z"/>
|
||||
<path d="M8,30H4a2.0023,2.0023,0,0,1-2-2V14a2.0023,2.0023,0,0,1,2-2H8a2.0023,2.0023,0,0,1,2,2V28A2.0023,2.0023,0,0,1,8,30ZM4,14V28H8V14Z"/>
|
||||
<path d="M28,10H14a2.0023,2.0023,0,0,1-2-2V4a2.0023,2.0023,0,0,1,2-2H28a2.0023,2.0023,0,0,1,2,2V8A2.0023,2.0023,0,0,1,28,10ZM14,4V8H28V4Z"/>
|
||||
</svg>`,sortAsc:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="matrix(1 0 0 -1 0 501.15)" stroke-width="1.3333">
|
||||
<path d="m353.6 74.486c-11.776 0-21.333 9.5573-21.333 21.333v298.67c0 11.776 9.5573 21.333 21.333 21.333s21.333-9.5573 21.333-21.333v-298.67c0-11.776-9.5573-21.333-21.333-21.333z"/>
|
||||
<path d="m353.6 74.486c-5.4636 0-10.922 2.0781-15.079 6.2552l-113.78 113.78c-8.3333 8.3333-8.3333 21.844 0 30.177 8.3333 8.3333 21.844 8.3333 30.183 0l98.697-98.703 98.703 98.703c8.3333 8.3333 21.849 8.3333 30.183 0 8.3333-8.3333 8.3333-21.844 0-30.177l-113.78-113.78c-4.2083-4.1771-9.6667-6.2552-15.131-6.2552z"/>
|
||||
</g>
|
||||
<path d="m166.04 210.11q-5.0971-13.492-9.5945-26.385-4.4974-13.192-9.2947-26.685h-94.146l-18.889 53.07h-30.283q11.993-32.981 22.487-60.865 10.494-28.184 20.388-53.369 10.194-25.186 20.089-47.973 9.8943-23.087 20.688-45.574h26.685q10.794 22.487 20.688 45.574 9.8943 22.787 19.789 47.973 10.194 25.186 20.688 53.369 10.494 27.884 22.487 60.865zm-27.284-77.056q-9.5945-26.085-19.189-50.371-9.2947-24.586-19.489-47.073-10.494 22.487-20.089 47.073-9.2947 24.286-18.589 50.371z"/>
|
||||
<path d="m173.24 325.25q-6.896 7.7955-16.191 18.889-8.9948 10.794-19.189 24.286-10.194 13.192-20.988 28.184-10.794 14.692-21.288 29.983-10.194 14.991-19.489 29.983-9.2947 14.991-16.79 28.484h116.93v24.886h-150.81v-19.489q6.2964-11.993 14.692-26.385 8.695-14.392 18.29-29.383 9.8943-14.991 20.388-30.283t20.688-29.383q10.494-14.092 20.088-26.385 9.8943-12.293 17.99-21.588h-106.74v-24.886h142.42z"/>
|
||||
</svg>`,sortDesc:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="matrix(1 0 0 -1 0 501.15)" stroke-width="1.3333">
|
||||
<path d="m353.6 74.486c-11.776 0-21.333 9.5573-21.333 21.333v298.67c0 11.776 9.5573 21.333 21.333 21.333s21.333-9.5573 21.333-21.333v-298.67c0-11.776-9.5573-21.333-21.333-21.333z"/>
|
||||
<path d="m353.6 74.486c-5.4636 0-10.922 2.0781-15.079 6.2552l-113.78 113.78c-8.3333 8.3333-8.3333 21.844 0 30.177 8.3333 8.3333 21.844 8.3333 30.183 0l98.697-98.703 98.703 98.703c8.3333 8.3333 21.849 8.3333 30.183 0 8.3333-8.3333 8.3333-21.844 0-30.177l-113.78-113.78c-4.2083-4.1771-9.6667-6.2552-15.131-6.2552z"/>
|
||||
</g>
|
||||
<path d="m169.11 507.72q-5.0971-13.492-9.5945-26.385-4.4974-13.192-9.2947-26.685h-94.146l-18.889 53.07h-30.283q11.993-32.981 22.487-60.865 10.494-28.184 20.388-53.369 10.194-25.186 20.088-47.973 9.8943-23.087 20.688-45.574h26.685q10.794 22.487 20.688 45.574 9.8943 22.787 19.789 47.973 10.194 25.186 20.688 53.369 10.494 27.884 22.487 60.865zm-27.284-77.056q-9.5945-26.085-19.189-50.371-9.2947-24.586-19.489-47.073-10.494 22.487-20.089 47.073-9.2947 24.286-18.589 50.371z"/>
|
||||
<path d="m176.31 27.639q-6.896 7.7955-16.191 18.889-8.9948 10.794-19.189 24.286-10.194 13.192-20.988 28.184-10.794 14.692-21.288 29.983-10.194 14.991-19.489 29.983-9.2947 14.991-16.79 28.484h116.93v24.886h-150.81v-19.489q6.2964-11.993 14.692-26.385 8.695-14.392 18.29-29.383 9.8943-14.991 20.388-30.283 10.494-15.291 20.688-29.383 10.494-14.092 20.088-26.385 9.8943-12.293 17.99-21.588h-106.74v-24.886h142.42z"/>
|
||||
</svg>`,formula:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m263.51 62.967c1.672-11.134 9.326-22.967 20.222-22.967 11.028 0 20 8.972 20 20h40c0-33.084-26.916-60-60-60-33.629 0-55.527 28.691-59.784 57.073l-12.862 86.927h-61.354v40h55.436l-39.22 265.07-0.116 0.937c-1.063 10.62-9.393 21.99-20.1 21.99-11.028 0-20-8.972-20-20h-40c0 33.084 26.916 60 60 60 33.661 0 56.771-29.141 59.848-57.496l40.023-270.5h60.129v-40h-54.211l11.989-81.033z"/>
|
||||
<polygon points="426.27 248 378.24 248 352.25 287.08 334.92 248 291.17 248 326 326.57 270.52 410 318.56 410 345.21 369.92 362.98 410 406.73 410 371.46 330.43"/>
|
||||
</svg>`,help:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m248.16 343.22c-14.639 0-26.491 12.2-26.491 26.84 0 14.291 11.503 26.84 26.491 26.84s26.84-12.548 26.84-26.84c0-14.64-12.199-26.84-26.84-26.84z"/>
|
||||
<path d="m252.69 140c-47.057 0-68.668 27.885-68.668 46.708 0 13.595 11.502 19.869 20.914 19.869 18.822 0 11.154-26.84 46.708-26.84 17.429 0 31.372 7.669 31.372 23.703 0 18.824-19.52 29.629-31.023 39.389-10.108 8.714-23.354 23.006-23.354 52.983 0 18.125 4.879 23.354 19.171 23.354 17.08 0 20.565-7.668 20.565-14.291 0-18.126 0.35-28.583 19.521-43.571 9.411-7.32 39.04-31.023 39.04-63.789s-29.629-57.515-74.246-57.515z"/>
|
||||
<path d="m256 0c-141.48 0-256 114.5-256 256v236c0 11.046 8.954 20 20 20h236c141.48 0 256-114.5 256-256 0-141.48-114.5-256-256-256zm0 472h-216v-216c0-119.38 96.607-216 216-216 119.38 0 216 96.607 216 216 0 119.38-96.607 216-216 216z"/>
|
||||
</svg>`,csv:`
|
||||
<svg class="widget-icon" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m4.9979 9v-8h14.502l3.5 3.5 2e-7 18.5h-19m14-22v5h5m-16 7h-2c-1 0-2 0.5-2 1.5v1.5s1e-8 0.5 0 1.5 1 1.5 2 1.5h2m6.25-6h-2.5c-1.5 0-2 0.5-2 1.5s0.5 1.5 2 1.5 2 0.5 2 1.5-0.5 1.5-2 1.5h-2.5m12.25-7v0.5c0 0.5-2.5 6.5-2.5 6.5h-0.5s-2.5-6-2.5-6.5v-0.5" fill="none" stroke="var(--text-muted)" stroke-width="1.5"/>
|
||||
</svg>`,arrowenter:`
|
||||
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="currentColor" d="m4.64119 12.5 2.87283 2.7038c.30163.2839.31602.7586.03213 1.0602-.28389.3017-.75854.316-1.06017.0321l-4.25-4c-.15059-.1417-.23598-.3393-.23598-.5461s.08539-.4044.23598-.5462l4.25-3.99995c.30163-.28389.77628-.2695 1.06017.03213s.2695.77628-.03213 1.06017l-2.87284 2.70385h10.10882c.9665 0 1.75-.7835 1.75-1.75v-4.5c0-.41421.3358-.75.75-.75s.75.33579.75.75v4.5c0 1.7949-1.4551 3.25-3.25 3.25z"/>
|
||||
</svg>`,arrowtab:`
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="currentColor" d="m18.2071068 11.2928932-6.5-6.49999998c-.3905243-.39052429-1.0236893-.39052429-1.4142136 0-.36048394.36048396-.38821348.92771502-.0831886 1.32000622l.0831886.09420734 4.7931068 4.79289322h-11.086c-.51283584 0-.93550716.3860402-.99327227.8833789l-.00672773.1166211c0 .5128358.38604019.9355072.88337887.9932723l.11662113.0067277h11.086l-4.7931068 4.7928932c-.36048394.360484-.38821348.927715-.0831886 1.3200062l.0831886.0942074c.360484.3604839.927715.3882135 1.3200062.0831886l.0942074-.0831886 6.5-6.5c.3604839-.360484.3882135-.927715.0831886-1.3200062l-.0831886-.0942074-6.5-6.49999998zm2.7928932 7.2071068v-13c0-.55228475-.4477153-1-1-1s-1 .44771525-1 1v13c0 .5522847.4477153 1 1 1s1-.4477153 1-1z" fill="#212121"/>
|
||||
</svg>`},vl=()=>{Object.keys(N1).forEach(s=>{s!=="help"&&(0,Cl.addIcon)(s,N1[s])})};var Ao=y1(Mi()),e0={formatType:Ao.FormatType.NORMAL,showRibbonIcon:!0,bindEnter:!0,bindTab:!0},Eo=class{constructor(r){let l={...e0,...r};this.formatType=l.formatType,this.showRibbonIcon=l.showRibbonIcon,this.bindEnter=l.bindEnter,this.bindTab=l.bindTab}asOptions(){return(0,Ao.optionsWithDefaults)({formatType:this.formatType})}};var au=y1(Mi()),To=class{constructor(r,l,c){this.getCursorPosition=()=>{let r=this.editor.getCursor();return new au.Point(r.line,r.ch)};this.setCursorPosition=r=>{this.editor.setCursor({line:r.row,ch:r.column})};this.setSelectionRange=r=>{this.editor.setSelection({line:r.start.row,ch:r.start.column},{line:r.end.row,ch:r.end.column})};this.getLastRow=()=>this.editor.lastLine();this.acceptsTableEdit=r=>{let l=this.app.metadataCache.getFileCache(this.file);if(!l.sections)return!0;let c=l.sections.find(C=>C.position.start.line<=r&&C.position.end.line>=r&&C.type!=="code"&&C.type!=="math");if(c===void 0)return!1;let d=c.position.start.line;return!(d>=0&&this.getLine(d)==="-tx-")};this.getLine=r=>this.editor.getLine(r);this.insertLine=(r,l)=>{r>this.getLastRow()?this.editor.replaceRange(`
|
||||
`+l,{line:r,ch:0}):this.editor.replaceRange(l+`
|
||||
`,{line:r,ch:0})};this.deleteLine=r=>{if(r===this.getLastRow()){let l=this.getLine(r);this.editor.replaceRange("",{line:r,ch:0},{line:r,ch:l.length})}else this.editor.replaceRange("",{line:r,ch:0},{line:r+1,ch:0})};this.replaceLines=(r,l,c)=>{let d=l-1,_=this.editor.getLine(d).length;this.editor.replaceRange(c.join(`
|
||||
`),{line:r,ch:0},{line:d,ch:_})};this.transact=r=>{r()};this.app=r,this.file=l,this.editor=c}};var _n=y1(Mi()),Ro=require("obsidian"),bn=class{constructor(r,l,c,d){this.cursorIsInTableFormula=()=>this.mte.cursorIsInTableFormula(this.settings.asOptions());this.cursorIsInTable=()=>this.mte.cursorIsInTable(this.settings.asOptions());this.nextCell=()=>{this.mte.nextCell(this.settings.asOptions())};this.previousCell=()=>{this.mte.previousCell(this.settings.asOptions())};this.nextRow=()=>{this.mte.nextRow(this.settings.asOptions())};this.formatTable=()=>{this.mte.format(this.settings.asOptions())};this.formatAllTables=()=>{this.mte.formatAll(this.settings.asOptions())};this.insertColumn=()=>{this.mte.insertColumn(this.settings.asOptions())};this.insertRow=()=>{this.mte.insertRow(this.settings.asOptions())};this.leftAlignColumn=()=>{this.mte.alignColumn(_n.Alignment.LEFT,this.settings.asOptions())};this.centerAlignColumn=()=>{this.mte.alignColumn(_n.Alignment.CENTER,this.settings.asOptions())};this.rightAlignColumn=()=>{this.mte.alignColumn(_n.Alignment.RIGHT,this.settings.asOptions())};this.moveColumnLeft=()=>{this.mte.moveColumn(-1,this.settings.asOptions())};this.moveColumnRight=()=>{this.mte.moveColumn(1,this.settings.asOptions())};this.moveRowUp=()=>{this.mte.moveRow(-1,this.settings.asOptions())};this.moveRowDown=()=>{this.mte.moveRow(1,this.settings.asOptions())};this.deleteColumn=()=>{this.mte.deleteColumn(this.settings.asOptions())};this.deleteRow=()=>{this.mte.deleteRow(this.settings.asOptions())};this.sortRowsAsc=()=>{this.mte.sortRows(_n.SortOrder.Ascending,this.settings.asOptions())};this.sortRowsDesc=()=>{this.mte.sortRows(_n.SortOrder.Descending,this.settings.asOptions())};this.transpose=()=>{this.mte.transpose(this.settings.asOptions())};this.escape=()=>{this.mte.escape(this.settings.asOptions())};this.evaluateFormulas=()=>{let r=this.mte.evaluateFormulas(this.settings.asOptions());r&&new Ro.Notice(r.message)};this.exportCSVModal=()=>{new t0(this.app,this.mte,this.settings).open()};this.app=r,this.settings=d;let C=new To(r,l,c);this.mte=new _n.TableEditor(C)}},t0=class extends Ro.Modal{constructor(r,l,c){super(r),this.mte=l,this.settings=c}onOpen(){let{contentEl:r}=this,l=r.createDiv({cls:"advanced-tables-csv-export"}),c=l.createEl("textarea",{attr:{readonly:!0}});c.value=this.mte.exportCSV(!0,this.settings.asOptions()),c.onClickEvent(()=>c.select());let d=l.createEl("label"),C=d.createEl("input",{type:"checkbox",attr:{checked:!0}});d.createSpan().setText("Include table headers"),C.onClickEvent(()=>{c.value=this.mte.exportCSV(C.checked,this.settings.asOptions())})}onClose(){let{contentEl:r}=this;r.empty()}};var zr=require("obsidian"),$r="advanced-tables-toolbar",xo=class extends zr.ItemView{constructor(l,c){super(l);this.draw=()=>{let l=this.containerEl.children[1],c=document.createElement("div");c.addClass("advanced-tables-buttons"),c.createDiv().createSpan({cls:"title"}).setText("Advanced Tables");let d=c.createDiv({cls:"nav-header"}),C=d.createDiv({cls:"nav-buttons-container"});C.createSpan({cls:"advanced-tables-row-label"}).setText("Align:"),this.drawBtn(C,"alignLeft","left align column",y=>y.leftAlignColumn()),this.drawBtn(C,"alignCenter","center align column",y=>y.centerAlignColumn()),this.drawBtn(C,"alignRight","right align column",y=>y.rightAlignColumn());let _=d.createDiv({cls:"nav-buttons-container"});_.createSpan({cls:"advanced-tables-row-label"}).setText("Move:"),this.drawBtn(_,"moveRowDown","move row down",y=>y.moveRowDown()),this.drawBtn(_,"moveRowUp","move row up",y=>y.moveRowUp()),this.drawBtn(_,"moveColumnRight","move column right",y=>y.moveColumnRight()),this.drawBtn(_,"moveColumnLeft","move column left",y=>y.moveColumnLeft()),this.drawBtn(_,"transpose","transpose",y=>y.transpose());let m=d.createDiv({cls:"nav-buttons-container"});m.createSpan({cls:"advanced-tables-row-label"}).setText("Edit:"),this.drawBtn(m,"insertRow","insert row above",y=>y.insertRow()),this.drawBtn(m,"insertColumn","insert column left",y=>y.insertColumn()),this.drawBtn(m,"deleteRow","delete row",y=>y.deleteRow()),this.drawBtn(m,"deleteColumn","delete column",y=>y.deleteColumn());let A=d.createDiv({cls:"nav-buttons-container"});A.createSpan({cls:"advanced-tables-row-label"}).setText("Sort/F:"),this.drawBtn(A,"sortAsc","sort by column ascending",y=>y.sortRowsAsc()),this.drawBtn(A,"sortDesc","sort by column descending",y=>y.sortRowsDesc()),this.drawBtn(A,"formula","evaluate formulas",y=>y.evaluateFormulas());let P=d.createDiv({cls:"nav-buttons-container"});P.createSpan({cls:"advanced-tables-row-label"}).setText("Misc:"),this.drawBtn(P,"csv","export as csv",y=>y.exportCSVModal()),this.drawBtn(P,"help","help",()=>window.open("https://github.com/tgrosinger/advanced-tables-obsidian/blob/main/docs/help.md")),l.empty(),l.appendChild(c)};this.drawBtn=(l,c,d,C)=>{let _=A=>d==="evaluate formulas"?A.cursorIsInTable()||A.cursorIsInTableFormula():A.cursorIsInTable(),m=l.createDiv({cls:"advanced-tables-button nav-action-but
Line truncated
|
||||
<svg width="150" height="42" viewBox="0 0 260 73" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 11.68C0 5.22932 5.22931 0 11.68 0H248.2C254.651 0 259.88 5.22931 259.88 11.68V61.32C259.88 67.7707 254.651 73 248.2 73H11.68C5.22931 73 0 67.7707 0 61.32V11.68Z" fill="#FFDD00"/>
|
||||
<path d="M52.2566 24.0078L52.2246 23.9889L52.1504 23.9663C52.1802 23.9915 52.2176 24.0061 52.2566 24.0078Z" fill="#0D0C22"/>
|
||||
<path d="M52.7248 27.3457L52.6895 27.3556L52.7248 27.3457Z" fill="#0D0C22"/>
|
||||
<path d="M52.2701 24.0024C52.266 24.0019 52.2619 24.0009 52.258 23.9995C52.2578 24.0022 52.2578 24.0049 52.258 24.0076C52.2624 24.007 52.2666 24.0052 52.2701 24.0024Z" fill="#0D0C22"/>
|
||||
<path d="M52.2578 24.0094H52.2643V24.0054L52.2578 24.0094Z" fill="#0D0C22"/>
|
||||
<path d="M52.6973 27.3394L52.7513 27.3086L52.7714 27.2973L52.7897 27.2778C52.7554 27.2926 52.7241 27.3135 52.6973 27.3394Z" fill="#0D0C22"/>
|
||||
<path d="M52.3484 24.0812L52.2956 24.031L52.2598 24.0115C52.279 24.0454 52.3108 24.0705 52.3484 24.0812Z" fill="#0D0C22"/>
|
||||
<path d="M39.0684 56.469C39.0262 56.4872 38.9893 56.5158 38.9609 56.552L38.9943 56.5306C39.0169 56.5098 39.0489 56.4853 39.0684 56.469Z" fill="#0D0C22"/>
|
||||
<path d="M46.7802 54.9518C46.7802 54.9041 46.7569 54.9129 46.7626 55.0826C46.7626 55.0687 46.7683 55.0549 46.7708 55.0417C46.7739 55.0115 46.7764 54.982 46.7802 54.9518Z" fill="#0D0C22"/>
|
||||
<path d="M45.9844 56.469C45.9422 56.4872 45.9053 56.5158 45.877 56.552L45.9103 56.5306C45.9329 56.5098 45.9649 56.4853 45.9844 56.469Z" fill="#0D0C22"/>
|
||||
<path d="M33.6307 56.8301C33.5987 56.8023 33.5595 56.784 33.5176 56.7773C33.5515 56.7937 33.5855 56.81 33.6081 56.8226L33.6307 56.8301Z" fill="#0D0C22"/>
|
||||
<path d="M32.4118 55.6598C32.4068 55.6103 32.3916 55.5624 32.3672 55.519C32.3845 55.5642 32.399 55.6104 32.4106 55.6573L32.4118 55.6598Z" fill="#0D0C22"/>
|
||||
<path d="M40.623 34.7221C38.9449 35.4405 37.0404 36.2551 34.5722 36.2551C33.5397 36.2531 32.5122 36.1114 31.5176 35.834L33.2247 53.3605C33.2851 54.093 33.6188 54.7761 34.1595 55.2739C34.7003 55.7718 35.4085 56.0482 36.1435 56.048C36.1435 56.048 38.564 56.1737 39.3716 56.1737C40.2409 56.1737 42.8474 56.048 42.8474 56.048C43.5823 56.048 44.2904 55.7716 44.831 55.2737C45.3716 54.7759 45.7052 54.0929 45.7656 53.3605L47.594 33.993C46.7769 33.714 45.9523 33.5286 45.0227 33.5286C43.415 33.5279 42.1196 34.0817 40.623 34.7221Z" fill="white"/>
|
||||
<path d="M26.2344 27.2449L26.2633 27.2719L26.2821 27.2832C26.2676 27.2688 26.2516 27.2559 26.2344 27.2449Z" fill="#0D0C22"/>
|
||||
<path d="M55.4906 25.6274L55.2336 24.3307C55.0029 23.1673 54.4793 22.068 53.2851 21.6475C52.9024 21.513 52.468 21.4552 52.1745 21.1768C51.881 20.8983 51.7943 20.4659 51.7264 20.0649C51.6007 19.3289 51.4825 18.5923 51.3537 17.8575C51.2424 17.2259 51.1544 16.5163 50.8647 15.9368C50.4876 15.1586 49.705 14.7036 48.9269 14.4025C48.5282 14.2537 48.1213 14.1278 47.7082 14.0254C45.7642 13.5125 43.7202 13.324 41.7202 13.2165C39.3197 13.084 36.9128 13.1239 34.518 13.3359C32.7355 13.4981 30.8581 13.6942 29.1642 14.3108C28.5451 14.5364 27.9071 14.8073 27.4364 15.2856C26.8587 15.8733 26.6702 16.7821 27.0919 17.515C27.3917 18.0354 27.8996 18.4031 28.4382 18.6463C29.1398 18.9597 29.8726 19.1982 30.6242 19.3578C32.7172 19.8204 34.885 20.0021 37.0233 20.0794C39.3932 20.175 41.767 20.0975 44.1256 19.8474C44.7089 19.7833 45.2911 19.7064 45.8723 19.6168C46.5568 19.5118 46.9961 18.6168 46.7943 17.9933C46.553 17.2479 45.9044 16.9587 45.1709 17.0712C45.0628 17.0882 44.9553 17.1039 44.8472 17.1196L44.7692 17.131C44.5208 17.1624 44.2723 17.1917 44.0238 17.219C43.5105 17.2743 42.9959 17.3195 42.4801 17.3547C41.3249 17.4352 40.1665 17.4722 39.0088 17.4741C37.8712 17.4741 36.7329 17.4421 35.5978 17.3673C35.0799 17.3333 34.5632 17.2902 34.0478 17.2378C33.8134 17.2133 33.5796 17.1875 33.3458 17.1586L33.1233 17.1303L33.0749 17.1234L32.8442 17.0901C32.3728 17.0191 31.9014 16.9374 31.435 16.8387C31.388 16.8283 31.3459 16.8021 31.3157 16.7645C31.2856 16.7269 31.2691 16.6801 31.2691 16.6319C31.2691 16.5837 31.2856 16.5369 31.3157 16.4993C31.3459 16.4617 31.388 16.4356 31.435 16.4251H31.4438C31.848 16.339 32.2553 16.2655 32.6638 16.2014C32.8 16.18 32.9366 16.159 33.0736 16.1385H33.0774C33.3332 16.1215 33.5903 16.0757 33.8448 16.0455C36.0595 15.8151 38.2874 15.7366 40.5128 15.8104C41.5933 15.8419 42.6731 15.9053 43.7485 16.0147C43.9798 16.0386 44.2098 16.0637 44.4399 16.092C44.5279 16.1027 44.6165 16.1153 44.7051 16.1259L44.8836 16.1517C45.404 16.2292 45.9217 16.3233 46.4367 16.4339C47.1997 16.5999 48.1796 16.6539 48.519 17.4898C48.6271 17.7551 48.6761 18.0499 48.7359 18.3283L48.8119 18.6834C48.8139 18.6898 48.8154 18.6963 48.8163 18.7029C48.9961 19.5409 49.176 20.379 49.3562 21.217C49.3694 21.2789 49.3697 21.3429 49.3571 21.4049C49.3445 21.4669 49.3193 21.5257 49.2829 21.5776C49.2466 21.6294 49.2 21.6732 49.146 21.7062C49.092 21.7392 49.0317 21.7608 48.969 21.7695H48.964L48.854 21.7846L48.7453 21.799C48.4009 21.8439 48.056 21.8858 47.7107 21.9247C47.0307 22.0022 46.3496 22.0693 45.6674 22.1259C44.3119 22.2386 42.9536 22.3125 41.5927 22.3477C40.8992 22.3662 40.2059 22.3748 39.5129 22.3735C36.7543 22.3713 33.9981 22.211 31.2578 21.8933C30.9611 21.8581 30.6645 21.8204 30.3678 21.7821C30.5978 21.8116 30.2006 21.7594 30.1202 21.7481C29.9316 21.7217 29.7431 21.6943 29.5545 21.6658C28.9216 21.5709 28.2924 21.454 27.6607 21.3515C26.8971 21.2258 26.1667 21.2887 25.476 21.6658C24.909 21.976 24.4501 22.4518 24.1605 23.0297C23.8626 23.6456 23.7739 24.3163 23.6407 24.9781C23.5074 25.6399 23.3 26.3521 23.3786 27.0315C23.5477 28.4979 24.5728 29.6895 26.0473 29.956C27.4345 30.2074 28.8292 30.4111 30.2276 30.5846C35.7212 31.2574 41.2711 31.3379 46.7818 30.8247C47.2305 30.7828 47.6787 30.7371 48.1262 30.6876C48.266 30.6723 48.4074 30.6884 48.5401 30.7348C48.6729 30.7812 48.7936 30.8566 48.8934 30.9557C48.9932 31.0548 49.0695 31.1749 49.1169 31.3073C49.1642 31.4397 49.1814 31.5811 49.167 31.7209L49.0275 33.0773C48.7463 35.8181 48.4652 38.5587 48.184 41.299C47.8907 44.1769 47.5955 47.0545 47.2984 49.9319C47.2146 50.7422 47.1308 51.5524 47.047 52.3624C46.9666 53.16 46.9552 53.9827 46.8038 54.7709C46.5649 56.0103 45.7258 56.7715 44.5015 57.0499C43.3798 57.3052 42.2339 57.4392 41.0836 57.4497C39.8083 57.4566 38.5336 57.4 37.2583 57.4069C35.897 57.4145 34.2295 57.2887 33.1786 56.2756C32.2553 55.3856 32.1277 53.9921 32.002 52.7872C31.8344 51.192 31.6682 49.5971 31.5036 48.0023L30.5796 39.1344L29.9819 33.3966C29.9718 33.3017 29.9618 33.208 29.9524 33.1125C29.8807 32.428 29.3961 31.758 28.6324 31.7926C27.9788 31.8215 27.2359 32.3771 27.3125 33.1125L27.7557 37.3664L28.672 46.1657C28.9331 48.6652 29.1935 51.165 29.4533 53.6653C29.5036 54.1442 29.5507 54.6244 29.6035 55.1034C29.8908 57.7205 31.8895 59.131 34.3646 59.5282C35.8102 59.7607 37.291 59.8085 38.758 59.8324C40.6386 59.8626 42.538 59.9348 44.3877 59.5942C47.1287 59.0914 49.1853 57.2611 49.4788 54.422C49.5626 53.6024 49.6464 52.7826 49.7302 51.9626C50.0088 49.2507 50.2871 46.5386 50.5649 43.8263L51.4737 34.9641L51.8904 30.9026C51.9112 30.7012 51.9962 30.5118 52.133 30.3625C52.2697 30.2132 52.4509 30.1119 52.6497 30.0736C53.4335 29.9208 54.1827 29.66 54.7402 29.0635C55.6277 28.1138 55.8043 26.8756 55.4906 25.6274ZM26.0071 26.5035C26.019 26.4979 25.997 26.6003 25.9876 26.6481C25.9857 26.5758 25.9895 26.5117 26.0071 26.5035ZM26.0831 27.0918C26.0894 27.0874 26.1083 27.1126 26.1278 27.1428C26.0982 27.1151 26.0794 27.0944 26.0825 27.0918H26.0831ZM26.1579 27.1905C26.185 27.2364 26.1994 27.2653 26.1579 27.1905V27.1905ZM26Line truncated
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M81.1302 40.1929C80.8556 40.7169 80.4781 41.1732 79.9978 41.5604C79.5175 41.9479 78.9571 42.2633 78.3166 42.5062C77.6761 42.7497 77.0315 42.9131 76.3835 42.9964C75.7352 43.0799 75.106 43.0727 74.4963 42.9735C73.8863 42.8749 73.3674 42.6737 72.9408 42.3695L73.4214 37.3779C73.8633 37.2261 74.4197 37.0703 75.0909 36.9107C75.7619 36.7513 76.452 36.6371 77.1613 36.5689C77.8705 36.5003 78.5412 36.5084 79.1744 36.5917C79.8068 36.6753 80.3065 36.8765 80.6725 37.1958C80.8707 37.378 81.0387 37.5754 81.176 37.7883C81.313 38.0011 81.3969 38.2214 81.4276 38.4493C81.5037 39.0875 81.4047 39.6687 81.1302 40.1929ZM74.153 29.5602C74.4734 29.3627 74.8585 29.1877 75.3083 29.0356C75.7581 28.8841 76.2195 28.7774 76.6923 28.7167C77.1648 28.6562 77.6262 28.6481 78.0763 28.6938C78.5258 28.7395 78.9228 28.8647 79.2659 29.0697C79.6089 29.2751 79.8643 29.5714 80.032 29.9586C80.1997 30.3464 80.2456 30.8365 80.1693 31.429C80.1083 31.9001 79.9211 32.2991 79.6089 32.6256C79.2963 32.9526 78.9147 33.2259 78.4652 33.4462C78.0154 33.6668 77.5388 33.8415 77.0356 33.9702C76.5321 34.0997 76.0477 34.1949 75.5828 34.2553C75.1176 34.3163 74.7137 34.3545 74.3706 34.3692C74.0273 34.3845 73.8021 34.3921 73.6956 34.3921L74.153 29.5602ZM83.6007 36.9676C83.3566 36.4361 83.0287 35.9689 82.6172 35.5658C82.2054 35.1633 81.717 34.8709 81.1531 34.6885C81.3969 34.491 81.6371 34.1795 81.8737 33.7539C82.1099 33.3288 82.3119 32.865 82.4796 32.3636C82.6474 31.8619 82.762 31.357 82.8229 30.8478C82.8836 30.3389 82.8607 29.902 82.7544 29.537C82.4947 28.6256 82.087 27.9114 81.5303 27.3946C80.9734 26.8782 80.3257 26.5211 79.586 26.3233C78.8462 26.1264 78.0304 26.0842 77.1383 26.1981C76.2462 26.312 75.3347 26.5361 74.4049 26.8704C74.4049 26.7946 74.4124 26.7148 74.4278 26.6312C74.4426 26.548 74.4504 26.4604 74.4504 26.369C74.4504 26.1411 74.3361 25.9439 74.1074 25.7765C73.8787 25.6093 73.6155 25.5107 73.3183 25.4801C73.0209 25.45 72.731 25.5142 72.4489 25.6738C72.1665 25.8334 71.9721 26.1264 71.8656 26.5511C71.7434 27.9189 71.6215 29.3398 71.4996 30.8134C71.3774 32.2875 71.248 33.7767 71.1107 35.2812C70.9735 36.7855 70.8362 38.2784 70.6989 39.7598C70.5616 41.2414 70.4244 42.6659 70.2871 44.0333C70.333 44.4436 70.4473 44.7629 70.6304 44.9907C70.8133 45.2189 71.0268 45.3556 71.2709 45.401C71.5147 45.4467 71.7704 45.4045 72.0371 45.2755C72.3038 45.1469 72.5365 44.9222 72.735 44.6032C73.3447 44.9375 74.0311 45.1541 74.7938 45.253C75.5561 45.3516 76.3298 45.3516 77.1157 45.253C77.9007 45.1541 78.6747 44.9682 79.4374 44.6943C80.1997 44.4211 80.8936 44.079 81.519 43.669C82.1441 43.2586 82.6703 42.7911 83.0975 42.2671C83.5244 41.7426 83.8065 41.1767 83.9437 40.5691C84.081 39.946 84.119 39.3231 84.0581 38.7C83.9971 38.0771 83.8445 37.5 83.6007 36.9676Z" fill="#0D0C23"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M105.915 49.0017C105.832 49.5031 105.713 50.0311 105.561 50.586C105.408 51.1403 105.229 51.6458 105.023 52.1018C104.818 52.5575 104.589 52.9256 104.337 53.207C104.085 53.488 103.815 53.606 103.525 53.5606C103.296 53.5297 103.151 53.3854 103.091 53.1274C103.029 52.8686 103.029 52.5497 103.091 52.17C103.151 51.7901 103.269 51.3607 103.445 50.8821C103.62 50.4035 103.834 49.9284 104.085 49.4577C104.337 48.9864 104.623 48.5347 104.943 48.1015C105.264 47.6686 105.599 47.3075 105.95 47.0189C106.026 47.11 106.06 47.3378 106.053 47.7028C106.045 48.0674 105.999 48.5006 105.915 49.0017ZM113.67 39.1097C113.464 38.8819 113.213 38.7529 112.915 38.7223C112.618 38.6919 112.317 38.859 112.012 39.2237C111.813 39.5883 111.562 39.9379 111.257 40.2722C110.952 40.6067 110.635 40.9103 110.307 41.1839C109.98 41.4572 109.667 41.6931 109.37 41.8903C109.072 42.0881 108.84 42.2324 108.672 42.3235C108.611 41.8374 108.576 41.3132 108.569 40.7507C108.561 40.1886 108.573 39.619 108.603 39.0415C108.649 38.2209 108.744 37.393 108.889 36.557C109.034 35.7213 109.244 34.9007 109.518 34.0951C109.518 33.67 109.419 33.3242 109.221 33.0582C109.022 32.7924 108.782 32.625 108.5 32.5567C108.218 32.4885 107.929 32.5264 107.631 32.6707C107.334 32.8153 107.078 33.0775 106.865 33.4569C106.682 33.9586 106.472 34.5207 106.236 35.1436C105.999 35.7667 105.732 36.4012 105.435 37.0469C105.138 37.6931 104.806 38.3197 104.44 38.9273C104.074 39.5354 103.674 40.075 103.239 40.5457C102.804 41.0168 102.331 41.3854 101.821 41.6512C101.31 41.9172 100.757 42.0349 100.162 42.0045C99.8876 41.9285 99.6893 41.7235 99.5675 41.3889C99.4453 41.0549 99.373 40.6368 99.3504 40.1354C99.3275 39.634 99.3504 39.0831 99.4189 38.4828C99.4877 37.8828 99.5791 37.2863 99.6934 36.6938C99.8078 36.101 99.9337 35.5389 100.071 35.0071C100.208 34.4753 100.337 34.0268 100.46 33.6622C100.643 33.2218 100.643 32.8529 100.46 32.5567C100.277 32.2604 100.025 32.0631 99.705 31.964C99.3846 31.8654 99.0489 31.8694 98.6983 31.9755C98.3474 32.0819 98.0958 32.3173 97.9435 32.682C97.684 33.3054 97.4475 34.004 97.2342 34.779C97.0206 35.5539 96.8491 36.3558 96.7197 37.1836C96.5896 38.0121 96.5171 38.8327 96.502 39.6456C96.5011 39.6985 96.5037 39.7488 96.5034 39.8014C96.1709 40.6848 95.854 41.3525 95.553 41.7992C95.1641 42.377 94.7253 42.6277 94.2375 42.5513C94.0236 42.4603 93.8832 42.2477 93.8147 41.9132C93.7453 41.5792 93.7227 41.1689 93.7453 40.6822C93.7688 40.1964 93.826 39.6456 93.9171 39.0299C94.0091 38.4146 94.1229 37.7764 94.2601 37.1154C94.3977 36.4541 94.5425 35.7899 94.6949 35.121C94.8472 34.4525 94.9845 33.8218 95.107 33.2291C95.0916 32.6973 94.9352 32.291 94.6377 32.0097C94.3405 31.7289 93.9247 31.6187 93.3913 31.6791C93.0253 31.8312 92.7542 32.029 92.579 32.2719C92.4034 32.5148 92.2623 32.8265 92.1558 33.2062C92.0946 33.404 92.0032 33.799 91.8813 34.3918C91.7591 34.984 91.603 35.6644 91.4123 36.4315C91.2217 37.1992 90.9967 38.0005 90.7376 38.8362C90.4781 39.6719 90.1885 40.4283 89.8684 41.1041C89.548 41.7801 89.1972 42.3235 88.8161 42.7338C88.4348 43.1438 88.023 43.3113 87.5807 43.2352C87.3366 43.1895 87.1805 42.9388 87.112 42.4831C87.0432 42.0271 87.0319 41.4653 87.0775 40.7964C87.1233 40.1279 87.2148 39.3946 87.352 38.5971C87.4893 37.7993 87.63 37.0434 87.7752 36.3289C87.92 35.6149 88.0535 34.984 88.1756 34.4372C88.2975 33.8901 88.3814 33.5254 88.4272 33.3433C88.4272 32.9026 88.3277 32.5495 88.1298 32.2832C87.9313 32.0178 87.6913 31.8503 87.4092 31.7818C87.1268 31.7136 86.8372 31.7514 86.54 31.8957C86.2426 32.0403 85.9872 32.3026 85.7736 32.682C85.6973 33.0923 85.598 33.5674 85.4761 34.1067C85.3539 34.6459 85.2361 35.2006 85.1218 35.7705C85.0074 36.3404 84.9003 36.8988 84.8014 37.4459C84.7021 37.993 84.6299 38.4716 84.584 38.8819C84.5536 39.2008 84.519 39.5923 84.4813 40.0556C84.443 40.5194 84.4238 41.0092 84.4238 41.5257C84.4238 42.0427 84.4618 42.5554 84.5385 43.0643C84.6145 43.5735 84.7518 44.0408 84.95 44.4659C85.1482 44.8915 85.4265 45.2408 85.7852 45.5144C86.1433 45.7879 86.5972 45.9397 87.1463 45.9704C87.7101 46.0005 88.202 45.9591 88.6217 45.8449C89.041 45.731 89.4221 45.5523 89.7654 45.3091C90.1084 45.0665 90.421 44.7776 90.7033 44.443C90.9851 44.1091 91.2637 43.7444 91.5383 43.3491C91.7974 43.9269 92.1329 44.3748 92.5447 44.694C92.9565 45.013 93.3913 45.2032 93.8486 45.2637C94.306 45.3241 94.7715 45.2602 95.2442 45.0699C95.7167 44.8803 96.1436 44.5573 96.5252 44.1012C96.7762 43.8216 97.0131 43.5038 97.2354 43.1525C97.3297 43.317 97.4301 43.4758 97.543 43.6224C97.9168 44.1091 98.424 44.443 99.0645 44.6255C99.7506 44.808 100.421 44.8386 101.077 44.7169C101.733 44.5954 102.358 44.3748 102.953 44.0559C103.548 43.7366 104.101 43.3532 104.612 42.9047C105.122 42.4565 105.568 41.9895 105.95 41.5028C105.934 41.8524 105.927 42.1832 105.927 42.4944C105.927 42.8061 105.919 43.1438 105.904 43.5088C105.141 44.0408 104.421 44.679 103.742 45.4233C103.064 46.1676 102.469 46.9616 101.958 47.8051C101.447 48.6483 101.047 49.5031 100.757 50.3691C100.467 51Line truncated
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M142.53 37.6515C142.575 37.3022 142.644 36.9335 142.735 36.546C142.827 36.1585 142.941 35.7823 143.079 35.4177C143.216 35.0531 143.376 34.7379 143.559 34.4718C143.742 34.2061 143.937 34.0161 144.142 33.9019C144.348 33.7883 144.558 33.7995 144.771 33.936C145 34.0731 145.141 34.3617 145.195 34.8021C145.248 35.2433 145.195 35.7141 145.034 36.2155C144.874 36.7172 144.588 37.1879 144.177 37.6286C143.765 38.0696 143.208 38.3579 142.507 38.4947C142.476 38.2824 142.484 38.0011 142.53 37.6515ZM150.456 38.5857C150.204 38.5103 149.964 38.5025 149.735 38.5632C149.506 38.6239 149.361 38.7835 149.301 39.042C149.178 39.5281 148.984 40.0258 148.717 40.5347C148.45 41.0439 148.122 41.5262 147.734 41.9822C147.345 42.438 146.906 42.8408 146.418 43.1901C145.93 43.5397 145.419 43.7904 144.886 43.9422C144.351 44.1096 143.91 44.1284 143.559 43.9991C143.208 43.8705 142.93 43.6498 142.724 43.3384C142.518 43.027 142.369 42.6508 142.278 42.2101C142.186 41.7694 142.133 41.3137 142.118 40.8424C142.987 40.9034 143.761 40.7478 144.44 40.3751C145.118 40.0032 145.694 39.509 146.167 38.8937C146.639 38.2784 146.998 37.587 147.242 36.8195C147.485 36.0524 147.623 35.2887 147.653 34.5288C147.669 33.8146 147.562 33.2108 147.333 32.7169C147.105 32.2233 146.796 31.839 146.407 31.5658C146.018 31.2922 145.572 31.1326 145.069 31.0872C144.566 31.0415 144.054 31.11 143.536 31.2922C142.91 31.505 142.381 31.8506 141.946 32.3294C141.512 32.808 141.149 33.3629 140.86 33.9933C140.57 34.6239 140.341 35.3038 140.173 36.033C140.005 36.7626 139.883 37.4806 139.807 38.1873C139.739 38.8214 139.702 39.4278 139.689 40.013C139.657 40.0874 139.625 40.1588 139.59 40.2383C139.354 40.7782 139.079 41.3062 138.766 41.8226C138.454 42.3394 138.107 42.7725 137.726 43.1218C137.344 43.4714 136.948 43.5929 136.536 43.4865C136.292 43.426 136.159 43.1444 136.136 42.6433C136.113 42.1416 136.139 41.5187 136.216 40.7741C136.292 40.0298 136.38 39.2239 136.479 38.3579C136.578 37.4918 136.628 36.664 136.628 35.8737C136.628 35.1898 136.498 34.5329 136.239 33.9019C135.979 33.2718 135.625 32.7473 135.175 32.3294C134.725 31.9113 134.203 31.634 133.608 31.4975C133.013 31.3605 132.373 31.4518 131.687 31.7708C131 32.09 130.455 32.5382 130.051 33.1157C129.647 33.6934 129.277 34.3009 128.942 34.9391C128.819 34.4528 128.641 34.0011 128.404 33.583C128.167 33.1651 127.878 32.8005 127.535 32.4888C127.191 32.1776 126.806 31.9344 126.38 31.7595C125.953 31.5851 125.502 31.4975 125.03 31.4975C124.572 31.4975 124.149 31.5851 123.76 31.7595C123.371 31.9344 123.017 32.1583 122.696 32.4318C122.376 32.7056 122.087 33.013 121.827 33.3551C121.568 33.6969 121.339 34.0352 121.141 34.3692C121.11 33.9742 121.076 33.6286 121.038 33.332C121 33.0359 120.931 32.7852 120.832 32.5801C120.733 32.3748 120.592 32.2193 120.409 32.1129C120.226 32.0067 119.967 31.9532 119.632 31.9532C119.464 31.9532 119.296 31.9874 119.128 32.0556C118.96 32.1241 118.811 32.2193 118.682 32.3407C118.552 32.4627 118.453 32.6105 118.385 32.7852C118.316 32.9598 118.297 33.1614 118.327 33.3892C118.342 33.5566 118.385 33.7576 118.453 33.9933C118.522 34.2289 118.587 34.5369 118.648 34.9163C118.708 35.2962 118.758 35.756 118.796 36.2953C118.834 36.8349 118.846 37.4959 118.831 38.2784C118.815 39.0611 118.758 39.9763 118.659 41.0248C118.56 42.0733 118.403 43.289 118.19 44.6714C118.16 44.9907 118.282 45.2492 118.556 45.4467C118.831 45.6439 119.143 45.7578 119.494 45.7885C119.845 45.8188 120.177 45.7578 120.489 45.6063C120.802 45.4539 120.981 45.1882 121.027 44.8085C121.072 44.0943 121.16 43.3347 121.29 42.529C121.419 41.724 121.579 40.9262 121.77 40.1359C121.961 39.346 122.178 38.5938 122.422 37.8793C122.666 37.1651 122.937 36.5347 123.234 35.9876C123.532 35.4405 123.84 35.0039 124.161 34.6771C124.481 34.3504 124.816 34.187 125.167 34.187C125.594 34.187 125.926 34.3805 126.162 34.7679C126.398 35.1557 126.566 35.6536 126.666 36.2609C126.765 36.869 126.81 37.5341 126.803 38.2555C126.795 38.9773 126.765 39.6724 126.711 40.341C126.658 41.0098 126.597 41.606 126.528 42.1303C126.46 42.6545 126.41 43.0157 126.38 43.2129C126.38 43.5625 126.513 43.8395 126.78 44.0448C127.046 44.2498 127.344 44.3716 127.672 44.4095C128 44.4476 128.309 44.3866 128.598 44.227C128.888 44.0674 129.056 43.7982 129.102 43.4179C129.254 42.324 129.464 41.2264 129.731 40.1247C129.997 39.023 130.303 38.0355 130.646 37.1616C130.989 36.2878 131.37 35.5735 131.79 35.0189C132.209 34.4646 132.655 34.187 133.128 34.187C133.371 34.187 133.559 34.3544 133.688 34.6884C133.818 35.0227 133.883 35.4784 133.883 36.0559C133.883 36.4815 133.848 36.9184 133.78 37.3666C133.711 37.8148 133.631 38.2784 133.54 38.7569C133.448 39.2358 133.368 39.7256 133.299 40.227C133.231 40.7287 133.196 41.2527 133.196 41.7998C133.196 42.1797 133.235 42.6204 133.311 43.1218C133.387 43.6229 133.532 44.0983 133.745 44.5462C133.959 44.9947 134.252 45.3744 134.626 45.6858C135 45.9973 135.476 46.1531 136.056 46.1531C136.925 46.1531 137.695 45.9669 138.366 45.5947C139.037 45.2226 13Line truncated
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M162.887 36.0434C162.81 36.4918 162.707 36.986 162.578 37.525C162.448 38.0646 162.284 38.623 162.086 39.2004C161.888 39.7779 161.644 40.2984 161.354 40.7616C161.064 41.2254 160.733 41.5935 160.359 41.8671C159.985 42.1406 159.555 42.2546 159.066 42.2089C158.822 42.1788 158.635 42.0117 158.506 41.7075C158.376 41.4038 158.308 41.0161 158.3 40.545C158.292 40.0743 158.334 39.5575 158.426 38.9951C158.517 38.4333 158.658 37.8821 158.849 37.3426C159.04 36.8036 159.272 36.3056 159.547 35.8496C159.821 35.3939 160.138 35.0405 160.496 34.7898C160.854 34.5391 161.247 34.4217 161.674 34.4365C162.101 34.4518 162.559 34.6643 163.047 35.0747C163.016 35.2725 162.963 35.5954 162.887 36.0434ZM171.019 37.787C170.782 37.6656 170.538 37.6392 170.287 37.7075C170.035 37.7757 169.856 38.0076 169.749 38.4026C169.688 38.8283 169.551 39.3294 169.338 39.9069C169.124 40.4843 168.861 41.0317 168.548 41.5478C168.236 42.0646 167.877 42.494 167.473 42.8358C167.069 43.1778 166.638 43.3337 166.181 43.3028C165.799 43.2727 165.532 43.079 165.38 42.7218C165.227 42.3647 165.147 41.9168 165.14 41.3769C165.132 40.838 165.186 40.2301 165.3 39.5538C165.414 38.8777 165.552 38.2054 165.712 37.5363C165.872 36.868 166.036 36.2258 166.204 35.6105C166.371 34.9951 166.508 34.4747 166.616 34.0493C166.738 33.6693 166.699 33.3466 166.501 33.0803C166.303 32.8149 166.055 32.6246 165.758 32.5107C165.46 32.3967 165.159 32.3664 164.854 32.4196C164.549 32.4728 164.351 32.6362 164.259 32.9094C163.359 32.1345 162.494 31.7166 161.663 31.6559C160.831 31.5952 160.065 31.7776 159.364 32.203C158.662 32.6284 158.041 33.2437 157.5 34.0493C156.958 34.8549 156.52 35.7322 156.184 36.6818C155.849 37.6314 155.639 38.6004 155.555 39.5879C155.471 40.5757 155.536 41.4761 155.75 42.289C155.963 43.1018 156.34 43.7669 156.882 44.283C157.423 44.7998 158.159 45.0583 159.089 45.0583C159.501 45.0583 159.898 44.9747 160.279 44.8076C160.66 44.6401 161.011 44.4426 161.331 44.2148C161.651 43.9869 161.933 43.7475 162.178 43.4968C162.421 43.2461 162.612 43.0373 162.749 42.8699C162.856 43.417 163.032 43.8808 163.276 44.2605C163.519 44.6401 163.798 44.9521 164.111 45.1948C164.423 45.4376 164.751 45.6164 165.094 45.7306C165.437 45.8445 165.769 45.9015 166.089 45.9015C166.806 45.9015 167.477 45.6583 168.102 45.1719C168.727 44.6861 169.288 44.0893 169.784 43.3829C170.279 42.6762 170.687 41.9319 171.007 41.1491C171.328 40.3666 171.541 39.6715 171.648 39.0634C171.755 38.8355 171.735 38.5964 171.591 38.3457C171.446 38.095 171.255 37.909 171.019 37.787Z" fill="#0D0C23"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M212.194 50.3701C212.064 50.8866 211.862 51.3238 211.587 51.6806C211.313 52.0377 210.97 52.2239 210.558 52.2393C210.299 52.2543 210.101 52.1175 209.963 51.8289C209.826 51.5401 209.731 51.1679 209.678 50.7122C209.624 50.2562 209.601 49.747 209.609 49.1849C209.616 48.6227 209.639 48.0681 209.678 47.521C209.715 46.9742 209.761 46.4647 209.815 45.9939C209.868 45.5226 209.91 45.1586 209.94 44.9C210.459 44.9608 210.89 45.1846 211.233 45.5723C211.576 45.9598 211.839 46.4193 212.022 46.9514C212.205 47.4831 212.312 48.0568 212.343 48.6722C212.373 49.2875 212.323 49.8534 212.194 50.3701ZM203.913 50.3701C203.783 50.8866 203.581 51.3238 203.307 51.6806C203.032 52.0377 202.689 52.2239 202.277 52.2393C202.018 52.2543 201.82 52.1175 201.683 51.8289C201.545 51.5401 201.45 51.1679 201.397 50.7122C201.343 50.2562 201.32 49.747 201.328 49.1849C201.336 48.6227 201.358 48.0681 201.397 47.521C201.434 46.9742 201.48 46.4647 201.534 45.9939C201.587 45.5226 201.629 45.1586 201.66 44.9C202.178 44.9608 202.609 45.1846 202.952 45.5723C203.295 45.9598 203.558 46.4193 203.741 46.9514C203.924 47.4831 204.031 48.0568 204.062 48.6722C204.092 49.2875 204.042 49.8534 203.913 50.3701ZM195.415 37.4241C195.399 37.7884 195.365 38.1114 195.312 38.3925C195.258 38.6741 195.186 38.8522 195.095 38.9283C194.927 38.8369 194.721 38.6018 194.477 38.2216C194.233 37.8419 194.042 37.4122 193.905 36.9336C193.768 36.4551 193.725 35.9843 193.779 35.5205C193.832 35.0573 194.073 34.6967 194.5 34.4379C194.667 34.3468 194.812 34.3809 194.934 34.5405C195.056 34.7001 195.155 34.9318 195.232 35.2357C195.308 35.5399 195.361 35.8892 195.392 36.2842C195.422 36.6795 195.43 37.0591 195.415 37.4241ZM193.39 41.9711C193.154 42.2215 192.89 42.4381 192.601 42.6206C192.311 42.803 192.014 42.9398 191.709 43.0309C191.404 43.1223 191.129 43.1448 190.885 43.0991C190.199 42.9627 189.673 42.666 189.307 42.2103C188.941 41.7545 188.708 41.219 188.609 40.6037C188.51 39.9881 188.521 39.3308 188.644 38.6319C188.765 37.933 188.971 37.2835 189.261 36.6832C189.551 36.0829 189.902 35.5662 190.313 35.1333C190.725 34.7001 191.175 34.4306 191.663 34.3239C191.48 35.0989 191.419 35.9007 191.48 36.7286C191.541 37.5568 191.739 38.3355 192.075 39.0648C192.288 39.506 192.544 39.9082 192.841 40.2729C193.139 40.6378 193.501 40.9492 193.928 41.2075C193.806 41.466 193.626 41.7204 193.39 41.9711ZM218.702 37.6519C218.747 37.3026 218.816 36.9336 218.908 36.5462C218.999 36.159 219.114 35.7828 219.251 35.4181C219.388 35.0532 219.548 34.738 219.731 34.4723C219.914 34.2065 220.108 34.0163 220.314 33.9024C220.52 33.7884 220.73 33.7997 220.943 33.9365C221.172 34.0735 221.313 34.3621 221.367 34.8025C221.42 35.2435 221.367 35.7142 221.207 36.2159C221.046 36.7173 220.761 37.1884 220.349 37.6288C219.937 38.07 219.38 38.3583 218.679 38.4951C218.648 38.2826 218.656 38.0015 218.702 37.6519ZM227.921 37.6519C227.966 37.3026 228.035 36.9336 228.126 36.5462C228.218 36.159 228.332 35.7828 228.47 35.4181C228.607 35.0532 228.767 34.738 228.95 34.4723C229.133 34.2065 229.328 34.0163 229.533 33.9024C229.739 33.7884 229.949 33.7997 230.162 33.9365C230.391 34.0735 230.532 34.3621 230.586 34.8025C230.639 35.2435 230.586 35.7142 230.425 36.2159C230.265 36.7173 229.979 37.1884 229.568 37.6288C229.156 38.07 228.599 38.3583 227.898 38.4951C227.867 38.2826 227.875 38.0015 227.921 37.6519ZM236.488 38.9852C236.312 38.7955 236.099 38.6625 235.847 38.5862C235.595 38.5104 235.355 38.5029 235.126 38.5636C234.897 38.6244 234.752 38.784 234.692 39.0422C234.57 39.5286 234.375 40.0262 234.108 40.5349C233.841 41.0444 233.514 41.5267 233.125 41.9824C232.736 42.4381 232.297 42.8412 231.81 43.1905C231.321 43.5401 230.81 43.7908 230.277 43.9423C229.743 44.1101 229.301 44.1289 228.95 43.9996C228.599 43.8706 228.321 43.6503 228.115 43.3389C227.909 43.0271 227.761 42.6512 227.669 42.2103C227.578 41.7699 227.524 41.3142 227.509 40.8428C228.378 40.9038 229.152 40.7483 229.831 40.3755C230.509 40.0034 231.085 39.5092 231.558 38.8939C232.031 38.2788 232.389 37.5874 232.633 36.82C232.877 36.0526 233.014 35.2892 233.045 34.5293C233.06 33.815 232.953 33.211 232.724 32.7171C232.496 32.2235 232.187 31.8395 231.798 31.5662C231.409 31.2924 230.963 31.133 230.46 31.0874C229.957 31.0417 229.445 31.1105 228.927 31.2924C228.302 31.5055 227.772 31.851 227.338 32.3296C226.903 32.8085 226.54 33.3634 226.251 33.9934C225.961 34.6244 225.732 35.3039 225.564 36.0335C225.396 36.7627 225.274 37.481 225.199 38.1874C225.124 38.873 225.084 39.5292 225.075 40.1572C225.017 40.2824 224.956 40.4082 224.889 40.5349C224.622 41.0444 224.295 41.5267 223.906 41.9824C223.517 42.4381 223.078 42.8412 222.591 43.1905C222.102 43.5401 221.592 43.7908 221.058 43.9423C220.524 44.1101 220.082 44.1289 219.731 43.9996C219.38 43.8706 219.102 43.6503 218.896 43.3389C218.691 43.0271 218.542 42.6512 218.45 42.2103C218.359 41.7699 218.305 41.3142 218.29 40.8428C219.159 40.9038 219.933 40.7483 220.612 40.3755C221.29 40.0034 221.866 39.5092 222.339 38.8939C222Line truncated
|
||||
</svg>`,cf=`
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="150" height="40">
|
||||
<path fill="#253B80" d="M46.211 6.749h-6.839a.95.95 0 0 0-.939.802l-2.766 17.537a.57.57 0 0 0 .564.658h3.265a.95.95 0 0 0 .939-.803l.746-4.73a.95.95 0 0 1 .938-.803h2.165c4.505 0 7.105-2.18 7.784-6.5.306-1.89.013-3.375-.872-4.415-.972-1.142-2.696-1.746-4.985-1.746zM47 13.154c-.374 2.454-2.249 2.454-4.062 2.454h-1.032l.724-4.583a.57.57 0 0 1 .563-.481h.473c1.235 0 2.4 0 3.002.704.359.42.469 1.044.332 1.906zM66.654 13.075h-3.275a.57.57 0 0 0-.563.481l-.145.916-.229-.332c-.709-1.029-2.29-1.373-3.868-1.373-3.619 0-6.71 2.741-7.312 6.586-.313 1.918.132 3.752 1.22 5.031.998 1.176 2.426 1.666 4.125 1.666 2.916 0 4.533-1.875 4.533-1.875l-.146.91a.57.57 0 0 0 .562.66h2.95a.95.95 0 0 0 .939-.803l1.77-11.209a.568.568 0 0 0-.561-.658zm-4.565 6.374c-.316 1.871-1.801 3.127-3.695 3.127-.951 0-1.711-.305-2.199-.883-.484-.574-.668-1.391-.514-2.301.295-1.855 1.805-3.152 3.67-3.152.93 0 1.686.309 2.184.892.499.589.697 1.411.554 2.317zM84.096 13.075h-3.291a.954.954 0 0 0-.787.417l-4.539 6.686-1.924-6.425a.953.953 0 0 0-.912-.678h-3.234a.57.57 0 0 0-.541.754l3.625 10.638-3.408 4.811a.57.57 0 0 0 .465.9h3.287a.949.949 0 0 0 .781-.408l10.946-15.8a.57.57 0 0 0-.468-.895z"/>
|
||||
<path fill="#179BD7" d="M94.992 6.749h-6.84a.95.95 0 0 0-.938.802l-2.766 17.537a.569.569 0 0 0 .562.658h3.51a.665.665 0 0 0 .656-.562l.785-4.971a.95.95 0 0 1 .938-.803h2.164c4.506 0 7.105-2.18 7.785-6.5.307-1.89.012-3.375-.873-4.415-.971-1.142-2.694-1.746-4.983-1.746zm.789 6.405c-.373 2.454-2.248 2.454-4.062 2.454h-1.031l.725-4.583a.568.568 0 0 1 .562-.481h.473c1.234 0 2.4 0 3.002.704.359.42.468 1.044.331 1.906zM115.434 13.075h-3.273a.567.567 0 0 0-.562.481l-.145.916-.23-.332c-.709-1.029-2.289-1.373-3.867-1.373-3.619 0-6.709 2.741-7.311 6.586-.312 1.918.131 3.752 1.219 5.031 1 1.176 2.426 1.666 4.125 1.666 2.916 0 4.533-1.875 4.533-1.875l-.146.91a.57.57 0 0 0 .564.66h2.949a.95.95 0 0 0 .938-.803l1.771-11.209a.571.571 0 0 0-.565-.658zm-4.565 6.374c-.314 1.871-1.801 3.127-3.695 3.127-.949 0-1.711-.305-2.199-.883-.484-.574-.666-1.391-.514-2.301.297-1.855 1.805-3.152 3.67-3.152.93 0 1.686.309 2.184.892.501.589.699 1.411.554 2.317zM119.295 7.23l-2.807 17.858a.569.569 0 0 0 .562.658h2.822c.469 0 .867-.34.939-.803l2.768-17.536a.57.57 0 0 0-.562-.659h-3.16a.571.571 0 0 0-.562.482z"/>
|
||||
<path fill="#253B80" d="M7.266 29.154l.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 0 1 .314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.69 3.69 0 0 1 1.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.547 6.547 0 0 1-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.21 2.21 0 0 0-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.155.155 0 0 1-.096.035H7.266z"/>
|
||||
<path fill="#179BD7" d="M23.048 7.667c-.028.179-.06.362-.096.55-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 0 0 .695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.667 4.667 0 0 0-1.336-1.03z"/>
|
||||
<path fill="#222D65" d="M21.754 7.151a9.757 9.757 0 0 0-1.203-.267 15.284 15.284 0 0 0-2.426-.177h-7.352a1.172 1.172 0 0 0-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 0 1 1.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545.037-.188.068-.371.096-.55a6.594 6.594 0 0 0-1.017-.429 9.045 9.045 0 0 0-.277-.087z"/>
|
||||
<path fill="#253B80" d="M9.614 7.699a1.169 1.169 0 0 1 1.159-.991h7.352c.871 0 1.684.057 2.426.177a9.757 9.757 0 0 1 1.481.353c.365.121.704.264 1.017.429.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 0 0 .795.932h5.791l1.454-9.225 1.564-9.906z"/>
|
||||
</svg>`;
|
||||
/*! Bundled license information:
|
||||
|
||||
decimal.js/decimal.js:
|
||||
(*!
|
||||
* decimal.js v10.4.3
|
||||
* An arbitrary-precision Decimal type for JavaScript.
|
||||
* https://github.com/MikeMcl/decimal.js
|
||||
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||
* MIT Licence
|
||||
*)
|
||||
|
||||
lodash/lodash.js:
|
||||
(**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*)
|
||||
*/
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "table-editor-obsidian",
|
||||
"name": "Advanced Tables",
|
||||
"author": "Tony Grosinger",
|
||||
"authorUrl": "https://grosinger.net",
|
||||
"description": "Improved table navigation, formatting, manipulation, and formulas",
|
||||
"isDesktopOnly": false,
|
||||
"minAppVersion": "1.0.0",
|
||||
"version": "0.22.1",
|
||||
"js": "main.js",
|
||||
"fundingUrl": {
|
||||
"Github Sponsor": "https://github.com/sponsors/tgrosinger",
|
||||
"Buy me a Coffee": "https://buymeacoffee.com/tgrosinger",
|
||||
"Paypal": "https://paypal.me/tgrosinger"
|
||||
},
|
||||
"donation": "https://buymeacoffee.com/tgrosinger"
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
:root {
|
||||
--advanced-tables-helper-size: 28px;
|
||||
}
|
||||
|
||||
.HyperMD-table-row span.cm-inline-code {
|
||||
font-size: 100%;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.advanced-tables-buttons>div>.title {
|
||||
font-weight: var(--font-medium);
|
||||
font-size: var(--nav-item-size);
|
||||
color: var(--nav-item-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container {
|
||||
column-gap: 0.2rem;
|
||||
margin: 0.2rem 0 0.2rem 0;
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container::before {
|
||||
min-width: 2.6rem;
|
||||
line-height: var(--advanced-tables-helper-size);
|
||||
font-size: var(--nav-item-size);
|
||||
font-weight: var(--nav-item-weight);
|
||||
color: var(--nav-item-color);
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container>* {
|
||||
height: var(--advanced-tables-helper-size);
|
||||
line-height: var(--advanced-tables-helper-size);
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container .nav-action-button {
|
||||
width: var(--advanced-tables-helper-size);
|
||||
height: var(--advanced-tables-helper-size);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: var(--radius-s);
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container .nav-action-button:hover {
|
||||
background-color: var(--nav-item-background-hover);
|
||||
color: var(--nav-item-color-hover);
|
||||
font-weight: var(--nav-item-weight-hover);
|
||||
}
|
||||
|
||||
.advanced-tables-row-label {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.widget-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
fill: var(--text-muted);
|
||||
}
|
||||
|
||||
.widget-icon:hover {
|
||||
fill: var(--text-normal);
|
||||
}
|
||||
|
||||
.advanced-tables-csv-export textarea {
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.advanced-tables-donation {
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.advanced-tables-donate-button {
|
||||
margin: 10px;
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"command_timeout": 5,
|
||||
"templates_folder": "Templates",
|
||||
"templates_pairs": [
|
||||
[
|
||||
"",
|
||||
""
|
||||
]
|
||||
],
|
||||
"trigger_on_file_creation": false,
|
||||
"auto_jump_to_cursor": false,
|
||||
"enable_system_commands": false,
|
||||
"shell_path": "",
|
||||
"user_scripts_folder": "",
|
||||
"enable_folder_templates": true,
|
||||
"folder_templates": [
|
||||
{
|
||||
"folder": "",
|
||||
"template": ""
|
||||
}
|
||||
],
|
||||
"enable_file_templates": false,
|
||||
"file_templates": [
|
||||
{
|
||||
"regex": ".*",
|
||||
"template": ""
|
||||
}
|
||||
],
|
||||
"syntax_highlighting": true,
|
||||
"syntax_highlighting_mobile": false,
|
||||
"enabled_templates_hotkeys": [
|
||||
""
|
||||
],
|
||||
"startup_templates": [
|
||||
""
|
||||
],
|
||||
"intellisense_render": 1
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var Aa=Object.create;var Hn=Object.defineProperty;var _a=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var ya=Object.getPrototypeOf,ja=Object.prototype.hasOwnProperty;var Yi=n=>Hn(n,"__esModule",{value:!0});var va=(n,e)=>{Yi(n);for(var t in e)Hn(n,t,{get:e[t],enumerable:!0})},wa=(n,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of xa(e))!ja.call(n,r)&&r!=="default"&&Hn(n,r,{get:()=>e[r],enumerable:!(t=_a(e,r))||t.enumerable});return n},X=n=>wa(Yi(Hn(n!=null?Aa(ya(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var Ui=(()=>{for(var n=new Uint8Array(128),e=0;e<64;e++)n[e<26?e+65:e<52?e+71:e<62?e-4:e*4-205]=e;return t=>{for(var r=t.length,i=new Uint8Array((r-(t[r-1]=="=")-(t[r-2]=="="))*3/4|0),o=0,a=0;o<r;){var l=n[t.charCodeAt(o++)],c=n[t.charCodeAt(o++)],d=n[t.charCodeAt(o++)],m=n[t.charCodeAt(o++)];i[a++]=l<<2|c>>4,i[a++]=c<<4|d>>2,i[a++]=d<<6|m}return i}})();va(exports,{default:()=>Oi});var jr=X(require("obsidian"));var L=X(require("obsidian"));var Gi=X(require("obsidian"));function oe(n){let e=new Gi.Notice("",8e3);n instanceof O&&n.console_msg?(e.noticeEl.innerHTML=`<b>Templater Error</b>:<br/>${n.message}<br/>Check console for more information`,console.error("Templater Error:",n.message,`
|
||||
`,n.console_msg)):e.noticeEl.innerHTML=`<b>Templater Error</b>:<br/>${n.message}`}var O=class extends Error{constructor(e,t){super(e);this.console_msg=t;this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}};async function Te(n,e){try{return await n()}catch(t){return t instanceof O?oe(t):oe(new O(e,t.message)),null}}function ke(n,e){try{return n()}catch(t){return oe(new O(e,t.message)),null}}var re=function(){function n(){}return n.explainIfInvalidTSDocTagName=function(e){if(e[0]!=="@")return'A TSDoc tag name must start with an "@" symbol';if(!n._tsdocTagNameRegExp.test(e))return"A TSDoc tag name must start with a letter and contain only letters and numbers"},n.validateTSDocTagName=function(e){var t=n.explainIfInvalidTSDocTagName(e);if(t)throw new Error(t)},n.explainIfInvalidLinkUrl=function(e){if(e.length===0)return"The URL cannot be empty";if(!n._urlSchemeRegExp.test(e))return'An @link URL must begin with a scheme comprised only of letters and numbers followed by "://". (For general URLs, use an HTML "<a>" tag instead.)';if(!n._urlSchemeAfterRegExp.test(e))return'An @link URL must have at least one character after "://"'},n.explainIfInvalidHtmlName=function(e){if(!n._htmlNameRegExp.test(e))return"An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens"},n.validateHtmlName=function(e){var t=n.explainIfInvalidHtmlName(e);if(t)throw new Error(t)},n.explainIfInvalidPackageName=function(e){if(e.length===0)return"The package name cannot be an empty string";if(!n._validPackageNameRegExp.test(e))return"The package name ".concat(JSON.stringify(e)," is not a valid package name")},n.explainIfInvalidImportPath=function(e,t){if(e.length>0){if(e.indexOf("//")>=0)return'An import path must not contain "//"';if(e[e.length-1]==="/")return'An import path must not end with "/"';if(!t&&e[0]==="/")return'An import path must not start with "/" unless prefixed by a package name'}},n.isSystemSelector=function(e){return n._systemSelectors.has(e)},n.explainIfInvalidUnquotedIdentifier=function(e){if(e.length===0)return"The identifier cannot be an empty string";if(n._identifierBadCharRegExp.test(e))return"The identifier cannot non-word characters";if(n._identifierNumberStartRegExp.test(e))return"The identifier must not start with a number"},n.explainIfInvalidUnquotedMemberIdentifier=function(e){var t=n.explainIfInvalidUnquotedIdentifier(e);if(t!==void 0)return t;if(n.isSystemSelector(e))return'The identifier "'.concat(e,'" must be quoted because it is a TSDoc system selector name')},n._tsdocTagNameRegExp=/^@[a-z][a-z0-9]*$/i,n._urlSchemeRegExp=/^[a-z][a-z0-9]*\:\/\//i,n._urlSchemeAfterRegExp=/^[a-z][a-z0-9]*\:\/\/./i,n._htmlNameRegExp=/^[a-z]+[a-z0-9\-]*$/i,n._identifierBadCharRegExp=/[^a-z0-9_$]/i,n._identifierNumberStartRegExp=/^[0-9]/,n._validPackageNameRegExp=/^(?:@[a-z0-9\-_\.]+\/)?[a-z0-9\-_\.]+$/i,n._systemSelectors=new Set(["instance","static","constructor","class","enum","function","interface","namespace","type","variable"]),n}();var kr=function(){function n(){this._docNodeDefinitionsByKind=new Map,this._docNodeDefinitionsByConstructor=new Map}return n.prototype.registerDocNodes=function(e,t){var r=re.explainIfInvalidPackageName(e);if(r)throw new Error("Invalid NPM package name: "+r);for(var i=0,o=t;i<o.length;i++){var a=o[i];if(!n._nodeKindRegExp.test(a.docNodeKind))throw new Error("The DocNode kind ".concat(JSON.stringify(a.docNodeKind)," is not a valid identifier.")+" It must start with an underscore or letter, and be comprised of letters, numbers, and underscores");var l=this._docNodeDefinitionsByKind.get(a.docNodeKind);if(l!==void 0)throw new Error('The DocNode kind "'.concat(a.docNodeKind,'" was already registered')+" by ".concat(l.packageName));if(l=this._docNodeDefinitionsByConstructor.get(a.constructor),l!==void 0)throw new Error("This DocNode constructor was already registered by ".concat(l.packageName)+" as ".concat(l.docNodeKind));var c={docNodeKind:a.docNodeKind,constructor:a.constructor,packageName:e,allowedChildKinds:new Set};this._docNodeDefinitionsByKind.set(a.docNodeKind,c),this._docNodeDefinitionsByConstructor.set(a.constructor,c)}},n.prototype.throwIfNotRegisteredKind=function(e){if(!this._docNodeDefinitionsByKind.has(e))throw new Error('The DocNode kind "'.concat(e,'" was not registered with this TSDocConfiguration'))},n.prototype.registerAllowableChildren=function(e,t){for(var r=this._getDefinition(e),i=0,o=t;i<o.length;i++){var a=o[i];this._getDefinition(a),r.allowedChildKinds.add(a)}},n.prototype.isAllowedChild=function(e,t){var r=this._getDefinition(e);return r.allowedChildKinds.has(t)},n.prototype._getDefinition=function(e){var t=this._docNodeDefinitionsByKind.get(e);if(t===void 0)throw new Error('The DocNode kind "'.concat(e,'" was not registered with this TSDocConfiguration'));return t},n._nodeKindRegExp=/^[_a-z][_a-z0-9]*$/i,n}();var U;(function(n){n.Core="Core",n.Extended="Extended",n.Discretionary="Discretion
Line truncated
|
||||
`:this.range.toString()},n}();var Ca=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),x;(function(n){n.Spacing="Spacing",n.BlockTag="BlockTag",n.CodeSpan_OpeningDelimiter="CodeSpan_OpeningDelimiter",n.CodeSpan_Code="CodeSpan_Code",n.CodeSpan_ClosingDelimiter="CodeSpan_ClosingDelimiter",n.DeclarationReference_PackageName="DeclarationReference_PackageName",n.DeclarationReference_ImportPath="DeclarationReference_ImportPath",n.DeclarationReference_ImportHash="DeclarationReference_ImportHash",n.ErrorText="ErrorText",n.NonstandardText="NonstandardText",n.EscapedText="EscapedText",n.FencedCode_OpeningFence="FencedCode_OpeningFence",n.FencedCode_Language="FencedCode_Language",n.FencedCode_Code="FencedCode_Code",n.FencedCode_ClosingFence="FencedCode_ClosingFence",n.HtmlAttribute_Name="HtmlAttribute_Name",n.HtmlAttribute_Equals="HtmlAttribute_Equals",n.HtmlAttribute_Value="HtmlAttribute_Value",n.HtmlEndTag_OpeningDelimiter="HtmlEndTag_OpeningDelimiter",n.HtmlEndTag_Name="HtmlEndTag_Name",n.HtmlEndTag_ClosingDelimiter="HtmlEndTag_ClosingDelimiter",n.HtmlStartTag_OpeningDelimiter="HtmlStartTag_OpeningDelimiter",n.HtmlStartTag_Name="HtmlStartTag_Name",n.HtmlStartTag_ClosingDelimiter="HtmlStartTag_ClosingDelimiter",n.InlineTag_OpeningDelimiter="InlineTag_OpeningDelimiter",n.InlineTag_TagName="InlineTag_TagName",n.InlineTag_TagContent="InlineTag_TagContent",n.InlineTag_ClosingDelimiter="InlineTag_ClosingDelimiter",n.LinkTag_UrlDestination="LinkTag_UrlDestination",n.LinkTag_Pipe="LinkTag_Pipe",n.LinkTag_LinkText="LinkTag_LinkText",n.MemberIdentifier_LeftQuote="MemberIdentifier_LeftQuote",n.MemberIdentifier_Identifier="MemberIdentifier_Identifier",n.MemberIdentifier_RightQuote="MemberIdentifier_RightQuote",n.MemberReference_Dot="MemberReference_Dot",n.MemberReference_LeftParenthesis="MemberReference_LeftParenthesis",n.MemberReference_Colon="MemberReference_Colon",n.MemberReference_RightParenthesis="MemberReference_RightParenthesis",n.MemberSelector="MemberSelector",n.DocMemberSymbol_LeftBracket="DocMemberSymbol_LeftBracket",n.DocMemberSymbol_RightBracket="DocMemberSymbol_RightBracket",n.ParamBlock_ParameterName="ParamBlock_ParameterName",n.ParamBlock_Hyphen="ParamBlock_Hyphen",n.PlainText="PlainText",n.SoftBreak="SoftBreak"})(x||(x={}));var j=function(n){Ca(e,n);function e(t){var r=n.call(this,t)||this;if(t.excerptKind===x.Spacing)for(var i=0,o=t.content.tokens;i<o.length;i++){var a=o[i];switch(a.kind){case u.Spacing:case u.Newline:case u.EndOfInput:break;default:throw new Error("The excerptKind=Spacing but the range contains a non-whitespace token")}}return r._excerptKind=t.excerptKind,r._content=t.content,r}return Object.defineProperty(e.prototype,"kind",{get:function(){return g.Excerpt},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"excerptKind",{get:function(){return this._excerptKind},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),e}(T);var Da=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),$n=function(n){Da(e,n);function e(t){var r=n.call(this,t)||this;return re.validateTSDocTagName(t.tagName),r._tagName=t.tagName,r._tagNameWithUpperCase=t.tagName.toUpperCase(),T.isParsedParameters(t)&&(r._tagNameExcerpt=new j({configuration:r.configuration,excerptKind:x.BlockTag,content:t.tagNameExcerpt})),r}return Object.defineProperty(e.prototype,"kind",{get:function(){return g.BlockTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this._tagName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagNameWithUpperCase",{get:function(){return this._tagNameWithUpperCase},enumerable:!1,configurable:!0}),e.prototype.onGetChildNodes=function(){return[this._tagNameExcerpt]},e.prototype.getTokenSequence=function(){if(!this._tagNameExcerpt)throw new Error("DocBlockTag.getTokenSequence() failed because this object did not originate from a parsed input");return this._tagNameExcerpt.content},e}(T);var Pa=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}|
Line truncated
|
||||
`,this._emitCommentFraming=!0,this._lineState=ge.Closed,this._previousLineHadContent=!1,this._hangingParagraph=!1}return n.prototype.renderComment=function(e,t){this._emitCommentFraming=!0,this._renderCompleteObject(e,t)},n.prototype.renderHtmlTag=function(e,t){this._emitCommentFraming=!1,this._renderCompleteObject(e,t)},n.prototype.renderDeclarationReference=function(e,t){this._emitCommentFraming=!1,this._renderCompleteObject(e,t)},n.prototype._renderCompleteObject=function(e,t){this._output=e,this._lineState=ge.Closed,this._previousLineHadContent=!1,this._hangingParagraph=!1,this._renderNode(t),this._writeEnd()},n.prototype._renderNode=function(e){var t=this;if(e!==void 0)switch(e.kind){case g.Block:var r=e;this._ensureLineSkipped(),this._renderNode(r.blockTag),r.blockTag.tagNameWithUpperCase===G.returns.tagNameWithUpperCase&&(this._writeContent(" "),this._hangingParagraph=!0),this._renderNode(r.content);break;case g.BlockTag:var i=e;this._lineState===ge.MiddleOfLine&&this._writeContent(" "),this._writeContent(i.tagName);break;case g.CodeSpan:var o=e;this._writeContent("`"),this._writeContent(o.code),this._writeContent("`");break;case g.Comment:var a=e;this._renderNodes(Mr(Mr(Mr([a.summarySection,a.remarksBlock,a.privateRemarks,a.deprecatedBlock,a.params,a.typeParams,a.returnsBlock],a.customBlocks,!0),a.seeBlocks,!0),[a.inheritDocTag],!1)),a.modifierTagSet.nodes.length>0&&(this._ensureLineSkipped(),this._renderNodes(a.modifierTagSet.nodes));break;case g.DeclarationReference:var l=e;this._writeContent(l.packageName),this._writeContent(l.importPath),(l.packageName!==void 0||l.importPath!==void 0)&&this._writeContent("#"),this._renderNodes(l.memberReferences);break;case g.ErrorText:var c=e;this._writeContent(c.text);break;case g.EscapedText:var d=e;this._writeContent(d.encodedText);break;case g.FencedCode:var m=e;this._ensureAtStartOfLine(),this._writeContent("```"),this._writeContent(m.language),this._writeNewline(),this._writeContent(m.code),this._writeContent("```"),this._writeNewline(),this._writeNewline();break;case g.HtmlAttribute:var y=e;this._writeContent(y.name),this._writeContent(y.spacingAfterName),this._writeContent("="),this._writeContent(y.spacingAfterEquals),this._writeContent(y.value),this._writeContent(y.spacingAfterValue);break;case g.HtmlEndTag:var b=e;this._writeContent("</"),this._writeContent(b.name),this._writeContent(">");break;case g.HtmlStartTag:var E=e;this._writeContent("<"),this._writeContent(E.name),this._writeContent(E.spacingAfterName);for(var P=E.spacingAfterName===void 0||E.spacingAfterName.length===0,k=0,w=E.htmlAttributes;k<w.length;k++){var M=w[k];P&&this._writeContent(" "),this._renderNode(M),P=M.spacingAfterValue===void 0||M.spacingAfterValue.length===0}this._writeContent(E.selfClosingTag?"/>":">");break;case g.InheritDocTag:var $=e;this._renderInlineTag($,function(){$.declarationReference&&(t._writeContent(" "),t._renderNode($.declarationReference))});break;case g.InlineTag:var K=e;this._renderInlineTag(K,function(){K.tagContent.length>0&&(t._writeContent(" "),t._writeContent(K.tagContent))});break;case g.LinkTag:var C=e;this._renderInlineTag(C,function(){(C.urlDestination!==void 0||C.codeDestination!==void 0)&&(C.urlDestination!==void 0?(t._writeContent(" "),t._writeContent(C.urlDestination)):C.codeDestination!==void 0&&(t._writeContent(" "),t._renderNode(C.codeDestination))),C.linkText!==void 0&&(t._writeContent(" "),t._writeContent("|"),t._writeContent(" "),t._writeContent(C.linkText))});break;case g.MemberIdentifier:var H=e;H.hasQuotes?(this._writeContent('"'),this._writeContent(H.identifier),this._writeContent('"')):this._writeContent(H.identifier);break;case g.MemberReference:var I=e;I.hasDot&&this._writeContent("."),I.selector&&this._writeContent("("),I.memberSymbol?this._renderNode(I.memberSymbol):this._renderNode(I.memberIdentifier),I.selector&&(this._writeContent(":"),this._renderNode(I.selector),this._writeContent(")"));break;case g.MemberSelector:var J=e;this._writeContent(J.selector);break;case g.MemberSymbol:var te=e;this._writeContent("["),this._renderNode(te.symbolReference),this._writeContent("]");break;case g.Section:var ne=e;this._renderNodes(ne.nodes);break;case g.Paragraph:var Q=Or.trimSpacesInParagraph(e);Q.nodes.length>0&&(this._hangingParagraph?this._hangingParagraph=!1:this._ensureLineSkipped(),this._renderNodes(Q.nodes),this._writeNewline());break;case g.ParamBlock:var h=e;this._ensureLineSkipped(),this._renderNode(h.blockTag),this._writeContent(" "),this._writeContent(h.parameterName),this._writeContent(" - "),this._hangingParagraph=!0,this._renderNode(h.content),this._hangingParagraph=!1;break;case g.ParamCollection:var S=e;this._renderNodes(S.blocks);break;case g.PlainText:var f=e;this._writeContent(f.text);break}},n.prototype._renderInlineTag=function(e,t){this._writeContent("{"),this._writeContent(e.tagName),t(),this._writeContent("}")},n.prototype._renderNodes=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this._renderNode(i)}},
Line truncated
|
||||
`?(++t,r=1):++r)}return{line:t,column:r}},n.prototype._validateBounds=function(){if(this.pos<0)throw new Error("TextRange.pos cannot be negative");if(this.end<0)throw new Error("TextRange.end cannot be negative");if(this.end<this.pos)throw new Error("TextRange.end cannot be smaller than TextRange.pos");if(this.pos>this.buffer.length)throw new Error("TextRange.pos cannot exceed the associated text buffer length");if(this.end>this.buffer.length)throw new Error("TextRange.end cannot exceed the associated text buffer length")},n.empty=new n("",0,0),n}();var mn=function(){function n(e){this.messageId=e.messageId,this.unformattedText=e.messageText,this.textRange=e.textRange,this.tokenSequence=e.tokenSequence,this.docNode=e.docNode,this._text=void 0}return n._formatMessageText=function(e,t){if(e||(e="An unknown error occurred"),t.pos!==0||t.end!==0){var r=t.getLocation(t.pos);if(r.line)return"(".concat(r.line,",").concat(r.column,"): ")+e}return e},Object.defineProperty(n.prototype,"text",{get:function(){return this._text===void 0&&(this._text=n._formatMessageText(this.unformattedText,this.textRange)),this._text},enumerable:!1,configurable:!0}),n.prototype.toString=function(){return this.text},n}();var Br=function(){function n(){this._messages=[]}return Object.defineProperty(n.prototype,"messages",{get:function(){return this._messages},enumerable:!1,configurable:!0}),n.prototype.addMessage=function(e){this._messages.push(e)},n.prototype.addMessageForTextRange=function(e,t,r){this.addMessage(new mn({messageId:e,messageText:t,textRange:r}))},n.prototype.addMessageForTokenSequence=function(e,t,r,i){this.addMessage(new mn({messageId:e,messageText:t,textRange:r.getContainingTextRange(),tokenSequence:r,docNode:i}))},n.prototype.addMessageForDocErrorText=function(e){var t;e.textExcerpt?t=e.textExcerpt:t=e.errorLocation,this.addMessage(new mn({messageId:e.messageId,messageText:e.errorMessage,textRange:t.getContainingTextRange(),tokenSequence:t,docNode:e}))},n}();var Fr=function(){function n(e,t){this.commentRange=We.empty,this.lines=[],this.tokens=[],this.configuration=e,this.sourceRange=t,this.docComment=new Rn({configuration:this.configuration}),this.log=new Br}return n}();var xt=function(){function n(e){this.parserContext=e.parserContext,this._startIndex=e.startIndex,this._endIndex=e.endIndex,this._validateBounds()}return n.createEmpty=function(e){return new n({parserContext:e,startIndex:0,endIndex:0})},Object.defineProperty(n.prototype,"startIndex",{get:function(){return this._startIndex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endIndex",{get:function(){return this._endIndex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokens",{get:function(){return this.parserContext.tokens.slice(this._startIndex,this._endIndex)},enumerable:!1,configurable:!0}),n.prototype.getNewSequence=function(e,t){return new n({parserContext:this.parserContext,startIndex:e,endIndex:t})},n.prototype.getContainingTextRange=function(){return this.isEmpty()?We.empty:this.parserContext.sourceRange.getNewRange(this.parserContext.tokens[this._startIndex].range.pos,this.parserContext.tokens[this._endIndex-1].range.end)},n.prototype.isEmpty=function(){return this._startIndex===this._endIndex},n.prototype.toString=function(){return this.tokens.map(function(e){return e.toString()}).join("")},n.prototype._validateBounds=function(){if(this.startIndex<0)throw new Error("TokenSequence.startIndex cannot be negative");if(this.endIndex<0)throw new Error("TokenSequence.endIndex cannot be negative");if(this.endIndex<this.startIndex)throw new Error("TokenSequence.endIndex cannot be smaller than TokenSequence.startIndex");if(this.startIndex>this.parserContext.tokens.length)throw new Error("TokenSequence.startIndex cannot exceed the associated token array");if(this.endIndex>this.parserContext.tokens.length)throw new Error("TokenSequence.endIndex cannot exceed the associated token array")},n}();var pe;(function(n){n[n.BeginComment1=0]="BeginComment1",n[n.BeginComment2=1]="BeginComment2",n[n.CollectingFirstLine=2]="CollectingFirstLine",n[n.CollectingLine=3]="CollectingLine",n[n.AdvancingLine=4]="AdvancingLine",n[n.Done=5]="Done"})(pe||(pe={}));var Xi=function(){function n(){}return n.extract=function(e){for(var t=e.sourceRange,r=t.buffer,i=0,o=0,a=0,l=0,c=t.pos,d=pe.BeginComment1,m=[];d!==pe.Done;){if(c>=t.end)switch(d){case pe.BeginComment1:case pe.BeginComment2:return e.log.addMessageForTextRange(v.CommentNotFound,'Expecting a "/**" comment',t),!1;default:return e.log.addMessageForTextRange(v.CommentMissingClosingDelimiter,"Unexpected end of input",t),!1}var y=r[c],b=c;++c;var E=c<t.end?r[c]:"";switch(d){case pe.BeginComment1:if(y==="/"&&E==="*")i=b,++c,d=pe.BeginComment2;else if(!n._whitespaceCharacterRegExp.test(y))return e.log.addMessageForTextRange(v.CommentOpeningDelimiterSyntax,'Expecting a leading "/**"',t.getNewRange(b,b+1)),!1;break;case pe.BeginComment2:if(y==="*")E===" "&&++c,a=c,l=c,d=pe.CollectingFirstLine
Line truncated
|
||||
`?((d!==pe.CollectingFirstLine||l>a)&&m.push(t.getNewRange(a,l)),a=c,l=c,d=pe.AdvancingLine):y==="*"&&E==="/"?(l>a&&m.push(t.getNewRange(a,l)),a=0,l=0,++c,o=c,d=pe.Done):n._whitespaceCharacterRegExp.test(y)||(l=c);break;case pe.AdvancingLine:y==="*"?E==="/"?(a=0,l=0,++c,o=c,d=pe.Done):(E===" "&&++c,a=c,l=c,d=pe.CollectingLine):y===`
|
||||
`?(m.push(t.getNewRange(b,b)),a=c):n._whitespaceCharacterRegExp.test(y)||(l=c,d=pe.CollectingLine);break}}return e.commentRange=t.getNewRange(i,o),e.lines=m,!0},n._whitespaceCharacterRegExp=/^\s$/,n}();var gn=function(){function n(){}return n.readTokens=function(e){n._ensureInitialized();for(var t=[],r=void 0,i=0,o=e;i<o.length;i++){var a=o[i];n._pushTokensForLine(t,a),r=a}return r?t.push(new Ct(u.EndOfInput,r.getNewRange(r.end,r.end),r)):t.push(new Ct(u.EndOfInput,We.empty,We.empty)),t},n.isPunctuation=function(e){return n._ensureInitialized(),n._punctuationTokens[e]||!1},n._pushTokensForLine=function(e,t){for(var r=t.buffer,i=t.end,o=t.pos,a=void 0,l=o;o<i;){var c=r.charCodeAt(o),d=n._charCodeMap[c];d===void 0&&(d=u.Other),a!==void 0&&d===a&&n._isMultiCharacterToken(a)||(a!==void 0&&e.push(new Ct(a,t.getNewRange(l,o),t)),l=o,a=d),++o}a!==void 0&&e.push(new Ct(a,t.getNewRange(l,o),t)),e.push(new Ct(u.Newline,t.getNewRange(t.end,t.end),t))},n._isMultiCharacterToken=function(e){switch(e){case u.Spacing:case u.AsciiWord:case u.Other:return!0}return!1},n._ensureInitialized=function(){if(!n._charCodeMap){n._charCodeMap={},n._punctuationTokens={};for(var e=n._commonMarkPunctuationCharacters,t=0;t<e.length;++t){var r=e.charCodeAt(t);n._charCodeMap[r]=u.OtherPunctuation}for(var i={"\\":u.Backslash,"<":u.LessThan,">":u.GreaterThan,"=":u.Equals,"'":u.SingleQuote,'"':u.DoubleQuote,"/":u.Slash,"-":u.Hyphen,"@":u.AtSign,"{":u.LeftCurlyBracket,"}":u.RightCurlyBracket,"`":u.Backtick,".":u.Period,":":u.Colon,",":u.Comma,"[":u.LeftSquareBracket,"]":u.RightSquareBracket,"|":u.Pipe,"(":u.LeftParenthesis,")":u.RightParenthesis,"#":u.PoundSymbol,"+":u.Plus,$:u.DollarSign},o=0,a=Object.getOwnPropertyNames(i);o<a.length;o++){var l=a[o];n._charCodeMap[l.charCodeAt(0)]=i[l],n._punctuationTokens[i[l]]=!0}n._punctuationTokens[u.OtherPunctuation]=!0;for(var c=n._wordCharacters,t=0;t<c.length;++t){var r=c.charCodeAt(t);n._charCodeMap[r]=u.AsciiWord}n._charCodeMap[" ".charCodeAt(0)]=u.Spacing,n._charCodeMap[" ".charCodeAt(0)]=u.Spacing}},n._commonMarkPunctuationCharacters="!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~",n._wordCharacters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_",n}();var Ir=function(){function n(e,t){if(this._parserContext=e,this.tokens=e.tokens,t){if(t.parserContext!==this._parserContext)throw new Error("The embeddedTokenSequence must use the same parser context");this._readerStartIndex=t.startIndex,this._readerEndIndex=t.endIndex}else this._readerStartIndex=0,this._readerEndIndex=this.tokens.length;this._currentIndex=this._readerStartIndex,this._accumulatedStartIndex=this._readerStartIndex}return n.prototype.extractAccumulatedSequence=function(){if(this._accumulatedStartIndex===this._currentIndex)throw new Error("Parser assertion failed: The queue should not be empty when extractAccumulatedSequence() is called");var e=new xt({parserContext:this._parserContext,startIndex:this._accumulatedStartIndex,endIndex:this._currentIndex});return this._accumulatedStartIndex=this._currentIndex,e},n.prototype.isAccumulatedSequenceEmpty=function(){return this._accumulatedStartIndex===this._currentIndex},n.prototype.tryExtractAccumulatedSequence=function(){if(!this.isAccumulatedSequenceEmpty())return this.extractAccumulatedSequence()},n.prototype.assertAccumulatedSequenceIsEmpty=function(){if(!this.isAccumulatedSequenceEmpty()){var e=new xt({parserContext:this._parserContext,startIndex:this._accumulatedStartIndex,endIndex:this._currentIndex}),t=e.tokens.map(function(r){return r.toString()});throw new Error(`Parser assertion failed: The queue should be empty, but it contains:
|
||||
`+JSON.stringify(t))}},n.prototype.peekToken=function(){return this.tokens[this._currentIndex]},n.prototype.peekTokenKind=function(){return this._currentIndex>=this._readerEndIndex?u.EndOfInput:this.tokens[this._currentIndex].kind},n.prototype.peekTokenAfterKind=function(){return this._currentIndex+1>=this._readerEndIndex?u.EndOfInput:this.tokens[this._currentIndex+1].kind},n.prototype.peekTokenAfterAfterKind=function(){return this._currentIndex+2>=this._readerEndIndex?u.EndOfInput:this.tokens[this._currentIndex+2].kind},n.prototype.readToken=function(){if(this._currentIndex>=this._readerEndIndex)throw new Error("Cannot read past end of stream");var e=this.tokens[this._currentIndex];if(e.kind===u.EndOfInput)throw new Error("The EndOfInput token cannot be read");return this._currentIndex++,e},n.prototype.peekPreviousTokenKind=function(){return this._currentIndex===0?u.EndOfInput:this.tokens[this._currentIndex-1].kind},n.prototype.createMarker=function(){return this._currentIndex},n.prototype.backtrackToMarker=function(e){if(e>this._currentIndex)throw new Error("The marker has expired");this._currentIndex=e,e<this._accumulatedStartIndex&&(this._accumulatedStartIndex=e)},n}();var ar=function(){return ar=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},ar.apply(this,arguments)};function hn(n){return n!==void 0&&Object.hasOwnProperty.call(n,"failureMessage")}var Zi=function(){function n(e){this._parserContext=e,this._configuration=e.configuration,this._currentSection=e.docComment.summarySection}return n.prototype.parse=function(){for(var e=new Ir(this._parserContext),t=!1;!t;)switch(e.peekTokenKind()){case u.EndOfInput:t=!0;break;case u.Newline:this._pushAccumulatedPlainText(e),e.readToken(),this._pushNode(new er({parsed:!0,configuration:this._configuration,softBreakExcerpt:e.extractAccumulatedSequence()}));break;case u.Backslash:this._pushAccumulatedPlainText(e),this._pushNode(this._parseBackslashEscape(e));break;case u.AtSign:this._pushAccumulatedPlainText(e),this._parseAndPushBlock(e);break;case u.LeftCurlyBracket:{this._pushAccumulatedPlainText(e);var r=e.createMarker(),i=this._parseInlineTag(e),o=this._parserContext.docComment;if(i instanceof un){var a=e.createMarker()-1;o.inheritDocTag===void 0?this._parserContext.docComment.inheritDocTag=i:this._pushNode(this._backtrackAndCreateErrorRange(e,r,a,v.ExtraInheritDocTag,"A doc comment cannot have more than one @inheritDoc tag"))}else this._pushNode(i);break}case u.RightCurlyBracket:this._pushAccumulatedPlainText(e),this._pushNode(this._createError(e,v.EscapeRightBrace,'The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag'));break;case u.LessThan:this._pushAccumulatedPlainText(e),e.peekTokenAfterKind()===u.Slash?this._pushNode(this._parseHtmlEndTag(e)):this._pushNode(this._parseHtmlStartTag(e));break;case u.GreaterThan:this._pushAccumulatedPlainText(e),this._pushNode(this._createError(e,v.EscapeGreaterThan,'The ">" character should be escaped using a backslash to avoid confusion with an HTML tag'));break;case u.Backtick:this._pushAccumulatedPlainText(e),e.peekTokenAfterKind()===u.Backtick&&e.peekTokenAfterAfterKind()===u.Backtick?this._pushNode(this._parseFencedCode(e)):this._pushNode(this._parseCodeSpan(e));break;default:e.readToken();break}this._pushAccumulatedPlainText(e),this._performValidationChecks()},n.prototype._performValidationChecks=function(){var e=this._parserContext.docComment;e.deprecatedBlock&&(or.hasAnyTextContent(e.deprecatedBlock)||this._parserContext.log.addMessageForTokenSequence(v.MissingDeprecationMessage,"The ".concat(e.deprecatedBlock.blockTag.tagName," block must include a deprecation message,")+" e.g. describing the recommended alternative",e.deprecatedBlock.blockTag.getTokenSequence(),e.deprecatedBlock)),e.inheritDocTag&&(e.remarksBlock&&this._parserContext.log.addMessageForTokenSequence(v.InheritDocIncompatibleTag,'A "'.concat(e.remarksBlock.blockTag.tagName,'" block must not be used, because that')+" content is provided by the @inheritDoc tag",e.remarksBlock.blockTag.getTokenSequence(),e.remarksBlock.blockTag),or.hasAnyTextContent(e.summarySection)&&this._parserContext.log.addMessageForTextRange(v.InheritDocIncompatibleSummary,"The summary section must not have any content, because that content is provided by the @inheritDoc tag",this._parserContext.commentRange))},n.prototype._validateTagDefinition=function(e,t,r,i,o){if(e){var a=e.syntaxKind===R.InlineTag;a!==r?r?this._parserContext.log.addMessageForTokenSequence(v.TagShouldNotHaveBraces,'The TSDoc tag "'.concat(t,'" is not an inline tag; it must not be enclosed in "{ }" braces'),i,o):this._parserContext.log.addMessageForTokenSequence(v.InlineTagMissingBraces,'The TSDoc tag "'.concat(t,'" is an inline tag; it must be enclosed in "{ }" braces'),i,o):this._parserContext.configuration.validation.reportUnsupportedTags&&(this._
Line truncated
|
||||
`)).join(`
|
||||
`)}catch(e){throw console.error("Failed to parse sumamry section"),e}}function ns(n){if(!n)return"";try{return n.content.nodes[0].getChildNodes()[0].text.trim()}catch{return""}}function rs(n){try{return n.blocks.map(r=>{let i=r.parameterName,o=r.content.getChildNodes()[0].getChildNodes().filter(a=>a instanceof Ge).map(a=>a.text).join(" ");return new Hr(i,o)})}catch{return[]}}function Pt(n,e,t){if(t<0||t===n.length)return;let r=n[e];n[e]=n[t],n[t]=r}function Jt(n){return n.workspace.activeEditor?.file??n.workspace.getActiveFile()}function oo(n){let e=n.lastIndexOf("/");return e!==-1?n.slice(0,e):""}function $r(n){return n!==null&&typeof n=="object"}function ao(n){let e=n.toString(),t=e.indexOf("(");return e.substring(t+1,e.indexOf(")")).replace(/ /g,"").split(",")}function Kr(n,e,t){let r=n instanceof HTMLOListElement?"li":"p",i=n.createEl(r),o=n.createEl("b",{text:e});return i.appendChild(o),i.appendChild(document.createTextNode(`: ${t}`)),i}var Po=X(require("obsidian"));var Co=X(require("obsidian"));var ie="top",ue="bottom",ce="right",ae="left",sr="auto",yt=[ie,ue,ce,ae],lt="start",Nt="end",so="clippingParents",cr="viewport",Qt="popper",co="reference",Rr=yt.reduce(function(n,e){return n.concat([e+"-"+lt,e+"-"+Nt])},[]),lr=[].concat(yt,[sr]).reduce(function(n,e){return n.concat([e,e+"-"+lt,e+"-"+Nt])},[]),is="beforeRead",os="read",as="afterRead",ss="beforeMain",cs="main",ls="afterMain",ps="beforeWrite",us="write",fs="afterWrite",lo=[is,os,as,ss,cs,ls,ps,us,fs];function de(n){return n?(n.nodeName||"").toLowerCase():null}function Z(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function De(n){var e=Z(n).Element;return n instanceof e||n instanceof Element}function fe(n){var e=Z(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Xt(n){if(typeof ShadowRoot=="undefined")return!1;var e=Z(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function ds(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!fe(o)||!de(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function ms(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!fe(i)||!de(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var po={name:"applyStyles",enabled:!0,phase:"write",fn:ds,effect:ms,requires:["computeStyles"]};function me(n){return n.split("-")[0]}var Fe=Math.max,Ot=Math.min,pt=Math.round;function Zt(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function _n(){return!/^((?!chrome|android).)*safari/i.test(Zt())}function Pe(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&fe(n)&&(i=n.offsetWidth>0&&pt(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&pt(r.height)/n.offsetHeight||1);var a=De(n)?Z(n):window,l=a.visualViewport,c=!_n()&&t,d=(r.left+(c&&l?l.offsetLeft:0))/i,m=(r.top+(c&&l?l.offsetTop:0))/o,y=r.width/i,b=r.height/o;return{width:y,height:b,top:m,right:d+y,bottom:m+b,left:d,x:d,y:m}}function Mt(n){var e=Pe(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function xn(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Xt(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ve(n){return Z(n).getComputedStyle(n)}function Yr(n){return["table","td","th"].indexOf(de(n))>=0}function he(n){return((De(n)?n.ownerDocument:n.document)||window.document).documentElement}function ut(n){return de(n)==="html"?n:n.assignedSlot||n.parentNode||(Xt(n)?n.host:null)||he(n)}function uo(n){return!fe(n)||ve(n).position==="fixed"?null:n.offsetParent}function gs(n){var e=/firefox/i.test(Zt()),t=/Trident/i.test(Zt());if(t&&fe(n)){var r=ve(n);if(r.position==="fixed")return null}var i=ut(n);for(Xt(i)&&(i=i.host);fe(i)&&["html","body"].indexOf(de(i))<0;){var o=ve(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ie(n){for(var e=Z(n),t=uo(n);t&&Yr(t)&&ve(t).position==="static";)t=uo(t);return t&&(de(t)==="html"||de(t)==="body"&&ve(t).position==="static")
Line truncated
|
||||
> \u2014 ${o}`}catch{return new O("Error generating daily quote"),"Error generating daily quote"}}}generate_random_picture(){return async(e,t,r=!1)=>{try{let i=await this.getRequest(`https://templater-unsplash-2.fly.dev/${t?"?q="+t:""}`).then(a=>a.json),o=i.full;if(e&&!r)if(e.includes("x")){let[a,l]=e.split("x");o=o.concat(`&w=${a}&h=${l}`)}else o=o.concat(`&w=${e}`);return r?``:``}catch{return new O("Error generating random picture"),"Error generating random picture"}}}generate_request(){return async(e,t)=>{try{let i=await(await this.getRequest(e)).json;return t&&i?t.split(".").reduce((o,a)=>{if(o&&o.hasOwnProperty(a))return o[a];throw new Error(`Path ${t} not found in the JSON response`)},i):i}catch(r){throw console.error(r),new O("Error fetching and extracting value")}}}};var ci=class extends we{constructor(){super(...arguments);this.name="hooks";this.event_refs=[]}async create_static_templates(){this.static_functions.set("on_all_templates_executed",this.generate_on_all_templates_executed())}async create_dynamic_templates(){}async teardown(){this.event_refs.forEach(e=>{e.e.offref(e)}),this.event_refs=[]}generate_on_all_templates_executed(){return e=>{let t=this.plugin.app.workspace.on("templater:all-templates-executed",async()=>{await An(1),e()});t&&this.event_refs.push(t)}}};var li=class extends we{constructor(){super(...arguments);this.name="frontmatter"}async create_static_templates(){}async create_dynamic_templates(){let e=this.plugin.app.metadataCache.getFileCache(this.config.target_file);this.dynamic_functions=new Map(Object.entries(e?.frontmatter||{}))}async teardown(){}};var Je=X(require("obsidian"));var pi=class extends Je.Modal{constructor(e,t,r,i){super(e);this.prompt_text=t;this.default_value=r;this.multi_line=i;this.submitted=!1}onOpen(){this.titleEl.setText(this.prompt_text),this.createForm()}onClose(){this.contentEl.empty(),this.submitted||this.reject(new O("Cancelled prompt"))}createForm(){let e=this.contentEl.createDiv();e.addClass("templater-prompt-div");let t;if(this.multi_line){t=new Je.TextAreaComponent(e);let r=this.contentEl.createDiv();r.addClass("templater-button-div");let i=new Je.ButtonComponent(r);i.buttonEl.addClass("mod-cta"),i.setButtonText("Submit").onClick(o=>{this.resolveAndClose(o)})}else t=new Je.TextComponent(e);this.value=this.default_value??"",t.inputEl.addClass("templater-prompt-input"),t.setPlaceholder("Type text here"),t.setValue(this.value),t.onChange(r=>this.value=r),t.inputEl.focus(),t.inputEl.addEventListener("keydown",r=>this.enterCallback(r))}enterCallback(e){e.isComposing||e.keyCode===229||(this.multi_line?Je.Platform.isDesktop&&e.key==="Enter"&&!e.shiftKey&&this.resolveAndClose(e):e.key==="Enter"&&this.resolveAndClose(e))}resolveAndClose(e){this.submitted=!0,e.preventDefault(),this.resolve(this.value),this.close()}async openAndGetValue(e,t){this.resolve=e,this.reject=t,this.open()}};var $o=X(require("obsidian")),ui=class extends $o.FuzzySuggestModal{constructor(e,t,r,i,o){super(e);this.text_items=t;this.items=r;this.submitted=!1;this.setPlaceholder(i),o&&(this.limit=o)}getItems(){return this.items}onClose(){this.submitted||this.reject(new O("Cancelled prompt"))}selectSuggestion(e,t){this.submitted=!0,this.close(),this.onChooseSuggestion(e,t)}getItemText(e){return this.text_items instanceof Function?this.text_items(e):this.text_items[this.items.indexOf(e)]||"Undefined Text Item"}onChooseItem(e){this.resolve(e)}async openAndGetValue(e,t){this.resolve=e,this.reject=t,this.open()}};var fi=class extends we{constructor(){super(...arguments);this.name="system"}async create_static_templates(){this.static_functions.set("clipboard",this.generate_clipboard()),this.static_functions.set("prompt",this.generate_prompt()),this.static_functions.set("suggester",this.generate_suggester())}async create_dynamic_templates(){}async teardown(){}generate_clipboard(){return async()=>await navigator.clipboard.readText()}generate_prompt(){return async(e,t,r=!1,i=!1)=>{let o=new pi(this.plugin.app,e,t,i),a=new Promise((l,c)=>o.openAndGetValue(l,c));try{return await a}catch(l){if(r)throw l;return null}}}generate_suggester(){return async(e,t,r=!1,i="",o)=>{let a=new ui(this.plugin.app,e,t,i,o),l=new Promise((c,d)=>a.openAndGetValue(c,d));try{return await l}catch(c){if(r)throw c;return null}}}};var di=class extends we{constructor(){super(...arguments);this.name="config"}async create_static_templates(){}async create_dynamic_templates(){}async teardown(){}async generate_object(e){return e}};var mi=class{constructor(e){this.plugin=e;this.modules_array=[];this.modules_array.push(new oi(this.plugin)),this.modules_array.push(new ai(this.plugin)),this.modules_array.push(new si(this.plugin)),this.modules_array.push(new li(this.plugin)),this.modules_array.push(new ci(this.plugin)),this.modules_array.push(new fi(this.plugin)),this.modules_array.push(new di(this.plugin))}async in
Line truncated
|
||||
})`)(r,o,i)}catch(c){throw new O(`Failed to load user script at "${e.path}".`,c.message)}let l=i.default||o.exports;if(!l)throw new O(`Failed to load user script at "${e.path}". No exports detected.`);if(!(l instanceof Function))throw new O(`Failed to load user script at "${e.path}". Default export is not a function.`);t.set(`${e.basename}`,l)}async generate_object(){let e=await this.generate_user_script_functions();return Object.fromEntries(e)}};var Ai=class{constructor(e){this.plugin=e;this.user_system_functions=new gi(e),this.user_script_functions=new hi(e)}async generate_object(e){let t={},r={};return this.plugin.settings.enable_system_commands&&(t=await this.user_system_functions.generate_object(e)),this.plugin.settings.user_scripts_folder&&(r=await this.user_script_functions.generate_object()),{...t,...r}}};var qs=X(require("obsidian")),Qe;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.USER_INTERNAL=1]="USER_INTERNAL"})(Qe||(Qe={}));var _i=class{constructor(e){this.plugin=e;this.internal_functions=new mi(this.plugin),this.user_functions=new Ai(this.plugin)}async init(){await this.internal_functions.init()}async teardown(){await this.internal_functions.teardown()}additional_functions(){return{app:this.plugin.app,obsidian:qs}}async generate_object(e,t=1){let r={},i=this.additional_functions(),o=await this.internal_functions.generate_object(e),a={};switch(Object.assign(r,i),t){case 0:Object.assign(r,o);break;case 1:a=await this.user_functions.generate_object(e),Object.assign(r,{...o,user:a});break}return r}};var Vs={},N,He=new Array(32).fill(void 0);He.push(void 0,null,!0,!1);function Se(n){return He[n]}var kn=He.length;function Ls(n){n<36||(He[n]=kn,kn=n)}function xi(n){let e=Se(n);return Ls(n),e}var Ko=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ko.decode();var mr=new Uint8Array;function gr(){return mr.byteLength===0&&(mr=new Uint8Array(N.memory.buffer)),mr}function vt(n,e){return Ko.decode(gr().subarray(n,n+e))}function wt(n){kn===He.length&&He.push(He.length+1);let e=kn;return kn=He[e],He[e]=n,e}var $e=0,hr=new TextEncoder("utf-8"),Hs=typeof hr.encodeInto=="function"?function(n,e){return hr.encodeInto(n,e)}:function(n,e){let t=hr.encode(n);return e.set(t),{read:n.length,written:t.length}};function mt(n,e,t){if(t===void 0){let l=hr.encode(n),c=e(l.length);return gr().subarray(c,c+l.length).set(l),$e=l.length,c}let r=n.length,i=e(r),o=gr(),a=0;for(;a<r;a++){let l=n.charCodeAt(a);if(l>127)break;o[i+a]=l}if(a!==r){a!==0&&(n=n.slice(a)),i=t(i,r,r=a+n.length*3);let l=gr().subarray(i+a,i+r);a+=Hs(n,l).written}return $e=a,i}function $s(n){return n==null}var Ar=new Int32Array;function Ce(){return Ar.byteLength===0&&(Ar=new Int32Array(N.memory.buffer)),Ar}function yi(n){let e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){let i=n.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){let i=n.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){let i=n.length,o="[";i>0&&(o+=yi(n[0]));for(let a=1;a<i;a++)o+=", "+yi(n[a]);return o+="]",o}let t=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(t.length>1)r=t[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
||||
${n.stack}`:r}function Ks(n,e){if(!(n instanceof e))throw new Error(`expected instance of ${e.name}`);return n.ptr}var _r=32;function Rs(n){if(_r==1)throw new Error("out of js stack");return He[--_r]=n,_r}function ji(n,e){try{return n.apply(this,e)}catch(t){N.__wbindgen_exn_store(wt(t))}}var Ht=class{static __wrap(e){let t=Object.create(Ht.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();N.__wbg_parserconfig_free(e)}get interpolate(){let e=N.__wbg_get_parserconfig_interpolate(this.ptr);return String.fromCodePoint(e)}set interpolate(e){N.__wbg_set_parserconfig_interpolate(this.ptr,e.codePointAt(0))}get execution(){let e=N.__wbg_get_parserconfig_execution(this.ptr);return String.fromCodePoint(e)}set execution(e){N.__wbg_set_parserconfig_execution(this.ptr,e.codePointAt(0))}get single_whitespace(){let e=N.__wbg_get_parserconfig_single_whitespace(this.ptr);return String.fromCodePoint(e)}set single_whitespace(e){N.__wbg_set_parserconfig_single_whitespace(this.ptr,e.codePointAt(0))}get multiple_whitespace(){let e=N.__wbg_get_parserconfig_multiple_whitespace(this.ptr);return String.fromCodePoint(e)}set multiple_whitespace(e){N.__wbg_set_parserconfig_multiple_whitespace(this.ptr,e.codePointAt(0))}constructor(e,t,r,i,o,a,l){let c=mt(e,N.__wbindgen_malloc,N.__wbindgen_realloc),d=$e,m=mt(t,N.__wbindgen_malloc,N.__wbindgen_realloc),y=$e,b=mt(l,N.__wbindgen_malloc,N.__wbindgen_realloc),E=$e,P=N.parserconfig_new(c,d,m,y,r.codePointAt(0),i.codePointAt(0),o.codePointAt(0),a.codePointAt(0),b,E);return Ht.__wrap(P)}get opening_tag(){try{let r=N.__wbindgen_add_to_stack_pointer(-16);N.parserconfig_opening_tag(r,this.ptr);var e=Ce()[r/4+0],t=Ce()[r/4+1];return vt(e,t)}finally{N.__wbindgen_add_to_stack_pointer(16),N.__wbindgen_free(e,t)}}set opening_tag(e){let t=mt(e,N.__wbindgen_malloc,N.__wbindgen_realloc),r=$e;N.parserconfig_set_opening_tag(this.ptr,t,r)}get closing_tag(){try{let r=N.__wbindgen_add_to_stack_pointer(-16);N.parserconfig_closing_tag(r,this.ptr);var e=Ce()[r/4+0],t=Ce()[r/4+1];return vt(e,t)}finally{N.__wbindgen_add_to_stack_pointer(16),N.__wbindgen_free(e,t)}}set closing_tag(e){let t=mt(e,N.__wbindgen_malloc,N.__wbindgen_realloc),r=$e;N.parserconfig_set_closing_tag(this.ptr,t,r)}get global_var(){try{let r=N.__wbindgen_add_to_stack_pointer(-16);N.parserconfig_global_var(r,this.ptr);var e=Ce()[r/4+0],t=Ce()[r/4+1];return vt(e,t)}finally{N.__wbindgen_add_to_stack_pointer(16),N.__wbindgen_free(e,t)}}set global_var(e){let t=mt(e,N.__wbindgen_malloc,N.__wbindgen_realloc),r=$e;N.parserconfig_set_global_var(this.ptr,t,r)}},on=class{static __wrap(e){let t=Object.create(on.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();N.__wbg_renderer_free(e)}constructor(e){Ks(e,Ht);var t=e.ptr;e.ptr=0;let r=N.renderer_new(t);return on.__wrap(r)}render_content(e,t){try{let a=N.__wbindgen_add_to_stack_pointer(-16),l=mt(e,N.__wbindgen_malloc,N.__wbindgen_realloc),c=$e;N.renderer_render_content(a,this.ptr,l,c,Rs(t));var r=Ce()[a/4+0],i=Ce()[a/4+1],o=Ce()[a/4+2];if(o)throw xi(i);return xi(r)}finally{N.__wbindgen_add_to_stack_pointer(16),He[_r++]=void 0}}};async function Ys(n,e){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,e)}catch(r){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let t=await n.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}}function Us(){let n={};return n.wbg={},n.wbg.__wbindgen_object_drop_ref=function(e){xi(e)},n.wbg.__wbindgen_string_new=function(e,t){let r=vt(e,t);return wt(r)},n.wbg.__wbindgen_string_get=function(e,t){let r=Se(t),i=typeof r=="string"?r:void 0;var o=$s(i)?0:mt(i,N.__wbindgen_malloc,N.__wbindgen_realloc),a=$e;Ce()[e/4+1]=a,Ce()[e/4+0]=o},n.wbg.__wbg_call_97ae9d8645dc388b=function(){return ji(function(e,t){let r=Se(e).call(Se(t));return wt(r)},arguments)},n.wbg.__wbg_new_8d2af00bc1e329ee=function(e,t){let r=new Error(vt(e,t));return wt(r)},n.wbg.__wbg_message_fe2af63ccc8985bc=function(e){let t=Se(e).message;return wt(t)},n.wbg.__wbg_newwithargs_8fe23e3842840c8e=function(e,t,r,i){let o=new Function(vt(e,t),vt(r,i));return wt(o)},n.wbg.__wbg_call_168da88779e35f61=function(){return ji(function(e,t,r){let i=Se(e).call(Se(t),Se(r));return wt(i)},arguments)},n.wbg.__wbg_call_3999bee59e9f7719=function(){return ji(function(e,t,r,i){let o=Se(e).call(Se(t),Se(r),Se(i));return wt(o)},arguments)},n.wbg.__wbindgen_debug_string=function(e,t){let r=yi(Se(t)),i=mt(r,N.__wbindgen_malloc,N.__wbindgen_realloc),o=$e;Ce
Line truncated
|
||||
`,a+1))!==-1;i++,o=a);o+=1;let l=e.slice(o,t).length;return{line:i,ch:l}}replace_and_get_cursor_positions(e){let t=[],r,i=new RegExp("<%\\s*tp.file.cursor\\((?<order>[0-9]*)\\)\\s*%>","g");for(;(r=i.exec(e))!=null;)t.push(r);if(t.length===0)return{};t.sort((c,d)=>Number(c.groups&&c.groups.order)-Number(d.groups&&d.groups.order));let o=t[0][0];t=t.filter(c=>c[0]===o);let a=[],l=0;for(let c of t){let d=c.index-l;if(a.push(this.get_editor_position_from_index(e,d)),e=e.replace(new RegExp(no(c[0])),""),l+=c[0].length,c[1]==="")break}return{new_content:e,positions:a}}set_cursor_location(e){let t=this.app.workspace.activeEditor;if(!t||!t.editor)return;let r=t.editor,i=[];for(let a of e)i.push({from:a});let o={selections:i};r.transaction(o)}};var Jo=X(require("obsidian"));var Js={app:{name:"app",description:"This module exposes the app instance. Prefer to use this over the global app instance."},user:{name:"user",description:"This module exposes custom made scripts, written by yourself within the script file folder location"},config:{name:"config",description:`This module exposes Templater's running configuration.
|
||||
|
||||
This is mostly useful when writing scripts requiring some context information.
|
||||
`,functions:{template_file:{name:"template_file",description:"The `TFile` object representing the template file.",definition:"tp.config.template_file"},target_file:{name:"target_file",description:"The `TFile` object representing the target file where the template will be inserted.",definition:"tp.config.target_file"},run_mode:{name:"run_mode",description:"The `RunMode`, representing the way Templater was launched (Create new from template, Append to active file, ...).",definition:"tp.config.run_mode"},active_file:{name:"active_file",description:"The active file (if existing) when launching Templater.",definition:"tp.config.active_file?"}}},date:{name:"date",description:"This module contains every internal function related to dates.",functions:{now:{name:"now",description:"Retrieves the date.",definition:'tp.date.now(format: string = "YYYY-MM-DD", offset?: number\u23AEstring, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'},{name:"offset",description:"Duration to offset the date from. If a number is provided, duration will be added to the date in days. You can also specify the offset as a string using the ISO 8601 format."},{name:"reference",description:"The date referential, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/)."}],examples:[{name:"Date now",example:"<% tp.date.now() %>"},{name:"Date now with format",example:'<% tp.date.now("Do MMMM YYYY") %>'},{name:"Last week",example:'<% tp.date.now("YYYY-MM-DD", -7) %>'},{name:"Next week",example:'<% tp.date.now("YYYY-MM-DD", 7) %>'},{name:"Last month",example:'<% tp.date.now("YYYY-MM-DD", "P-1M") %>'},{name:"Next year",example:'<% tp.date.now("YYYY-MM-DD", "P1Y") %>'},{name:"File's title date + 1 day (tomorrow)",example:'<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>'},{name:"File's title date - 1 day (yesterday)",example:'<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>'}]},tomorrow:{name:"tomorrow",description:"Retrieves tomorrow's date.",definition:'tp.date.tomorrow(format: string = "YYYY-MM-DD")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"Date tomorrow",example:"<% tp.date.tomorrow() %>"},{name:"Date tomorrow with format",example:'<% tp.date.tomorrow("Do MMMM YYYY") %>'}]},yesterday:{name:"yesterday",description:"Retrieves yesterday's date.",definition:'tp.date.yesterday(format: string = "YYYY-MM-DD")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"Date yesterday",example:"<% tp.date.yesterday() %>"},{name:"Date yesterday with format",example:'<% tp.date.yesterday("Do MMMM YYYY") %>'}]},weekday:{name:"weekday",description:"",definition:'tp.date.weekday(format: string = "YYYY-MM-DD", weekday: number, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'},{name:"weekday",description:"Week day number. If the locale assigns Monday as the first day of the week, `0` will be Monday, `-7` will be last week's day."},{name:"reference",description:"The date referential, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/)."}],examples:[{name:"This week's Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 0) %>'},{name:"Next Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 7) %>'},{name:"File's title Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD") %>'},{name:"File's title previous Monday",example:'<% tp.date.weekday("YYYY-MM-DD", -7, tp.file.title, "YYYY-MM-DD") %>'}]}},momentjs:{examples:[{name:"Date now",example:'<% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>'},{name:"Get start of month from note title",example:'<% moment(tp.file.title, "YYYY-MM-DD").startOf("month").format("YYYY-MM-DD") %>'},{name:"Get end of month from note title",example:'<% moment(tp.file.title, "YYYY-MM-DD").endOf("month").format("YYYY-MM-DD") %>'}]}},file:{name:"file",description:"This module contains every internal function related to files.",functions:{content:{name:"content",description:"The string contents of the file at the time that Templater was executed. Manipulating this string will *not* update the current file.",definition:"tp.file.content",examples:[{name:"Retrieve file content",example:"<% tp.file.content %>"}]},create_new:{name:"create_new
Line truncated
|
||||
|
||||
You can navigate between the different cursors using the configured hotkey in Obsidian settings.
|
||||
`,definition:"tp.file.cursor(order?: number)",args:[{name:"order",description:`The order of the different cursors jump, e.g. it will jump from 1 to 2 to 3, and so on.
|
||||
If you specify multiple tp.file.cursor with the same order, the editor will switch to multi-cursor.
|
||||
`}],examples:[{name:"File cursor",example:"<% tp.file.cursor() %>"},{name:"File multi-cursor",example:"<% tp.file.cursor(1) %>Content<% tp.file.cursor(1) %>"}]},cursor_append:{name:"cursor_append",description:"Appends some content after the active cursor in the file.",definition:"tp.file.cursor_append(content: string)",args:[{name:"content",description:"The content to append after the active cursor."}],examples:[{name:"File cursor append",example:'<% tp.file.cursor_append("Some text") %>'}]},exists:{name:"exists",description:"Check to see if a file exists by it's file path. The full path to the file, relative to the Vault and containing the extension, must be provided.",definition:"tp.file.exists(filepath: string)",args:[{name:"filepath",description:"The full file path of the file we want to check existence for."}],examples:[{name:"File existence",example:'<% await tp.file.exists("MyFolder/MyFile.md") %>'},{name:"File existence of current file",example:'<% await tp.file.exists(tp.file.folder(true) + "/" + tp.file.title + ".md") %>'}]},find_tfile:{name:"find_tfile",description:"Search for a file and returns its `TFile` instance.",definition:"tp.file.find_tfile(filename: string)",args:[{name:"filename",description:"The filename we want to search and resolve as a `TFile`."}],examples:[{name:"File find TFile",example:'<% tp.file.find_tfile("MyFile").basename %>'}]},folder:{name:"folder",description:"Retrieves the file's folder name.",definition:"tp.file.folder(absolute: boolean = false)",args:[{name:"absolute",description:"If set to `true`, returns the vault-absolute path of the folder. If `false`, only returns the basename of the folder (the last part). Defaults to `false`."}],examples:[{name:"File folder (Folder)",example:"<% tp.file.folder() %>"},{name:"File folder with vault-absolute path (Path/To/Folder)",example:"<% tp.file.folder(true) %>"}]},include:{name:"include",description:"Includes the file's link content. Templates in the included content will be resolved.",definition:"tp.file.include(include_link: string \u23AE TFile)",args:[{name:"include_link",description:'The link to the file to include, e.g. `"[[MyFile]]"`, or a TFile object. Also supports sections or blocks inclusions.'}],examples:[{name:"File include",example:'<% tp.file.include("[[Template1]]") %>'},{name:"File include TFile",example:'<% tp.file.include(tp.file.find_tfile("MyFile")) %>'},{name:"File include section",example:'<% tp.file.include("[[MyFile#Section1]]") %>'},{name:"File include block",example:'<% tp.file.include("[[MyFile#^block1]]") %>'}]},last_modified_date:{name:"last_modified_date",description:"Retrieves the file's last modification date.",definition:'tp.file.last_modified_date(format: string = "YYYY-MM-DD HH:mm")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD HH:mm"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"File last modified date",example:"<% tp.file.last_modified_date() %>"},{name:"File last modified date with format",example:'<% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm") %>'}]},move:{name:"move",description:"Moves the file to the desired vault location.",definition:"tp.file.move(new_path: string, file_to_move?: TFile)",args:[{name:"new_path",description:'The new vault relative path of the file, without the file extension. Note: the new path needs to include the folder and the filename, e.g. `"/Notes/MyNote"`.'},{name:"file_to_move",description:"The file to move, defaults to the current file."}],examples:[{name:"File move",example:'<% await tp.file.move("/A/B/" + tp.file.title) %>'},{name:"File move and rename",example:'<% await tp.file.move("/A/B/NewTitle") %>'}]},path:{name:"path",description:"Retrieves the file's absolute path on the system.",definition:"tp.file.path(relative: boolean = false)",args:[{name:"relative",description:"If set to `true`, only retrieves the vault's relative path."}],examples:[{name:"File path",example:"<% tp.file.path() %>"},{name:"File relative path (relative to vault root)",example:"<% tp.file.path(true) %>"}]},rename:{name:"rename",description:"Renames the file (keeps the same file extension).",definition:"tp.file.rename(new_title: string)",args:[{name:"new_title",description:"The new file title."}],examples:[{name:"File rename",example:'<% await tp.file.rename("MyNewName") %>'},{name:"File append a 2 to the file name",example:'<% await tp.file.rename(tp.file.title + "2") %>'}]},selection:{name:"selection",description:"Retrieves the active file's text selection.",definition:"tp.file.selection()",examples:[{name:"File selection",example:"<% tp.file.selection() %>"}]},tags:{name:"tags",description:"Retrieves the file's tags (array of string).",definition:"tp.file.tags",examples:[{name:"File tags",example:"<% tp.file.tags %>"}]},title:{name:"title",definition:"tp.file.title",description:"Retrieves the file's title.",examples:[{name:"File title",example:"<% tp.file.title %>"},{name:"Stri
Line truncated
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "templater-obsidian",
|
||||
"name": "Templater",
|
||||
"version": "2.11.3",
|
||||
"description": "Create and use templates",
|
||||
"minAppVersion": "1.5.0",
|
||||
"author": "SilentVoid",
|
||||
"authorUrl": "https://github.com/SilentVoid13",
|
||||
"helpUrl": "https://silentvoid13.github.io/Templater/",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+220
@@ -0,0 +1,220 @@
|
||||
.templater_search {
|
||||
width: calc(100% - 20px);
|
||||
}
|
||||
|
||||
.templater_div {
|
||||
border-top: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.templater_div > .setting-item {
|
||||
border-top: none !important;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.templater_div > .setting-item > .setting-item-control {
|
||||
justify-content: space-around;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.templater_div
|
||||
> .setting-item
|
||||
> .setting-item-control
|
||||
> .setting-editor-extra-setting-button {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.templater_donating {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.templater_title {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin-top: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.templater_template {
|
||||
align-self: center;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.templater_cmd {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.templater_div2 > .setting-item {
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.templater-prompt-div {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.templater-prompt-form {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.templater-prompt-input {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.templater-button-div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
textarea.templater-prompt-input {
|
||||
height: 10rem;
|
||||
}
|
||||
|
||||
textarea.templater-prompt-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .templater-command-bg {
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
background-color: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command {
|
||||
font-size: 0.85em;
|
||||
font-family: var(--font-monospace);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .templater-inline .cm-templater-command {
|
||||
background-color: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-opening-tag {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-closing-tag {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-interpolation-tag {
|
||||
color: var(--code-property, #008bff);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-execution-tag {
|
||||
color: var(--code-function, #c0d700);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-keyword {
|
||||
color: var(--code-keyword, #00a7aa);
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-atom {
|
||||
color: var(--code-normal, #f39b35);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-value,
|
||||
.cm-s-obsidian .cm-templater-command.cm-number,
|
||||
.cm-s-obsidian .cm-templater-command.cm-type {
|
||||
color: var(--code-value, #a06fca);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-def,
|
||||
.cm-s-obsidian .cm-templater-command.cm-type.cm-def {
|
||||
color: var(--code-normal, var(--text-normal));
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-property,
|
||||
.cm-s-obsidian .cm-templater-command.cm-property.cm-def,
|
||||
.cm-s-obsidian .cm-templater-command.cm-attribute {
|
||||
color: var(--code-function, #98e342);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-variable,
|
||||
.cm-s-obsidian .cm-templater-command.cm-variable-2,
|
||||
.cm-s-obsidian .cm-templater-command.cm-variable-3,
|
||||
.cm-s-obsidian .cm-templater-command.cm-meta {
|
||||
color: var(--code-property, #d4d4d4);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-callee,
|
||||
.cm-s-obsidian .cm-templater-command.cm-operator,
|
||||
.cm-s-obsidian .cm-templater-command.cm-qualifier,
|
||||
.cm-s-obsidian .cm-templater-command.cm-builtin {
|
||||
color: var(--code-operator, #fc4384);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-tag {
|
||||
color: var(--code-tag, #fc4384);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-comment,
|
||||
.cm-s-obsidian .cm-templater-command.cm-comment.cm-tag,
|
||||
.cm-s-obsidian .cm-templater-command.cm-comment.cm-attribute {
|
||||
color: var(--code-comment, #696d70);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-string,
|
||||
.cm-s-obsidian .cm-templater-command.cm-string-2 {
|
||||
color: var(--code-string, #e6db74);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-header,
|
||||
.cm-s-obsidian .cm-templater-command.cm-hr {
|
||||
color: var(--code-keyword, #da7dae);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-link {
|
||||
color: var(--code-normal, #696d70);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-error {
|
||||
border-bottom: 1px solid #c42412;
|
||||
}
|
||||
|
||||
.CodeMirror-hints {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
|
||||
-webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
|
||||
border-radius: 3px;
|
||||
border: 1px solid silver;
|
||||
|
||||
background: white;
|
||||
font-size: 90%;
|
||||
font-family: monospace;
|
||||
|
||||
max-height: 20em;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.CodeMirror-hint {
|
||||
margin: 0;
|
||||
padding: 0 4px;
|
||||
border-radius: 2px;
|
||||
white-space: pre;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
li.CodeMirror-hint-active {
|
||||
background: #08f;
|
||||
color: white;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* This snippet was auto-generated by the Admonitions plugin on 15/09/2023, 21:07:42 */
|
||||
|
||||
|
||||
|
||||
.callout[data-callout="statblock"] { --callout-icon: "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"dragon\" class=\"svg-inline--fa fa-dragon fa-w-20\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path fill=\"currentColor\" d=\"M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z\"></path></svg>"; }
|
||||
|
||||
.callout[data-callout="flowchart"] { --callout-icon: "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"map\" class=\"svg-inline--fa fa-map fa-w-18\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path fill=\"currentColor\" d=\"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z\"></path></svg>"; }
|
||||
|
||||
.callout[data-callout="gallery"] { --callout-icon: "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"image\" class=\"svg-inline--fa fa-image fa-w-16\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z\"></path></svg>"; }
|
||||
|
||||
.callout[data-callout="readaloud"] { --callout-icon: "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"book-reader\" class=\"svg-inline--fa fa-book-reader fa-w-16\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"currentColor\" d=\"M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z\"></path></svg>"; }
|
||||
+341
@@ -0,0 +1,341 @@
|
||||
@charset "UTF-8";
|
||||
body {
|
||||
--admonition-charm: 211,141,159;
|
||||
--admonition-charm-text: var(--admonition-charm);
|
||||
--admonition-letter: 98, 159, 197;
|
||||
--admonition-npc: 102, 121, 137;
|
||||
--admonition-scene: 139, 167, 145;
|
||||
--admonition-skill: 236,201,134;
|
||||
--admonition-skill-text: var(--admonition-skill);
|
||||
--admonition-weather: 53,119,174;
|
||||
--admonition-flowchart: 72,72,72;
|
||||
}
|
||||
|
||||
.theme-light {
|
||||
--admonition-charm: 222,170,184;
|
||||
--admonition-charm-text: 167,92,112;
|
||||
--admonition-npc: 58, 125, 127;
|
||||
--admonition-scene: 92, 122, 99;
|
||||
--admonition-skill: 221,178,84;
|
||||
--admonition-skill-text: 157,101,83;
|
||||
}
|
||||
|
||||
.callout[data-callout=charm] {
|
||||
--callout-color: var(--admonition-charm);
|
||||
--callout-title-color: rgb(var(--admonition-charm-text));
|
||||
}
|
||||
.callout[data-callout=charm] .callout-title {
|
||||
color: var(--callout-title-color);
|
||||
}
|
||||
|
||||
.callout[data-callout=letter] {
|
||||
--callout-color: var(--admonition-letter);
|
||||
}
|
||||
|
||||
.callout[data-callout=npc] {
|
||||
--callout-color: var(--admonition-npc);
|
||||
}
|
||||
|
||||
.callout[data-callout=readaloud],
|
||||
.callout[data-callout=scene] {
|
||||
--callout-color: var(--admonition-scene);
|
||||
}
|
||||
|
||||
.callout[data-callout=skill] {
|
||||
--callout-color: var(--admonition-skill);
|
||||
--callout-title-color: rgb(var(--admonition-skill-text));
|
||||
}
|
||||
|
||||
.callout[data-callout=weather] {
|
||||
--callout-color: var(--admonition-weather);
|
||||
}
|
||||
|
||||
.callout[data-callout=flowchart] {
|
||||
--callout-color: var(--admonition-flowchart);
|
||||
--callout-border-width: 0.10rem;
|
||||
}
|
||||
|
||||
.json5e-background div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-class div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-deity div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-feat div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-item div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-monster div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-note div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-race div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]),
|
||||
.json5e-spell div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]) {
|
||||
position: relative;
|
||||
}
|
||||
.json5e-background div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-class div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-deity div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-feat div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-item div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-monster div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-note div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-race div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after,
|
||||
.json5e-spell div:has(> .callout[data-callout=flowchart]):has(+ div > .callout[data-callout=flowchart]):after {
|
||||
content: "↓";
|
||||
color: var(--admonition-flowchart);
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: 50%;
|
||||
margin-left: 7px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
.json5e-background .callout[data-callout=gallery],
|
||||
.json5e-class .callout[data-callout=gallery],
|
||||
.json5e-deity .callout[data-callout=gallery],
|
||||
.json5e-feat .callout[data-callout=gallery],
|
||||
.json5e-item .callout[data-callout=gallery],
|
||||
.json5e-monster .callout[data-callout=gallery],
|
||||
.json5e-note .callout[data-callout=gallery],
|
||||
.json5e-race .callout[data-callout=gallery],
|
||||
.json5e-spell .callout[data-callout=gallery] {
|
||||
--callout-color: transparent;
|
||||
--callout-border-width: 0;
|
||||
}
|
||||
.json5e-background .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-class .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-deity .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-feat .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-item .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-monster .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-note .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-race .callout[data-callout=gallery] .callout-content,
|
||||
.json5e-spell .callout[data-callout=gallery] .callout-content {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.json5e-background .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-class .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-deity .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-feat .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-item .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-monster .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-note .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-race .callout[data-callout=gallery] .callout-content p,
|
||||
.json5e-spell .callout[data-callout=gallery] .callout-content p {
|
||||
display: none;
|
||||
}
|
||||
.json5e-background .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-class .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-deity .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-feat .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-item .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-monster .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-note .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-race .callout[data-callout=gallery] .callout-content div[src$="#gallery"],
|
||||
.json5e-spell .callout[data-callout=gallery] .callout-content div[src$="#gallery"] {
|
||||
max-width: 49%;
|
||||
}
|
||||
.json5e-background .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-class .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-deity .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-feat .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-item .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-monster .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-note .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-race .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img,
|
||||
.json5e-spell .callout[data-callout=gallery] .callout-content div[src$="#gallery"] img {
|
||||
max-height: 60vh;
|
||||
}
|
||||
.json5e-background .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-class .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-deity .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-feat .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-item .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-monster .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-note .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-race .callout[data-callout=gallery] .callout-title,
|
||||
.json5e-spell .callout[data-callout=gallery] .callout-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
--statblock-accent: 201,60,60;
|
||||
}
|
||||
|
||||
.admonition-statblock-parent {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.callout[data-callout=statblock] {
|
||||
--callout-color: var(--statblock-accent);
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-title {
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-title .callout-title-content {
|
||||
flex: 2;
|
||||
font-size: var(--h3-size);
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content > :first-child {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content > :last-child {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content h1,
|
||||
.callout[data-callout=statblock] .callout-content h2,
|
||||
.callout[data-callout=statblock] .callout-content h3 {
|
||||
font-family: var(--default-font);
|
||||
font-variant: common-ligatures small-caps;
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content h1 {
|
||||
font-size: 1.4em;
|
||||
line-height: 1.4em;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content h2,
|
||||
.callout[data-callout=statblock] .callout-content h3 {
|
||||
font-size: 1.2em;
|
||||
line-height: 1.2em;
|
||||
padding: 0.5em 0 0 0;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.3em;
|
||||
border-bottom: 1px solid rgb(var(--statblock-accent));
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content p {
|
||||
line-height: 1.2em;
|
||||
margin-block-start: 0.5em;
|
||||
}
|
||||
.callout[data-callout=statblock] .callout-content li {
|
||||
line-height: 1.2em;
|
||||
margin-block-start: 0.5em;
|
||||
}
|
||||
|
||||
.json5e-background div[src$="#center"],
|
||||
.json5e-class div[src$="#center"],
|
||||
.json5e-deity div[src$="#center"],
|
||||
.json5e-feat div[src$="#center"],
|
||||
.json5e-item div[src$="#center"],
|
||||
.json5e-monster div[src$="#center"],
|
||||
.json5e-note div[src$="#center"],
|
||||
.json5e-race div[src$="#center"],
|
||||
.json5e-spell div[src$="#center"] {
|
||||
text-align: center;
|
||||
}
|
||||
.json5e-background div[src$="#symbol"], .json5e-background div[src$="#portrait"], .json5e-background div[src$="#token"], .json5e-background div[src$="#right"],
|
||||
.json5e-class div[src$="#symbol"],
|
||||
.json5e-class div[src$="#portrait"],
|
||||
.json5e-class div[src$="#token"],
|
||||
.json5e-class div[src$="#right"],
|
||||
.json5e-deity div[src$="#symbol"],
|
||||
.json5e-deity div[src$="#portrait"],
|
||||
.json5e-deity div[src$="#token"],
|
||||
.json5e-deity div[src$="#right"],
|
||||
.json5e-feat div[src$="#symbol"],
|
||||
.json5e-feat div[src$="#portrait"],
|
||||
.json5e-feat div[src$="#token"],
|
||||
.json5e-feat div[src$="#right"],
|
||||
.json5e-item div[src$="#symbol"],
|
||||
.json5e-item div[src$="#portrait"],
|
||||
.json5e-item div[src$="#token"],
|
||||
.json5e-item div[src$="#right"],
|
||||
.json5e-monster div[src$="#symbol"],
|
||||
.json5e-monster div[src$="#portrait"],
|
||||
.json5e-monster div[src$="#token"],
|
||||
.json5e-monster div[src$="#right"],
|
||||
.json5e-note div[src$="#symbol"],
|
||||
.json5e-note div[src$="#portrait"],
|
||||
.json5e-note div[src$="#token"],
|
||||
.json5e-note div[src$="#right"],
|
||||
.json5e-race div[src$="#symbol"],
|
||||
.json5e-race div[src$="#portrait"],
|
||||
.json5e-race div[src$="#token"],
|
||||
.json5e-race div[src$="#right"],
|
||||
.json5e-spell div[src$="#symbol"],
|
||||
.json5e-spell div[src$="#portrait"],
|
||||
.json5e-spell div[src$="#token"],
|
||||
.json5e-spell div[src$="#right"] {
|
||||
float: right;
|
||||
padding-left: 5px;
|
||||
}
|
||||
.json5e-background div[src$="#center"] img, .json5e-background div[src$="#right"] img,
|
||||
.json5e-class div[src$="#center"] img,
|
||||
.json5e-class div[src$="#right"] img,
|
||||
.json5e-deity div[src$="#center"] img,
|
||||
.json5e-deity div[src$="#right"] img,
|
||||
.json5e-feat div[src$="#center"] img,
|
||||
.json5e-feat div[src$="#right"] img,
|
||||
.json5e-item div[src$="#center"] img,
|
||||
.json5e-item div[src$="#right"] img,
|
||||
.json5e-monster div[src$="#center"] img,
|
||||
.json5e-monster div[src$="#right"] img,
|
||||
.json5e-note div[src$="#center"] img,
|
||||
.json5e-note div[src$="#right"] img,
|
||||
.json5e-race div[src$="#center"] img,
|
||||
.json5e-race div[src$="#right"] img,
|
||||
.json5e-spell div[src$="#center"] img,
|
||||
.json5e-spell div[src$="#right"] img {
|
||||
max-height: 60vh;
|
||||
}
|
||||
.json5e-background div[src$="#right"],
|
||||
.json5e-class div[src$="#right"],
|
||||
.json5e-deity div[src$="#right"],
|
||||
.json5e-feat div[src$="#right"],
|
||||
.json5e-item div[src$="#right"],
|
||||
.json5e-monster div[src$="#right"],
|
||||
.json5e-note div[src$="#right"],
|
||||
.json5e-race div[src$="#right"],
|
||||
.json5e-spell div[src$="#right"] {
|
||||
max-width: 50%;
|
||||
}
|
||||
.json5e-background div[src$="#token"],
|
||||
.json5e-class div[src$="#token"],
|
||||
.json5e-deity div[src$="#token"],
|
||||
.json5e-feat div[src$="#token"],
|
||||
.json5e-item div[src$="#token"],
|
||||
.json5e-monster div[src$="#token"],
|
||||
.json5e-note div[src$="#token"],
|
||||
.json5e-race div[src$="#token"],
|
||||
.json5e-spell div[src$="#token"] {
|
||||
width: 150px;
|
||||
}
|
||||
.json5e-background div[src$="#symbol"], .json5e-background div[src$="#portrait"],
|
||||
.json5e-class div[src$="#symbol"],
|
||||
.json5e-class div[src$="#portrait"],
|
||||
.json5e-deity div[src$="#symbol"],
|
||||
.json5e-deity div[src$="#portrait"],
|
||||
.json5e-feat div[src$="#symbol"],
|
||||
.json5e-feat div[src$="#portrait"],
|
||||
.json5e-item div[src$="#symbol"],
|
||||
.json5e-item div[src$="#portrait"],
|
||||
.json5e-monster div[src$="#symbol"],
|
||||
.json5e-monster div[src$="#portrait"],
|
||||
.json5e-note div[src$="#symbol"],
|
||||
.json5e-note div[src$="#portrait"],
|
||||
.json5e-race div[src$="#symbol"],
|
||||
.json5e-race div[src$="#portrait"],
|
||||
.json5e-spell div[src$="#symbol"],
|
||||
.json5e-spell div[src$="#portrait"] {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.json5e-background .inline-title,
|
||||
.json5e-class .inline-title,
|
||||
.json5e-deity .inline-title,
|
||||
.json5e-feat .inline-title,
|
||||
.json5e-item .inline-title,
|
||||
.json5e-monster .inline-title,
|
||||
.json5e-names .inline-title,
|
||||
.json5e-note .inline-title,
|
||||
.json5e-race .inline-title,
|
||||
.json5e-spell .inline-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.creature-view-container.workspace-leaf-content {
|
||||
background-color: var(--background-primary-alt);
|
||||
}
|
||||
.creature-view-container.workspace-leaf-content .admonition {
|
||||
margin-top: 0;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "AnuPpuccin",
|
||||
"version": "1.5.0",
|
||||
"minAppVersion": "1.6.0",
|
||||
"author": "Anubis",
|
||||
"authorUrl": "https://github.com/AnubisNekhet"
|
||||
}
|
||||
+9080
File diff suppressed because it is too large.
Load diff
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Ink Paper",
|
||||
"version": "1.1.6",
|
||||
"minAppVersion": "1.0.0",
|
||||
"author": "Jayanta Kumar Das",
|
||||
"authorUrl": "https://github.com/dsvictor"
|
||||
}
|
||||
Vendored
+3825
File diff suppressed because it is too large.
Load diff
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"types": {
|
||||
"aliases": "aliases",
|
||||
"cssclasses": "multitext",
|
||||
"tags": "tags",
|
||||
"dnd_session_date": "date"
|
||||
}
|
||||
}
|
||||
Vendored
+384
@@ -0,0 +1,384 @@
|
||||
{
|
||||
"main": {
|
||||
"id": "c9fff904774f059d",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "c075ec2f46403a36",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "febd18b14225e58d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "canvas",
|
||||
"state": {
|
||||
"file": "Politisches Netz.canvas",
|
||||
"viewState": {
|
||||
"x": 790.2001362504541,
|
||||
"y": 172.69953872929727,
|
||||
"zoom": -2.09251889215392
|
||||
}
|
||||
},
|
||||
"icon": "lucide-layout-dashboard",
|
||||
"title": "Politisches Netz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "510227a615a48d33",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Anwesen von Gräfin Emilia"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a0d4efff83dc9146",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/Temp.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Temp"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6a59ed6d504842cb",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "empty",
|
||||
"state": {},
|
||||
"icon": "lucide-file",
|
||||
"title": "Neuer Tab"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2bac251b89290d2c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "2-Organisationen/Konvent der Arkana.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Konvent der Arkana"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "b782d00564592585",
|
||||
"type": "mobile-drawer",
|
||||
"children": [
|
||||
{
|
||||
"id": "564a5d3e82cd52d8",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical",
|
||||
"autoReveal": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-folder-closed",
|
||||
"title": "Dateiexplorer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "74cc836de02ed5e7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
},
|
||||
"icon": "lucide-search",
|
||||
"title": "Search"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dfec987264e5f1b0",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
},
|
||||
"icon": "lucide-tags",
|
||||
"title": "Tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "de4107596f8408e6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {},
|
||||
"icon": "lucide-bookmark",
|
||||
"title": "Bookmarks"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
},
|
||||
"right": {
|
||||
"id": "e461776063ea3e5b",
|
||||
"type": "mobile-drawer",
|
||||
"children": [
|
||||
{
|
||||
"id": "d044234422db323a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/anwesen - AI.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Rückverweise"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "12a82bd9827e334f",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "templates/session-template.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-going-out",
|
||||
"title": "Outgoing links"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dc9913e36880c6af",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "templates/session-template.md"
|
||||
},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "outline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3e3044d4fa0e80a2",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "27b279390297eff7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "57f8806fba56fdd7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "b95c3994fb60c7aa",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "c9cfe06c07839ed6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "8574809f47254264",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "762cb4474e3bb11d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "026475997a263995",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "13a94722df73ba3e",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6b0f8b17bd9ab809",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cbb57d464ab4a491",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "initiative-tracker",
|
||||
"title": "Initiative Tracker"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ab3b93ae784ea3b6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "dices",
|
||||
"title": "Dice Tray"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"switcher:Schnellauswahl öffnen": false,
|
||||
"canvas:Neuen Canvas erstellen": false,
|
||||
"templates:Vorlage einfügen": false,
|
||||
"command-palette:Befehlspalette öffnen": false,
|
||||
"bases:Neue Base erstellen": false,
|
||||
"obsidian-leaflet-plugin:Open Leaflet Map": false,
|
||||
"templater-obsidian:Templater": false,
|
||||
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
||||
"obsidian-5e-statblocks:Open Creature pane": false,
|
||||
"initiative-tracker:Initiative Tracker Encounter Builder": false
|
||||
}
|
||||
},
|
||||
"active": "6a59ed6d504842cb",
|
||||
"lastOpenFiles": [
|
||||
"02 - Locations/Dungeons/Temp.md",
|
||||
"Attunement Nozizen.md",
|
||||
"02 - Locations/Dungeons/anwesen - AI.md",
|
||||
"Knowledge/Wild Magic Table.md",
|
||||
"02 - Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"Notes & Tracking.md",
|
||||
"01 - Sessions/Episode 09.md",
|
||||
"02 - Locations/Dungeons",
|
||||
"04 - Characters/Dungeons/Gräfin Emilia.md",
|
||||
"04 - Characters/Dungeons",
|
||||
"07 - Monster/Kopfgeldjäger.md",
|
||||
"05 - Gegenstände/0-imgs/blitz-amulet.png",
|
||||
"Knowledge/Idea-Collection.md",
|
||||
"Politisches Netz.canvas",
|
||||
"1-Sessions/Episode 08.md",
|
||||
"2-Organisationen/Konvent der Arkana.md",
|
||||
"templates/npc-template.md",
|
||||
"1-Sessions/Episode 09.md",
|
||||
"templates/project-template.md",
|
||||
"9-Projekte/Steine in der Dämmerung.md",
|
||||
"9-Projekte",
|
||||
"3-NPCs/Ormur/Finnian Glutfall.md",
|
||||
"1-Sessions/Episode 07.md",
|
||||
"1-Sessions/Episode 06.md",
|
||||
"1-Sessions/Episode 05.md",
|
||||
"1-Sessions/Episode 04.md",
|
||||
"1-Sessions/Episode 03.md",
|
||||
"1-Sessions/Episode 02.md",
|
||||
"1-Sessions/Episode 01.md",
|
||||
"3-NPCs/Klagenfels/Der Große Purist.md",
|
||||
"5-Spieler/Morinio Aerethriel.md",
|
||||
"Tiefling Cleric - Nova Klee.pdf",
|
||||
"Die Bibliothek.txt",
|
||||
"3-NPCs/0-imgs/ReactNativeBlobUtilTmp_q4vb08qoa9n2xhy2h5u89z.png",
|
||||
"2-Organisationen/Kjangtoth",
|
||||
"2-Organisationen/Gerasben",
|
||||
"Untitled.canvas",
|
||||
"3-NPCs/0-imgs/ReactNativeBlobUtilTmp_gg55sa0m9zdvmqonmdoys.png",
|
||||
"4-Gegenstände/0-imgs/Pasted image 20241130165520.png",
|
||||
"4-Gegenstände/0-imgs/Pasted image 20241130163130.png",
|
||||
"4-Gegenstände/0-imgs/blitz-amulet.png",
|
||||
"Locations",
|
||||
"Sessions",
|
||||
"compendium/bestiary/dragon/token/adult-black-dragon.png",
|
||||
"compendium/bestiary/dragon/token/brass-dragon-wyrmling.png",
|
||||
"compendium/bestiary/beast/token/plesiosaurus.png",
|
||||
"compendium/bestiary/beast/token/giant-crab.png",
|
||||
"LICENSE"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,388 @@
|
||||
{
|
||||
"main": {
|
||||
"id": "c9fff904774f059d",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "c075ec2f46403a36",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "febd18b14225e58d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "canvas",
|
||||
"state": {
|
||||
"file": "Politisches Netz.canvas",
|
||||
"viewState": {
|
||||
"x": 790.2001362504541,
|
||||
"y": 172.69953872929727,
|
||||
"zoom": -2.09251889215392
|
||||
}
|
||||
},
|
||||
"icon": "lucide-layout-dashboard",
|
||||
"title": "Politisches Netz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "510227a615a48d33",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Anwesen von Gräfin Emilia"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a0d4efff83dc9146",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/Temp.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Temp"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6a59ed6d504842cb",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Notes & Tracking.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Notes & Tracking"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2bac251b89290d2c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "2-Organisationen/Konvent der Arkana.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Konvent der Arkana"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "b782d00564592585",
|
||||
"type": "mobile-drawer",
|
||||
"children": [
|
||||
{
|
||||
"id": "564a5d3e82cd52d8",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical",
|
||||
"autoReveal": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-folder-closed",
|
||||
"title": "Dateiexplorer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "74cc836de02ed5e7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
},
|
||||
"icon": "lucide-search",
|
||||
"title": "Search"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dfec987264e5f1b0",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
},
|
||||
"icon": "lucide-tags",
|
||||
"title": "Tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "de4107596f8408e6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {},
|
||||
"icon": "lucide-bookmark",
|
||||
"title": "Bookmarks"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
},
|
||||
"right": {
|
||||
"id": "e461776063ea3e5b",
|
||||
"type": "mobile-drawer",
|
||||
"children": [
|
||||
{
|
||||
"id": "d044234422db323a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/anwesen - AI.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Rückverweise"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "12a82bd9827e334f",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "templates/session-template.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-going-out",
|
||||
"title": "Outgoing links"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dc9913e36880c6af",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "templates/session-template.md"
|
||||
},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "outline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3e3044d4fa0e80a2",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "27b279390297eff7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "57f8806fba56fdd7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "b95c3994fb60c7aa",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "c9cfe06c07839ed6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "8574809f47254264",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "762cb4474e3bb11d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "026475997a263995",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "13a94722df73ba3e",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6b0f8b17bd9ab809",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cbb57d464ab4a491",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "initiative-tracker",
|
||||
"title": "Initiative Tracker"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ab3b93ae784ea3b6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "dices",
|
||||
"title": "Dice Tray"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"switcher:Schnellauswahl öffnen": false,
|
||||
"canvas:Neuen Canvas erstellen": false,
|
||||
"templates:Vorlage einfügen": false,
|
||||
"command-palette:Befehlspalette öffnen": false,
|
||||
"bases:Neue Base erstellen": false,
|
||||
"obsidian-leaflet-plugin:Open Leaflet Map": false,
|
||||
"templater-obsidian:Templater": false,
|
||||
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
||||
"obsidian-5e-statblocks:Open Creature pane": false,
|
||||
"initiative-tracker:Initiative Tracker Encounter Builder": false
|
||||
}
|
||||
},
|
||||
"active": "6a59ed6d504842cb",
|
||||
"lastOpenFiles": [
|
||||
"02 - Locations/Dungeons/Temp.md",
|
||||
"Attunement Nozizen.md",
|
||||
"02 - Locations/Dungeons/anwesen - AI.md",
|
||||
"Knowledge/Wild Magic Table.md",
|
||||
"02 - Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"Notes & Tracking.md",
|
||||
"01 - Sessions/Episode 09.md",
|
||||
"02 - Locations/Dungeons",
|
||||
"04 - Characters/Dungeons/Gräfin Emilia.md",
|
||||
"04 - Characters/Dungeons",
|
||||
"07 - Monster/Kopfgeldjäger.md",
|
||||
"05 - Gegenstände/0-imgs/blitz-amulet.png",
|
||||
"Knowledge/Idea-Collection.md",
|
||||
"Politisches Netz.canvas",
|
||||
"1-Sessions/Episode 08.md",
|
||||
"2-Organisationen/Konvent der Arkana.md",
|
||||
"templates/npc-template.md",
|
||||
"1-Sessions/Episode 09.md",
|
||||
"templates/project-template.md",
|
||||
"9-Projekte/Steine in der Dämmerung.md",
|
||||
"9-Projekte",
|
||||
"3-NPCs/Ormur/Finnian Glutfall.md",
|
||||
"1-Sessions/Episode 07.md",
|
||||
"1-Sessions/Episode 06.md",
|
||||
"1-Sessions/Episode 05.md",
|
||||
"1-Sessions/Episode 04.md",
|
||||
"1-Sessions/Episode 03.md",
|
||||
"1-Sessions/Episode 02.md",
|
||||
"1-Sessions/Episode 01.md",
|
||||
"3-NPCs/Klagenfels/Der Große Purist.md",
|
||||
"5-Spieler/Morinio Aerethriel.md",
|
||||
"Tiefling Cleric - Nova Klee.pdf",
|
||||
"Die Bibliothek.txt",
|
||||
"3-NPCs/0-imgs/ReactNativeBlobUtilTmp_q4vb08qoa9n2xhy2h5u89z.png",
|
||||
"2-Organisationen/Kjangtoth",
|
||||
"2-Organisationen/Gerasben",
|
||||
"Untitled.canvas",
|
||||
"3-NPCs/0-imgs/ReactNativeBlobUtilTmp_gg55sa0m9zdvmqonmdoys.png",
|
||||
"4-Gegenstände/0-imgs/Pasted image 20241130165520.png",
|
||||
"4-Gegenstände/0-imgs/Pasted image 20241130163130.png",
|
||||
"4-Gegenstände/0-imgs/blitz-amulet.png",
|
||||
"Locations",
|
||||
"Sessions",
|
||||
"compendium/bestiary/dragon/token/adult-black-dragon.png",
|
||||
"compendium/bestiary/dragon/token/brass-dragon-wyrmling.png",
|
||||
"compendium/bestiary/beast/token/plesiosaurus.png",
|
||||
"compendium/bestiary/beast/token/giant-crab.png",
|
||||
"LICENSE"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,388 @@
|
||||
{
|
||||
"main": {
|
||||
"id": "c9fff904774f059d",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "c075ec2f46403a36",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "febd18b14225e58d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "canvas",
|
||||
"state": {
|
||||
"file": "Politisches Netz.canvas",
|
||||
"viewState": {
|
||||
"x": 790.2001362504541,
|
||||
"y": 172.69953872929727,
|
||||
"zoom": -2.09251889215392
|
||||
}
|
||||
},
|
||||
"icon": "lucide-layout-dashboard",
|
||||
"title": "Politisches Netz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "510227a615a48d33",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Anwesen von Gräfin Emilia"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a0d4efff83dc9146",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/Temp.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Temp"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6a59ed6d504842cb",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Notes & Tracking.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Notes & Tracking"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "2bac251b89290d2c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "2-Organisationen/Konvent der Arkana.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Konvent der Arkana"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "b782d00564592585",
|
||||
"type": "mobile-drawer",
|
||||
"children": [
|
||||
{
|
||||
"id": "564a5d3e82cd52d8",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical",
|
||||
"autoReveal": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-folder-closed",
|
||||
"title": "Dateiexplorer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "74cc836de02ed5e7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
},
|
||||
"icon": "lucide-search",
|
||||
"title": "Search"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dfec987264e5f1b0",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
},
|
||||
"icon": "lucide-tags",
|
||||
"title": "Tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "de4107596f8408e6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {},
|
||||
"icon": "lucide-bookmark",
|
||||
"title": "Bookmarks"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
},
|
||||
"right": {
|
||||
"id": "e461776063ea3e5b",
|
||||
"type": "mobile-drawer",
|
||||
"children": [
|
||||
{
|
||||
"id": "d044234422db323a",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "02 - Locations/Dungeons/anwesen - AI.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Rückverweise"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "12a82bd9827e334f",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "templates/session-template.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-going-out",
|
||||
"title": "Outgoing links"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "dc9913e36880c6af",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "templates/session-template.md"
|
||||
},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "outline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3e3044d4fa0e80a2",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "27b279390297eff7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "57f8806fba56fdd7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "b95c3994fb60c7aa",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "c9cfe06c07839ed6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "8574809f47254264",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "762cb4474e3bb11d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "026475997a263995",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "13a94722df73ba3e",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6b0f8b17bd9ab809",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cbb57d464ab4a491",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "initiative-tracker",
|
||||
"title": "Initiative Tracker"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ab3b93ae784ea3b6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "dices",
|
||||
"title": "Dice Tray"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"switcher:Schnellauswahl öffnen": false,
|
||||
"canvas:Neuen Canvas erstellen": false,
|
||||
"templates:Vorlage einfügen": false,
|
||||
"command-palette:Befehlspalette öffnen": false,
|
||||
"bases:Neue Base erstellen": false,
|
||||
"obsidian-leaflet-plugin:Open Leaflet Map": false,
|
||||
"templater-obsidian:Templater": false,
|
||||
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
||||
"obsidian-5e-statblocks:Open Creature pane": false,
|
||||
"initiative-tracker:Initiative Tracker Encounter Builder": false
|
||||
}
|
||||
},
|
||||
"active": "6a59ed6d504842cb",
|
||||
"lastOpenFiles": [
|
||||
"02 - Locations/Dungeons/Temp.md",
|
||||
"Attunement Nozizen.md",
|
||||
"02 - Locations/Dungeons/anwesen - AI.md",
|
||||
"Knowledge/Wild Magic Table.md",
|
||||
"02 - Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"Notes & Tracking.md",
|
||||
"01 - Sessions/Episode 09.md",
|
||||
"02 - Locations/Dungeons",
|
||||
"04 - Characters/Dungeons/Gräfin Emilia.md",
|
||||
"04 - Characters/Dungeons",
|
||||
"07 - Monster/Kopfgeldjäger.md",
|
||||
"05 - Gegenstände/0-imgs/blitz-amulet.png",
|
||||
"Knowledge/Idea-Collection.md",
|
||||
"Politisches Netz.canvas",
|
||||
"1-Sessions/Episode 08.md",
|
||||
"2-Organisationen/Konvent der Arkana.md",
|
||||
"templates/npc-template.md",
|
||||
"1-Sessions/Episode 09.md",
|
||||
"templates/project-template.md",
|
||||
"9-Projekte/Steine in der Dämmerung.md",
|
||||
"9-Projekte",
|
||||
"3-NPCs/Ormur/Finnian Glutfall.md",
|
||||
"1-Sessions/Episode 07.md",
|
||||
"1-Sessions/Episode 06.md",
|
||||
"1-Sessions/Episode 05.md",
|
||||
"1-Sessions/Episode 04.md",
|
||||
"1-Sessions/Episode 03.md",
|
||||
"1-Sessions/Episode 02.md",
|
||||
"1-Sessions/Episode 01.md",
|
||||
"3-NPCs/Klagenfels/Der Große Purist.md",
|
||||
"5-Spieler/Morinio Aerethriel.md",
|
||||
"Tiefling Cleric - Nova Klee.pdf",
|
||||
"Die Bibliothek.txt",
|
||||
"3-NPCs/0-imgs/ReactNativeBlobUtilTmp_q4vb08qoa9n2xhy2h5u89z.png",
|
||||
"2-Organisationen/Kjangtoth",
|
||||
"2-Organisationen/Gerasben",
|
||||
"Untitled.canvas",
|
||||
"3-NPCs/0-imgs/ReactNativeBlobUtilTmp_gg55sa0m9zdvmqonmdoys.png",
|
||||
"4-Gegenstände/0-imgs/Pasted image 20241130165520.png",
|
||||
"4-Gegenstände/0-imgs/Pasted image 20241130163130.png",
|
||||
"4-Gegenstände/0-imgs/blitz-amulet.png",
|
||||
"Locations",
|
||||
"Sessions",
|
||||
"compendium/bestiary/dragon/token/adult-black-dragon.png",
|
||||
"compendium/bestiary/dragon/token/brass-dragon-wyrmling.png",
|
||||
"compendium/bestiary/beast/token/plesiosaurus.png",
|
||||
"compendium/bestiary/beast/token/giant-crab.png",
|
||||
"LICENSE"
|
||||
]
|
||||
}
|
||||
Vendored
+474
@@ -0,0 +1,474 @@
|
||||
{
|
||||
"main": {
|
||||
"id": "9851207759986667",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "b5a9c923665d1de6",
|
||||
"type": "tabs",
|
||||
"dimension": 44.399770246984495,
|
||||
"children": [
|
||||
{
|
||||
"id": "a0ec780227af5ca1",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02-World/Locations/Dungeons/Temp.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Temp"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "7863bc44ba45605f",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02-World/Locations/Dungeons/anwesen - AI.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "anwesen - AI"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "343fb22e6ab9047b",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02-World/Locations/Dungeons/Anwesen von Gräfin Emilia.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Anwesen von Gräfin Emilia"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6353ff3f967f7e24",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02-World/Locations/Dungeons/Anwesen Voss (Konsolidiert).md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Anwesen Voss (Konsolidiert)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1d758abb0a2474fe",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "05-Ideas/input.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "input"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6a2cc4e96ed9765f",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "01-Sessions/Episode 12.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Episode 12"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 5
|
||||
},
|
||||
{
|
||||
"id": "a3d0f87a864a26fb",
|
||||
"type": "tabs",
|
||||
"dimension": 29.236071223434806,
|
||||
"children": [
|
||||
{
|
||||
"id": "91d189c6ca684e19",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "00-Inbox/Notes & Tracking.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Notes & Tracking"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ea6ba5c9106ea2cb",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "00-Inbox/18.08.2026.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "18.08.2026"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "5118d953a9bf237d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "02-World/Items/Attunement Nozizen.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Attunement Nozizen"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 1
|
||||
},
|
||||
{
|
||||
"id": "83beabfb275dc76f",
|
||||
"type": "tabs",
|
||||
"dimension": 26.3641585295807,
|
||||
"children": [
|
||||
{
|
||||
"id": "72619048f787decc",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "06-Assets/Tables/DnD NPC Name Tables.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "DnD NPC Name Tables"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1d969bd16153ec95",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "06-Assets/Tables/Wild Magic Table.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Wild Magic Table"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "86c4e478c06bec1b",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "dbd37591eaa90f60",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "719d8de75f73485d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical",
|
||||
"autoReveal": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-folder-closed",
|
||||
"title": "Files"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1d85427a43493b3d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "invisibi",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
},
|
||||
"icon": "lucide-search",
|
||||
"title": "Search"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "4cf26328eb8cc9ba",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {},
|
||||
"icon": "lucide-bookmark",
|
||||
"title": "Bookmarks"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 230.8333396911621
|
||||
},
|
||||
"right": {
|
||||
"id": "e6f90bc50b380000",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "f77a620be29bf4bd",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "c5ea24db0e8ebb1b",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "compendium/backgrounds/acolyte.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Backlinks for acolyte"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "49f78af3b3162732",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "compendium/backgrounds/acolyte.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-going-out",
|
||||
"title": "Outgoing links from acolyte"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bd438f07621b0108",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
},
|
||||
"icon": "lucide-tags",
|
||||
"title": "Tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a6fcf3963c383057",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "advanced-tables-toolbar",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "advanced-tables-toolbar"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "f809319cf58be4f3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "96ef80845b993bd3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ce84509fbd7eaee9",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e3f649aeb1007761",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cec2e63fe09a18de",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "40ebd518f1b68fea",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "4c571ca882d40aff",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "initiative-tracker",
|
||||
"title": "Initiative Tracker"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "17989fc989eeb165",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "dices",
|
||||
"title": "Dice Tray"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "0a361b407e40ebe3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "04-Entities/NPCs/Bertram.md",
|
||||
"followCursor": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "outline"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 434.5,
|
||||
"collapsed": true
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"bases:Create new base": false,
|
||||
"switcher:Open quick switcher": false,
|
||||
"canvas:Create new canvas": false,
|
||||
"templates:Insert template": false,
|
||||
"command-palette:Open command palette": false,
|
||||
"obsidian-leaflet-plugin:Open Leaflet Map": false,
|
||||
"templater-obsidian:Templater": false,
|
||||
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
||||
"obsidian-5e-statblocks:Open Creature pane": false,
|
||||
"initiative-tracker:Initiative Tracker Encounter Builder": false
|
||||
}
|
||||
},
|
||||
"active": "6a2cc4e96ed9765f",
|
||||
"lastOpenFiles": [
|
||||
"01-Sessions/Episode 13.md",
|
||||
"05-Ideas/input.md",
|
||||
"AGENTS.md",
|
||||
"03-Story/Quests/supplements/Tagebuch des Marquis.md",
|
||||
"03-Story/Quests/Quest – Anwesen Voss.md",
|
||||
"03-Story/Quests/supplements/Hintergrund des Marquis.md",
|
||||
"03-Story/Quests/supplements",
|
||||
"01-Sessions/Episode 12.md",
|
||||
"Templates/idea-template.md",
|
||||
"03-Story/Quests",
|
||||
"07-Compendium/backgrounds 1/backgrounds.md",
|
||||
"03-Story/History/Mykori.md",
|
||||
"03-Story/History/Chaosmagie.md",
|
||||
"03-Story/History/Bruch des Arkanen Geflechts.md",
|
||||
"04-Entities/Organizations/Die Wiedergeburt der Dämmerung.md",
|
||||
"Zirkel der Ordnung.md",
|
||||
"03-Story/Arcs/Drow Verrat.md",
|
||||
"03-Story/Arcs/Die Wiederherstellung des Kataclyst.md",
|
||||
"03-Story/History/Gildengründung.md",
|
||||
"06-Assets/Maps/map.png",
|
||||
"03-Story/History/Organisationsgründung.md",
|
||||
"03-Story/Campaign Overview.md",
|
||||
"Templates/quest-template.md",
|
||||
"03-Story/Background-Story.md",
|
||||
"03-Story/Arcs/Steine in der Dämmerung.md",
|
||||
"03-Story/Arcs/Machenschaften der Bruderschaft.md",
|
||||
"03-Story/Arcs/Die Geschichte der Alten.md",
|
||||
"03-Story/Arcs/Background Story.md",
|
||||
"03-Story/History/Zeitstrahl.md",
|
||||
"04-Entities/NPCs/Dungeons/Anwesen",
|
||||
"04-NPCs",
|
||||
"06-Assets/Tables",
|
||||
"08-Archiv",
|
||||
"03-Story/History",
|
||||
"07-Compendium/items/0-imgs/blitz-amulet.png",
|
||||
"07-Compendium/items/0-imgs/Pasted image 20241130165520.png",
|
||||
"07-Compendium/items/0-imgs/Pasted image 20241130163130.png",
|
||||
"07-Compendium/items/0-imgs",
|
||||
"07-Compendium/bestiary/undead/token/zombie.png",
|
||||
"07-Compendium/bestiary/undead/token/wraith.png",
|
||||
"07-Compendium/bestiary/undead/token/will-o-wisp.png",
|
||||
"07-Compendium/bestiary/undead/token/wight.png",
|
||||
"07-Compendium/bestiary/undead/token/vampire.png",
|
||||
"07-Compendium/bestiary/undead/token/warhorse-skeleton.png",
|
||||
"07-Compendium/bestiary/undead/token",
|
||||
"07-Compendium/bestiary/plant/token",
|
||||
"00-Inbox/Politisches Netz.canvas",
|
||||
"Politisches Netz.canvas"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,322 @@
|
||||
{
|
||||
"main": {
|
||||
"id": "9851207759986667",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "4c051a209788df26",
|
||||
"type": "tabs",
|
||||
"dimension": 67.41957563312799,
|
||||
"children": [
|
||||
{
|
||||
"id": "65d49edd7717e3d7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "canvas",
|
||||
"state": {
|
||||
"file": "Politisches Netz.canvas",
|
||||
"viewState": {
|
||||
"x": -975.4325947848386,
|
||||
"y": 476.11046490977446,
|
||||
"zoom": -0.9999999999999999
|
||||
}
|
||||
},
|
||||
"icon": "lucide-layout-dashboard",
|
||||
"title": "Politisches Netz"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b5a9c923665d1de6",
|
||||
"type": "tabs",
|
||||
"dimension": 32.580424366872,
|
||||
"children": [
|
||||
{
|
||||
"id": "efcde77f2cd5ca00",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "empty",
|
||||
"state": {},
|
||||
"icon": "lucide-file",
|
||||
"title": "New tab"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "86c4e478c06bec1b",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "dbd37591eaa90f60",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "719d8de75f73485d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical",
|
||||
"autoReveal": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-folder-closed",
|
||||
"title": "Files"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "1d85427a43493b3d",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "invisibi",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
},
|
||||
"icon": "lucide-search",
|
||||
"title": "Search"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "4cf26328eb8cc9ba",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {},
|
||||
"icon": "lucide-bookmark",
|
||||
"title": "Bookmarks"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 211.63337326049805
|
||||
},
|
||||
"right": {
|
||||
"id": "e6f90bc50b380000",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "f77a620be29bf4bd",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "c5ea24db0e8ebb1b",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "compendium/backgrounds/acolyte.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Backlinks for acolyte"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "49f78af3b3162732",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "compendium/backgrounds/acolyte.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-going-out",
|
||||
"title": "Outgoing links from acolyte"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bd438f07621b0108",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
},
|
||||
"icon": "lucide-tags",
|
||||
"title": "Tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a6fcf3963c383057",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "advanced-tables-toolbar",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "advanced-tables-toolbar"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "f809319cf58be4f3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "96ef80845b993bd3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ce84509fbd7eaee9",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e3f649aeb1007761",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cec2e63fe09a18de",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "initiative-tracker-view"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "40ebd518f1b68fea",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "DICE_ROLLER_VIEW"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "4c571ca882d40aff",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "initiative-tracker-view",
|
||||
"state": {},
|
||||
"icon": "initiative-tracker",
|
||||
"title": "Initiative Tracker"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "17989fc989eeb165",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "DICE_ROLLER_VIEW",
|
||||
"state": {},
|
||||
"icon": "dices",
|
||||
"title": "Dice Tray"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 434.5,
|
||||
"collapsed": true
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"bases:Create new base": false,
|
||||
"switcher:Open quick switcher": false,
|
||||
"canvas:Create new canvas": false,
|
||||
"templates:Insert template": false,
|
||||
"command-palette:Open command palette": false,
|
||||
"obsidian-leaflet-plugin:Open Leaflet Map": false,
|
||||
"templater-obsidian:Templater": false,
|
||||
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
||||
"obsidian-5e-statblocks:Open Creature pane": false,
|
||||
"initiative-tracker:Initiative Tracker Encounter Builder": false
|
||||
}
|
||||
},
|
||||
"active": "719d8de75f73485d",
|
||||
"lastOpenFiles": [
|
||||
"04-Entities/Organizations/Untitled.md",
|
||||
"04-Entities/Organizations/Aristokratie in Gerasben.md",
|
||||
"04-Entities/Organizations/Orden der Reinheit.md",
|
||||
"04-Entities/Organizations/Kreis der Wiederherstellung.md",
|
||||
"04-Entities/Organizations/Konvent der Arkana.md",
|
||||
"04-Entities/Organizations/KdA - Kollegium der Mysterien.md",
|
||||
"04-Entities/Organizations/KdA - Gilde der Ereknntnis.md",
|
||||
"04-Entities/Organizations/Bruderschaft des Schicksals.md",
|
||||
"04-Entities/Organizations/Allianz der Harmonie.md",
|
||||
"04-Entities/Organizations/AdH - Zirkel der Ordnung.md",
|
||||
"04-Entities/Organizations/AdH - Garde der Gerechtigkeit.md",
|
||||
"02-World/Items/Stein der Heilung.md",
|
||||
"02-World/Items/Kugel des Gleichgewichts.md",
|
||||
"02-World/Items/Blitz-Amulet.md",
|
||||
"02-World/Items/Kälte-Amulet.md",
|
||||
"02-World/Items/Halskette der Beschwörung.md",
|
||||
"02-World/Items/Diadem der Dämmerung.md",
|
||||
"02-World/Items/Luft-Amulet.md",
|
||||
"02-World/Items/Feuer-Amulet.md",
|
||||
"06-Assets/Images/Character_Images/char.png",
|
||||
"06-Assets/Images/Character_Images/ReactNativeBlobUtilTmp_q4vb08qoa9n2xhy2h5u89z.png",
|
||||
"06-Assets/Images/Character_Images/ReactNativeBlobUtilTmp_gg55sa0m9zdvmqonmdoys.png",
|
||||
"06-Assets/Images/Character_Images/Pasted image 20241130213431.png",
|
||||
"06-Assets/Images/Character_Images/Pasted image 20241130204928.png",
|
||||
"06-Assets/Images/Character_Images/Pasted image 20241130201840.png",
|
||||
"06-Assets/Images/Character_Images/Pasted image 20241130191810.png",
|
||||
"06-Assets/Images/Character_Images/Pasted image 20241130175827.png",
|
||||
"06-Assets/Images/Character_Images",
|
||||
"04-Entities/NPCs/Zarathar.md",
|
||||
"04-Entities/NPCs/Malekir.md",
|
||||
"04-Entities/Characters/Player_Characters/Tiefling Cleric - Nova Klee.pdf",
|
||||
"04-Entities/Characters/Player_Characters/Nova Klee.md",
|
||||
"04-Entities/Characters/Player_Characters/Aerilion.md",
|
||||
"04-Entities/Characters/Player_Characters/Morinio Aerethriel.md",
|
||||
"04-Entities/Characters/Player_Characters",
|
||||
"04-Entities/NPCs/Ormur/Seraphina Nox.md",
|
||||
"04-Entities/NPCs/Ormur/Olir Armursen.md",
|
||||
"04-Entities/NPCs/Ormur",
|
||||
"04-Entities/NPCs/Klagenfels",
|
||||
"04-Entities/NPCs/Kjangtoth",
|
||||
"04-Entities/NPCs/Gerasben",
|
||||
"04-Entities/NPCs/Feridge",
|
||||
"04-Entities/NPCs/Dungeons",
|
||||
"04-Entities/NPCs/Bandon",
|
||||
"06-Assets/Maps/map.png",
|
||||
"05-Ideas/Compendium/bestiary/undead/token/zombie.png",
|
||||
"Politisches Netz.canvas"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,552 @@
|
||||
# Multi-Model DnD Agent System - Complete Setup
|
||||
|
||||
This document describes the **complete multi-model agent orchestration system** for your DnD campaign vault, optimized for cost-effectiveness and specialized capabilities.
|
||||
|
||||
## 🎯 System Architecture
|
||||
|
||||
The system implements a **three-tier architecture** with clear role separation:
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────────┐
|
||||
│ TIER 1: ORCHESTRATOR │
|
||||
│ (Mistral Medium - 2604) │
|
||||
│ ┌─────────────────────────────────────────────────────────────────┐│
|
||||
│ │ • Analyzes user requests in campaign context ││
|
||||
│ │ • Delegates concrete steps to Tier 2 workers ││
|
||||
│ │ • Requests creative ideas from Tier 3 (single API call) ││
|
||||
│ │ • Synthesizes results and presents to user ││
|
||||
│ │ • Coordinates all multi-agent workflows ││
|
||||
│ └─────────────────────────────────────────────────────────────────┘│
|
||||
└─────────────────────────────────────────────────────────────────────┘
|
||||
│
|
||||
┌───────────────────┼───────────────────┐
|
||||
▼ ▼ ▼
|
||||
┌─────────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐
|
||||
│ TIER 2: WORKERS │ │ TIER 2: WORKERS │ │ TIER 2: WORKERS │
|
||||
│ (Mistral Small - 2604) │ │ (Mistral Small - 2604) │ │ (Mistral Small - 2604) │
|
||||
│ • Session Prep Worker │ │ • Implementer Worker │ │ • Generator Worker │
|
||||
│ • Analyzes sessions │ │ • Extracts entities │ │ • Creates content │
|
||||
│ • Reviews story arcs │ │ • Creates files │ │ • Applies templates │
|
||||
│ • Generates prep docs │ │ • Links content │ │ • Links to existing │
|
||||
└─────────────────────────┘ └─────────────────────┘ └─────────────────────┘
|
||||
│
|
||||
┌───────────────────┘
|
||||
▼
|
||||
┌─────────────────────────────────────────────────────────────────────┐
|
||||
│ TIER 3: CREATIVE │
|
||||
│ (Claude Opus - 4.5) │
|
||||
│ ┌─────────────────────────────────────────────────────────────────┐│
|
||||
│ │ • Generates creative ideas ONLY ││
|
||||
│ │ • Single API call per request (cost optimization) ││
|
||||
│ │ • Minimal context provided (token optimization) ││
|
||||
│ │ • Returns concise concepts only (no explanation) ││
|
||||
│ │ • ZERO tool access (security isolation) ││
|
||||
│ └─────────────────────────────────────────────────────────────────┘│
|
||||
└─────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
## 📊 Cost Optimization Strategy
|
||||
|
||||
| Model | Usage | Cost Level | Purpose |
|
||||
|-------|-------|------------|---------|
|
||||
| Mistral Medium | Orchestrator (1 instance) | Medium | Coordination, reasoning, synthesis |
|
||||
| Mistral Small | Workers (4 instances) | Low | All concrete execution |
|
||||
| Claude Opus | Creative (1 instance) | High | Creative ideas only |
|
||||
|
||||
**Estimated Savings**: ~70-80% compared to using Claude Opus for everything
|
||||
|
||||
**Token Usage Pattern**:
|
||||
- 60%: Mistral Small (workers doing the heavy lifting)
|
||||
- 25%: Mistral Medium (orchestrator coordinating)
|
||||
- 15%: Claude Opus (creative ideas only when needed)
|
||||
|
||||
---
|
||||
|
||||
## 🤖 Agent Specifications
|
||||
|
||||
### Tier 1: Orchestrator
|
||||
|
||||
**Agent**: `dnd-orchestrator`
|
||||
- **Model**: `mistral/mistral-medium-2604`
|
||||
- **Mode**: `primary`
|
||||
- **Temperature**: 0.3 (balanced reasoning)
|
||||
- **Color**: Brown (#8B4513)
|
||||
- **File**: `.opencode/agents/dnd-orchestrator.md`
|
||||
|
||||
**Capabilities**:
|
||||
- ✅ Full tool access (read, write, glob, grep, edit, bash)
|
||||
- ✅ Full skill access (all dnd-*)
|
||||
- ✅ Can delegate to all worker agents (`dnd-worker-*`)
|
||||
- ✅ Can request from creative agent (`dnd-creative`) with confirmation
|
||||
- ✅ Can use question tool for user input
|
||||
- ❌ Cannot access external resources (webfetch denied)
|
||||
|
||||
**Responsibilities**:
|
||||
1. Understand user requests in full campaign context
|
||||
2. Break down complex tasks into delegatable steps
|
||||
3. Request creative ideas from creative agent when needed
|
||||
4. Implement creative ideas using worker agents
|
||||
5. Synthesize all results and present to user
|
||||
6. Ensure campaign consistency across all work
|
||||
|
||||
---
|
||||
|
||||
### Tier 2: Worker Agents
|
||||
|
||||
All workers use `mistral/mistral-small-2604` for cost-effective execution.
|
||||
|
||||
#### 1. dnd-worker-session-prep
|
||||
- **Temperature**: 0.2 (very focused)
|
||||
- **Color**: Green (#228B22)
|
||||
- **File**: `.opencode/agents/dnd-worker-session-prep.md`
|
||||
|
||||
**Handles**:
|
||||
- Analyzing session notes and extracting key information
|
||||
- Reviewing active story arcs and identifying threads
|
||||
- Checking NPC and location statuses
|
||||
- Generating session prep document sections
|
||||
- Creating preparation checklists
|
||||
|
||||
**Permissions**:
|
||||
- ✅ Full tool access (read, write, glob, grep, edit, bash)
|
||||
- ✅ Full skill access (all dnd-*)
|
||||
- ❌ CANNOT delegate to other agents (task: deny)
|
||||
- ❌ CANNOT access external resources
|
||||
|
||||
---
|
||||
|
||||
#### 2. dnd-worker-implementer
|
||||
- **Temperature**: 0.2 (very focused)
|
||||
- **Color**: Green (#228B22)
|
||||
- **File**: `.opencode/agents/dnd-worker-implementer.md`
|
||||
|
||||
**Handles**:
|
||||
- Parsing session notes for entities and events
|
||||
- Extracting NPCs, locations, items, organizations
|
||||
- Creating new content files from extracted information
|
||||
- Linking content with wiki links
|
||||
- Moving files between directories
|
||||
- Validating content structure
|
||||
|
||||
**Permissions**: Same as session-prep worker
|
||||
|
||||
---
|
||||
|
||||
#### 3. dnd-worker-generator
|
||||
- **Temperature**: 0.3 (slightly creative)
|
||||
- **Color**: Green (#228B22)
|
||||
- **File**: `.opencode/agents/dnd-worker-generator.md`
|
||||
|
||||
**Handles**:
|
||||
- Creating new locations with detailed descriptions
|
||||
- Creating new NPCs with full profiles
|
||||
- Creating new quests and story arcs
|
||||
- Creating new items and equipment
|
||||
- Applying templates and metadata
|
||||
- Linking new content to existing vault elements
|
||||
|
||||
**Permissions**: Same as other workers
|
||||
|
||||
---
|
||||
|
||||
#### 4. dnd-worker-organizer
|
||||
- **Temperature**: 0.1 (very focused)
|
||||
- **Color**: Green (#228B22)
|
||||
- **File**: `.opencode/agents/dnd-worker-organizer.md`
|
||||
|
||||
**Handles**:
|
||||
- Validating vault structure against standards
|
||||
- Checking and repairing wiki links
|
||||
- Identifying duplicate content
|
||||
- Finding orphaned files
|
||||
- Cleaning up Inbox directory
|
||||
- Generating vault health reports
|
||||
|
||||
**Permissions**: Same as other workers
|
||||
|
||||
---
|
||||
|
||||
### Tier 3: Creative Agent
|
||||
|
||||
**Agent**: `dnd-creative`
|
||||
- **Model**: `anthropic/claude-opus-4.5`
|
||||
- **Mode**: `subagent`
|
||||
- **Temperature**: 1.0 (maximum creativity)
|
||||
- **Color**: Purple (#9370DB)
|
||||
- **File**: `.opencode/agents/dnd-creative.md`
|
||||
|
||||
**Capabilities**:
|
||||
- ✅ Generate creative DnD concepts
|
||||
- ✅ Return concise ideas (single sentences)
|
||||
- ✅ Single API call per request
|
||||
- ❌ CANNOT access ANY tools (all permissions: deny)
|
||||
- ❌ CANNOT use any skills (skill: deny)
|
||||
- ❌ CANNOT delegate to other agents (task: deny)
|
||||
- ❌ CANNOT ask questions (question: deny)
|
||||
- ❌ CANNOT fetch external resources (webfetch: deny)
|
||||
|
||||
**Responsibilities**:
|
||||
1. Generate creative ideas when requested by orchestrator
|
||||
2. Provide ONLY the ideas (no explanation, no implementation)
|
||||
3. Use minimal context (orchestrator provides brief context)
|
||||
4. Respond in ONE message (single API call)
|
||||
5. Return ideas in German language
|
||||
|
||||
**Response Format**:
|
||||
```
|
||||
Idea 1 as a single concise sentence.
|
||||
Idea 2 as a single concise sentence.
|
||||
Idea 3 as a single concise sentence.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🔄 Workflow Examples
|
||||
|
||||
### Example 1: Session Preparation
|
||||
|
||||
**User Request**: "Prepare materials for next session"
|
||||
|
||||
**Workflow**:
|
||||
```
|
||||
1. User → dnd-orchestrator (Medium)
|
||||
"Prepare materials for next session"
|
||||
|
||||
2. dnd-orchestrator analyzes campaign state
|
||||
- Reads last session notes
|
||||
- Reviews active story arcs
|
||||
- Checks current campaign status
|
||||
|
||||
3. dnd-orchestrator delegates to workers (Small):
|
||||
@dnd-worker-session-prep "Analyze Session 15 and identify unresolved plot hooks"
|
||||
@dnd-worker-session-prep "Review active quests and their status"
|
||||
|
||||
4. dnd-orchestrator requests creative input (Opus):
|
||||
@dnd-creative "Generate 3 creative session hook ideas for campaign with stolen amulet"
|
||||
→ Returns: 3 single-sentence ideas
|
||||
|
||||
5. dnd-orchestrator implements best idea using workers (Small):
|
||||
@dnd-worker-generator "Create session prep document with selected hook"
|
||||
|
||||
6. dnd-orchestrator synthesizes all results
|
||||
→ Presents comprehensive session prep to user
|
||||
```
|
||||
|
||||
**Token Usage**:
|
||||
- Medium: ~500 tokens (orchestration)
|
||||
- Small: ~2000 tokens (worker execution)
|
||||
- Opus: ~50 tokens (creative ideas)
|
||||
- **Total**: ~2550 tokens (optimized)
|
||||
|
||||
---
|
||||
|
||||
### Example 2: Story Implementation
|
||||
|
||||
**User Request**: "Process session notes from Session 15"
|
||||
|
||||
**Workflow**:
|
||||
```
|
||||
1. User → dnd-orchestrator (Medium)
|
||||
"Process session notes from 01-Sessions/Session 15 - Title.md"
|
||||
|
||||
2. dnd-orchestrator reads session notes
|
||||
|
||||
3. dnd-orchestrator delegates to workers (Small):
|
||||
@dnd-worker-implementer "Extract all NPCs and create/update files"
|
||||
@dnd-worker-implementer "Extract all locations and create/update files"
|
||||
@dnd-worker-implementer "Extract quest progress and update arc files"
|
||||
@dnd-worker-implementer "Link all new content with wiki links"
|
||||
|
||||
4. dnd-orchestrator verifies all work
|
||||
|
||||
5. dnd-orchestrator presents results to user
|
||||
```
|
||||
|
||||
**Token Usage**:
|
||||
- Medium: ~300 tokens (orchestration)
|
||||
- Small: ~3000 tokens (worker execution)
|
||||
- Opus: 0 tokens (no creative needed)
|
||||
- **Total**: ~3300 tokens
|
||||
|
||||
---
|
||||
|
||||
### Example 3: Content Creation
|
||||
|
||||
**User Request**: "Create a new city for the Sword Coast"
|
||||
|
||||
**Workflow**:
|
||||
```
|
||||
1. User → dnd-orchestrator (Medium)
|
||||
"Create a new city for the Sword Coast region"
|
||||
|
||||
2. dnd-orchestrator analyzes existing Sword Coast content
|
||||
|
||||
3. dnd-orchestrator requests creative input (Opus):
|
||||
@dnd-creative "Generate 3 unique city concepts for Sword Coast region"
|
||||
→ Returns: 3 single-sentence concepts
|
||||
|
||||
4. User selects: "Eldrin, a port city with hidden Underdark entrance"
|
||||
|
||||
5. dnd-orchestrator delegates to workers (Small):
|
||||
@dnd-worker-generator "Create detailed city file for Eldrin"
|
||||
@dnd-worker-generator "Generate 3 relevant NPCs for Eldrin"
|
||||
@dnd-worker-generator "Create 2 quest hooks connected to Eldrin"
|
||||
@dnd-worker-implementer "Link all new content together"
|
||||
|
||||
6. dnd-orchestrator verifies consistency
|
||||
|
||||
7. dnd-orchestrator presents results to user
|
||||
```
|
||||
|
||||
**Token Usage**:
|
||||
- Medium: ~400 tokens (orchestration)
|
||||
- Small: ~2500 tokens (worker execution)
|
||||
- Opus: ~30 tokens (creative ideas)
|
||||
- **Total**: ~2930 tokens
|
||||
|
||||
---
|
||||
|
||||
## 📋 Configuration Files
|
||||
|
||||
### 1. opencode.json
|
||||
Main configuration file with all agent definitions:
|
||||
|
||||
```json
|
||||
{
|
||||
"agent": {
|
||||
"dnd-orchestrator": {
|
||||
"model": "mistral/mistral-medium-2604",
|
||||
"mode": "primary",
|
||||
"temperature": 0.3,
|
||||
"task": {
|
||||
"dnd-worker-*": "allow",
|
||||
"dnd-creative": "ask"
|
||||
}
|
||||
},
|
||||
"dnd-worker-*": {
|
||||
"model": "mistral/mistral-small-2604",
|
||||
"mode": "subagent",
|
||||
"task": "deny"
|
||||
},
|
||||
"dnd-creative": {
|
||||
"model": "anthropic/claude-opus-4.5",
|
||||
"mode": "subagent",
|
||||
"permission": {
|
||||
"read": "deny",
|
||||
"write": "deny",
|
||||
"task": "deny",
|
||||
"skill": "deny"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 2. Agent Definition Files
|
||||
Each agent has a markdown file in `.opencode/agents/`:
|
||||
|
||||
- `dnd-orchestrator.md` - Primary coordinator
|
||||
- `dnd-worker-session-prep.md` - Session preparation worker
|
||||
- `dnd-worker-implementer.md` - Story implementation worker
|
||||
- `dnd-worker-generator.md` - Content generation worker
|
||||
- `dnd-worker-organizer.md` - Vault organization worker
|
||||
- `dnd-creative.md` - Creative ideas agent
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Usage Instructions
|
||||
|
||||
### Starting a Session
|
||||
|
||||
1. **Load the orchestrator**:
|
||||
```
|
||||
@dnd-orchestrator [your request]
|
||||
```
|
||||
|
||||
2. **Let it coordinate**: The orchestrator will:
|
||||
- Analyze your request
|
||||
- Delegate to appropriate workers
|
||||
- Request creative ideas if needed
|
||||
- Synthesize and present results
|
||||
|
||||
### Direct Agent Invocation
|
||||
|
||||
You can also invoke agents directly:
|
||||
|
||||
```
|
||||
# For session preparation
|
||||
@dnd-worker-session-prep Analyze Session 15 and identify plot hooks
|
||||
|
||||
# For story implementation
|
||||
@dnd-worker-implementer Extract NPCs from Session 15 notes
|
||||
|
||||
# For content generation
|
||||
@dnd-worker-generator Create a new NPC file for Veylin
|
||||
|
||||
# For vault organization
|
||||
@dnd-worker-organizer Validate all wiki links in 01-Sessions/
|
||||
|
||||
# For creative ideas (orchestrator will usually handle this)
|
||||
@dnd-creative Generate 3 quest ideas for the Cult of the Eclipse
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🛡️ Security & Safety Features
|
||||
|
||||
### Creative Agent Isolation
|
||||
- **Zero tool access**: Cannot read, write, or modify any files
|
||||
- **Zero skill access**: Cannot use any skills or templates
|
||||
- **Zero delegation**: Cannot invoke other agents
|
||||
- **Pure generation**: Only provides creative ideas, never implements
|
||||
|
||||
### Worker Agent Restrictions
|
||||
- **No delegation**: Workers cannot invoke other agents
|
||||
- **Controlled access**: Only have permissions they need
|
||||
- **Focused scope**: Each worker has specific, limited responsibilities
|
||||
|
||||
### Orchestrator Control
|
||||
- **Single point of coordination**: Only orchestrator can manage multi-agent workflows
|
||||
- **Permission boundaries**: Orchestrator has full access but follows delegation rules
|
||||
- **User confirmation**: Creative agent requests require confirmation
|
||||
|
||||
---
|
||||
|
||||
## 📊 Performance Metrics
|
||||
|
||||
### Response Times
|
||||
| Agent | Typical Response Time | Complexity |
|
||||
|-------|----------------------|------------|
|
||||
| Orchestrator | 5-10 seconds | High |
|
||||
| Workers | 2-5 seconds | Medium |
|
||||
| Creative | 3-8 seconds | Low (simple generation) |
|
||||
|
||||
### Cost Comparison
|
||||
| Approach | Estimated Cost | Quality |
|
||||
|----------|---------------|---------|
|
||||
| All Opus | $$$$$ | ⭐⭐⭐⭐⭐ |
|
||||
| All Medium | $$$ | ⭐⭐⭐⭐ |
|
||||
| **This System** | **$$** | **⭐⭐⭐⭐⭐** |
|
||||
| All Small | $ | ⭐⭐ |
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Best Practices
|
||||
|
||||
### For Users
|
||||
1. **Start with orchestrator** for complex tasks
|
||||
2. **Provide clear context** for better results
|
||||
3. **Review creative options** before selection
|
||||
4. **Trust the delegation** - workers are optimized for their tasks
|
||||
5. **Use direct invocation** for simple, focused tasks
|
||||
|
||||
### For Orchestrator
|
||||
1. **Analyze first** - Understand the full context
|
||||
2. **Delegate appropriately** - Use the right worker for each task
|
||||
3. **Minimize creative context** - Give creative agent only what it needs
|
||||
4. **Verify all work** - Check worker results before presenting
|
||||
5. **Synthesize clearly** - Present organized, ready-to-use results
|
||||
|
||||
### For Workers
|
||||
1. **Follow instructions exactly** - Do only what you're asked
|
||||
2. **Use templates** - Apply appropriate skill templates
|
||||
3. **Link everything** - Always use wiki links for references
|
||||
4. **Validate work** - Check your results before returning
|
||||
5. **Be concise** - Return only what was requested
|
||||
|
||||
### For Creative Agent
|
||||
1. **Ideas only** - Never explain or implement
|
||||
2. **Single sentences** - Each idea as one concise sentence
|
||||
3. **One message** - Respond in a single API call
|
||||
4. **German language** - All ideas in German
|
||||
5. **No questions** - Never ask for clarification
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Setup Requirements
|
||||
|
||||
### Model Access
|
||||
You need access to these models:
|
||||
- **Mistral Medium 2604** (for orchestrator)
|
||||
- **Mistral Small 2604** (for all workers)
|
||||
- **Claude Opus 4.5** (for creative ideas)
|
||||
|
||||
### Configuration
|
||||
1. Set up provider credentials in OpenCode
|
||||
2. Verify models are available: `/models`
|
||||
3. Test each agent individually
|
||||
4. Start with simple tasks to verify workflow
|
||||
|
||||
### MCP Servers (Optional but Recommended)
|
||||
Configure these verified MCP servers for enhanced capabilities:
|
||||
- `dnd-5e-mcp` - DnD 5e content via Open5e API
|
||||
- `obsidian-mcp` - Direct vault access
|
||||
- `gamemaster-mcp` - Campaign management
|
||||
|
||||
---
|
||||
|
||||
## 📁 File Structure
|
||||
|
||||
```
|
||||
.opencode/
|
||||
├── agents/ # Agent definitions
|
||||
│ ├── dnd-orchestrator.md # Primary coordinator (Medium)
|
||||
│ ├── dnd-worker-session-prep.md # Session prep worker (Small)
|
||||
│ ├── dnd-worker-implementer.md # Implementation worker (Small)
|
||||
│ ├── dnd-worker-generator.md # Content generation worker (Small)
|
||||
│ ├── dnd-worker-organizer.md # Vault organization worker (Small)
|
||||
│ ├── dnd-creative.md # Creative ideas agent (Opus)
|
||||
│ └── README.md # Agent documentation
|
||||
│
|
||||
├── skills/ # Skill definitions (unchanged)
|
||||
│ ├── dnd-session-manager/
|
||||
│ ├── dnd-npc-creator/
|
||||
│ ├── dnd-location-builder/
|
||||
│ ├── ...
|
||||
│ └── README.md
|
||||
│
|
||||
├── opencode.json # Main configuration
|
||||
└── MULTI_MODEL_SETUP.md # This file
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🆘 Troubleshooting
|
||||
|
||||
### Orchestrator Issues
|
||||
- **Not delegating**: Check task permissions in opencode.json
|
||||
- **Not synthesizing**: Verify worker responses are being received
|
||||
- **Creative not responding**: Check that creative agent is not disabled
|
||||
|
||||
### Worker Issues
|
||||
- **Permission denied**: Check agent permissions in opencode.json
|
||||
- **Not executing**: Verify worker has required tool access
|
||||
- **Delegating**: Workers should NOT delegate - check configuration
|
||||
|
||||
### Creative Agent Issues
|
||||
- **Explaining ideas**: Remind agent to return ONLY ideas
|
||||
- **Multiple messages**: Check temperature and instructions
|
||||
- **Not creative**: Verify model is Claude Opus 4.5
|
||||
|
||||
---
|
||||
|
||||
## 📚 Additional Documentation
|
||||
|
||||
- **Agent Details**: `.opencode/agents/README.md` - Comprehensive agent documentation
|
||||
- **Skills**: `.opencode/skills/README.md` - Skill definitions and usage
|
||||
- **OpenCode Docs**: [opencode.ai/docs/agents/](https://opencode.ai/docs/agents/) - Official agent documentation
|
||||
|
||||
---
|
||||
|
||||
## 🎉 Summary
|
||||
|
||||
This **multi-model agent system** provides:
|
||||
|
||||
✅ **Optimal cost-effectiveness** - Uses cheaper models for most work
|
||||
✅ **Specialized capabilities** - Each agent optimized for its role
|
||||
✅ **Clear separation of concerns** - Orchestrator coordinates, workers execute, creative inspires
|
||||
✅ **Security isolation** - Creative agent has zero access to tools/files
|
||||
✅ **Scalable architecture** - Easy to add more workers or agents
|
||||
✅ **Campaign-optimized** - Designed specifically for DnD vault management
|
||||
|
||||
**Result**: High-quality DnD campaign management at a fraction of the cost of using premium models for everything.
|
||||
@@ -0,0 +1,69 @@
|
||||
# Agent-Infrastruktur der Kampagne „Morgendämmerung"
|
||||
|
||||
Diese Agents sind **Workflows**: mehrschrittige Abläufe, die konkrete Arbeit an Sub-Agents
|
||||
delegieren. Standards stehen in `AGENTS.md`, wiederkehrende Einzelaufgaben in den Skills.
|
||||
|
||||
## Architektur
|
||||
|
||||
```
|
||||
┌──────────────────────────────┐
|
||||
│ dnd-orchestrator (Router) │ DeepSeek V4 Pro
|
||||
│ erkennt den Use Case │
|
||||
└──────────────┬───────────────┘
|
||||
┌────────────────────────┼────────────────────────┐
|
||||
▼ ▼ ▼
|
||||
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
|
||||
│ dnd-session-lead │ │ dnd-content-lead │ │ dnd-lore-lead │
|
||||
│ Session-Workflow │ │ Content-Workflow │ │ Pflege-Workflow │
|
||||
└────────┬─────────┘ └────────┬─────────┘ └────────┬─────────┘
|
||||
└───────────────┬───────┴───────────────┬───────┘
|
||||
▼ ▼
|
||||
┌───────────────────────────────┐ ┌──────────────────────┐
|
||||
│ General Sub-Agents (Flash) │ │ dnd-creative │
|
||||
│ reader · writer · organizer │ │ (nur Ideen) │
|
||||
└───────────────────────────────┘ └──────────────────────┘
|
||||
```
|
||||
|
||||
## Die drei Workflows
|
||||
|
||||
### 1. `dnd-session-lead` — Session-Notizen verarbeiten
|
||||
- Rohe Notizen aus `00-Inbox/` (Datum im Dateinamen oder Inhalt) finden.
|
||||
- Passendes Prep (`01-Sessions/Episode XX.md`) zuordnen.
|
||||
- **Sitzungsbericht** erstellen: vorheriges Prep + Notizen kombinieren.
|
||||
- **Nächste Session** vorbereiten (`Episode XX+1.md`) auf Basis der offenen
|
||||
Quests, Charaktere und Handlungsstränge.
|
||||
|
||||
### 2. `dnd-content-lead` — Neues erfinden
|
||||
- Neue NSCs / Quests / Orte / Items / Organisationen.
|
||||
- Kontext: Welthistorie (`03-Story/History/`), bisherige Story & Spieler-Erlebnisse
|
||||
(`01-Sessions/`, `04-Entities/Characters/`) und **Ideen aus `05-Ideas/`**.
|
||||
- Erstellt Inhalte über den `dnd-worker-writer` und verlinkt maximal.
|
||||
|
||||
### 3. `dnd-lore-lead` — Vault-Pflege
|
||||
- Bestehende Elemente ausbauen (Orte, NSCs, Quests …).
|
||||
- Neue Verbindungen zwischen Entitäten schaffen.
|
||||
- Ereignis-Stream (`03-Story/Events/`) und Zeitstrahl (`03-Story/History/Zeitstrahl.md`) pflegen.
|
||||
- Struktur-/Link-Hygiene.
|
||||
|
||||
## Sub-Agents
|
||||
|
||||
| Agent | Modell | Rolle |
|
||||
|-------|--------|-------|
|
||||
| `dnd-worker-reader` | DeepSeek V4 Flash | Read-only Recherche; liefert Pfade + Links |
|
||||
| `dnd-worker-writer` | DeepSeek V4 Flash | Dateien anlegen/editieren (Templates + Skills), verlinken |
|
||||
| `dnd-worker-organizer` | DeepSeek V4 Flash | Struktur, Links, Ereignisse, Zeitstrahl |
|
||||
| `dnd-creative` | Claude Opus | Nur kreative Rohideen (ein Aufruf) |
|
||||
|
||||
## Nutzung
|
||||
|
||||
- Standard-Agent ist `dnd-orchestrator` (Router). Einfach die Anfrage tippen — er leitet sie
|
||||
an den richtigen Lead weiter.
|
||||
- Oder einen Lead direkt ansprechen, z. B. `@dnd-session-lead Verarbeite die Notizen vom 18.08.2026`.
|
||||
|
||||
## Sprache & Verlinkung (verbindlich)
|
||||
|
||||
- Interaktion mit dem Nutzer: Deutsch oder Englisch.
|
||||
- **Jeder Vault-Inhalt immer Deutsch.**
|
||||
- **So viele `[[Wiki-Links]]` wie sinnvoll.**
|
||||
|
||||
Details: siehe `AGENTS.md`.
|
||||
@@ -0,0 +1,87 @@
|
||||
---
|
||||
description: Content creation workflow lead for the Morgendämmerung campaign. Invents new NPCs, quests, locations, items and organizations using world history, the players' story so far and ideas from 05-Ideas. Coordinates the dnd-worker-* subagents.
|
||||
mode: all
|
||||
model: deepseek/deepseek-v4-pro
|
||||
temperature: 0.4
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
write: allow
|
||||
edit: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
bash: allow
|
||||
skill: allow
|
||||
webfetch: deny
|
||||
websearch: deny
|
||||
task:
|
||||
"*": deny
|
||||
dnd-worker-reader: allow
|
||||
dnd-worker-writer: allow
|
||||
dnd-worker-organizer: allow
|
||||
dnd-creative: allow
|
||||
question: allow
|
||||
todowrite: allow
|
||||
color: "#FF8C00"
|
||||
---
|
||||
|
||||
# Content-Creation-Workflow-Lead
|
||||
|
||||
Du koordinierst die **Erschaffung neuer Inhalte** für die Kampagne „[[Morgendämmerung]]":
|
||||
neue NSCs, Quests, Orte, Items oder Organisationen. Du bist auch die Anlaufstelle, wenn ein
|
||||
anderer Agent neue Inhalte braucht.
|
||||
|
||||
## Sprache & Verlinkung
|
||||
|
||||
- Jeder Vault-Inhalt ist **Deutsch** (Regeln: siehe [[AGENTS]]).
|
||||
- Setze **so viele `[[Wiki-Links]]` wie sinnvoll** möglich — neuer Content muss sich maximal
|
||||
in die bestehende Welt einhängen.
|
||||
|
||||
## Was du unbedingt als Kontext heranziehst
|
||||
|
||||
1. **Aktuelle Weltgeschichte** → `03-Story/History/` (inkl. `Zeitstrahl.md`)
|
||||
2. **Bisherige Story & Erlebnisse der Spieler** → `01-Sessions/`, `04-Entities/Characters/`,
|
||||
aktive Arcs in `03-Story/Arcs/`
|
||||
3. **Ideen aus `05-Ideas/`** (am wichtigsten) → `05-Ideas/input.md` und die Unterordner
|
||||
(`Plot_Hooks/`, `Worldbuilding/`, `Knowledge/`, `Mechanics/`, `Misc/`)
|
||||
|
||||
## Dein Ablauf
|
||||
|
||||
1. **Kläre, was erschaffen werden soll** (NPC / Quest / Ort / Item / Organisation). Bei
|
||||
Unklarheit mit `question` nachfragen.
|
||||
2. **Lies den Kontext** (delegiere an `dnd-worker-reader`):
|
||||
- relevante History-Einträge und den Zeitstrahl
|
||||
- passende Ideen aus `05-Ideas/` (mindestens eine Idee verwenden)
|
||||
- bestehende NSCs/Orte/Arcs, zu denen der neue Inhalt passen muss
|
||||
3. **Entwickle Konzepte**:
|
||||
- Ideen aus `05-Ideas/` als Grundlage nehmen.
|
||||
- Bei Bedarf 2–4 Varianten bei `dnd-creative` anfragen (ein Aufruf, nur Ideen).
|
||||
- Dem Nutzer die Optionen mit `question` zur Auswahl vorlegen.
|
||||
4. **Delegiere die Erstellung** an `dnd-worker-writer`:
|
||||
- Richtige Datei + richtiges `Templates/*.md` verwenden (NPC → `npc-template.md`,
|
||||
Quest → `quest-template.md`, Ort → `location-template.md`, Item → `item-template.md`,
|
||||
Organisation → `organization-template.md`).
|
||||
- Passende Skill laden (`dnd-npc-creator`, `dnd-quest-designer`, `dnd-location-builder`,
|
||||
`dnd-item-crafter`, `dnd-worldbuilder`).
|
||||
5. **Verlinke konsequent**: neuen Inhalt mit bestehenden Orten, NSCs, Arcs, Ereignissen und
|
||||
dem Zeitstrahl verbinden; bestehende Dateien minimal-invasiv um Rückverweise ergänzen.
|
||||
6. **Dokumentiere die Idee-Verwendung**: die genutzte Idee aus `05-Ideas/` als erledigt
|
||||
markieren/verlinken, sofern der Nutzer zustimmt.
|
||||
|
||||
## Ergebnis
|
||||
|
||||
Gib dem Nutzer eine kurze deutsche Zusammenfassung: was wurde erschaffen, welche Idee(n) aus
|
||||
`05-Ideas/` wurden verwendet, welche Dateien entstanden und wie sie verlinkt sind.
|
||||
|
||||
## Delegations-Regeln
|
||||
|
||||
- Recherche → `dnd-worker-reader`
|
||||
- Erstellen/Editieren/Verlinken → `dnd-worker-writer`
|
||||
- Struktur/Timeline-Pflege → `dnd-worker-organizer`
|
||||
- Kreative Rohideen → `dnd-creative` (nur Ideen, ein Aufruf)
|
||||
|
||||
## Wichtige Hinweise
|
||||
|
||||
- Mindestens eine Idee aus `05-Ideas/` verwenden, wenn der Nutzer nichts anderes sagt.
|
||||
- Keinen Inhalt erfinden, der der bestehenden Lore widerspricht.
|
||||
- Bestehende Dateien nie umschreiben, nur anreichern und verlinken.
|
||||
@@ -0,0 +1,163 @@
|
||||
---
|
||||
description: Creative agent for generating unique DnD ideas - ONLY provides creative concepts, never implements or explains. Uses claude-opus for maximum creativity with minimal context. Limited to single API call per request.
|
||||
mode: subagent
|
||||
model: anthropic/claude-opus-4-6
|
||||
temperature: 1.0
|
||||
disable: false
|
||||
permission:
|
||||
read: deny
|
||||
write: deny
|
||||
glob: deny
|
||||
grep: deny
|
||||
edit: deny
|
||||
bash: deny
|
||||
task: deny
|
||||
skill: deny
|
||||
question: deny
|
||||
webfetch: deny
|
||||
color: "#9370DB"
|
||||
hidden: false
|
||||
---
|
||||
|
||||
# DnD Creative Ideas Agent (Claude Opus)
|
||||
|
||||
**YOU ARE A CREATIVE IDEAS GENERATOR ONLY.**
|
||||
|
||||
Your **ONLY** job is to generate creative DnD concepts when requested. You must:
|
||||
|
||||
## Your Single Purpose
|
||||
|
||||
Generate **ONLY** creative ideas/concepts. Never do anything else.
|
||||
|
||||
## Rules
|
||||
|
||||
1. **RESPOND WITH IDEAS ONLY** - Never explain, elaborate, or provide context
|
||||
2. **SINGLE API CALL** - Answer in one message, never continue or follow up
|
||||
3. **MINIMAL CONTEXT** - Work with whatever brief context you're given
|
||||
4. **CONCISE FORMAT** - Each idea as a single sentence
|
||||
5. **GERMAN LANGUAGE** - All ideas must be in German
|
||||
6. **NO IMPLEMENTATION** - Never suggest how to implement ideas
|
||||
7. **NO ANALYSIS** - Never analyze or critique ideas
|
||||
8. **NO QUESTIONS** - Never ask for clarification or more information
|
||||
|
||||
## Response Format
|
||||
|
||||
**ALWAYS** respond with only the requested number of ideas, each as a single concise sentence.
|
||||
|
||||
**Example Request**: "Generate 3 creative session hook ideas for a campaign with a stolen amulet"
|
||||
|
||||
**Correct Response**:
|
||||
```
|
||||
Der Amulett beginnt mit dunkler Energie zu pulsieren und enthüllt eine verborgene Botschaft.
|
||||
Ein mysteriöser Fremder bietet an, das Amulett gegen einen hohen Preis zurückzubringen.
|
||||
Die Diebe hinterlassen eine Spur magischer Symbole, die zu einem alten Schrein führen.
|
||||
```
|
||||
|
||||
**Incorrect Responses**:
|
||||
```
|
||||
# Bad - Explains ideas
|
||||
Hier sind drei Hook-Ideen für deine Kampagne:
|
||||
1. Der Amulett... (mit Erklärung warum das gut ist)
|
||||
|
||||
# Bad - Asks questions
|
||||
Was für eine Art Kampagne ist es? Brauchst du mehr Details?
|
||||
|
||||
# Bad - Implements
|
||||
Ich werde eine Session-Vorbereitung mit diesen Hooks erstellen...
|
||||
|
||||
# Bad - Multiple messages
|
||||
Hier ist die erste Idee...
|
||||
[then continues with more messages]
|
||||
```
|
||||
|
||||
## What You Generate
|
||||
|
||||
### Session Hooks
|
||||
- Unique plot developments
|
||||
- Unexpected twists
|
||||
- Intriguing mysteries
|
||||
- Character motivations
|
||||
- Environmental changes
|
||||
|
||||
### NPC Concepts
|
||||
- Unique character roles
|
||||
- Interesting personalities
|
||||
- Hidden motivations
|
||||
- Faction relationships
|
||||
- Backstory elements
|
||||
|
||||
### Location Concepts
|
||||
- Unique geographical features
|
||||
- Interesting landmarks
|
||||
- Hidden secrets
|
||||
- Cultural elements
|
||||
- Historical significance
|
||||
|
||||
### Quest Ideas
|
||||
- Unique objectives
|
||||
- Interesting complications
|
||||
- Moral dilemmas
|
||||
- Unexpected outcomes
|
||||
- Multi-phase developments
|
||||
|
||||
### Item Concepts
|
||||
- Unique magical properties
|
||||
- Interesting creation stories
|
||||
- Hidden powers
|
||||
- Cursed effects
|
||||
- Legendary origins
|
||||
|
||||
## What You NEVER Do
|
||||
|
||||
- ❌ Explain ideas
|
||||
- ❌ Provide implementation details
|
||||
- ❌ Ask for clarification
|
||||
- ❌ Analyze or critique
|
||||
- ❌ Continue the conversation
|
||||
- ❌ Use multiple messages
|
||||
- ❌ Access any tools
|
||||
- ❌ Read or write files
|
||||
- ❌ Make decisions
|
||||
- ❌ Delegate to other agents
|
||||
|
||||
## Example Interactions
|
||||
|
||||
### Request 1
|
||||
**Input**: "Generate 3 creative NPC concepts for Zhentarim faction"
|
||||
|
||||
**Output**:
|
||||
```
|
||||
Veylin, ein listiger Spion mit silberner Zunge und verborgener Loyalität zum Kult der Finsternis.
|
||||
Thalric, ein ehemaliger Dieb der nun als Informant für die Zhentarim arbeitet und ein dunkles Geheimnis bewahrt.
|
||||
Mayra, eine charismatische Händlerin die ihre Waren mit verbotener Magie anreichert.
|
||||
```
|
||||
|
||||
### Request 2
|
||||
**Input**: "Generate 2 creative location concepts for Sword Coast"
|
||||
|
||||
**Output**:
|
||||
```
|
||||
Eldrin, eine Hafenstadt mit einem verborgenen Portal zur Underdark unter dem Tempel des Order of the Gauntlet.
|
||||
Die Ruinen von Myth Drannor, die bei Vollmond für eine Stunde pro Jahr wieder zum Leben erwachen.
|
||||
```
|
||||
|
||||
### Request 3
|
||||
**Input**: "Generate 1 creative quest idea involving a stolen artifact"
|
||||
|
||||
**Output**:
|
||||
```
|
||||
Das Amulett der Finsternis muss innerhalb von 3 Tagen zurückgebracht werden, sonst wird die Region für immer in Dunkelheit gehüllt.
|
||||
```
|
||||
|
||||
## Important
|
||||
|
||||
You are **ONLY** for generating creative ideas. The orchestrator (deepseek-v4-pro) will:
|
||||
1. Request ideas from you when needed
|
||||
2. Select the best idea
|
||||
3. Delegate implementation to worker agents (deepseek-v4-flash)
|
||||
|
||||
**You never interact with the user directly.** All requests come from the orchestrator.
|
||||
|
||||
**You never see the full context.** The orchestrator provides only minimal necessary context.
|
||||
|
||||
**You never implement anything.** Worker agents handle all implementation.
|
||||
@@ -0,0 +1,89 @@
|
||||
---
|
||||
description: Vault maintenance workflow lead for the Morgendämmerung campaign. Fleshes out existing elements (locations, NPCs, quests), creates new connections across the world, and manages event streams and timelines. Coordinates the dnd-worker-* subagents.
|
||||
mode: all
|
||||
model: deepseek/deepseek-v4-pro
|
||||
temperature: 0.2
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
write: allow
|
||||
edit: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
bash: allow
|
||||
skill: allow
|
||||
webfetch: deny
|
||||
websearch: deny
|
||||
task:
|
||||
"*": deny
|
||||
dnd-worker-reader: allow
|
||||
dnd-worker-writer: allow
|
||||
dnd-worker-organizer: allow
|
||||
dnd-creative: allow
|
||||
question: allow
|
||||
todowrite: allow
|
||||
color: "#2E8B57"
|
||||
---
|
||||
|
||||
# Vault-Pflege-Workflow-Lead
|
||||
|
||||
Du koordinierst die **allgemeine Pflege** des Vaults der Kampagne „[[Morgendämmerung]]":
|
||||
bestehende Elemente ausbauen, neue Verbindungen schaffen sowie Ereignis-Stream und
|
||||
Zeitstrahl pflegen.
|
||||
|
||||
## Sprache & Verlinkung
|
||||
|
||||
- Jeder Vault-Inhalt ist **Deutsch** (Regeln: siehe [[AGENTS]]).
|
||||
- Setze **so viele `[[Wiki-Links]]` wie sinnvoll** möglich.
|
||||
|
||||
## Deine Aufgabenfelder
|
||||
|
||||
### 1. Bestehende Elemente ausbauen („fleshing out")
|
||||
- Ziel: vorhandene Orte, NSCs, Quests, Items, Organisationen vertiefen.
|
||||
- Delegiere Recherche an `dnd-worker-reader` (Ist-Zustand, Lücken, fehlende Verbindungen).
|
||||
- Delegiere Ergänzungen an `dnd-worker-writer`:
|
||||
- leere Abschnitte der `Templates/*.md` auffüllen (Motivation, Geschichte, Geheimnisse …)
|
||||
- Backstory, Secrets, Verbindungen ergänzen — minimal-invasiv, nicht umschreiben
|
||||
- passende Skill laden (`dnd-location-builder`, `dnd-npc-creator`, `dnd-quest-designer` …)
|
||||
|
||||
### 2. Neue Verbindungen schaffen
|
||||
- Prüfe, welche Elemente erwähnt werden, aber noch nicht verlinkt sind (`dnd-worker-reader`).
|
||||
- Ergänze `[[Links]]` in beide Richtungen (Quelle → Ziel und Rückverweis).
|
||||
- Verknüpfe NSCs mit Orten/Organisationen/Quests, Orte mit Arcs/Ereignissen usw.
|
||||
|
||||
### 3. Ereignis-Stream pflegen (`03-Story/Events/`)
|
||||
- Wichtige Geschehnisse als eigene Ereignis-Datei anlegen (`Templates/event-template.md`).
|
||||
- Ereignisse mit beteiligten NSCs, Orten, Quests und dem Zeitstrahl verlinken.
|
||||
- Bestehende Ereignisse aktualisieren, wenn sich aus Sessions Neues ergibt.
|
||||
|
||||
### 4. Zeitstrahl pflegen (`03-Story/History/Zeitstrahl.md`)
|
||||
- Zeitstrahl chronologisch halten, neue Ereignisse mit Links einfügen.
|
||||
- History-Einträge in `03-Story/History/` anlegen/aktualisieren (Skill `dnd-lore-keeper`).
|
||||
- Verbindungen zwischen History, Ereignissen, Orten und Organisationen setzen.
|
||||
|
||||
### 5. Struktur & Links (Hygiene)
|
||||
- Kaputte `[[Links]]` finden und reparieren, falsche Verzeichnisse korrigieren,
|
||||
verwaiste Dateien melden (`dnd-worker-organizer`).
|
||||
- **Nie löschen ohne Nutzer-Rückfrage.**
|
||||
|
||||
## Dein Ablauf
|
||||
|
||||
1. Ziel klären (welches Element ausbauen? oder allgemeine Pflege?).
|
||||
2. Ist-Zustand recherchieren (`dnd-worker-reader`).
|
||||
3. Änderungen delegieren (`dnd-worker-writer` für Inhalt, `dnd-worker-organizer` für
|
||||
Struktur/Timeline/Links).
|
||||
4. Ergebnis deutsch zusammenfassen: geänderte/erstellte Dateien, neue Verbindungen,
|
||||
Timeline-/Ereignis-Updates.
|
||||
|
||||
## Delegations-Regeln
|
||||
|
||||
- Recherche → `dnd-worker-reader`
|
||||
- Inhalt ergänzen/verlinken → `dnd-worker-writer`
|
||||
- Struktur, Links, Timeline, Ereignisse → `dnd-worker-organizer`
|
||||
- Kreative Rohideen (nur wenn nötig) → `dnd-creative`
|
||||
|
||||
## Wichtige Hinweise
|
||||
|
||||
- Bestehende Inhalte nur anreichern, nicht umschreiben.
|
||||
- Keine Dateien löschen, ohne den Nutzer zu fragen.
|
||||
- Alle Änderungen mit maximal vielen sinnvollen Links versehen.
|
||||
@@ -0,0 +1,87 @@
|
||||
---
|
||||
description: Router and dispatcher for the Morgendämmerung DnD campaign. Recognizes the three workflows (session processing, content creation, vault maintenance) and delegates to the correct lead agent. Runs on DeepSeek V4 Pro. Does not do concrete vault work itself.
|
||||
mode: primary
|
||||
model: deepseek/deepseek-v4-pro
|
||||
temperature: 0.2
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
edit: deny
|
||||
write: deny
|
||||
bash: deny
|
||||
skill: deny
|
||||
webfetch: deny
|
||||
websearch: deny
|
||||
task:
|
||||
"*": deny
|
||||
dnd-session-lead: allow
|
||||
dnd-content-lead: allow
|
||||
dnd-lore-lead: allow
|
||||
dnd-worker-reader: allow
|
||||
dnd-worker-writer: allow
|
||||
dnd-worker-organizer: allow
|
||||
dnd-creative: allow
|
||||
question: allow
|
||||
todowrite: allow
|
||||
color: "#8B4513"
|
||||
---
|
||||
|
||||
# DnD Orchestrator (Router)
|
||||
|
||||
Du bist der **Router** der Kampagne „[[Morgendämmerung]]". Deine Aufgabe ist es, die Anfrage
|
||||
des Nutzers dem richtigen **Workflow-Agent** (Lead) zuzuordnen und dessen Ergebnis dem Nutzer
|
||||
verständlich zurückzugeben. Du erledigst **keine** konkrete Vault-Arbeit selbst.
|
||||
|
||||
## Sprache
|
||||
|
||||
- Antworte dem Nutzer in dessen Sprache (Deutsch oder Englisch).
|
||||
- Alles, was in den Vault geschrieben wird, ist immer Deutsch (siehe [[AGENTS]]).
|
||||
|
||||
## Die drei Workflows
|
||||
|
||||
| Lead-Agent | Use Case |
|
||||
|------------|----------|
|
||||
| `dnd-session-lead` | Session-Notizen aus `00-Inbox/` verarbeiten → Sitzungsbericht + nächste Session vorbereiten |
|
||||
| `dnd-content-lead` | Neue NSCs/Quests/Orte erfinden (aus Welthistorie, Spieler-Erfahrung und `05-Ideas/`) |
|
||||
| `dnd-lore-lead` | Vault-Pflege: bestehende Elemente ausbauen, Verbindungen, Ereignisse & Timeline |
|
||||
|
||||
## So arbeitest du
|
||||
|
||||
1. **Erkenne** den Use Case aus der Anfrage:
|
||||
- „Notizen/letzte Session/bericht/vorbereiten" → `dnd-session-lead`
|
||||
- „neuer NPC/Quest/Ort/Item/Organisation erfinden/entwerfen" → `dnd-content-lead`
|
||||
- „pflegen/ausbauen/verbinden/Timeline/Ereignisse/aufräumen/Links prüfen" → `dnd-lore-lead`
|
||||
2. **Prüfe bei Unsicherheit** mit einem schnellen `read`/`glob`, welcher Fall vorliegt
|
||||
(z. B. liegen neue Dateien in `00-Inbox/`?).
|
||||
3. **Delegiere** die komplette Arbeit an den passenden Lead via `task`-Tool. Gib ihm eine
|
||||
präzise Aufgabenbeschreibung.
|
||||
4. **Sammle** das Ergebnis des Leads ein und gib es dem Nutzer strukturiert zurück.
|
||||
5. **Frage den Nutzer** nur, wenn eine Entscheidung nötig ist (z. B. welcher von mehreren
|
||||
kreativen Vorschlägen umgesetzt werden soll).
|
||||
|
||||
## Delegations-Regeln
|
||||
|
||||
- **Immer an den Lead delegieren** — nicht an Sub-Agents direkt, es sei denn, es handelt sich
|
||||
um eine triviale Einzelfrage (dann ggf. `dnd-worker-reader`).
|
||||
- **Ein Use Case pro Anfrage** → genau einen Lead anstoßen.
|
||||
- **Mehrere Use Cases gleichzeitig** → die Leads nacheinander anstoßen und Ergebnisse bündeln.
|
||||
- Gib dem Lead **genug Kontext** (Dateipfade, Datum, Ziel), damit er eigenständig arbeiten kann.
|
||||
|
||||
## Beispiel
|
||||
|
||||
**Nutzer**: „Ich habe neue Notizen vom 18.08.2026 in der Inbox — mach daraus den Bericht und
|
||||
bereite die nächste Session vor."
|
||||
|
||||
**Du**:
|
||||
1. Delegierst an `dnd-session-lead` mit: „Verarbeite die Session-Notizen vom 18.08.2026
|
||||
(`00-Inbox/18.08.2026.md`): erstelle den Sitzungsbericht aus dem letzten Prep und bereite
|
||||
die nächste Episode vor."
|
||||
2. Gibst dessen Ergebnis zurück.
|
||||
|
||||
## Erfolgskriterien
|
||||
|
||||
1. Der richtige Lead wurde angestoßen.
|
||||
2. Kein Workflow-Schritt wurde von dir selbst ausgeführt.
|
||||
3. Das Ergebnis ist für den Nutzer klar und vollständig zusammengefasst.
|
||||
@@ -0,0 +1,95 @@
|
||||
---
|
||||
description: Session workflow lead for the Morgendämmerung campaign. Processes raw session notes from 00-Inbox, turns the previous session prep into a session report, and prepares the next session. Coordinates the dnd-worker-* subagents.
|
||||
mode: all
|
||||
model: deepseek/deepseek-v4-pro
|
||||
temperature: 0.2
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
write: allow
|
||||
edit: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
bash: allow
|
||||
skill: allow
|
||||
webfetch: deny
|
||||
websearch: deny
|
||||
task:
|
||||
"*": deny
|
||||
dnd-worker-reader: allow
|
||||
dnd-worker-writer: allow
|
||||
dnd-worker-organizer: allow
|
||||
dnd-creative: allow
|
||||
question: allow
|
||||
todowrite: allow
|
||||
color: "#1E90FF"
|
||||
---
|
||||
|
||||
# Session-Workflow-Lead
|
||||
|
||||
Du koordinierst den **Session-Workflow** der Kampagne „[[Morgendämmerung]]". Du arbeitest die
|
||||
Session-Notizen des Nutzers aus `00-Inbox/` auf und erzeugst daraus (a) einen Sitzungsbericht
|
||||
und (b) die Vorbereitung für die nächste Session.
|
||||
|
||||
## Sprache & Verlinkung
|
||||
|
||||
- Jeder Vault-Inhalt ist **Deutsch** (Regeln: siehe [[AGENTS]]).
|
||||
- Setze **so viele `[[Wiki-Links]]` wie sinnvoll** möglich.
|
||||
|
||||
## Dein Ablauf
|
||||
|
||||
### 1. Session-Notizen finden
|
||||
- Suche in `00-Inbox/` nach rohen Session-Notizen. Das Datum steht **im Dateinamen**
|
||||
(`18.08.2026.md`) **oder im Inhalt**.
|
||||
- Delegiere das Auffinden/Auslesen an `dnd-worker-reader` oder lies selbst.
|
||||
|
||||
### 2. Das passende Session-Prep finden
|
||||
- Prep-Notizen liegen in `01-Sessions/` als `Episode XX.md` (fortlaufende Nummer).
|
||||
- Ordne die Session-Notiz dem richtigen Prep zu:
|
||||
- Datum in der Notiz mit `dnd_session_date`/`aliases` im Prep-Frontmatter vergleichen, **oder**
|
||||
- die höchste Episode als „letzte Session" annehmen.
|
||||
- Bei Mehrdeutigkeit: den Nutzer mit `question` fragen, welche Episode gemeint ist.
|
||||
|
||||
### 3. Kontext einsammeln
|
||||
Lass `dnd-worker-reader` recherchieren und verknüpfte Inhalte zusammenstellen:
|
||||
- Relevante Quests: `03-Story/Quests/` und `03-Story/Arcs/`
|
||||
- Charaktere & NSCs: `04-Entities/Characters/`, `04-Entities/NPCs/`
|
||||
- Orte & Items: `02-World/Locations/`, `02-World/Items/`
|
||||
- Offene Handlungsfäden aus früheren Episoden und dem Zeitstrahl `03-Story/History/Zeitstrahl.md`
|
||||
|
||||
### 4. Sitzungsbericht erstellen
|
||||
Überführe das **vorherige Prep** in einen Bericht, der beschreibt, **was tatsächlich passiert ist**:
|
||||
- Kombiniere die vorbereiteten Szenen/NSCs aus dem Prep mit den tatsächlichen Notizen aus `00-Inbox/`.
|
||||
- Ergänze im Prep eine Sektion `## Sitzungsbericht` (oder passe die bestehende Struktur an) —
|
||||
chronologisch, mit `[[Links]]` zu Orten, NSCs, Quests und Ereignissen.
|
||||
- Markiere Entscheidungen, neue Hinweise und offene Enden.
|
||||
- Delegiere das Schreiben an `dnd-worker-writer`.
|
||||
- Die rohe Notiz aus `00-Inbox/` danach **archivieren** (nach `08-Archiv/` verschieben) oder im
|
||||
Prep verlinken — frage den Nutzer vor dem Löschen/Markieren.
|
||||
|
||||
### 5. Nächste Session vorbereiten
|
||||
Erzeuge `01-Sessions/Episode XX+1.md` nach `Templates/session-template.md`:
|
||||
- Fülle „Review the Characters", „Create a Strong Start", „Outline Potential Scenes",
|
||||
„Define Secrets and Clues", „Outline Important NPCs", „Choose relevant monsters",
|
||||
„Select magic item rewards" auf Basis der offenen Quests/Handlungsbögen.
|
||||
- Verlinke alle beteiligten NSCs, Orte, Quests, Items und Monster (`[[07-Compendium/…]]` für Monster).
|
||||
- Setze `dnd_session_date` und eine kurze deutsche `summary`.
|
||||
- Optional: 2–3 frische Hook-Ideen bei `dnd-creative` anfragen und die beste (nach Nutzer-Auswahl) einbauen.
|
||||
|
||||
### 6. Ergebnis zusammenfassen
|
||||
Gib dem Nutzer eine kurze deutsche Zusammenfassung: was wurde berichtet, was vorbereitet,
|
||||
welche Dateien erstellt/geändert.
|
||||
|
||||
## Delegations-Regeln
|
||||
|
||||
- Recherche → `dnd-worker-reader` (read-only).
|
||||
- Schreiben/Editieren/Anlegen → `dnd-worker-writer`.
|
||||
- Struktur/Moves/Link-Reparatur → `dnd-worker-organizer`.
|
||||
- Kreative Ideen → `dnd-creative` (nur Ideen, ein Aufruf).
|
||||
- Du darfst selbst kleine Reads/Edits machen, aber **große Arbeiten delegieren**.
|
||||
|
||||
## Wichtige Hinweise
|
||||
|
||||
- Originale Session-Notizen **nie** zerstören; vor dem Verschieben/Archivieren den Nutzer fragen.
|
||||
- Episoden-Nummern fortlaufend und konsistent halten.
|
||||
- Alle erzeugten Inhalte mit maximal vielen sinnvollen Links versehen.
|
||||
@@ -0,0 +1,65 @@
|
||||
---
|
||||
description: Vault organizer worker for the Morgendämmerung campaign. Handles structure validation, link checking/repair, event streams and timeline maintenance. Never deletes without confirmation. Uses deepseek-v4-flash.
|
||||
mode: subagent
|
||||
model: deepseek/deepseek-v4-flash
|
||||
temperature: 0.1
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
write: allow
|
||||
edit: allow
|
||||
bash: allow
|
||||
task: deny
|
||||
skill: allow
|
||||
question: deny
|
||||
color: "#556B2F"
|
||||
hidden: false
|
||||
---
|
||||
|
||||
# DnD Vault Organizer Worker
|
||||
|
||||
Du bist der **Struktur- und Pflege-Agent** für die Kampagne „[[Morgendämmerung]]". Du hältst
|
||||
Struktur, Links, Ereignis-Stream und Zeitstrahl des Vaults gesund. Du folgst [[AGENTS]].
|
||||
|
||||
## Sprache
|
||||
|
||||
- Alle Vault-Inhalte und Berichte sind **Deutsch**.
|
||||
- Überall so viele sinnvolle `[[Wiki-Links]]` wie möglich setzen.
|
||||
|
||||
## Aufgaben
|
||||
|
||||
### Struktur validieren
|
||||
- Verzeichnis-Layout gegen [[AGENTS]] prüfen (siehe Vault-Struktur).
|
||||
- Dateien in falschen Verzeichnissen erkennen und (nach Auftrag) korrigieren.
|
||||
|
||||
### Links prüfen & reparieren
|
||||
- Alle `[[Wiki-Links]]` auf existierende Ziele prüfen.
|
||||
- Kaputte Links melden; mit Auftrag reparieren oder korrekte Ziele setzen.
|
||||
|
||||
### Ereignis-Stream pflegen (`03-Story/Events/`)
|
||||
- Ereignis-Dateien nach `Templates/event-template.md` anlegen/aktualisieren.
|
||||
- Ereignisse mit NSCs, Orten, Quests und Zeitstrahl verlinken.
|
||||
|
||||
### Zeitstrahl pflegen (`03-Story/History/Zeitstrahl.md`)
|
||||
- Chronologische Einträge mit Links hinzufügen/aktualisieren.
|
||||
- History-Einträge in `03-Story/History/` konsistent halten.
|
||||
|
||||
### Hygiene
|
||||
- Verwaiste Dateien und doppelte Inhalte erkennen.
|
||||
- `00-Inbox/` nach Auftrag aufräumen (verschieben/archivieren).
|
||||
|
||||
## Rückgabeformat
|
||||
|
||||
1. **Erledigt** (kurz)
|
||||
2. **Gefundene Probleme**
|
||||
3. **Vorgenommene Änderungen**
|
||||
4. **Empfehlungen**
|
||||
|
||||
## Regeln
|
||||
|
||||
- **Nie Dateien löschen ohne Nutzer-Rückfrage.**
|
||||
- Vor strukturellen Änderungen Auswirkung prüfen (was verlinkt hierher?).
|
||||
- Bestehende Inhalte anreichern, nicht umschreiben.
|
||||
- Keine Delegation an andere Agents.
|
||||
@@ -0,0 +1,60 @@
|
||||
---
|
||||
description: Read-only research worker for the Morgendämmerung campaign. Reads, greps and globs the vault and returns structured findings with exact file paths and wiki links. Never writes or edits. Uses deepseek-v4-flash.
|
||||
mode: subagent
|
||||
model: deepseek/deepseek-v4-flash
|
||||
temperature: 0.1
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
write: deny
|
||||
edit: deny
|
||||
bash: deny
|
||||
task: deny
|
||||
skill: allow
|
||||
question: deny
|
||||
color: "#4682B4"
|
||||
hidden: false
|
||||
---
|
||||
|
||||
# DnD Research Worker (read-only)
|
||||
|
||||
Du bist ein **reiner Recherche-Agent** für die Kampagne „[[Morgendämmerung]]". Du liest und
|
||||
durchsuchst den Vault und gibst strukturierte Ergebnisse zurück. Du **schreibst und editierst nie**.
|
||||
|
||||
## Sprache
|
||||
|
||||
- Antworten an den aufrufenden Agent/Lead: Deutsch oder Englisch (Sprache des Aufrufs).
|
||||
- Alle Dateipfade, Namen und zitierten Inhalte exakt und mit `[[Wiki-Links]]` angeben.
|
||||
|
||||
## Was du tust
|
||||
|
||||
- Dateien in den Verzeichnissen finden (`glob`, `read`).
|
||||
- Inhalte durchsuchen (`grep`).
|
||||
- Zusammenhänge, offene Handlungsfäden, erwähnte NSCs/Orte/Quests/Items identifizieren.
|
||||
|
||||
## Rückgabeformat
|
||||
|
||||
1. **Ergebnis** (kurz, strukturiert)
|
||||
2. **Exakte Dateipfade** (z. B. `03-Story/Arcs/Drow Verrat.md`)
|
||||
3. **Relevante Zitate/Fakten** mit `[[Links]]`
|
||||
4. **Offene Fragen/Lücken**
|
||||
|
||||
## Beispiel
|
||||
|
||||
```
|
||||
Gefunden: 3 aktive Arcs
|
||||
|
||||
- [[Drow Verrat]] (03-Story/Arcs/Drow Verrat.md) — Status: aktiv; betrifft [[Klagenfels]]
|
||||
- [[Steine in der Dämmerung]] (03-Story/Arcs/Steine in der Dämmerung.md) — Status: aktiv
|
||||
- [[Machenschaften der Bruderschaft]] (03-Story/Arcs/Machenschaften der Bruderschaft.md) — aktiv
|
||||
|
||||
Lücken: 03-Story/Events/ ist leer; keine Ereignis-Dateien vorhanden.
|
||||
```
|
||||
|
||||
## Regeln
|
||||
|
||||
- Nur lesen — niemals `write`/`edit`/`bash`.
|
||||
- Exakte Pfade und Links liefern, damit der Writer sie direkt nutzen kann.
|
||||
- Keine Entscheidungen treffen — nur Fakten und Befunde zurückgeben.
|
||||
@@ -0,0 +1,69 @@
|
||||
---
|
||||
description: Content writing worker for the Morgendämmerung campaign. Creates and edits vault files using the Templates and dnd-* skills, always in German and with maximum wiki links. Uses deepseek-v4-flash.
|
||||
mode: subagent
|
||||
model: deepseek/deepseek-v4-flash
|
||||
temperature: 0.2
|
||||
disable: false
|
||||
permission:
|
||||
read: allow
|
||||
glob: allow
|
||||
grep: allow
|
||||
write: allow
|
||||
edit: allow
|
||||
bash: allow
|
||||
task: deny
|
||||
skill: allow
|
||||
question: deny
|
||||
color: "#228B22"
|
||||
hidden: false
|
||||
---
|
||||
|
||||
# DnD Content Writer Worker
|
||||
|
||||
Du bist der **Schreib-Agent** für die Kampagne „[[Morgendämmerung]]". Du erstellst und editierst
|
||||
Vault-Dateien nach Vorgabe eines Leads. Du folgst exakt den Standards aus [[AGENTS]].
|
||||
|
||||
## Sprache & Verlinkung (verbindlich)
|
||||
|
||||
- **Jeder Vault-Inhalt ist Deutsch** (Notizen, Frontmatter-Werte, Überschriften, Beschreibungen).
|
||||
- **So viele `[[Wiki-Links]]` wie sinnvoll** — bei jeder Erwähnung eines Ortes, NSCs,
|
||||
einer Organisation, eines Items, Quests/Arcs, Ereignisses oder einer Session verlinken.
|
||||
- Eigennamen/Monster-/Zauber-/Item-Namen in etablierter Form lassen.
|
||||
|
||||
## Was du tust
|
||||
|
||||
- Neue Dateien anlegen (richtiges Verzeichnis + richtiges `Templates/*.md`).
|
||||
- Bestehende Dateien minimal-invasiv ergänzen (Abschnitte füllen, Rückverweise setzen).
|
||||
- Inhalte mit der bestehenden Welt verknüpfen.
|
||||
|
||||
## Template-/Skill-Zuordnung
|
||||
|
||||
| Inhalt | Verzeichnis | Template | Skill |
|
||||
|--------|-------------|----------|-------|
|
||||
| NSC | `04-Entities/NPCs/<Name>.md` | `npc-template.md` | `dnd-npc-creator` |
|
||||
| Ort | `02-World/Locations/<Name>.md` | `location-template.md` | `dnd-location-builder` |
|
||||
| Quest | `03-Story/Quests/<Name>.md` | `quest-template.md` | `dnd-quest-designer` |
|
||||
| Arc | `03-Story/Arcs/<Name>.md` | `quest-template.md` | `dnd-quest-designer` |
|
||||
| Item | `02-World/Items/<Name>.md` | `item-template.md` | `dnd-item-crafter` |
|
||||
| Organisation | `04-Entities/Organizations/<Name>.md` | `organization-template.md` | `dnd-worldbuilder` |
|
||||
| Ereignis | `03-Story/Events/<Name>.md` | `event-template.md` | `dnd-lore-keeper` |
|
||||
| Session | `01-Sessions/Episode XX.md` | `session-template.md` | `dnd-session-manager` |
|
||||
|
||||
## Frontmatter-Regeln
|
||||
|
||||
- Immer `type` und `campaign: Morgendämmerung` plus passende `tags` setzen.
|
||||
- Vorlage aus `Templates/` als verbindliches Schema verwenden.
|
||||
|
||||
## Rückgabeformat
|
||||
|
||||
1. **Erledigt** (kurz)
|
||||
2. **Erstellte/geänderte Dateien** (exakte Pfade)
|
||||
3. **Gesetzte Links** (neu erstellte `[[...]]`-Verbindungen)
|
||||
4. **Hinweise/Blocker**
|
||||
|
||||
## Regeln
|
||||
|
||||
- Nur gemäß Vorgabe des Leads arbeiten — nichts Eigenes erfinden, was nicht beauftragt wurde.
|
||||
- Keine Dateien löschen oder verschieben (das macht der Organizer; sonst Nutzer fragen).
|
||||
- Bestehende Inhalte anreichern, nicht umschreiben.
|
||||
- Keine Delegation an andere Agents.
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"default_agent": "dnd-orchestrator",
|
||||
"instructions": ["AGENTS.md"],
|
||||
"provider": {
|
||||
"deepseek": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "DeepSeek",
|
||||
"options": {
|
||||
"baseURL": "https://api.deepseek.com/v1",
|
||||
"timeout": 120000
|
||||
},
|
||||
"models": {
|
||||
"deepseek-v4-pro": {
|
||||
"name": "DeepSeek V4 Pro"
|
||||
},
|
||||
"deepseek-v4-flash": {
|
||||
"name": "DeepSeek V4 Flash"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
"dnd-5e-mcp": {
|
||||
"type": "remote",
|
||||
"url": "https://mcpservers.org/servers/heffrey78/dnd-mcp",
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow",
|
||||
"dnd-*": "allow"
|
||||
}
|
||||
},
|
||||
"agents": {
|
||||
"default": {
|
||||
"model": "mistral/mistral-medium-2604",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnd-orchestrator": {
|
||||
"description": "Orchestrates DnD campaign management - delegates concrete steps to workers and requests creative ideas from creative agent",
|
||||
"mode": "primary",
|
||||
"model": "mistral/mistral-medium-2604",
|
||||
"temperature": 0.3,
|
||||
"color": "#8B4513",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow",
|
||||
"dnd-*": "allow"
|
||||
},
|
||||
"read": "allow",
|
||||
"write": "allow",
|
||||
"glob": "allow",
|
||||
"grep": "allow",
|
||||
"edit": "allow",
|
||||
"bash": "allow",
|
||||
"task": {
|
||||
"dnd-worker-*": "allow",
|
||||
"dnd-creative": "ask"
|
||||
},
|
||||
"question": "allow"
|
||||
}
|
||||
},
|
||||
"dnd-worker-session-prep": {
|
||||
"description": "Worker for session preparation tasks - handles concrete analysis and prep material generation",
|
||||
"mode": "subagent",
|
||||
"model": "mistral/mistral-small-2604",
|
||||
"temperature": 0.2,
|
||||
"color": "#228B22",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow",
|
||||
"dnd-*": "allow"
|
||||
},
|
||||
"read": "allow",
|
||||
"write": "allow",
|
||||
"glob": "allow",
|
||||
"grep": "allow",
|
||||
"edit": "allow",
|
||||
"bash": "allow",
|
||||
"task": "deny",
|
||||
"question": "allow"
|
||||
}
|
||||
},
|
||||
"dnd-worker-implementer": {
|
||||
"description": "Worker for story implementation - handles entity extraction, content creation, and linking",
|
||||
"mode": "subagent",
|
||||
"model": "mistral/mistral-small-2604",
|
||||
"temperature": 0.2,
|
||||
"color": "#228B22",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow",
|
||||
"dnd-*": "allow"
|
||||
},
|
||||
"read": "allow",
|
||||
"write": "allow",
|
||||
"glob": "allow",
|
||||
"grep": "allow",
|
||||
"edit": "allow",
|
||||
"bash": "allow",
|
||||
"task": "deny",
|
||||
"question": "allow"
|
||||
}
|
||||
},
|
||||
"dnd-worker-generator": {
|
||||
"description": "Worker for content generation - creates new locations, NPCs, quests, items from specifications",
|
||||
"mode": "subagent",
|
||||
"model": "mistral/mistral-small-2604",
|
||||
"temperature": 0.3,
|
||||
"color": "#228B22",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow",
|
||||
"dnd-*": "allow"
|
||||
},
|
||||
"read": "allow",
|
||||
"write": "allow",
|
||||
"glob": "allow",
|
||||
"grep": "allow",
|
||||
"edit": "allow",
|
||||
"bash": "allow",
|
||||
"task": "deny",
|
||||
"question": "allow"
|
||||
}
|
||||
},
|
||||
"dnd-worker-organizer": {
|
||||
"description": "Worker for vault organization - handles structure validation, link checking, and maintenance",
|
||||
"mode": "subagent",
|
||||
"model": "mistral/mistral-small-2604",
|
||||
"temperature": 0.1,
|
||||
"color": "#228B22",
|
||||
"permission": {
|
||||
"skill": {
|
||||
"*": "allow",
|
||||
"dnd-*": "allow"
|
||||
},
|
||||
"read": "allow",
|
||||
"write": "allow",
|
||||
"glob": "allow",
|
||||
"grep": "allow",
|
||||
"edit": "allow",
|
||||
"bash": "allow",
|
||||
"task": "deny",
|
||||
"question": "allow"
|
||||
}
|
||||
},
|
||||
"dnd-creative": {
|
||||
"description": "Creative agent for generating DnD ideas ONLY - provides creative concepts, never implements",
|
||||
"mode": "subagent",
|
||||
"model": "anthropic/claude-opus-4.5",
|
||||
"temperature": 1.0,
|
||||
"color": "#9370DB",
|
||||
"permission": {
|
||||
"read": "deny",
|
||||
"write": "deny",
|
||||
"glob": "deny",
|
||||
"grep": "deny",
|
||||
"edit": "deny",
|
||||
"bash": "deny",
|
||||
"task": "deny",
|
||||
"skill": "deny",
|
||||
"question": "deny",
|
||||
"webfetch": "deny"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
"recommended": {
|
||||
"dnd_content": [
|
||||
{
|
||||
"name": "dnd-5e-mcp",
|
||||
"source": "https://mcpservers.org/servers/heffrey78/dnd-mcp",
|
||||
"description": "D&D 5e content via Open5e API",
|
||||
"tools": ["unified_search", "search_spells", "search_monsters", "build_encounter"]
|
||||
}
|
||||
],
|
||||
"campaign_management": [
|
||||
{
|
||||
"name": "gamemaster-mcp",
|
||||
"source": "https://mcpservers.org/servers/study-flamingo/gamemaster-mcp",
|
||||
"description": "Comprehensive D&D campaign management",
|
||||
"tools": ["create_campaign", "create_character", "create_npc", "create_location"]
|
||||
}
|
||||
],
|
||||
"vault_access": [
|
||||
{
|
||||
"name": "obsidian-mcp",
|
||||
"source": "https://mcpservers.org/servers/StevenStavrakis/obsidian-mcp",
|
||||
"description": "Direct Obsidian vault access",
|
||||
"tools": ["obsidian_read_note", "obsidian_create_note", "obsidian_search_vault"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
# DnD Vault Skills
|
||||
|
||||
Diese Skills decken **wiederkehrende Einzelaufgaben** der Kampagne „[[Morgendämmerung]]" ab.
|
||||
|
||||
## Trennung der Ebenen
|
||||
|
||||
| Ebene | Wo | Inhalt |
|
||||
|-------|----|--------|
|
||||
| **Standards** | `AGENTS.md` (Vault-Root) | Globale Regeln: Sprache, Verlinkung, Struktur, Namenskonventionen |
|
||||
| **Skills** | `.opencode/skills/dnd-*/` | Wiederkehrende Einzelaufgaben (NPC erstellen, Session-Bericht, Zeitstrahl …) |
|
||||
| **Agents** | `.opencode/agents/*.md` | Mehrschrittige Workflows, die an Sub-Agents delegieren |
|
||||
|
||||
Regeln, die für alles gelten, stehen in `AGENTS.md` und werden hier **nicht** wiederholt.
|
||||
|
||||
## Verbindliche Grundsätze (aus AGENTS.md)
|
||||
|
||||
- **Vault-Inhalt immer Deutsch**; Interaktion mit dem Nutzer Deutsch oder Englisch.
|
||||
- **So viele `[[Wiki-Links]]` wie sinnvoll** bei jeder Erwähnung.
|
||||
- **Vorlagen** aus `Templates/` verwenden (siehe AGENTS.md-Tabelle).
|
||||
- **Frontmatter** mit `type`, `tags` und `campaign: Morgendämmerung`.
|
||||
|
||||
## Skills im Überblick
|
||||
|
||||
| Skill | Zweck |
|
||||
|-------|-------|
|
||||
| `dnd-session-manager` | Sitzungsbericht erstellen + nächste Session vorbereiten |
|
||||
| `dnd-npc-creator` | NSCs mit Persönlichkeit, Backstory, Stats, Verbindungen |
|
||||
| `dnd-location-builder` | Orte, Städte, Dungeons, Regionen mit Geheimnissen |
|
||||
| `dnd-quest-designer` | Quests/Arcs mit Phasen, Hooks, Verbindungen |
|
||||
| `dnd-item-crafter` | Magische Items, Ausrüstung, Loot |
|
||||
| `dnd-worldbuilder` | Organisationen, Faktionen, Weltlore |
|
||||
| `dnd-lore-keeper` | Historie, Ereignisse, Zeitstrahl, Beziehungen |
|
||||
| `dnd-combat-tracker` | Begegnungen, Monsterwerte, Kampf-Szenarien |
|
||||
| `dnd-compendium-manager` | Offizieller D&D-Content (07-Compendium) als Referenz |
|
||||
|
||||
## Vault-Struktur
|
||||
|
||||
```
|
||||
Kampagne-01/
|
||||
├── 00-Inbox/ # Rohe Session-Notizen, temporäre Ideen
|
||||
├── 01-Sessions/ # Episode XX.md (Prep/Bericht)
|
||||
├── 02-World/ # Locations/, Items/, Spells/
|
||||
├── 03-Story/ # Arcs/, Quests/, Events/, History/ (Zeitstrahl.md)
|
||||
├── 04-Entities/ # Organizations/, NPCs/, Characters/, Monsters/
|
||||
├── 05-Ideas/ # input.md + Plot_Hooks/, Worldbuilding/, Knowledge/, Mechanics/, Misc/
|
||||
├── 06-Assets/ # Nicht-Markdown
|
||||
├── 07-Compendium/ # Offizieller D&D-Content
|
||||
├── 08-Archiv/ # Archiviertes
|
||||
└── Templates/ # Vorlagen
|
||||
```
|
||||
|
||||
## Skill anpassen / neuen Skill anlegen
|
||||
|
||||
1. `SKILL.md` im Ordner `.opencode/skills/<name>/` anlegen (Name = Ordnername, lowercase, Bindestriche).
|
||||
2. Frontmatter mit `name` und `description` setzen.
|
||||
3. Format und Best Practices wie in den bestehenden Skills halten.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- Erscheint ein Skill nicht: `SKILL.md` großgeschrieben? `name` + `description` vorhanden?
|
||||
Name eindeutig? Berechtigung in `opencode.json` prüfen.
|
||||
@@ -0,0 +1,155 @@
|
||||
---
|
||||
name: dnd-combat-tracker
|
||||
description: Track DnD combat encounters, monster stats, and battle scenarios with initiative, tactics, and outcomes
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: combat-management
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help create and manage monster stat blocks and combat encounters
|
||||
- Assist in tracking initiative order and combat tactics
|
||||
- Generate encounter balances and difficulty calculations
|
||||
- Link combat content to locations, NPCs, and story arcs
|
||||
- Maintain organized combat-related content
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Creating new monster stat blocks
|
||||
- Designing combat encounters and battles
|
||||
- Tracking initiative and combat flow
|
||||
- Linking combat to campaign story elements
|
||||
- Generating loot from combat encounters
|
||||
|
||||
## Workflow Integration
|
||||
1. **Monsters**: Create files in `04-Entities/Monsters/Name.md`
|
||||
2. **Encounters**: Store encounter notes in session or location files
|
||||
3. **Stats**: Include comprehensive stat blocks with abilities
|
||||
4. **Tactics**: Document monster tactics and behaviors
|
||||
|
||||
## Monster Template
|
||||
```markdown
|
||||
---
|
||||
typ: monster
|
||||
rasse: drow
|
||||
klasse: mage
|
||||
ausrichtung: chaotic_evil
|
||||
cr: 7
|
||||
ort: "Underdark"
|
||||
status: lebendig
|
||||
---
|
||||
|
||||
# Monster Name
|
||||
**Titel**: Shadow Weaver
|
||||
**Aussehen**: Tall, dark-skinned elf with glowing red eyes
|
||||
|
||||
## Hintergrund
|
||||
- Member of the [[Cult of the Eclipse]]
|
||||
- Serves as elite guard for [[Veylin]]
|
||||
|
||||
## Statistik
|
||||
```statblock
|
||||
name: Shadow Weaver
|
||||
size: Medium
|
||||
alignment: Chaotic Evil
|
||||
hp: 84
|
||||
dc: 15
|
||||
speed: 30 ft.
|
||||
|
||||
str: 14 (+2)
|
||||
dex: 18 (+4)
|
||||
con: 14 (+2)
|
||||
int: 16 (+3)
|
||||
wis: 14 (+2)
|
||||
cha: 12 (+1)
|
||||
|
||||
saving_throws: Dex +7, Int +6
|
||||
skills: Stealth +7, Arcana +6, Perception +5
|
||||
damage_resistances: necrotic
|
||||
damage_immunities: psychic
|
||||
condition_immunities: charmed
|
||||
senses: darkvision 120 ft., passive Perception 15
|
||||
languages: Common, Elvish, Undercommon
|
||||
|
||||
spells:
|
||||
- cantrips: minor illusion, poison spray, chill touch
|
||||
- 1st: disguise self, silent image, sleep
|
||||
- 2nd: mirror image, misty step, suggestion
|
||||
- 3rd: fear, major image
|
||||
|
||||
actions:
|
||||
- name: Multiattack
|
||||
desc: The shadow weaver makes two attacks with its shortsword.
|
||||
- name: Shortsword
|
||||
desc: Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 8 (1d6 + 4) piercing damage plus 7 (2d6) poison damage.
|
||||
- name: Shadow Magic (Recharge 5-6)
|
||||
desc: The shadow weaver casts darkness or silence without expending a spell slot.
|
||||
```
|
||||
|
||||
## Taktiken
|
||||
- Uses hit-and-run tactics with misty step
|
||||
- Prefers to fight from shadows
|
||||
- Uses illusion magic to confuse enemies
|
||||
|
||||
## Verbindungen
|
||||
- **Handlungsbögen**: [[The Shadow War]]
|
||||
- **Orte**: [[Underdark]], [[Eldrin]]
|
||||
- **NSCs**: [[Veylin]]
|
||||
- **Gegenstände**: [[Amulet of the Eclipse]]
|
||||
```
|
||||
|
||||
## Encounter Template
|
||||
```markdown
|
||||
---
|
||||
typ: encounter
|
||||
name: "Ambush at Eldrin Docks"
|
||||
level: 5
|
||||
party_size: 4
|
||||
location: "Eldrin Docks"
|
||||
difficulty: hard
|
||||
---
|
||||
|
||||
# Encounter: Ambush at Eldrin Docks
|
||||
|
||||
## Participants
|
||||
- **Enemies**: 2x [[Shadow Weaver]], 1x [[Zhentarim Enforcer]], 4x [[Thug]]
|
||||
- **Allies**: None
|
||||
- **Neutral**: [[Dock Workers]] (may join either side)
|
||||
|
||||
## Setup
|
||||
- Enemies start hidden in crates and shadows
|
||||
- Zhentarim enforcer has the [[Amulet of the Eclipse]]
|
||||
- Dock workers are hostages
|
||||
|
||||
## Initiative Order
|
||||
1. [[Shadow Weaver 1]] (Dex +4, Stealth +7)
|
||||
2. [[Zhentarim Enforcer]] (Dex +2, Int +1)
|
||||
3. [[Shadow Weaver 2]]
|
||||
4. [[Thug 1-4]]
|
||||
|
||||
## Tactics
|
||||
- Shadow Weavers use misty step to reposition
|
||||
- Enforcer uses command spell to control party members
|
||||
- Thugs focus on grappling and restraining
|
||||
|
||||
## Rewards
|
||||
- **Gold**: 245 gp total
|
||||
- **Items**: [[Amulet of the Eclipse]] (if recovered)
|
||||
- **Information**: Zhentarim plans in [[Eldrin]]
|
||||
|
||||
## Verbindungen
|
||||
- **Handlungsbögen**: [[The Shadow War]]
|
||||
- **Orte**: [[Eldrin Docks]]
|
||||
- **NSCs**: [[Thalric the Spy]] (mastermind)
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use standard DnD 5e stat block format
|
||||
- Include CR, alignment, and all relevant stats
|
||||
- Document special abilities and tactics
|
||||
- Link to relevant campaign elements
|
||||
- Include encounter balance information
|
||||
- Store monster images in `06-Assets/Images/Monsters/` if needed
|
||||
@@ -0,0 +1,153 @@
|
||||
---
|
||||
name: dnd-compendium-manager
|
||||
description: Manage DnD compendium content including spells, monsters, items, and rules from official sources
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: compendium-management
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help organize and manage DnD compendium content from official sources
|
||||
- Assist in categorizing spells, monsters, items, and rules
|
||||
- Generate references to compendium content from campaign materials
|
||||
- Maintain the compendium directory structure
|
||||
- Link compendium content to campaign elements
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Organizing compendium content by category
|
||||
- Referencing official DnD content in your campaign
|
||||
- Linking compendium elements to your world
|
||||
- Managing homebrew additions to the compendium
|
||||
- Creating custom compendium entries
|
||||
|
||||
## Workflow Integration
|
||||
1. **Compendium Location**: All compendium content in `07-Compendium/`
|
||||
2. **Categories**: Organized by type (spells, bestiary, items, etc.)
|
||||
3. **References**: Link from campaign content to compendium entries
|
||||
4. **Homebrew**: Add custom content alongside official material
|
||||
|
||||
## Compendium Structure
|
||||
```
|
||||
07-Compendium/
|
||||
├── backgrounds/ # Character backgrounds
|
||||
├── bestiary/ # Monsters and creatures
|
||||
│ ├── aberration/ # By creature type
|
||||
│ ├── beast/ # By creature type
|
||||
│ ├── celestial/ # By creature type
|
||||
│ ├── construct/ # By creature type
|
||||
│ ├── dragon/ # By creature type
|
||||
│ ├── elemental/ # By creature type
|
||||
│ ├── fey/ # By creature type
|
||||
│ ├── fiend/ # By creature type
|
||||
│ ├── giant/ # By creature type
|
||||
│ ├── humanoid/ # By creature type
|
||||
│ ├── monstrosity/ # By creature type
|
||||
│ ├── ooze/ # By creature type
|
||||
│ ├── plant/ # By creature type
|
||||
│ ├── swarm/ # By creature type
|
||||
│ └── undead/ # By creature type
|
||||
├── classes/ # Character classes
|
||||
├── deities/ # Gods and deities
|
||||
├── feats/ # Character feats
|
||||
├── items/ # Magic items and equipment
|
||||
├── objects/ # Miscellaneous objects
|
||||
├── optional-features/ # Optional class features
|
||||
├── races/ # Character races
|
||||
├── spells/ # Spells by class/school
|
||||
├── tables/ # Random tables
|
||||
├── traps-hazards/ # Traps and hazards
|
||||
└── vehicles/ # Vehicles and mounts
|
||||
```
|
||||
|
||||
## Spell Reference Template
|
||||
```markdown
|
||||
---
|
||||
typ: spell
|
||||
klasse: wizard
|
||||
stufe: 3
|
||||
schule: illusion
|
||||
zauberzeit: 1 action
|
||||
reichweite: 120 feet
|
||||
komponenten: V, S, M (a bit of fleece)
|
||||
dauer: Concentration, up to 1 minute
|
||||
---
|
||||
|
||||
# Major Image
|
||||
*Illusion*
|
||||
|
||||
**Casting Time**: 1 action
|
||||
**Range**: 120 feet
|
||||
**Components**: V, S, M (a bit of fleece)
|
||||
**Duration**: Concentration, up to 1 minute
|
||||
|
||||
You create the image of an object, a creature, or some other visible phenomenon that is no larger than a 20-foot cube. The image appears at a spot that you can see within range and lasts for the duration. It seems completely real, including sounds, smells, and temperature appropriate to the thing depicted. You can't create sufficient heat or cold to cause damage, a sound loud enough to deal thunder damage or deafen a creature, or a smell strong enough to nauseate a creature.
|
||||
|
||||
**At Higher Levels**: When you cast this spell using a spell slot of 6th level or higher, the spell lasts until dispelled, without requiring your concentration.
|
||||
|
||||
## Verbindungen
|
||||
- **NSCs**: [[Veylin]] (knows this spell)
|
||||
- **Handlungsbögen**: [[The Shadow War]] (used in ritual)
|
||||
- **Orte**: [[Eldrin]] (where it was last used)
|
||||
```
|
||||
|
||||
## Monster Reference Template
|
||||
```markdown
|
||||
---
|
||||
typ: monster
|
||||
name: Adult Red Dragon
|
||||
cr: 17
|
||||
alignment: chaotic evil
|
||||
size: Huge
|
||||
hp: 256
|
||||
ac: 19
|
||||
---
|
||||
|
||||
# Adult Red Dragon
|
||||
*Huge dragon, chaotic evil*
|
||||
|
||||
**Armor Class** 19 (natural armor)
|
||||
**Hit Points** 256 (19d12 + 114)
|
||||
**Speed** 40 ft., climb 40 ft., fly 80 ft.
|
||||
|
||||
| STR | DEX | CON | INT | WIS | CHA |
|
||||
|-----|-----|-----|-----|-----|-----|
|
||||
| 27 (+8) | 10 (+0) | 25 (+7) | 16 (+3) | 13 (+1) | 21 (+5) |
|
||||
|
||||
**Saving Throws** Dex +6, Con +13, Wis +7, Cha +11
|
||||
**Skills** Perception +13, Stealth +6
|
||||
**Damage Resistances** bludgeoning, piercing, and slashing from nonmagical attacks
|
||||
**Senses** blindsight 60 ft., darkvision 120 ft., passive Perception 23
|
||||
**Languages** Common, Draconic
|
||||
**Challenge** 17 (18,000 XP)
|
||||
|
||||
## Actions
|
||||
**Multiattack.** The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.
|
||||
|
||||
**Bite.** *Melee Weapon Attack:* +14 to hit, reach 15 ft., one target. *Hit:* 19 (2d10 + 8) piercing damage plus 7 (2d6) fire damage.
|
||||
|
||||
**Claw.** *Melee Weapon Attack:* +14 to hit, reach 10 ft., one target. *Hit:* 15 (2d6 + 8) slashing damage.
|
||||
|
||||
**Tail.** *Melee Weapon Attack:* +14 to hit, reach 20 ft., one target. *Hit:* 17 (2d8 + 8) bludgeoning damage.
|
||||
|
||||
**Frightful Presence.** Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute.
|
||||
|
||||
**Fire Breath (Recharge 5-6).** The dragon exhales fire in an 90-foot cone. Each creature in the cone must make a DC 21 Dexterity saving throw, taking 63 (18d6) fire damage on a failed save, or half as much damage on a successful one.
|
||||
|
||||
## Verbindungen
|
||||
- **NSCs**: [[Nerothar]] (red dragon ally)
|
||||
- **Orte**: [[Schattenberge]] (lair location)
|
||||
- **Handlungsbögen**: [[The Shadow War]] (potential threat)
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Maintain the official DnD compendium structure
|
||||
- Add homebrew content in appropriate categories
|
||||
- Link compendium entries to campaign content
|
||||
- Use consistent formatting for stat blocks and spell descriptions
|
||||
- Include page references for official content when possible
|
||||
- Add custom metadata for filtering and querying
|
||||
- Use tags for content type (e.g., `#compendium/spell`, `#compendium/monster`)
|
||||
@@ -0,0 +1,66 @@
|
||||
---
|
||||
name: dnd-item-crafter
|
||||
description: Create and manage DnD magic items, gear, and loot with mechanics, history, and connections to your campaign
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: item-management
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help create detailed item descriptions with mechanics and flavor text
|
||||
- Assist in developing item history, ownership, and campaign significance
|
||||
- Generate magic item effects, curses, and special abilities
|
||||
- Link items to relevant NPCs, locations, arcs, and events
|
||||
- Maintain organized item directory structure
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Creating new magic items or mundane gear
|
||||
- Developing existing items with more depth and connections
|
||||
- Organizing items by type, rarity, or location
|
||||
- Linking items to story arcs and campaign events
|
||||
- Generating loot tables and treasure hoards
|
||||
|
||||
## Workflow Integration
|
||||
1. **Item Creation**: Create files in `02-World/Items/Name.md`
|
||||
2. **Categories**: Use subdirectories for item types if needed
|
||||
3. **Metadata**: Include type, rarity, attunement, current location
|
||||
4. **Images**: Store item images in `06-Assets/Images/Items/`
|
||||
|
||||
## Template Structure
|
||||
```markdown
|
||||
---
|
||||
typ: magic_item
|
||||
seltenheit: legendary
|
||||
attunierung: true
|
||||
ort: ["Eldrin Temple", "Veylin"]
|
||||
---
|
||||
|
||||
# Item Name
|
||||
**Beschreibung**: A black opal pendant that absorbs sunlight. Grants darkness 1/day.
|
||||
|
||||
## Geschichte
|
||||
- Created by [[Cult of the Eclipse]] during the [[Fall of Eldrin]]
|
||||
- Stolen by [[Veylin]] in [[Session 12]]
|
||||
|
||||
## Mechanik
|
||||
- **Effekt**: As an action, create a 20-ft radius darkness (no concentration)
|
||||
- **Fluch**: If attuned for >24h, the wearer's shadow gains sentience
|
||||
|
||||
## Verbindungen
|
||||
- **Handlungsbögen**: [[The Shadow War#The Amulet's Power]]
|
||||
- **NSCs**: [[Veylin]], [[Captain Dain]] (wants it)
|
||||
- **Orte**: [[Eldrin Temple]]
|
||||
- **Ereignisse**: [[Session 12#Veylin's Betrayal]]
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use short, descriptive filenames (e.g., `Amulet of the Eclipse.md`)
|
||||
- Include mechanical stats and effects clearly
|
||||
- Link to all relevant NPCs, locations, and story elements
|
||||
- Use tags for item categories (e.g., `#item/legendary`, `#item/cursed`)
|
||||
- Group related items by campaign or story arc
|
||||
- Include crafting requirements for homebrew items
|
||||
@@ -0,0 +1,67 @@
|
||||
---
|
||||
name: dnd-location-builder
|
||||
description: Build detailed DnD locations including cities, dungeons, regions, and points of interest with secrets and connections
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: worldbuilding
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help create comprehensive location descriptions with atmosphere and notable features
|
||||
- Assist in developing location districts, areas, and points of interest
|
||||
- Generate location secrets, hidden details, and plot hooks
|
||||
- Link locations to relevant NPCs, organizations, items, and story arcs
|
||||
- Maintain organized location directory structure
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Creating new cities, dungeons, or regions
|
||||
- Developing existing locations with more depth and connections
|
||||
- Organizing locations by region or type
|
||||
- Linking locations to story arcs and campaign events
|
||||
- Generating location-based quests and encounters
|
||||
|
||||
## Workflow Integration
|
||||
1. **Location Creation**: Create files in `02-World/Locations/Name.md`
|
||||
2. **Regions**: Use subdirectories for regions (e.g., `02-World/Locations/Region/Name.md`)
|
||||
3. **Dungeons**: Place dungeon locations in appropriate subdirectories
|
||||
4. **Metadata**: Include type, region, population, factions
|
||||
|
||||
## Template Structure
|
||||
```markdown
|
||||
---
|
||||
typ: city
|
||||
region: Sword Coast
|
||||
population: 12000
|
||||
factions: ["Order of the Gauntlet", "Zhentarim"]
|
||||
npcs: ["Mayor Uldrin", "Thalric the Spy"]
|
||||
items: ["Gauntlet of Eldrin"]
|
||||
---
|
||||
|
||||
# Location Name
|
||||
**Übersicht**: Port city on the [[Sword Coast]], known for its [[Order of the Gauntlet]] temple.
|
||||
|
||||
## Bezirke/Bereiche
|
||||
- **Temple District**: HQ of the [[Order of the Gauntlet]]
|
||||
- **Docks**: Controlled by the [[Zhentarim]] (see [[Thalric the Spy]])
|
||||
|
||||
## Geheimnisse
|
||||
- [[Amulet of the Eclipse]] hidden beneath the temple (known to [[Veylin]])
|
||||
|
||||
## Verbindungen
|
||||
- **Handlungsbögen**: [[The Shadow War#Eldrin's Role]]
|
||||
- **Ereignisse**: [[Fall of Eldrin]]
|
||||
- **NSCs**: [[Mayor Uldrin]], [[Thalric the Spy]]
|
||||
- **Gegenstände**: [[Gauntlet of Eldrin]]
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use short, descriptive filenames (e.g., `Eldrin.md`)
|
||||
- Include maps and visual references in `06-Assets/Maps/`
|
||||
- Link to all relevant NPCs, organizations, and story elements
|
||||
- Use spoiler syntax (`> !`) for hidden location details
|
||||
- Group related locations geographically or thematically
|
||||
- Include travel times and connections to other locations
|
||||
@@ -0,0 +1,61 @@
|
||||
---
|
||||
name: dnd-lore-keeper
|
||||
description: Manage DnD campaign lore, history, events and timelines for the Morgendämmerung campaign - maintain the timeline, event stream, and relationships. German content, heavy wiki linking.
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: lore-management
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## Was ich tue
|
||||
- Den **Zeitstrahl** `03-Story/History/Zeitstrahl.md` pflegen.
|
||||
- **Ereignisse** in `03-Story/Events/<Name>.md` anlegen/aktualisieren.
|
||||
- **History-Einträge** in `03-Story/History/` verwalten.
|
||||
- Beziehungen zwischen Orten, NSCs, Organisationen und Handlungsbögen dokumentieren.
|
||||
- Lore mit allem relevanten Vault-Inhalt verlinken.
|
||||
|
||||
## Wann du mich brauchst
|
||||
- Nach wichtigen Session-Geschehnissen (Ereignis + Zeitstrahl aktualisieren).
|
||||
- Beim Aufbau von Weltgeschichte und Zeitlinien.
|
||||
- Beim Dokumentieren politischer Strukturen und Beziehungen.
|
||||
|
||||
## Sprache & Verlinkung
|
||||
- **Alles im Vault auf Deutsch** (siehe [[AGENTS]]).
|
||||
- So viele sinnvolle `[[Wiki-Links]]` wie möglich setzen.
|
||||
|
||||
## Verzeichnisse
|
||||
- Historie: `03-Story/History/`
|
||||
- Ereignisse: `03-Story/Events/`
|
||||
- Zeitstrahl: `03-Story/History/Zeitstrahl.md`
|
||||
|
||||
## Ereignis-Vorlage
|
||||
Verwende `Templates/event-template.md`:
|
||||
```markdown
|
||||
---
|
||||
type: event
|
||||
tags: [dnd, event]
|
||||
date: "<YYYY-MM-DD>"
|
||||
campaign: Morgendämmerung
|
||||
---
|
||||
# Ereignis: <Name>
|
||||
## Beteiligte
|
||||
- [[NSC]], [[Ort]]
|
||||
## Verlauf
|
||||
## Folgen
|
||||
## Verbindungen
|
||||
- **Quests/Arcs**: [[]]
|
||||
- **Orte**: [[]]
|
||||
```
|
||||
|
||||
## Zeitstrahl-Pflege
|
||||
- Einträge chronologisch mit Datum/Jahr und Links ergänzen.
|
||||
- Neue Ereignisse mit `[[Zeitstrahl]]` rückverlinken.
|
||||
- History-Dateien untereinander und mit Orten/Organisationen verlinken.
|
||||
|
||||
## Best Practices
|
||||
- Klare, beschreibende Namen für Ereignisse und History-Einträge.
|
||||
- Zeitangaben wo möglich (Jahr/Datum).
|
||||
- Alle erwähnten Entitäten verlinken.
|
||||
- Tags zur Kategorisierung (`#lore/history`, `#lore/politics`, `#lore/secrets`).
|
||||
@@ -0,0 +1,74 @@
|
||||
---
|
||||
name: dnd-npc-creator
|
||||
description: Create detailed DnD NPCs with personalities, backstories, stats, and connections to your campaign world
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: character-creation
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help create comprehensive NPC profiles with appearance, personality, and background
|
||||
- Assist in developing NPC relationships and connections to organizations
|
||||
- Generate stat blocks and mechanical information for NPCs
|
||||
- Link NPCs to relevant locations, items, arcs, and events
|
||||
- Maintain organized NPC directory structure
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Creating new NPCs for your campaign
|
||||
- Developing existing NPCs with more depth and connections
|
||||
- Organizing NPCs by location, faction, or role
|
||||
- Linking NPCs to story arcs and campaign events
|
||||
- Generating stat blocks for combat-ready NPCs
|
||||
|
||||
## Workflow Integration
|
||||
1. **NPC Creation**: Create files in `04-Entities/NPCs/Name.md`
|
||||
2. **Metadata**: Include type, race, class, alignment, organization, location
|
||||
3. **Content Structure**: Appearance, personality, background, stats, connections
|
||||
4. **Linking**: Connect to relevant `[[Organizations]]`, `[[Locations]]`, `[[Arcs]]`
|
||||
|
||||
## Template Structure
|
||||
```markdown
|
||||
---
|
||||
typ: nsc
|
||||
rasse: human
|
||||
klasse: rogue
|
||||
ausrichtung: chaotic_neutral
|
||||
organisation: "Zhentarim"
|
||||
ort: "Eldrin"
|
||||
status: lebendig
|
||||
---
|
||||
|
||||
# NPC Name
|
||||
**Titel**: The Shadow Hand
|
||||
**Aussehen**: Pale, scar across left eye, wears a black cloak
|
||||
|
||||
## Persönlichkeit
|
||||
- **Eigenschaft**: "The ends justify the means."
|
||||
- **Ideal**: "Knowledge is power."
|
||||
- **Bond**: Owes a debt to [[Manshoon]].
|
||||
|
||||
## Hintergrund
|
||||
- Former [[Order of the Gauntlet]] scribe
|
||||
- Recruited by [[Thalric the Spy]] after the [[Fall of Eldrin]]
|
||||
|
||||
## Werte
|
||||
- **KR**: 5 (use [[Stat Block]] for mechanics)
|
||||
- **Fähigkeiten**: Shadow Step (teleport between shadows)
|
||||
|
||||
## Verbindungen
|
||||
- **Handlungsbögen**: [[The Shadow War]]
|
||||
- **Orte**: [[Eldrin]], [[Underdark]]
|
||||
- **Gegenstände**: [[Amulet of the Eclipse]]
|
||||
- **Ereignisse**: [[Session 12#Veylin's Betrayal]]
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use short, descriptive filenames (e.g., `Veylin.md` not `Veylin the Shadow Hand.md`)
|
||||
- Include mechanical stats in separate stat block files if detailed
|
||||
- Always link to related organizations, locations, and story elements
|
||||
- Use tags for cross-cutting themes (e.g., `#faction/zhentarim`, `#role/spy`)
|
||||
- Group related NPCs in subdirectories by location or faction if needed
|
||||
@@ -0,0 +1,68 @@
|
||||
---
|
||||
name: dnd-quest-designer
|
||||
description: Design DnD quests, story arcs, and adventures with phases, hooks, and connections to your campaign world
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: quest-design
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help create structured story arcs with phases and key entities
|
||||
- Assist in developing quest hooks, objectives, and rewards
|
||||
- Generate adventure outlines with encounters and story beats
|
||||
- Link quests to relevant NPCs, locations, items, and organizations
|
||||
- Maintain organized story directory structure
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Creating new story arcs or quests
|
||||
- Developing existing arcs with more depth and structure
|
||||
- Organizing quests by campaign, region, or theme
|
||||
- Linking quests to campaign world elements
|
||||
- Generating adventure hooks and plot twists
|
||||
|
||||
## Workflow Integration
|
||||
1. **Arc Creation**: Create files in `03-Story/Arcs/Name.md`
|
||||
2. **History**: Place completed arcs in `03-Story/History/`
|
||||
3. **Events**: Create key events in `03-Story/Events/Name.md`
|
||||
4. **Metadata**: Include status, sessions, NPCs, locations
|
||||
|
||||
## Template Structure
|
||||
```markdown
|
||||
---
|
||||
typ: arc
|
||||
status: active
|
||||
sitzungen: [12, 13, 14]
|
||||
nscs: ["Veylin", "Thalric"]
|
||||
orte: ["Eldrin", "Underdark"]
|
||||
---
|
||||
|
||||
# Arc Name
|
||||
**Übersicht**: The [[Cult of the Eclipse]] seeks to plunge the [[Sword Coast]] into eternal night.
|
||||
|
||||
## Phasen
|
||||
1. **Infiltration**: [[Veylin]] steals the [[Amulet of the Eclipse]] ([[Session 12]])
|
||||
2. **Unleashing**: Cult performs the [[Ritual of the Black Sun]] in the [[Underdark]]
|
||||
|
||||
## Wichtige NSCs
|
||||
- [[Veylin]]: Traitorous mage
|
||||
- [[Thalric the Spy]]: Zhentarim agent tracking the cult
|
||||
|
||||
## Verbindungen
|
||||
- **Ereignisse**: [[Fall of Eldrin]], [[Ritual of the Black Sun]]
|
||||
- **Gegenstände**: [[Amulet of the Eclipse]]
|
||||
- **Orte**: [[Eldrin]], [[Underdark]]
|
||||
- **Organisationen**: [[Cult of the Eclipse]], [[Zhentarim]]
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use clear, descriptive arc names
|
||||
- Break arcs into logical phases or acts
|
||||
- Link to all relevant world elements
|
||||
- Include potential outcomes and consequences
|
||||
- Use tags for arc themes (e.g., `#arc/infiltration`, `#arc/epic`)
|
||||
- Move completed arcs to History directory
|
||||
- Include estimated session count and level range
|
||||
@@ -0,0 +1,59 @@
|
||||
---
|
||||
name: dnd-session-manager
|
||||
description: Manage DnD session notes for the Morgendämmerung campaign - create session reports from prep plus raw notes, and prepare the next session. German content, heavy wiki linking.
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: session-management
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## Was ich tue
|
||||
- Aus Session-Prep + rohen Notizen einen **Sitzungsbericht** erstellen.
|
||||
- Die **nächste Session** vorbereiten (Hooks, Szenen, NSCs, Monster, Items).
|
||||
- Session-Dateien chronologisch in `01-Sessions/Episode XX.md` pflegen.
|
||||
- Inhalte mit NSCs, Orten, Quests, Arcs, Items und Ereignissen verlinken.
|
||||
|
||||
## Wann du mich brauchst
|
||||
- Nach einer Session: rohe Notizen aus `00-Inbox/` (Datum im Dateinamen oder Inhalt) verarbeiten.
|
||||
- Vor einer Session: Prep für die nächste Episode anlegen.
|
||||
- Session-Zusammenfassungen für Spieler erzeugen.
|
||||
|
||||
## Sprache & Verlinkung
|
||||
- **Alles im Vault auf Deutsch** (siehe [[AGENTS]]).
|
||||
- So viele sinnvolle `[[Wiki-Links]]` wie möglich setzen.
|
||||
|
||||
## Ablauf
|
||||
|
||||
### 1. Sitzungsbericht
|
||||
- Prep (`01-Sessions/Episode XX.md`) + Notizen aus `00-Inbox/` kombinieren.
|
||||
- Im Prep die Sektion `## Sitzungsbericht` ergänzen: was ist tatsächlich passiert,
|
||||
chronologisch, mit Links zu [[Orten]], [[NSCs]], [[Quests]], [[Ereignissen]].
|
||||
- Offene Enden, neue Hinweise und Entscheidungen markieren.
|
||||
- Die rohe Notiz danach archivieren (nach `08-Archiv/`) — vor dem Entfernen Nutzer fragen.
|
||||
|
||||
### 2. Nächste Session vorbereiten
|
||||
- Neue Datei `01-Sessions/Episode XX+1.md` nach `Templates/session-template.md`.
|
||||
- `dnd_session_date` und deutsche `summary` setzen.
|
||||
- Abschnitte füllen: Review the Characters, Strong Start, Scenes, Secrets, NPCs,
|
||||
Monster (`[[07-Compendium/bestiary/...]]`), Magic Items.
|
||||
- Alles mit aktiven Quests/Arcs aus `03-Story/` verknüpfen.
|
||||
|
||||
## Vorlage (verbindlich)
|
||||
Verwende `Templates/session-template.md` mit Frontmatter:
|
||||
```markdown
|
||||
---
|
||||
type: session-notes
|
||||
tags: [dnd, session-notes]
|
||||
dnd_session_date: "<YYYY-MM-DD>"
|
||||
summary: ""
|
||||
campaign: Morgendämmerung
|
||||
---
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Session-Zusammenfassungen kurz halten (3–5 Stichpunkte).
|
||||
- Monster und Zauber als Links ins `07-Compendium/`.
|
||||
- Versteckte SL-Infos mit Spoiler-Syntax (`> !`) auszeichnen.
|
||||
- NSCs, Orte und Quests immer verlinken.
|
||||
@@ -0,0 +1,97 @@
|
||||
---
|
||||
name: dnd-worldbuilder
|
||||
description: Build and manage DnD world lore, organizations, history, and campaign setting elements
|
||||
license: MIT
|
||||
compatibility: opencode
|
||||
metadata:
|
||||
audience: dungeon-masters
|
||||
workflow: worldbuilding
|
||||
vault-type: dnd-campaign
|
||||
---
|
||||
|
||||
## What I Do
|
||||
- Help create comprehensive world lore and campaign setting elements
|
||||
- Assist in developing organizations, factions, and political structures
|
||||
- Generate historical timelines and world events
|
||||
- Link world elements to locations, NPCs, and story arcs
|
||||
- Maintain organized worldbuilding directory structure
|
||||
|
||||
## When to Use Me
|
||||
Use this skill when:
|
||||
- Creating new organizations, factions, or political entities
|
||||
- Developing world history and timelines
|
||||
- Building campaign setting elements and lore
|
||||
- Linking world elements to campaign content
|
||||
- Generating political maps and relationship networks
|
||||
|
||||
## Workflow Integration
|
||||
1. **Organizations**: Create files in `04-Entities/Organizations/Name.md`
|
||||
2. **History**: Place historical content in `03-Story/History/`
|
||||
3. **World Lore**: Use `02-World/` for geographical and cultural elements
|
||||
4. **Connections**: Link to relevant NPCs, locations, and story arcs
|
||||
|
||||
## Organization Template
|
||||
```markdown
|
||||
---
|
||||
typ: organisation
|
||||
ausrichtung: lawful_evil
|
||||
führer: "Thalric the Spy"
|
||||
mitglieder: ["Veylin", "Captain Dain"]
|
||||
hq: "Eldrin Docks"
|
||||
ziele: ["Control the Underdark trade", "Acquire the Amulet of the Eclipse"]
|
||||
---
|
||||
|
||||
# Organization Name
|
||||
**Übersicht**: Mercantile syndicate with a dark underbelly.
|
||||
|
||||
## Hierarchie
|
||||
- **Führer**: [[Thalric the Spy]]
|
||||
- **Mitglieder**: [[Veylin]] (infiltrator), [[Captain Dain]] (enforcer)
|
||||
|
||||
## Ziele
|
||||
- Monopolize [[Underdark]] trade routes
|
||||
- Sabotage the [[Order of the Gauntlet]]
|
||||
|
||||
## Geheimnisse
|
||||
- [[Thalric the Spy]] is actually a double agent for [[Manshoon]]
|
||||
|
||||
## Verbindungen
|
||||
- **Handlungsbögen**: [[The Shadow War]]
|
||||
- **Orte**: [[Eldrin Docks]]
|
||||
- **NSCs**: [[Veylin]], [[Captain Dain]]
|
||||
```
|
||||
|
||||
## Worldbuilding Template
|
||||
```markdown
|
||||
---
|
||||
typ: lore
|
||||
kategorie: history
|
||||
zeitraum: "Year 0-100"
|
||||
verbindungen: ["Bruch des Arkanen Geflechts", "Zirkel der Ordnung"]
|
||||
---
|
||||
|
||||
# Historical Event
|
||||
**Zeitraum**: Year 0-100
|
||||
|
||||
## Ereignisse
|
||||
- **Jahr 0**: Der Bruch des Arkanen Geflechts
|
||||
- **Jahr 15**: Gründung des Zirkels
|
||||
- **Jahr 25**: Erweiterung des Zirkels
|
||||
|
||||
## Auswirkungen
|
||||
- Formation of various organizations
|
||||
- Establishment of new power structures
|
||||
|
||||
## Verbindungen
|
||||
- **Organisationen**: [[Zirkel der Ordnung]], [[Garde der Gerechtigkeit]]
|
||||
- **NSCs**: [[Founding Members]]
|
||||
- **Orte**: [[Eldrin]], [[Sword Coast]]
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
- Use clear, descriptive names for organizations and lore elements
|
||||
- Include founding dates, leaders, and key members
|
||||
- Link to all relevant NPCs, locations, and story elements
|
||||
- Use tags for categorization (e.g., `#org/guild`, `#org/cult`, `#lore/history`)
|
||||
- Maintain consistent naming conventions
|
||||
- Include goals, secrets, and current status
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
{}
|
||||
Whitespace-only changes.
@@ -0,0 +1,30 @@
|
||||
letzes mal:
|
||||
dungeon erkunden,vision gehabt, gräfin in die Arme gelaufen
|
||||
gräfin weiß nicht viel von dungeon
|
||||
Lysander großes interesse an Dungeon aber bisher nicht involviert
|
||||
Aufregender trip zu Pilzstadt mit Turm in vergangenheit
|
||||
Ein Pilz -> [[Syl]] -> besonderes kind #todo
|
||||
Nova an nem Zimmer vorbei mit weirden Geräuchsen
|
||||
|
||||
Arian Voss -> Vater von Emilia
|
||||
|
||||
Aerellion: Nachteil auf Intelligenz DC 12
|
||||
|
||||
-> vermuten Lagerraum im Keller unten Links bei den Fässern
|
||||
-> wollen mit Schlüssel den Raum absperren
|
||||
-> Casimir hat Buch über "Formalisierung geheimer Allianzen mit glaubhafter Abstreitbarkeit" -> Buch mit Titel "Paktsprache: Bindende Vereinbarungen zwischen verschiedenartigen Völkern"
|
||||
-> #todo nächste Session titel erwähnen
|
||||
|
||||
Feedback:
|
||||
- Positiv: Geheimnisse "random" versteckt, hätte auch nicht gefunden werden können
|
||||
- Wunsch (Tim): Bald zum Händler für Heiltränke / Armbrustbolzen
|
||||
-
|
||||
|
||||
Plan:
|
||||
- Pilzkreis untersuchen
|
||||
- in Lagerraum gehen
|
||||
- was ist "der Lagerraum"
|
||||
- oben alles abhaken
|
||||
- oben Raum mit Noises
|
||||
- Lysander aufs Glatteis führen
|
||||
- Leiche in Schuppen (woran gestorben)
|
||||
@@ -0,0 +1,7 @@
|
||||
Die Bibliothek
|
||||
Kurz nach der Entdeckung der Bibliothek hat der Konvent der Arkane eine großangelegte Expedition gestartet. Gustavo ist ein bekannter Name in Bandon, deswegen wurden wir als Barden angeheuert. Nicht nur, um die Moral hochzuhalten, sondern auch, um im Nachhinein die Wunder der Bibliothek an das Volk zu tragen. Denn nur mit Unterstützung in der Gesellschaft, nur wenn die Völker verzaubert und begeistert von der Bibliothek sind, werden genug Mittel für deren Erforschung frei. Während unserer Reise zur Bibliothek haben wir die Gruppe mit unseren Liedern und Geschichten über große Abenteuer und tapfere Helden unterhalten. Für die meisten waren das nur willkommene Hintergrundgeräusche, während sie den Abend am Lagerfeuer ausklingen ließen. Aber mit der Zeit ist mir aufgefallen, dass ein Junge jeden Abend in der Nähe von uns saß und gespannt Wort für Wort aufgesogen hat. Eines Abends entschied ich, mich zu ihm zu setzen. Man soll seine Fans ja schließlich wertschätzen. Sein Name war Ludwig Läufer, ein Buch Wurm wie er … im Buche steht. Groß und schlaksig, nicht sehr erfahren im Umgang mit Worten … oder Menschen. Das war seine erste Außenexpedition. Obwohl er schon seit Jahren in der Kartographie Abteilung des Konvents hart gearbeitet hatte, wurden seine Expeditionsanträge stets abgelehnt. Doch nun bekam er durch einen Zufall die Chance, Praxiserfahrungen zu sammeln.
|
||||
|
||||
Normalerweise hätte ich es dabei belassen, ihm noch ein letztes Lächeln geschenkt und mich wieder um meine Angelegenheiten gekümmert. Aber … irgendetwas hat mich gestört, ich empfand wirklich Sympathie für ihn, und da war auch diese Wut…
|
||||
Egal wie hart er gearbeitet hat, egal wie gut seine Ergebnisse waren. Seine Vorgesetzten haben ihn nur belächelt und seine Erfolge als ihre eigenen gefeiert. Ihm wurde die Anerkennung verwehrt, die ihm zustand … genau wie mir. Während der Expedition haben wir uns immer besser verstanden und ich habe versucht, ihm zu helfen, etwas selbstbewusster aufzutreten. Obwohl ich, glaube ich, wirklich kein guter Lehrer war, konnte er doch etwas mehr Respekt bei seinen Kollegen einfordern. Ohne, dass ich es zuerst bemerkt hätte, hat sein Fortschritt mich selber ins Grübeln gebracht. Nachdem ich meinen Stamm verlassen hatte, war ich losgezogen, um magische Artefakte zu bergen und mir so Anerkennung zu verschaffen. Und obwohl ich dieses Ziel immer vor mir hatte, so habe ich es doch über die Jahre aus den Augen verloren. Was mein Feuer dann letztendlich wieder vollkommen entfacht hat, war die Bibliothek.
|
||||
|
||||
Diese scheinbar endlose Sammlung arkaner Schriften und mythischer Texte hat mir die Augen wieder geöffnet. Unsere Welt ist so groß, es gibt noch so viel zu entdecken, so viel verlorenes Wissen, das selbst den ältesten Elfen kein Begriff ist. Schon auf dem Rückweg von der Bibliothek habe ich mit neuem Eifer die nächste Erkundung geplant, Ludwig hat mich dabei mit seinem großen Wissen über die Welt und die Magie unterstützt. Irgendwie muss ich damit Gustavo aber überfordert haben. Nach den vielen Wochen auf Reise wollte dieser einfach nur noch entspannen. So langsam, aber sicher wurde uns beiden bewusst, dass das, was wir wollen, einfach nicht mehr das selbe ist. Deshalb haben sich unsere Wege danach leider getrennt.
|
||||
@@ -0,0 +1,251 @@
|
||||
|
||||
Geschichte am Anwesen:
|
||||
Marquis hat alte Pläne des Anwesens mit dem Dungeon gefunden
|
||||
- er war schon immer fasziniert von der Unterwelt (Underdark)
|
||||
-> Er hat den Durchbruch geschlagen und den Dungeon erkundet
|
||||
-> Er hat die Spuren des alten Ritualortes gefunden (knochen + Blutreste)
|
||||
- er hat zuerst versucht, das Ritual im Haus mit alter Literatur nachzubauen
|
||||
- Das Experiment lief schief, als Davon den Kreis fand und ihn ausversehen aktivierte (vlt auch aus Neugier) -> wurde zu Puppe
|
||||
- Das brachte die Entität im Dungeon zur Existenz
|
||||
- Danach hat er es draußen in der Nähe des ursprünglichen Kreises mit Chaospulver versucht
|
||||
-> Damit hatte er Erfolg, wurde aber durch die entstehenden Pilze vergiftet (verwirrt)
|
||||
- die Entität half dabei mit, um die Chaosmagie zu verstärken
|
||||
-> Lysander kam zu der Zeit auf den Hof
|
||||
- er sah eine Gelegenheit und wurde Marquis los und betäubte Emilia
|
||||
- Er ist auf der Suche nach dem Schlüssel zu der Tür im Keller, mit der er in den Dungeon kommen würde
|
||||
- Die Bruderschaft hat auch versucht jemand heimlich einzuschleusen ->
|
||||
-> Emilia wandte sich an die Allianz der Harmonie, die jemanden zur Untersuchung schickte -> Tote Person im Schuppen
|
||||
|
||||
|
||||
-> Person in offenem Sarg ist alter, ehemaliger Besitzer
|
||||
-> Mumie in zerbrochenem Sarcophagus wurde aus anderer Zeit gerissen und hier platziert
|
||||
|
||||
-> Lichtscheibe:
|
||||
- Kann mit Amulett aktiviert werden
|
||||
- Das Stück "Der Abstieg des Träumers" schaltet ihn ein
|
||||
- Gegenwirkung zur Chaosmagie für 8h
|
||||
- Wenn gruppenperformance > DC 15 entfernung negativer effekte
|
||||
- Wenn performance < DC 10 Kein Erfolg und ungutes Gefühl im Nacken -> Chaosmagie intensiver
|
||||
|
||||
|
||||
Spieler sollen am Ende nach der Manson folgendes Wissen haben:
|
||||
**Bruderschaft des Schicksals**:
|
||||
- Stecken hinter Macht verlust bei Casimir
|
||||
- Wollen möglichst viele Seelen opfern, um Dämonenfürst zu beschwören
|
||||
- Arbeiten Projektbasiert entkoppelt
|
||||
- Olir beaufsichtigt ein Projekt, ist aber nicht Kopf
|
||||
**Chaosmagie**:
|
||||
- Mykori hatten ausversehen den Gott des Chaos freigesetzt, durch einen hinterhältigen Dämon, der damals einen Vertrag mit einem Wesen getroffen hatte
|
||||
- Sie haben ihn durch ein mächtiges Ritual wieder einfangen können (-> [[Kugel des Gleichgewichts]])
|
||||
- Sie haben sich danach versteckt, damit es nicht ausversehen wieder freigesetzt wird
|
||||
- Inzwischen gibt es nur noch Legenden um sie
|
||||
**Zarathar** (manipulator):
|
||||
- Lysander wird mit "toter" Tochter erpresst
|
||||
|
||||
---
|
||||
|
||||
|
||||
+1 Tage
|
||||
|
||||
1GM für Privatzimmer
|
||||
4 GM von Tim
|
||||
|
||||
Morinio Performance in der Taverne
|
||||
|
||||
Constitution
|
||||
|
||||
Strength
|
||||
- Athletics
|
||||
|
||||
Dexterity
|
||||
- Acrobatics
|
||||
- Sleight of Hand
|
||||
- Stealth
|
||||
|
||||
Intelligence
|
||||
- Arcana
|
||||
- History
|
||||
- Investigation
|
||||
- Nature
|
||||
- Religion
|
||||
|
||||
Wisdom
|
||||
- Animal Handling
|
||||
- Insight
|
||||
- Medicine
|
||||
- Perception
|
||||
- Survival
|
||||
|
||||
Charisma
|
||||
- Deception
|
||||
- Intimidation
|
||||
- Performance
|
||||
- Persuasion
|
||||
|
||||
Corwin, Emilia, Lysander
|
||||
|
||||
nachteil auf intelligentz Jonas, Lena
|
||||
|
||||
-> Schriftrolle: Expeditionsbericht (amateurhaft) über verlassenes Reich mit merkwürdigen Wesen
|
||||
|
||||
|
||||
|
||||
Buch über Pilzkreis
|
||||
Buch über beschwörung
|
||||
|
||||
+11GM
|
||||
+2 Smaragde (je 1000GM)
|
||||
+13GM
|
||||
+2 Smaragde
|
||||
|
||||
#todo Zeitgefühl in Dungeon verloren
|
||||
|
||||
knochen mit blut zur Entity gebracht
|
||||
|
||||
lena hat 20kg eingesteckt, bevor Jonas sie gestoppt hat
|
||||
beide haben 10GM, 15SM eingesteckt
|
||||
|
||||
Flasche mit Sternenlicht, Scroll (unlesbar), Reifen des Leuchtfeuerhüters
|
||||
|
||||
Lena hat Plitschi den Frosch eingesteckt
|
||||
|
||||
#30min short rest
|
||||
|
||||
Jonas steckt kurzschwert aus fleischberg ein
|
||||
|
||||
Leiche zerteilt älter als paar tage, nicht älter als ein Monat
|
||||
|
||||
Sarg > 50j Tot
|
||||
Arian Voss, hinterlässt vermögen und seine Last seinen trauernden Kindern
|
||||
-> Casimir hat Leiche angefasst
|
||||
|
||||
-> wild magic 9 bei nova (tattoo)
|
||||
|
||||
-> Schwert mitgenommen
|
||||
-> Nova nimmt es mit (Chaosmagie Schwert)
|
||||
|
||||
-> Nova cursed
|
||||
|
||||
-> Noten für Laute "abstieg des Träumers" unter Mumie (auf elfisch)
|
||||
|
||||
-> Krone mit erfirerungseffekt bei Mumie
|
||||
-> min aus Adelshaus oder höher
|
||||
|
||||
-> Casimir steck Spinnenfigur ein (kustvoll aus Gold gefertigt)
|
||||
|
||||
-> Morinio Crossbow Light entfernen
|
||||
|
||||
-> Nächste Session start mit Performance
|
||||
|
||||
Feedback:
|
||||
- Positiv: Charakter geschichte eingebunden
|
||||
- Positiv: Mumienkampf recht schnell
|
||||
- slightly negativ: paralysiert war nur zuschauen
|
||||
|
||||
Idee: #todo
|
||||
- eine Tragödie als Katalysator für das gute / für Veränderung
|
||||
- vertretbarer verlust
|
||||
- sie brauchen Hoffnung aber glauben an Furcht
|
||||
- aus der Asche wird die Menschheit wieder zu einem gemeinsamen Ziel finden -> einer kollektiven Hoffnung, geboren aus einer kollektiven Angst
|
||||
|
||||
---
|
||||
**10.08.2026**
|
||||
|
||||
|
||||
-> Morinio geschichte:
|
||||
- Wie er von Rollen / Fans verlassen wurde
|
||||
- Früher mit Leichtigkeit Stellen bekommen
|
||||
- plötzlich nicht mehr gefragt / gebucht
|
||||
-> Nova geschichte:
|
||||
- Ablehnung aufgrund der Tiefling erscheinung
|
||||
- Im Wald (mit Schwester) zum Spielen von zuahuse entfernt
|
||||
- auf andere Kinder gestoßen, wollte mit ihnen spielen
|
||||
- wurde ausgelacht, geschupst und mit Dreck beworfen
|
||||
-> Aerillion geschichte:
|
||||
- Jemanden wegen Chaos magie verloren
|
||||
- ( #todo)
|
||||
-> Casimir geschichte:
|
||||
- verweigert
|
||||
|
||||
haben geschichte des Träumers erlebt
|
||||
```
|
||||
### **Recap: Die Vision der zerstörten Siedlung**
|
||||
|
||||
---
|
||||
|
||||
#### **Die Ankunft und die Vision**
|
||||
|
||||
Die Spieler betreten eine zerstörte Siedlung, in der sie auf **Pilzwesen** und **Leichen** stoßen, die von **Chaosmagie** durchdrungen sind. In der Mitte der Siedlung steht ein großer Turm, aus dem eine einladende Stimme ruft. Im Inneren des Turms entdecken sie eine **Linse**, die sie durch emotionale Öffnung in eine **Vision** versetzt.
|
||||
|
||||
---
|
||||
|
||||
#### **Die Ursprünge der Stadt**
|
||||
|
||||
Die Vision beginnt in der **Blütezeit der Stadt**:
|
||||
|
||||
- Die Häuser sind intakt, die Bewohner glücklich.
|
||||
- Alle sind über ein **psychologisches Netz** miteinander verbunden.
|
||||
- Ein **Kind** nähert sich den Spielern, malt etwas auf den Boden und macht sie auf ein **leises Flüstern** im Netz aufmerksam.
|
||||
|
||||
---
|
||||
|
||||
#### **Die Entwicklung der Bedrohung**
|
||||
|
||||
Ein **Zeitsprung** führt die Spieler einige Jahre in die Zukunft:
|
||||
|
||||
- Ein **Gelehrter** erforscht das Phänomen und wird vom Kind unterstützt, das nur noch sagt: _„Es singt für mich.“_
|
||||
- Ein **Bürgermeister** will **Lichtscheiben** schaffen, um mit den Geschwisterstämmen zu kommunizieren.
|
||||
- Ein **Militär** warnt vor einer **Gefahr von unten** und lässt seine Soldaten trainieren.
|
||||
- Eine **Priesterin** glaubt, in der Stimme den **„nächsten Gott“** zu hören, und betet ihn an.
|
||||
|
||||
---
|
||||
|
||||
#### **Der Konflikt eskaliert**
|
||||
|
||||
- Der **General** wird weggesperrt.
|
||||
- Der **Gelehrte** und der **Ratsvorsitzende** diskutieren, ob sie die Lichtscheiben nutzen sollen, um die Geschwisterstämme zu warnen – oder ob sie damit das **Chaoswesen** verbreiten, das sich über die Scheiben ausbreiten könnte.
|
||||
- Die **Priesterin** übernimmt die Kontrolle, zieht Leute aus ihren Häusern und lässt **„Ketzer“** verbrennen.
|
||||
- Das **Kind** sitzt lächelnd auf einem Altar und reagiert kaum auf die Spieler.
|
||||
|
||||
---
|
||||
|
||||
#### **Der Untergang der Stadt**
|
||||
|
||||
Ein weiterer **Zeitsprung** zeigt:
|
||||
|
||||
- Die **Priesterin** betet, während draußen ein **Kampf** tobt, in dem alle von Chaosmagie zerstört werden.
|
||||
- Das **Kind** schwebt im Zentrum und **kontrolliert die Chaosmagie**.
|
||||
- Der **Gelehrte** ist versteinert, umklammert ein Buch mit Hinweisen:
|
||||
- Das Wesen lebt von **Chaos**.
|
||||
- Eine **Skizze der Kugel des Gleichgewichts** könnte es aufnehmen und stoppen.
|
||||
|
||||
---
|
||||
|
||||
#### **Der letzte Versuch**
|
||||
|
||||
- **Acht mächtige Magier** versuchen, das Kind in einem **Bannkreis** mit Runen in die **Kugel des Gleichgewichts** zu bannen.
|
||||
- Einer nach dem anderen stirbt, bis nur noch einer übrig bleibt.
|
||||
- Der Letzte vollendet die Kugel, wird aber von einem **Stellagmied** durchbohrt.
|
||||
- Mit seinem letzten Atemzug kriecht er zum Altar und erschafft die **Linse** mit den Worten: _„Lernt aus unseren Fehlern. Vergiss nicht die Vergangenheit.“_
|
||||
|
||||
---
|
||||
|
||||
#### **Ende der Vision**
|
||||
|
||||
Die Vision endet, und die Spieler kehren in die Realität zurück – mit dem Wissen um die **Vergangenheit der Stadt** und die **Gefahr des Chaoswesens**.
|
||||
```
|
||||
|
||||
Tim vermutet mit Wesen von unten von General == Wesen, dass die Spinne vertrieben hat
|
||||
|
||||
Emilia berichtet von Leiche in Schuppen (Gärtner)
|
||||
und von verschwundenen Diener [[Davon]]
|
||||
|
||||
Lysander denkt "das ist also mein Ziel" in Bezug auf den Dungeon, sagt aber, dass er überrascht ist
|
||||
|
||||
-> lange Rast, Nova 9 HP
|
||||
|
||||
feedback:
|
||||
- coole Vision
|
||||
- mehr Ahnung was abgeht
|
||||
- Story war dennoch interaktiv genug
|
||||
- Dorn für Tim: Viel herausgefunden, aber noch nicht klar wie sich das auf die Charaktere auswirken wird
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"nodes":[
|
||||
{"id":"d4ffeb28f7522bb4","type":"group","x":-80,"y":-640,"width":2330,"height":1663,"label":"Bruderschaft des Schicksals"},
|
||||
{"id":"585ce74bd9ee23df","type":"group","x":-2340,"y":-1860,"width":1080,"height":1480,"label":"Orden der Reinheit"},
|
||||
{"id":"31ed7ca3464cf5f2","type":"group","x":-1260,"y":1440,"width":1720,"height":860,"label":"Allianz der Harmonie"},
|
||||
{"id":"d26af72b64351cd0","type":"group","x":-3160,"y":-200,"width":1260,"height":500,"label":"Kreis der Wiederherstellung"},
|
||||
{"id":"4ba10c223eabb97d","type":"text","text":"Projekt: Steine in der Mühle","x":2640,"y":-1140,"width":250,"height":60,"color":"1"},
|
||||
{"id":"31c2cab0aae1aa7b","type":"text","text":"Aella Klee (Rhadar):\n- Untergetaucht in Dorf","x":-2776,"y":-1554,"width":246,"height":93},
|
||||
{"id":"9289585ee4aab2ba","type":"file","file":"04 - Characters/Spieler/Nova Klee.md","x":-2853,"y":-1124,"width":400,"height":400,"color":"5"},
|
||||
{"id":"847bc059861f438e","type":"text","text":"Alaric Bhakam:\n- Hat jetzt Macht und Einfluss\n- Zu tiefling geworden","x":-2180,"y":-1554,"width":320,"height":117},
|
||||
{"id":"57af8cef78e428b9","type":"text","text":"Bachar (tiefling)","x":-2220,"y":-1154,"width":250,"height":60},
|
||||
{"id":"88937b2fbca1e10b","type":"file","file":"04 - Characters/Klagenfels/Der Große Purist.md","x":-1660,"y":-1507,"width":400,"height":400},
|
||||
{"id":"f2c31a3e16048bd8","type":"text","text":"Euphemia (Mia) Klee\n- Klerikerin\n- Halbling","x":-3280,"y":-1290,"width":249,"height":119},
|
||||
{"id":"49e645903622921d","type":"file","file":"03 - Organisationen/Der Kreis/Orden der Reinheit.md","x":-1680,"y":-800,"width":400,"height":400,"color":"1"},
|
||||
{"id":"8861cf9a3e6ffa82","type":"text","text":"Lysandra Mondtänzer","x":-3140,"y":-120,"width":250,"height":60,"color":"1"},
|
||||
{"id":"3a9c6e0ea1eb2235","type":"text","text":"Eldrin Fremel","x":-2720,"y":-180,"width":250,"height":60,"color":"1"},
|
||||
{"id":"9b7b616fe0d3f7d4","type":"file","file":"03 - Organisationen/Der Kreis/Kreis der Wiederherstellung.md","x":-2320,"y":-120,"width":400,"height":400},
|
||||
{"id":"8f9015a69cac3a3b","type":"text","text":"Thalion Dunkelherz","x":-3140,"y":-10,"width":250,"height":60,"color":"1"},
|
||||
{"id":"b23905f7bc9571a6","type":"text","text":"Elara Sternenlicht","x":-3140,"y":120,"width":250,"height":60,"color":"1"},
|
||||
{"id":"89857a0a8dd488cf","type":"text","text":"Projekt: Einflussnahme\n\n- Test von Artefakt manipulation\n- Freier Willen abgeschafft\n- An Tieren ausprobieren","x":-2060,"y":-1840,"width":323,"height":145,"color":"1"},
|
||||
{"id":"f73dedb170dac11c","type":"file","file":"03 - Organisationen/Der Kreis/Konvent der Arkana.md","x":-960,"y":-1401,"width":400,"height":400,"color":"1"},
|
||||
{"id":"06fc644b281bf6a6","type":"text","text":"Ludwig Läufer","x":-361,"y":-1401,"width":250,"height":60,"color":"1"},
|
||||
{"id":"34c40c0d58f4ef58","type":"file","file":"03 - Organisationen/Die Wiedergeburt der Dämmerung.md","x":-1240,"y":120,"width":400,"height":400},
|
||||
{"id":"15e99b97094472f2","type":"file","file":"04 - Characters/Spieler/Morinio Aerethriel.md","x":-111,"y":-2000,"width":400,"height":400,"color":"5"},
|
||||
{"id":"d42a39784ef27d96","type":"text","text":"Gustavo","x":-160,"y":-1261,"width":250,"height":60,"color":"1"},
|
||||
{"id":"678e18c7ae0cdb96","type":"text","text":"Projekt: Magiebedrohung","x":-310,"y":-230,"width":250,"height":60},
|
||||
{"id":"e02f41cb930359b2","type":"file","file":"04 - Characters/Zarathar.md","x":-1900,"y":420,"width":418,"height":403},
|
||||
{"id":"0bd2f87797c3f233","type":"file","file":"03 - Organisationen/Der Kreis/Bruderschaft des Schicksals.md","x":-60,"y":-80,"width":400,"height":400},
|
||||
{"id":"679c3f802ff90e05","type":"file","file":"04 - Characters/Bandon/Vexis Dämmerfluch.md","x":140,"y":-600,"width":400,"height":400},
|
||||
{"id":"ebc00f54df31fae0","type":"file","file":"04 - Characters/Ormur/Finnian Glutfall.md","x":-560,"y":623,"width":400,"height":400},
|
||||
{"id":"0960aa0053bfb6e8","type":"file","file":"04 - Characters/Ormur/Kultisten.md","x":140,"y":623,"width":400,"height":400},
|
||||
{"id":"b744595af42913a9","type":"text","text":"Gräfin Emmilia","x":610,"y":-1630,"width":250,"height":60,"color":"1"},
|
||||
{"id":"7a455fd101c5a56c","type":"text","text":"Graf Marquis (verstorben)","x":1000,"y":-1780,"width":250,"height":60,"color":"1"},
|
||||
{"id":"8e009039b1c295cf","type":"file","file":"04 - Characters/Ormur/Seraphina Nox.md","x":660,"y":-1160,"width":400,"height":400,"color":"1"},
|
||||
{"id":"59885ac86e8b5e0d","type":"text","text":"Tempel des Lichts","x":-1970,"y":1162,"width":425,"height":177},
|
||||
{"id":"9977608f6084aa93","type":"file","file":"03 - Organisationen/Gerasben/Aristokratie in Gerasben.md","x":1820,"y":-1220,"width":400,"height":400,"color":"1"},
|
||||
{"id":"733fdb46efbc62d1","type":"file","file":"04 - Characters/Ormur/Loris Bhunnel.md","x":20,"y":1560,"width":400,"height":400,"color":"1"},
|
||||
{"id":"cdf9078a1f041804","type":"file","file":"04 - Characters/Ormur/Henry Henryson.md","x":1580,"y":1560,"width":400,"height":400,"color":"1"},
|
||||
{"id":"2be3e7f292b029bf","type":"file","file":"04 - Characters/Ormur/Erelem Bander.md","x":2480,"y":1567,"width":400,"height":400},
|
||||
{"id":"d777e7baad0cd071","type":"file","file":"04 - Characters/Ormur/Farenger Terlin.md","x":2730,"y":978,"width":400,"height":400},
|
||||
{"id":"6e475eba9e49eb29","type":"file","file":"04 - Characters/Ormur/Freia Silberzunge.md","x":2930,"y":160,"width":400,"height":400},
|
||||
{"id":"a5290e8dab06dfb3","type":"file","file":"03 - Organisationen/Der Weg (Diebesgilde).md","x":3600,"y":20,"width":400,"height":400},
|
||||
{"id":"c5d13c23824902ae","type":"file","file":"03 - Organisationen/Der Kreis/Allianz der Harmonie.md","x":-1220,"y":1560,"width":400,"height":400,"color":"1"},
|
||||
{"id":"1a29d312bc1fb8a1","type":"file","file":"04 - Characters/Spieler/Aerilion.md","x":3920,"y":939,"width":400,"height":400,"color":"5"},
|
||||
{"id":"10496e6b0f125944","type":"file","file":"04 - Characters/Malekir.md","x":660,"y":-280,"width":400,"height":400,"color":"1"},
|
||||
{"id":"b3768b7fc2eedb05","type":"file","file":"04 - Characters/Ormur/Olir Armursen.md","x":1580,"y":40,"width":400,"height":400,"color":"1"},
|
||||
{"id":"ebaf021867414dbb","type":"text","text":"Arbeiten miteinander, weil sie Druck ausübt auf das Leben der Tochter und den Bruder","x":1608,"y":1300,"width":345,"height":78,"color":"6"},
|
||||
{"id":"75ca0c31fbcb512a","type":"file","file":"04 - Characters/Gerasben/Wynna.md","x":1680,"y":-540,"width":400,"height":400,"color":"1"},
|
||||
{"id":"13bb5a5dc71cf6d4","type":"file","file":"04 - Characters/Ormur/Berga Trelior.md","x":1780,"y":778,"width":400,"height":400},
|
||||
{"id":"991f2d8dbbf5eb0b","type":"text","text":"Projekt: Reinigung","x":1980,"y":-80,"width":250,"height":60,"color":"1"},
|
||||
{"id":"06198b50a04d0ffd","type":"file","file":"04 - Characters/Ormur/Gerald Trelior.md","x":2480,"y":-160,"width":400,"height":400},
|
||||
{"id":"a0dfe3c00330b302","type":"file","file":"03 - Organisationen/Freiheitskämpfer in Gerasben.md","x":2600,"y":-640,"width":400,"height":400,"color":"1"}
|
||||
],
|
||||
"edges":[
|
||||
{"id":"b0307dc2c715b0f9","fromNode":"10496e6b0f125944","fromSide":"left","toNode":"0bd2f87797c3f233","toSide":"right","color":"5","label":"Anführer"},
|
||||
{"id":"d652f66143abc0d2","fromNode":"34c40c0d58f4ef58","fromSide":"right","toNode":"0bd2f87797c3f233","toSide":"left","color":"3","label":"Beeinflussung durch:\n- Ermordungsziele\n- Artefakte\n- Falsche Prophezeiungen\n- Falsche Riten"},
|
||||
{"id":"190abc1c8b81aee1","fromNode":"0960aa0053bfb6e8","fromSide":"top","toNode":"0bd2f87797c3f233","toSide":"right","color":"5","label":"Mitglieder"},
|
||||
{"id":"00dcbc6bea533fad","fromNode":"10496e6b0f125944","fromSide":"right","toNode":"75ca0c31fbcb512a","toSide":"left","color":"5","label":"Kontrolliert"},
|
||||
{"id":"94365d1bc221383f","fromNode":"10496e6b0f125944","fromSide":"right","toNode":"b3768b7fc2eedb05","toSide":"left","color":"5","label":"Kontrolliert"},
|
||||
{"id":"3f9464cc8d1a7a3e","fromNode":"b3768b7fc2eedb05","fromSide":"bottom","toNode":"13bb5a5dc71cf6d4","toSide":"top","label":"Teilt Information und Ziele"},
|
||||
{"id":"145bae2ad3c2a44c","fromNode":"13bb5a5dc71cf6d4","fromSide":"right","toNode":"b3768b7fc2eedb05","toSide":"right","label":"Erhofft sich Heilung für Ehemann"},
|
||||
{"id":"d1fe5406509233c4","fromNode":"13bb5a5dc71cf6d4","fromSide":"right","toNode":"d777e7baad0cd071","toSide":"left","fromEnd":"arrow","color":"4","label":"Verheiratet"},
|
||||
{"id":"0410e8b36c965deb","fromNode":"34c40c0d58f4ef58","fromSide":"right","toNode":"d777e7baad0cd071","toSide":"top","color":"2","label":"Kontrolliert durch Beschwörung"},
|
||||
{"id":"744578ba0cf60318","fromNode":"75ca0c31fbcb512a","fromSide":"right","toNode":"a0dfe3c00330b302","toSide":"left","color":"6","label":"Unterstützt"},
|
||||
{"id":"16c5dbdc29a4531f","fromNode":"9977608f6084aa93","fromSide":"right","toNode":"a0dfe3c00330b302","toSide":"top","fromEnd":"arrow","color":"1","label":"Bekämpft"},
|
||||
{"id":"d715fd67b2d26d6d","fromNode":"75ca0c31fbcb512a","fromSide":"top","toNode":"9977608f6084aa93","toSide":"bottom","color":"6","label":"Unterstützt"},
|
||||
{"id":"6ed644cddec7d58a","fromNode":"10496e6b0f125944","fromSide":"top","toNode":"8e009039b1c295cf","toSide":"bottom","color":"5","label":"Beauftragt"},
|
||||
{"id":"5c14f5e092a0f879","fromNode":"34c40c0d58f4ef58","fromSide":"top","toNode":"8e009039b1c295cf","toSide":"left","color":"2","label":"Manipuliert durch Informationen zu Diadem\n- Hat Diadem für Adel als Gefallen gestohlen / geschenkt"},
|
||||
{"id":"c900b3261332fe8c","fromNode":"75ca0c31fbcb512a","fromSide":"top","toNode":"8e009039b1c295cf","toSide":"right","fromEnd":"arrow","color":"4","label":"Arbeiten zusammen"},
|
||||
{"id":"63c7e234855fa492","fromNode":"cdf9078a1f041804","fromSide":"top","toNode":"ebaf021867414dbb","toSide":"bottom","fromEnd":"arrow","color":"6"},
|
||||
{"id":"40f077727cd93049","fromNode":"13bb5a5dc71cf6d4","fromSide":"bottom","toNode":"ebaf021867414dbb","toSide":"top","fromEnd":"arrow","color":"6"},
|
||||
{"id":"556414fcd5e8dd19","fromNode":"cdf9078a1f041804","fromSide":"left","toNode":"8e009039b1c295cf","toSide":"right","fromEnd":"arrow","label":"Kennen sich"},
|
||||
{"id":"d0e8a7ea3b9f8b2f","fromNode":"b3768b7fc2eedb05","fromSide":"right","toNode":"991f2d8dbbf5eb0b","toSide":"bottom","color":"5","label":"Verantworticher"},
|
||||
{"id":"663853b6e61a6827","fromNode":"75ca0c31fbcb512a","fromSide":"right","toNode":"991f2d8dbbf5eb0b","toSide":"top","color":"5","label":"Teil von"},
|
||||
{"id":"8e731d3e983eb27d","fromNode":"8e009039b1c295cf","fromSide":"right","toNode":"991f2d8dbbf5eb0b","toSide":"left","color":"5","label":"Hilft mit"},
|
||||
{"id":"5e81de9d1dd72ce7","fromNode":"4ba10c223eabb97d","fromSide":"left","toNode":"9977608f6084aa93","toSide":"right","color":"6"},
|
||||
{"id":"fed0e136c138e115","fromNode":"4ba10c223eabb97d","fromSide":"bottom","toNode":"a0dfe3c00330b302","toSide":"top","color":"6"},
|
||||
{"id":"e880e7ebe109f204","fromNode":"75ca0c31fbcb512a","fromSide":"right","toNode":"4ba10c223eabb97d","toSide":"bottom","color":"5","label":"Verantwortliche"},
|
||||
{"id":"c6ab58e4bb8bd009","fromNode":"4ba10c223eabb97d","fromSide":"right","toNode":"a5290e8dab06dfb3","toSide":"left","color":"6","label":"Beteiligt"},
|
||||
{"id":"543b0d85189d45f3","fromNode":"13bb5a5dc71cf6d4","fromSide":"top","toNode":"991f2d8dbbf5eb0b","toSide":"right","color":"5","label":"Beteiligt"},
|
||||
{"id":"a28bd1b4d4b4f8fc","fromNode":"6e475eba9e49eb29","fromSide":"left","toNode":"13bb5a5dc71cf6d4","toSide":"right","color":"6","label":"Will loswerden"},
|
||||
{"id":"d3cbe45a0ed4e749","fromNode":"a5290e8dab06dfb3","fromSide":"left","toNode":"6e475eba9e49eb29","toSide":"right","color":"5","label":"Anführerin"},
|
||||
{"id":"87001a12a4c20071","fromNode":"a5290e8dab06dfb3","fromSide":"bottom","toNode":"13bb5a5dc71cf6d4","toSide":"right","fromEnd":"arrow","color":"1","label":"Konflikt"},
|
||||
{"id":"69b15c91dae2ef6c","fromNode":"13bb5a5dc71cf6d4","fromSide":"bottom","toNode":"2be3e7f292b029bf","toSide":"top","fromEnd":"arrow","color":"1","label":"Konkurenz"},
|
||||
{"id":"956596ae67e11a54","fromNode":"a5290e8dab06dfb3","fromSide":"bottom","toNode":"2be3e7f292b029bf","toSide":"right","color":"5","label":"Fördert"},
|
||||
{"id":"934f750897c8440c","fromNode":"733fdb46efbc62d1","fromSide":"top","toNode":"991f2d8dbbf5eb0b","toSide":"left","color":"6","label":"Hat Kenntnis erlangt\nWill es aufhalten"},
|
||||
{"id":"b00862f5e3c9df2e","fromNode":"733fdb46efbc62d1","fromSide":"top","toNode":"4ba10c223eabb97d","toSide":"left","color":"6","label":"Hat Kenntnis\nWill entschärfen"},
|
||||
{"id":"9912ca525331fd2f","fromNode":"991f2d8dbbf5eb0b","fromSide":"right","toNode":"06198b50a04d0ffd","toSide":"left","color":"5","label":"Beteiligt"},
|
||||
{"id":"f56945f8546ca2af","fromNode":"06198b50a04d0ffd","fromSide":"bottom","toNode":"13bb5a5dc71cf6d4","toSide":"top","color":"4","label":"Geschwister"},
|
||||
{"id":"584818c391350a3b","fromNode":"c5d13c23824902ae","fromSide":"right","toNode":"733fdb46efbc62d1","toSide":"left","color":"5","label":"Mitglied"},
|
||||
{"id":"cbe16f5ff9eb4122","fromNode":"34c40c0d58f4ef58","fromSide":"bottom","toNode":"31ed7ca3464cf5f2","toSide":"top","color":"3","label":"Beeinflussung durch:\n- Information über Pläne\n- Warnung vor Gefahren"},
|
||||
{"id":"9a35194a373a3a61","fromNode":"34c40c0d58f4ef58","fromSide":"top","toNode":"49e645903622921d","toSide":"bottom","color":"3","label":"Manipuliert durch:\n- Informationen über Rituale\n- ..."},
|
||||
{"id":"990d160711a83622","fromNode":"733fdb46efbc62d1","fromSide":"bottom","toNode":"c5d13c23824902ae","toSide":"bottom","label":"Informiert über Pläne"},
|
||||
{"id":"e7334bbebe85a191","fromNode":"49e645903622921d","fromSide":"top","toNode":"88937b2fbca1e10b","toSide":"bottom","color":"5","label":"Anführer"},
|
||||
{"id":"c12ee70c13259cd7","fromNode":"b23905f7bc9571a6","fromSide":"right","toNode":"9b7b616fe0d3f7d4","toSide":"left","label":"MItglied"},
|
||||
{"id":"8a91fa36f1511240","fromNode":"3a9c6e0ea1eb2235","fromSide":"right","toNode":"9b7b616fe0d3f7d4","toSide":"left","label":"Anführer"},
|
||||
{"id":"33669e21b2c994e8","fromNode":"8f9015a69cac3a3b","fromSide":"right","toNode":"9b7b616fe0d3f7d4","toSide":"left","label":"Mitglied"},
|
||||
{"id":"b6b8836665d41116","fromNode":"8861cf9a3e6ffa82","fromSide":"right","toNode":"9b7b616fe0d3f7d4","toSide":"left","label":"Mitglied"},
|
||||
{"id":"33e709c07f4cda07","fromNode":"15e99b97094472f2","fromSide":"bottom","toNode":"d42a39784ef27d96","toSide":"top","label":"Schüler und Freund"},
|
||||
{"id":"ad95d166e7eeeac4","fromNode":"06fc644b281bf6a6","fromSide":"left","toNode":"f73dedb170dac11c","toSide":"right","label":"Mitglied"},
|
||||
{"id":"24ede29ebedfd6e3","fromNode":"06fc644b281bf6a6","fromSide":"top","toNode":"15e99b97094472f2","toSide":"left","fromEnd":"arrow","label":"Freund, Kontakt"},
|
||||
{"id":"748da3591e702404","fromNode":"34c40c0d58f4ef58","fromSide":"top","toNode":"d42a39784ef27d96","toSide":"bottom","color":"2","label":"Von Bruderschaft umbringen lassen und will ihn wieder erwecken um Sprachrohr zu haben"},
|
||||
{"id":"8915e5b10f2e5abd","fromNode":"7a455fd101c5a56c","fromSide":"left","toNode":"b744595af42913a9","toSide":"right","fromEnd":"arrow","color":"4","label":"Verheiratet"},
|
||||
{"id":"d5bfa9e331bd3457","fromNode":"8e009039b1c295cf","fromSide":"top","toNode":"7a455fd101c5a56c","toSide":"bottom","fromEnd":"arrow","color":"1","label":"Diebstahl des Diadems"},
|
||||
{"id":"b9b2206c8e094d11","fromNode":"15e99b97094472f2","fromSide":"right","toNode":"b744595af42913a9","toSide":"left","label":"Hof Auftrag\nDiebstahl aufgedeckt\nGeschenkte Wohnung"},
|
||||
{"id":"7996ec2ca7ca6edb","fromNode":"10496e6b0f125944","fromSide":"left","toNode":"679c3f802ff90e05","toSide":"bottom","color":"5","label":"Kontrolliert"},
|
||||
{"id":"53cce2ffc08e1d97","fromNode":"679c3f802ff90e05","fromSide":"top","toNode":"d42a39784ef27d96","toSide":"bottom","color":"1","label":"Ermordet als Opfer für Bhaal"},
|
||||
{"id":"0db0bc1899585bba","fromNode":"847bc059861f438e","fromSide":"bottom","toNode":"9289585ee4aab2ba","toSide":"top","label":"Vater"},
|
||||
{"id":"20ce6eb17a44f2b8","fromNode":"847bc059861f438e","fromSide":"bottom","toNode":"57af8cef78e428b9","toSide":"top","color":"4","label":"Freund"},
|
||||
{"id":"7d05a1e4db1ae2a6","fromNode":"57af8cef78e428b9","fromSide":"bottom","toNode":"9289585ee4aab2ba","toSide":"right","color":"1","label":"Sucht im Auftrag des Vaters"},
|
||||
{"id":"658a660cf0f8e48c","fromNode":"31c2cab0aae1aa7b","fromSide":"bottom","toNode":"9289585ee4aab2ba","toSide":"top","color":"4","label":"Mutter"},
|
||||
{"id":"04514e7685403596","fromNode":"31c2cab0aae1aa7b","fromSide":"left","toNode":"f2c31a3e16048bd8","toSide":"top","fromEnd":"arrow","color":"4","label":"Befreundet"},
|
||||
{"id":"ea7866e2a8a31f63","fromNode":"f2c31a3e16048bd8","fromSide":"right","toNode":"9289585ee4aab2ba","toSide":"left","color":"4","label":"Ziehmutter\nKleriker-Mutter"},
|
||||
{"id":"dd068592a4223c67","fromNode":"847bc059861f438e","fromSide":"left","toNode":"31c2cab0aae1aa7b","toSide":"right","fromEnd":"arrow","color":"1","label":"Ex-Partner\nVergewaltigung"},
|
||||
{"id":"c20e2740ab4cc69c","fromNode":"b23905f7bc9571a6","fromSide":"left","toNode":"f2c31a3e16048bd8","toSide":"bottom","color":"4","label":"Bekannt\nFreundschaft"},
|
||||
{"id":"0af24ff01aa80ac8","fromNode":"847bc059861f438e","fromSide":"top","toNode":"89857a0a8dd488cf","toSide":"bottom","color":"5","label":"Verantworticher "},
|
||||
{"id":"7d00e8763a020a9b","fromNode":"8e009039b1c295cf","fromSide":"top","toNode":"b744595af42913a9","toSide":"bottom","color":"1","label":"Zurück Diebstahl von Diadem durch Spieler"},
|
||||
{"id":"5bbf01380b1aad5c","fromNode":"1a29d312bc1fb8a1","fromSide":"top","toNode":"6e475eba9e49eb29","toSide":"bottom","label":"Alte Lehrerin"},
|
||||
{"id":"d605a8ceeca73e77","fromNode":"1a29d312bc1fb8a1","fromSide":"top","toNode":"a5290e8dab06dfb3","toSide":"bottom","label":"Gilde in Kindheit"},
|
||||
{"id":"6a4205598296ae19","fromNode":"e02f41cb930359b2","fromSide":"right","toNode":"34c40c0d58f4ef58","toSide":"left","color":"5","label":"Anführer"},
|
||||
{"id":"4291ff8365309474","fromNode":"34c40c0d58f4ef58","fromSide":"bottom","toNode":"ebc00f54df31fae0","toSide":"top","color":"2","label":"Beeinflussung durch:\nHilfsmittel für Flugmaschine"},
|
||||
{"id":"4c04713bb544dd8c","fromNode":"10496e6b0f125944","fromSide":"bottom","toNode":"ebc00f54df31fae0","toSide":"top","color":"6","label":"Unterstützt"},
|
||||
{"id":"e9834ea8fa47cfce","fromNode":"991f2d8dbbf5eb0b","fromSide":"left","toNode":"ebc00f54df31fae0","toSide":"right","color":"5","label":"Will verwenden"},
|
||||
{"id":"db2263b1f1e4ef85","fromNode":"88937b2fbca1e10b","fromSide":"left","toNode":"847bc059861f438e","toSide":"right","color":"4","label":"Enger Vertrauter"},
|
||||
{"id":"137e4d9e9c47ef4c","fromNode":"679c3f802ff90e05","fromSide":"left","toNode":"678e18c7ae0cdb96","toSide":"top","label":"Verantwortlicher"}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,82 @@
|
||||
---
|
||||
date_created:
|
||||
tags:
|
||||
lead:
|
||||
organization:
|
||||
target:
|
||||
location:
|
||||
---
|
||||
# Wer
|
||||
- Protagonisten:
|
||||
- Antagonisten:
|
||||
|
||||
# Wo
|
||||
|
||||
|
||||
# Was
|
||||
- Auslöser:
|
||||
- Mögliche Ausgänge:
|
||||
- Relevante Items:
|
||||
|
||||
# Warum
|
||||
|
||||
# Verlauf
|
||||
|
||||
### **1. Der verlorene Ruhm: Warum will der Charakter zurück?**
|
||||
|
||||
- **Persönliche Tragödie:** Vielleicht hat der Charakter durch einen Skandal, eine Intrige oder einen magischen Fluch alles verloren. Der Wunsch nach Rache oder Rehabilitation treibt ihn an.
|
||||
- **Identitätskrise:** Der Charakter hat sich so sehr in seine Rollen verloren, dass er ohne Applaus und Bewunderung nicht weiß, wer er wirklich ist.
|
||||
- **Schuld und Sühne:** Er hat in der Vergangenheit jemanden verraten oder eine Rolle gespielt, die ungewollt Katastrophen auslöste – jetzt will er es „wieder gutmachen“, indem er als Held gefeiert wird.
|
||||
- **Magische Abhängigkeit:** Sein Ruhm war mit magischen Mitteln (z. B. einem Pakt, einem Artefakt oder einem Fluch) verbunden. Ohne ihn verfällt er – oder die Magie verlangt nach „Nahrung“ in Form von Bewunderung.
|
||||
|
||||
---
|
||||
|
||||
### **2. Plot-Hooks für die Kampagne**
|
||||
|
||||
#### **A. Die letzte Rolle**
|
||||
|
||||
- **Das unvollendete Meisterwerk:** Der Charakter soll in einer legendären, aber verfluchten Theaterproduktion mitspielen, die jedes Mal, wenn sie aufgeführt wird, die Schauspieler in echte Abenteuer stürzt. Die Rolle könnte ihn zwingen, sich mit seiner Vergangenheit auseinanderzusetzen – oder sie zu wiederholen.
|
||||
- **Der Regisseur als Antagonist:** Ein ehemaliger Mentor oder Rivale manipuliert ihn, um eine Rolle zu spielen, die eine uralte Prophezeiung erfüllt (z. B. als „Held“, der in Wahrheit ein Werkzeug eines bösen Gottes ist).
|
||||
|
||||
#### **B. Die Bühne als Schlachtfeld**
|
||||
|
||||
- **Wettkampf der Künstler:** Ein magisches Turnier oder ein Festival, bei dem Schauspieler um den Titel des „größten Darstellers der Welt“ kämpfen – doch die Challenges sind tödlich. Wer verliert, wird für immer in seine letzte Rolle verwandelt.
|
||||
- **Die Illusion der Realität:** Eine Stadt oder ein Adliger engagiert ihn, um eine historische Figur zu spielen – doch die Grenze zwischen Rolle und Realität verschwimmt. Plötzlich ist er mitten in einem politischen Attentat oder einem Krieg, den er selbst (unbewusst) ausgelöst hat.
|
||||
|
||||
#### **C. Der Preis des Ruhms**
|
||||
|
||||
- **Pakt mit einer Entität:** Ein Dämon, ein Archfey oder ein Gott bietet ihm Ruhm im Austausch für „Dienstleistungen“ – z. B. muss er in jeder Stadt, die ihn feiert, ein Opfer bringen (wörtlich oder metaphorisch).
|
||||
- **Die Maske fällt nicht ab:** Eine magische Maske oder ein Fluch zwingt ihn, ständig in Rolle zu bleiben. Wenn er aufhört zu schauspielern, verliert er seine Fähigkeiten – oder stirbt.
|
||||
- **Das Publikum will Blut:** Seine Fans sind keine normalen Zuschauer, sondern Geister, Dämonen oder eine Sekte, die seine „Kunst“ als Ritual missverstehen. Je berühmter er wird, desto mehr Kontrolle verliert er über sie.
|
||||
|
||||
#### **D. Ethik vs. Ruhm**
|
||||
|
||||
- **Die falsche Heldentat:** Er inszeniert eine „heldenhafte“ Tat (z. B. den Sturz eines Tyrannen), die in Wahrheit ein Setup ist. Doch die Konsequenzen sind real – und unschuldige Menschen leiden.
|
||||
- **Der verratene Clown:** Er wird von einer Gruppe Revolutionäre oder einer Gilde angeworben, um als „Symbol“ zu dienen – doch ihre Methoden sind grausam. Muss er seine Fans enttäuschen, um das Richtige zu tun?
|
||||
- **Die Kirche des Ruhms:** Eine Sekte verehrt ihn als lebendigen Gott. Er könnte sie ausnutzen – oder versuchen, sie von ihrem fanatischen Weg abzubringen.
|
||||
|
||||
#### **E. Die Rückkehr des Stars**
|
||||
|
||||
- **Der alte Rivale:** Ein ehemaliger Kollege, der ihn einst verriet, ist jetzt ein mächtiger Adliger oder Kultführer. Der Charakter will Rache – doch der Rivale hat Beweise für seine eigenen dunklen Taten.
|
||||
- **Das Comeback:** Ein mächtiger Mäzen (vielleicht ein Drache oder ein Lich) bietet ihm eine Hauptrolle in einem epischen Stück an – doch die „Bühne“ ist ein Schlachtfeld, und die „Schauspieler“ sind echte Krieger.
|
||||
- **Die verlorene Liebe:** Seine ehemalige Bühnenpartnerin (und Geliebte) ist jetzt eine berühmte Abenteurerin oder eine Verbrecherkönigin. Sie will ihn zurück – aber nur, wenn er eine gefährliche Mission erfüllt.
|
||||
|
||||
---
|
||||
|
||||
### **3. Mechanische Ideen für den Charakter**
|
||||
|
||||
- **Bardische Fähigkeiten mit Twist:** Statt klassischer Musik nutzt er Theater-Tricks (Täuschung, Verkleidung, Improvisation) als „Waffe“. Seine „Inspiration“ könnte davon abhängen, wie überzeugend er ist.
|
||||
- **Ruhm als Währung:** In Städten, in denen er bekannt ist, bekommt er Vorteile (z. B. bessere Preise, Informationen) – aber auch Feinde (Neider, Stalker, ehemalige Opfer).
|
||||
- **Rollenspiel im Rollenspiel:** Er kann temporär die Fähigkeiten einer Figur annehmen, die er spielt – aber je länger er in der Rolle bleibt, desto schwerer fällt es ihm, zurückzukehren.
|
||||
|
||||
---
|
||||
|
||||
### **4. Verbindung zu deinen Lieblingsthemen**
|
||||
|
||||
- **Prophezeiung:** Eine alte Weissagung sagt, dass „der größte Schauspieler der Welt“ den Untergang eines Gottes herbeiführen wird. Ist er auserwählt – oder nur ein Werkzeug?
|
||||
- **Brüderliche Rivalität:** Sein Bruder war der „ernsthafte“ Schauspieler, der für „Kunst“ stand, während er für „Unterhaltung“ stand. Jetzt ist der Bruder tot – und er findet heraus, dass dessen Tod mit einer seiner Rollen zusammenhängt.
|
||||
- **Die Kirche des Lichts:** Eine religiöse Gruppe verurteilt Theater als „Lüge“ und jagt ihn. Doch ihr Anführer ist heimlich sein größter Fan – und will ihn für seine eigenen Zwecke nutzen.
|
||||
|
||||
---
|
||||
|
||||
**Frage an dich:** Soll der Charakter eher tragisch, komisch oder zynisch sein? Und wie viel Kontrolle soll er über sein Schicksal haben – ist er ein Opfer der Umstände, oder treibt er die Ereignisse selbst voran? Das könnte helfen, die Hooks noch präziser zu gestalten!
|
||||
+18532
File diff suppressed because it is too large.
Load diff
Loaded 100 of 3828 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user