Refactor item and weapon data structure, update character creation XMLs, and adjust workspace configuration.

This commit is contained in:
Florian 2026-05-05 11:56:40 +02:00
parent 86f30d863a
commit 8d246aedfa
3 changed files with 44 additions and 6 deletions

View File

@ -11,10 +11,13 @@
"id": "8b8db8934e706fc6", "id": "8b8db8934e706fc6",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "empty", "type": "bases",
"state": {}, "state": {
"icon": "lucide-file", "file": "wiki/weapons/Items.base",
"title": "New tab" "viewName": "Weapons"
},
"icon": "lucide-table",
"title": "Items"
} }
} }
] ]

View File

@ -188,7 +188,7 @@
</Group> </Group>
<Group Name="items"> <Group Name="items">
<Variables> <Variables>
<List Name="weapons"> <List Name="melee">
<Variables> <Variables>
<String Name="name"/> <String Name="name"/>
<Int Name="cost"/> <Int Name="cost"/>

View File

@ -15,6 +15,9 @@
<BaseReference Name="races"> <BaseReference Name="races">
<Path>wiki/races/Races</Path> <Path>wiki/races/Races</Path>
</BaseReference> </BaseReference>
<BaseReference Name="items">
<Path>wiki/weapons/Items</Path>
</BaseReference>
</Bases> </Bases>
<Libraries> <Libraries>
<LibraryReference>charlib</LibraryReference> <LibraryReference>charlib</LibraryReference>
@ -3996,7 +3999,7 @@
<Text>"Nahkampfwaffen"</Text> <Text>"Nahkampfwaffen"</Text>
</Header> </Header>
<ListDisplay> <ListDisplay>
<List>[data.character.items.weapons]</List> <List>[data.character.items.melee]</List>
<Columns> <Columns>
<NameValueDisplay> <NameValueDisplay>
<Name>"Name"</Name> <Name>"Name"</Name>
@ -4012,6 +4015,38 @@
</NameValueDisplay> </NameValueDisplay>
</Columns> </Columns>
</ListDisplay> </ListDisplay>
<BaseToListPicker>
<List>[data.character.items.melee]</List>
<PropertyOutputs>
<PropertyOutput>
<Property>[file.name]</Property>
<Output>[name]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>[item.cost]</Property>
<Output>[cost]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>[weapon.damage]</Property>
<Output>[damage]</Output>
</PropertyOutput>
</PropertyOutputs>
<Columns>
<NameValueDisplay>
<Name>"Name"</Name>
<Value>[file.name]</Value>
</NameValueDisplay>
<NameValueDisplay>
<Name>"Kosten"</Name>
<Value>[item.cost]</Value>
</NameValueDisplay>
<NameValueDisplay>
<Name>"Schaden"</Name>
<Value>[weapon.damage]</Value>
</NameValueDisplay>
</Columns>
<Base>[base.items.Weapons]</Base>
</BaseToListPicker>
</Content> </Content>
</Page> </Page>
</Pages> </Pages>