Update character PDF XML: add capability for weapons to track QS, technique, AT, PA, and integrate related functions
This commit is contained in:
@@ -190,6 +190,10 @@
|
||||
<String Name="name"/>
|
||||
<Int Name="cost"/>
|
||||
<String Name="damage"/>
|
||||
<Int Name="qs"/>
|
||||
<String Name="fighttechnique"/>
|
||||
<String Name="at"/>
|
||||
<String Name="pa"/>
|
||||
</Variables>
|
||||
</List>
|
||||
</Variables>
|
||||
|
||||
@@ -3930,6 +3930,67 @@
|
||||
</TableLayout>
|
||||
</Content>
|
||||
</TableLayout>
|
||||
<TableLayout>
|
||||
<Columns>8</Columns>
|
||||
<Content>
|
||||
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"Name"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"QS M"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"QS A"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"Kampftechnik"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"Schaden"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"AT"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"PA"</Text>
|
||||
</Label>
|
||||
<Label Styles="TalentTableHeader">
|
||||
<Text>"Preis"</Text>
|
||||
</Label>
|
||||
|
||||
<Foreach>
|
||||
<List>[data.character.items.melee]</List>
|
||||
<Content>
|
||||
<Label>
|
||||
<Text>[name]</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[qs]</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>""</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[fighttechnique]</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[damage]</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[at]</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[pa]</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[cost]</Text>
|
||||
</Label>
|
||||
</Content>
|
||||
</Foreach>
|
||||
|
||||
</Content>
|
||||
</TableLayout>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
</Body>
|
||||
|
||||
@@ -4240,6 +4240,10 @@
|
||||
<Name>"Name"</Name>
|
||||
<Value>[name]</Value>
|
||||
</NameValueDisplay>
|
||||
<NameValueDisplay>
|
||||
<Name>"QS"</Name>
|
||||
<Value>[qs]</Value>
|
||||
</NameValueDisplay>
|
||||
<NameValueDisplay>
|
||||
<Name>"Kosten"</Name>
|
||||
<Value>[cost]</Value>
|
||||
@@ -4257,30 +4261,40 @@
|
||||
<Text>"+QS"</Text>
|
||||
<OnClick>
|
||||
<Action>
|
||||
<If>[cost] < 10000</If>
|
||||
<If>[qs] < 6</If>
|
||||
<Do>[data.character.control.coins] - [cost]</Do>
|
||||
<Output>[data.character.control.coins]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[cost] < 10000</If>
|
||||
<If>[qs] < 6</If>
|
||||
<Do>[cost] * 2</Do>
|
||||
<Output>[cost]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[qs] < 6</If>
|
||||
<Do>[qs] + 1</Do>
|
||||
<Output>[qs]</Output>
|
||||
</Action>
|
||||
</OnClick>
|
||||
</Button>
|
||||
<Button>
|
||||
<Text>"-QS"</Text>
|
||||
<OnClick>
|
||||
<Action>
|
||||
<If>[cost] > 1</If>
|
||||
<If>[qs] > 0</If>
|
||||
<Do>[cost] / 2</Do>
|
||||
<Output>[cost]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[cost] > 1</If>
|
||||
<If>[qs] > 0</If>
|
||||
<Do>[data.character.control.coins] + [cost]</Do>
|
||||
<Output>[data.character.control.coins]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[qs] < 0</If>
|
||||
<Do>[qs] - 1</Do>
|
||||
<Output>[qs]</Output>
|
||||
</Action>
|
||||
</OnClick>
|
||||
</Button>
|
||||
</Buttons>
|
||||
@@ -4300,6 +4314,22 @@
|
||||
<Property>[weapon.damage]</Property>
|
||||
<Output>[damage]</Output>
|
||||
</PropertyOutput>
|
||||
<PropertyOutput>
|
||||
<Property>1</Property>
|
||||
<Output>[qs]</Output>
|
||||
</PropertyOutput>
|
||||
<PropertyOutput>
|
||||
<Property>[weapon.technique]</Property>
|
||||
<Output>[fighttechnique]</Output>
|
||||
</PropertyOutput>
|
||||
<PropertyOutput>
|
||||
<Property>[weapon.at]</Property>
|
||||
<Output>[at]</Output>
|
||||
</PropertyOutput>
|
||||
<PropertyOutput>
|
||||
<Property>[weapon.pa]</Property>
|
||||
<Output>[pa]</Output>
|
||||
</PropertyOutput>
|
||||
</PropertyOutputs>
|
||||
<Columns>
|
||||
<NameValueDisplay>
|
||||
|
||||
Reference in New Issue
Block a user