Update PDF Generation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user