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.evade": "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": {
|
||||
"type": "bases",
|
||||
"state": {
|
||||
"file": "wiki/weapons/Items.base",
|
||||
"viewName": "Armor"
|
||||
"file": "wiki/Magie/Magic.base",
|
||||
"viewName": "Categories"
|
||||
},
|
||||
"icon": "lucide-table",
|
||||
"title": "Items"
|
||||
"title": "Magic"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -198,10 +198,14 @@
|
||||
},
|
||||
"active": "cbd86a1333362c95",
|
||||
"lastOpenFiles": [
|
||||
"wiki/weapons/Sword.md",
|
||||
"wiki/weapons/Items.base",
|
||||
"wiki/weapons/Stahlschild.md",
|
||||
"wiki/Magie/Kampfmagie.md",
|
||||
"wiki/Magie/Magic.base",
|
||||
"Untitled.base",
|
||||
"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/Kettenhemd.md",
|
||||
"wiki/weapons/Bow.md",
|
||||
@ -225,9 +229,7 @@
|
||||
"wiki/weapons",
|
||||
"wiki/twomain/Hallo Welt.md",
|
||||
"wiki/twomain/Zweiter Hallo Welt.md",
|
||||
"wiki/twomain",
|
||||
"adventures/Adventure.md",
|
||||
"wiki/first subfolder/secondSub",
|
||||
"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>
|
||||
</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">
|
||||
<Return>true</Return>
|
||||
</Function>
|
||||
|
||||
@ -18,6 +18,9 @@
|
||||
<BaseReference Name="items">
|
||||
<Path>wiki/weapons/Items</Path>
|
||||
</BaseReference>
|
||||
<BaseReference Name="magiccats">
|
||||
<Path>wiki/Magie/Magic</Path>
|
||||
</BaseReference>
|
||||
</Bases>
|
||||
<Libraries>
|
||||
<LibraryReference>charlib</LibraryReference>
|
||||
@ -4042,7 +4045,7 @@
|
||||
<List>[data.character.magic.categories]</List>
|
||||
<AllowRemove>true</AllowRemove>
|
||||
<Budget>[data.character.control.xp]</Budget>
|
||||
<Cost>[level]</Cost>
|
||||
<Cost>charlib_magiccatprice_sum([level])</Cost>
|
||||
<Columns>
|
||||
<NameValueDisplay>
|
||||
<Name>"Name"</Name>
|
||||
@ -4063,18 +4066,69 @@
|
||||
<OnClick>
|
||||
<Action>
|
||||
<If>[level] < 4</If>
|
||||
<Do>[level] + 1</Do>
|
||||
<Output>[level]</Output>
|
||||
<Do>[data.character.control.xp] - charlib_magiccatprice([level] + 1)</Do>
|
||||
<Output>[data.character.control.xp]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<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>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[level] > 0</If>
|
||||
<Do>[level] - 1</Do>
|
||||
<Output>[level]</Output>
|
||||
</Action>
|
||||
</OnClick>
|
||||
</Button>
|
||||
</Buttons>
|
||||
</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>
|
||||
<Cols>2</Cols>
|
||||
<Content>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user