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",
"type": "leaf",
"state": {
"type": "empty",
"state": {},
"icon": "lucide-file",
"title": "New tab"
"type": "bases",
"state": {
"file": "wiki/weapons/Items.base",
"viewName": "Weapons"
},
"icon": "lucide-table",
"title": "Items"
}
}
]

View File

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

View File

@ -15,6 +15,9 @@
<BaseReference Name="races">
<Path>wiki/races/Races</Path>
</BaseReference>
<BaseReference Name="items">
<Path>wiki/weapons/Items</Path>
</BaseReference>
</Bases>
<Libraries>
<LibraryReference>charlib</LibraryReference>
@ -3996,7 +3999,7 @@
<Text>"Nahkampfwaffen"</Text>
</Header>
<ListDisplay>
<List>[data.character.items.weapons]</List>
<List>[data.character.items.melee]</List>
<Columns>
<NameValueDisplay>
<Name>"Name"</Name>
@ -4012,6 +4015,38 @@
</NameValueDisplay>
</Columns>
</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>
</Page>
</Pages>