Update PDF Generation
This commit is contained in:
parent
0066d368b0
commit
cb130fe752
3
WorldDawnSimpleTest/.obsidian/types.json
vendored
3
WorldDawnSimpleTest/.obsidian/types.json
vendored
@ -24,6 +24,7 @@
|
|||||||
"armor": "checkbox",
|
"armor": "checkbox",
|
||||||
"armor.evade": "number",
|
"armor.evade": "number",
|
||||||
"armor.slots": "number",
|
"armor.slots": "number",
|
||||||
"shield": "checkbox"
|
"shield": "checkbox",
|
||||||
|
"magic": "checkbox"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
18
WorldDawnSimpleTest/.obsidian/workspace.json
vendored
18
WorldDawnSimpleTest/.obsidian/workspace.json
vendored
@ -13,11 +13,11 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "bases",
|
"type": "bases",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "wiki/weapons/Items.base",
|
"file": "wiki/Magie/Magic.base",
|
||||||
"viewName": "Armor"
|
"viewName": "Categories"
|
||||||
},
|
},
|
||||||
"icon": "lucide-table",
|
"icon": "lucide-table",
|
||||||
"title": "Items"
|
"title": "Magic"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -198,10 +198,14 @@
|
|||||||
},
|
},
|
||||||
"active": "cbd86a1333362c95",
|
"active": "cbd86a1333362c95",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"wiki/weapons/Sword.md",
|
"wiki/Magie/Kampfmagie.md",
|
||||||
"wiki/weapons/Items.base",
|
"wiki/Magie/Magic.base",
|
||||||
"wiki/weapons/Stahlschild.md",
|
"Untitled.base",
|
||||||
"wiki/weapons/Holzschild.md",
|
"wiki/weapons/Holzschild.md",
|
||||||
|
"wiki/weapons/Items.base",
|
||||||
|
"wiki/Magie",
|
||||||
|
"wiki/weapons/Sword.md",
|
||||||
|
"wiki/weapons/Stahlschild.md",
|
||||||
"wiki/weapons/Lederrüstung.md",
|
"wiki/weapons/Lederrüstung.md",
|
||||||
"wiki/weapons/Kettenhemd.md",
|
"wiki/weapons/Kettenhemd.md",
|
||||||
"wiki/weapons/Bow.md",
|
"wiki/weapons/Bow.md",
|
||||||
@ -225,9 +229,7 @@
|
|||||||
"wiki/weapons",
|
"wiki/weapons",
|
||||||
"wiki/twomain/Hallo Welt.md",
|
"wiki/twomain/Hallo Welt.md",
|
||||||
"wiki/twomain/Zweiter Hallo Welt.md",
|
"wiki/twomain/Zweiter Hallo Welt.md",
|
||||||
"wiki/twomain",
|
|
||||||
"adventures/Adventure.md",
|
"adventures/Adventure.md",
|
||||||
"wiki/first subfolder/secondSub",
|
|
||||||
"Welcome.md"
|
"Welcome.md"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
0
WorldDawnSimpleTest/Untitled.base
Normal file
0
WorldDawnSimpleTest/Untitled.base
Normal file
4
WorldDawnSimpleTest/wiki/Magie/Kampfmagie.md
Normal file
4
WorldDawnSimpleTest/wiki/Magie/Kampfmagie.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
magiccat: true
|
||||||
|
magiccat.description: Einem Gegner oder Objekt Schaden zufügen oder in eine Situation bringen in der die sie empfänglicher für Schaden wird.
|
||||||
|
---
|
||||||
9
WorldDawnSimpleTest/wiki/Magie/Magic.base
Normal file
9
WorldDawnSimpleTest/wiki/Magie/Magic.base
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
name: Categories
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- magiccat == true
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- magiccat.description
|
||||||
@ -37,6 +37,54 @@
|
|||||||
<Return>[local.cost]</Return>
|
<Return>[local.cost]</Return>
|
||||||
</Function>-->
|
</Function>-->
|
||||||
|
|
||||||
|
<Function Name="charlib_magiccatprice_sum">
|
||||||
|
<Actions>
|
||||||
|
<Action>
|
||||||
|
<Do>0</Do>
|
||||||
|
<Output>[local.sum]</Output>
|
||||||
|
</Action>
|
||||||
|
<ForLoop>
|
||||||
|
<LoopCount>[param.0]</LoopCount>
|
||||||
|
<Loop>
|
||||||
|
<Action>
|
||||||
|
<Do>[local.sum] + charlib_magiccatprice([param.loop])</Do>
|
||||||
|
<Output>[local.sum]</Output>
|
||||||
|
</Action>
|
||||||
|
</Loop>
|
||||||
|
</ForLoop>
|
||||||
|
</Actions>
|
||||||
|
</Function>
|
||||||
|
<Function Name="charlib_magiccatprice">
|
||||||
|
<Actions>
|
||||||
|
<Action>
|
||||||
|
<If>[param.0] == 0</If>
|
||||||
|
<Do>20</Do>
|
||||||
|
<Output>[local.price]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[param.0] == 1</If>
|
||||||
|
<Do>5</Do>
|
||||||
|
<Output>[local.price]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[param.0] == 2</If>
|
||||||
|
<Do>10</Do>
|
||||||
|
<Output>[local.price]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[param.0] == 3</If>
|
||||||
|
<Do>15</Do>
|
||||||
|
<Output>[local.price]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[param.0] == 4</If>
|
||||||
|
<Do>20</Do>
|
||||||
|
<Output>[local.price]</Output>
|
||||||
|
</Action>
|
||||||
|
</Actions>
|
||||||
|
<Return>[local.price]</Return>
|
||||||
|
</Function>
|
||||||
|
|
||||||
<Function Name="charlib_checkpreprint">
|
<Function Name="charlib_checkpreprint">
|
||||||
<Return>true</Return>
|
<Return>true</Return>
|
||||||
</Function>
|
</Function>
|
||||||
|
|||||||
@ -18,6 +18,9 @@
|
|||||||
<BaseReference Name="items">
|
<BaseReference Name="items">
|
||||||
<Path>wiki/weapons/Items</Path>
|
<Path>wiki/weapons/Items</Path>
|
||||||
</BaseReference>
|
</BaseReference>
|
||||||
|
<BaseReference Name="magiccats">
|
||||||
|
<Path>wiki/Magie/Magic</Path>
|
||||||
|
</BaseReference>
|
||||||
</Bases>
|
</Bases>
|
||||||
<Libraries>
|
<Libraries>
|
||||||
<LibraryReference>charlib</LibraryReference>
|
<LibraryReference>charlib</LibraryReference>
|
||||||
@ -4042,7 +4045,7 @@
|
|||||||
<List>[data.character.magic.categories]</List>
|
<List>[data.character.magic.categories]</List>
|
||||||
<AllowRemove>true</AllowRemove>
|
<AllowRemove>true</AllowRemove>
|
||||||
<Budget>[data.character.control.xp]</Budget>
|
<Budget>[data.character.control.xp]</Budget>
|
||||||
<Cost>[level]</Cost>
|
<Cost>charlib_magiccatprice_sum([level])</Cost>
|
||||||
<Columns>
|
<Columns>
|
||||||
<NameValueDisplay>
|
<NameValueDisplay>
|
||||||
<Name>"Name"</Name>
|
<Name>"Name"</Name>
|
||||||
@ -4063,18 +4066,69 @@
|
|||||||
<OnClick>
|
<OnClick>
|
||||||
<Action>
|
<Action>
|
||||||
<If>[level] < 4</If>
|
<If>[level] < 4</If>
|
||||||
<Do>[level] + 1</Do>
|
<Do>[data.character.control.xp] - charlib_magiccatprice([level] + 1)</Do>
|
||||||
<Output>[level]</Output>
|
<Output>[data.character.control.xp]</Output>
|
||||||
</Action>
|
</Action>
|
||||||
<Action>
|
<Action>
|
||||||
<If>[level] < 4</If>
|
<If>[level] < 4</If>
|
||||||
<Do>[data.character.control.xp] - 5</Do>
|
<Do>[level] + 1</Do>
|
||||||
|
<Output>[level]</Output>
|
||||||
|
</Action>
|
||||||
|
</OnClick>
|
||||||
|
</Button>
|
||||||
|
<Button>
|
||||||
|
<Text>"-1"</Text>
|
||||||
|
<OnClick>
|
||||||
|
<Action>
|
||||||
|
<If>[level] > 0</If>
|
||||||
|
<Do>[data.character.control.xp] + charlib_magiccatprice([level])</Do>
|
||||||
<Output>[data.character.control.xp]</Output>
|
<Output>[data.character.control.xp]</Output>
|
||||||
</Action>
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[level] > 0</If>
|
||||||
|
<Do>[level] - 1</Do>
|
||||||
|
<Output>[level]</Output>
|
||||||
|
</Action>
|
||||||
</OnClick>
|
</OnClick>
|
||||||
</Button>
|
</Button>
|
||||||
</Buttons>
|
</Buttons>
|
||||||
</ListDisplay>
|
</ListDisplay>
|
||||||
|
|
||||||
|
<BaseToListPicker>
|
||||||
|
<List>[data.character.magic.categories]</List>
|
||||||
|
<PropertyOutputs>
|
||||||
|
<PropertyOutput>
|
||||||
|
<Property>[file.name]</Property>
|
||||||
|
<Output>[name]</Output>
|
||||||
|
</PropertyOutput>
|
||||||
|
<PropertyOutput>
|
||||||
|
<Property>[magiccat.description]</Property>
|
||||||
|
<Output>[description]</Output>
|
||||||
|
</PropertyOutput>
|
||||||
|
<PropertyOutput>
|
||||||
|
<Property>0</Property>
|
||||||
|
<Output>[level]</Output>
|
||||||
|
</PropertyOutput>
|
||||||
|
</PropertyOutputs>
|
||||||
|
<Columns>
|
||||||
|
<NameValueDisplay>
|
||||||
|
<Name>"Name"</Name>
|
||||||
|
<Value>[file.name]</Value>
|
||||||
|
</NameValueDisplay>
|
||||||
|
<NameValueDisplay>
|
||||||
|
<Name>"Beschreibung"</Name>
|
||||||
|
<Value>[magiccat.description]</Value>
|
||||||
|
</NameValueDisplay>
|
||||||
|
</Columns>
|
||||||
|
<Base>[base.magiccats.Categories]</Base>
|
||||||
|
<Budget>[data.character.control.xp]</Budget>
|
||||||
|
<Cost>20</Cost>
|
||||||
|
</BaseToListPicker>
|
||||||
|
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Neue Kategorie erstellen"</Text>
|
||||||
|
</Header>
|
||||||
<GridContainer>
|
<GridContainer>
|
||||||
<Cols>2</Cols>
|
<Cols>2</Cols>
|
||||||
<Content>
|
<Content>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user