Item review and commit

This commit is contained in:
LeRatierBretonnien 2023-01-04 22:43:01 +01:00
parent a91eb3d7bd
commit 521d14c263
12 changed files with 55 additions and 45 deletions

View File

@ -30,12 +30,12 @@ export const Hero6_CONFIG = {
"none": "None",
"attack": "Attack",
"automaton": "Automaton",
"bodyaffecting": "Bodyaffecting",
"bodyaffecting": "Body-Affecting",
"defense": "Defense",
"sensory": "Sensory"
},
powerSenseAffecting: {
"none": "None",
"senseaffecting": "Senseaffecting",
"senseaffecting": "Sense-Affecting",
}
}

View File

@ -43,7 +43,7 @@ export class Hero6Utility {
return __locationNames[key]
})
Handlebars.registerHelper('isSkillCustom', function (key) {
if (key == "custom" || key == "background" || key == "combat" ) {
if (key == "custom" || key == "background" ) {
return true;
}
return false
@ -158,6 +158,7 @@ export class Hero6Utility {
'systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-item-hasroll.hbs',
]
return loadTemplates(templatePaths);
}

View File

@ -23,7 +23,7 @@
"packs": [
{
"type": "Item",
"label": "Equipments",
"label": "Equipment",
"name": "equipment",
"path": "packs/equipment.db",
"system": "fvtt-hero-system-6",
@ -82,7 +82,7 @@
"styles": [
"styles/simple.css"
],
"version": "10.0.3",
"version": "10.0.4",
"compatibility": {
"minimum": "10",
"verified": "10",
@ -90,7 +90,7 @@
},
"title": "Hero System v6 for FoundrtVTT (Official)",
"manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/raw/branch/main/system.json",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.3.zip",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.4.zip",
"url": "https://www.uberwald.me/gitea/uberwald/",
"background": "images/ui/hro6_welcome_page.webp",
"id": "fvtt-hero-system-6"

View File

@ -236,7 +236,7 @@
"skilltype": "agility",
"characteristic": "",
"base": "",
"skillroll": 0,
"levelscost": 0,
"levels": 0,
"templates": [
"common"
@ -309,12 +309,14 @@
"velValue": 0
},
"perk": {
"hasroll": false,
"roll": 0,
"templates": [
"common"
]
},
"talent": {
"hasroll": false,
"roll": 0,
"templates": [
"common"

View File

@ -14,9 +14,11 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li>
<ul>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li>
</ul>
</div>
</section>

View File

@ -15,18 +15,11 @@
<div class="tab details" data-group="primary" data-tab="details">
<li class="flexrow"><label class="item-field-label-long">Has Roll ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.hasroll" {{checked system.hasroll}}/></label>
</li>
{{#if system.hasroll}}
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{/if}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<ul>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-hasroll.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</ul>
</div>
</section>
</form>

View File

@ -12,10 +12,12 @@
<section class="sheet-body">
<div class="tab details" data-group="primary" data-tab="details">
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<ul>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</ul>
</div>
</section>
</form>

View File

@ -14,12 +14,12 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<ul>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-hasroll.hbs}}
</div>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</ul>
</div>
</section>
</form>

View File

@ -14,20 +14,14 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
{{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs}}
<li class="flexrow"><label class="item-field-label-long">Has Roll ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.hasroll" {{checked system.hasroll}}/></label>
</li>
<ul>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-hasroll.hbs}}
{{#if system.hasroll}}
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{/if}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</ul>
</div>
</section>
</form>

View File

@ -46,9 +46,11 @@
<input type="text" class="item-field-label-medium" name="system.levels" value="{{system.levels}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="item-field-label-long">Skill Roll points</label>
<input type="text" class="item-field-label-medium" name="system.skillroll" value="{{system.skillroll}}" data-dtype="Number"/>
</li>
{{#if (ne system.skilltype "combat")}}
<li class="flexrow"><label class="item-field-label-long">Levels Cost</label>
<input type="text" class="item-field-label-medium" name="system.levelscost" value="{{system.levelscost}}" data-dtype="Number"/>
</li>
{{/if}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}

View File

@ -14,7 +14,12 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
<ul>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-hasroll.hbs}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</ul>
</div>

View File

@ -0,0 +1,9 @@
<li class="flexrow"><label class="item-field-label-long">Has Roll ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.hasroll" {{checked system.hasroll}}/></label>
</li>
{{#if system.hasroll}}
<li class="flexrow"><label class="item-field-label-long">Roll</label>
<input type="text" class="item-field-label-medium" name="system.roll" value="{{system.roll}}" data-dtype="Number"/>
</li>
{{/if}}