2 Commits

Author SHA1 Message Date
56ff013178 Armor categories 2022-11-21 08:35:20 +01:00
8785a38a10 Armor categories 2022-11-21 08:34:49 +01:00
6 changed files with 18 additions and 4 deletions

View File

@ -36,8 +36,6 @@ export class Avd12Actor extends Actor {
} }
if (data.type == 'character') { if (data.type == 'character') {
const skills = await Avd12Utility.loadCompendium("fvtt-avd12.skills")
data.items = skills.map(i => i.toObject())
} }
if (data.type == 'npc') { if (data.type == 'npc') {
} }

View File

@ -157,6 +157,7 @@ export class Avd12Utility {
'systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs', 'systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs',
'systems/fvtt-avd12/templates/items/partial-options-attributes.hbs', 'systems/fvtt-avd12/templates/items/partial-options-attributes.hbs',
'systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs', 'systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs',
'systems/fvtt-avd12/templates/items/partial-options-armor-types.hbs',
'systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs', 'systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs',
'systems/fvtt-avd12/templates/items/partial-options-spell-levels.hbs', 'systems/fvtt-avd12/templates/items/partial-options-spell-levels.hbs',
'systems/fvtt-avd12/templates/items/partial-options-spell-schools.hbs', 'systems/fvtt-avd12/templates/items/partial-options-spell-schools.hbs',

View File

@ -35,7 +35,7 @@
], ],
"title": "AnyVenture D12 RPG", "title": "AnyVenture D12 RPG",
"url": "https://www.uberwald.me/gitea/public/fvtt-avd12", "url": "https://www.uberwald.me/gitea/public/fvtt-avd12",
"version": "10.0.8", "version": "10.0.9",
"download": "https://www.uberwald.me/gitea/public/fvtt-avd12/archive/fvtt-avd12-v10.0.8.zip", "download": "https://www.uberwald.me/gitea/public/fvtt-avd12/archive/fvtt-avd12-v10.0.9.zip",
"background": "systems/fvtt-avd12/images/ui/avd12_welcome_page.webp" "background": "systems/fvtt-avd12/images/ui/avd12_welcome_page.webp"
} }

View File

@ -422,6 +422,7 @@
"commonitem" "commonitem"
], ],
"equipped": false, "equipped": false,
"category": "",
"description": "" "description": ""
}, },
"shield": { "shield": {

View File

@ -21,6 +21,15 @@
{{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}} {{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}}
<li class="flexrow">
<label class="item-field-label-long">Armor type</label>
<select class="item-field-label-long" type="text" name="system.category" value="{{system.category}}" data-dtype="String">
{{#select system.category}}
{{> systems/fvtt-avd12/templates/items/partial-options-armor-types.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow"> <li class="flexrow">
<label class="item-field-label-long">Equipped</label> <label class="item-field-label-long">Equipped</label>
<input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} /> <input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} />

View File

@ -0,0 +1,5 @@
<option value="unarmed">Unarmed</option>
<option value="light">Light Armor</option>
<option value="medium">Medium Armor</option>
<option value="heavy">Heavy Armor</option>
<option value="ultraheavy">Ultra-Heavy Armor</option>