Item descriptions
This commit is contained in:
parent
d56be5dcd6
commit
d49452efc5
@ -4,10 +4,11 @@ export const Hero6_CONFIG = {
|
||||
rollCharac : {
|
||||
"str": "Strength",
|
||||
"dex": "Dexterity",
|
||||
"pre": "Presence",
|
||||
"int": "Intelligence",
|
||||
"con": "Constitution",
|
||||
"ego": "Ego"
|
||||
"int": "Intelligence",
|
||||
"ego": "Ego",
|
||||
"pre": "Presence",
|
||||
"manual": "Manual",
|
||||
},
|
||||
skillType: {
|
||||
"agility": "Agility",
|
||||
@ -15,7 +16,17 @@ export const Hero6_CONFIG = {
|
||||
"intellect": "Intellect" ,
|
||||
"background": "Background" ,
|
||||
"combat": "Combat" ,
|
||||
"custom": "Custom"
|
||||
},
|
||||
powerEquipmentType: {
|
||||
"adjustement": "Adjustement",
|
||||
"attack": "Attack",
|
||||
"bodyaffecting": "Bodyaffecting",
|
||||
"defense": "Defense",
|
||||
"mental": "Mental",
|
||||
"movement": "Movement",
|
||||
"senseaffecting": "Senseaffecting",
|
||||
"sensory": "Sensory",
|
||||
"special": "Special"
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -42,6 +42,12 @@ export class Hero6Utility {
|
||||
Handlebars.registerHelper('locationLabel', function (key) {
|
||||
return __locationNames[key]
|
||||
})
|
||||
Handlebars.registerHelper('isSkillCustom', function (key) {
|
||||
if (key == "custom" || key == "background" || key == "combat" ) {
|
||||
return true;
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
|
||||
this.gameSettings()
|
||||
@ -149,7 +155,9 @@ export class Hero6Utility {
|
||||
'systems/fvtt-hero-system-6/templates/partials/partial-options-abilities.hbs',
|
||||
'systems/fvtt-hero-system-6/templates/partials/partial-item-nav.hbs',
|
||||
'systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs',
|
||||
'systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment.hbs'
|
||||
'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',
|
||||
]
|
||||
return loadTemplates(templatePaths);
|
||||
}
|
||||
|
@ -82,7 +82,7 @@
|
||||
"styles": [
|
||||
"styles/simple.css"
|
||||
],
|
||||
"version": "10.0.1",
|
||||
"version": "10.0.2",
|
||||
"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.1.zip",
|
||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.2.zip",
|
||||
"url": "https://www.uberwald.me/gitea/uberwald/",
|
||||
"background": "images/ui/hro6_welcome_page.webp",
|
||||
"id": "fvtt-hero-system-6"
|
||||
|
@ -24,7 +24,9 @@
|
||||
"str": {
|
||||
"label": "Strength",
|
||||
"value": 10,
|
||||
"base": 10
|
||||
"base": 10,
|
||||
"realcost": 0,
|
||||
"activecost": 0
|
||||
},
|
||||
"dex": {
|
||||
"label": "Dexterity",
|
||||
@ -91,12 +93,20 @@
|
||||
"pd": {
|
||||
"label": "PD",
|
||||
"value": 2,
|
||||
"base": 2
|
||||
"base": 2,
|
||||
"pd_nonresistant_total": 0,
|
||||
"pd_resistant_toal": 0,
|
||||
"pd_resistant_primary": 0,
|
||||
"pd_resistant_secondary": 0
|
||||
},
|
||||
"ed": {
|
||||
"label": "ED",
|
||||
"value": 2,
|
||||
"base": 2
|
||||
"base": 2,
|
||||
"ed_nonresistant_total": 0,
|
||||
"ed_resistant_toal": 0,
|
||||
"ed_resistant_primary": 0,
|
||||
"ed_resistant_secondary": 0
|
||||
},
|
||||
"rec": {
|
||||
"label": "REC",
|
||||
@ -149,7 +159,11 @@
|
||||
"leaping": {
|
||||
"label": "Leaping",
|
||||
"value": 4,
|
||||
"base": 4
|
||||
"base": 4,
|
||||
"leaping_horizontal_base": 0,
|
||||
"leaping_horizontal_total": 0,
|
||||
"leaping_vertical_base": 0,
|
||||
"leaping_vertical_total": 0
|
||||
},
|
||||
"flying": {
|
||||
"label": "Flying",
|
||||
@ -186,20 +200,25 @@
|
||||
],
|
||||
"templates": {
|
||||
"common": {
|
||||
"displayname": "",
|
||||
"description": "",
|
||||
"notes": "",
|
||||
"effects": "",
|
||||
"cost": "",
|
||||
"activecost": 0,
|
||||
"basecost": 0,
|
||||
"value": 0,
|
||||
"modifiers": []
|
||||
},
|
||||
"power": {
|
||||
"description": "",
|
||||
"cost": "",
|
||||
"displayname": "",
|
||||
"modifiers": [],
|
||||
"type": "",
|
||||
"effect": 0,
|
||||
"petype": "",
|
||||
"levels": 0,
|
||||
"end": 0,
|
||||
"quantity": 0,
|
||||
"range": "",
|
||||
"damage": "",
|
||||
"endurance": 0,
|
||||
"items": {}
|
||||
}
|
||||
},
|
||||
@ -214,9 +233,9 @@
|
||||
]
|
||||
},
|
||||
"skill": {
|
||||
"skilltype": "",
|
||||
"skilltype": "agility",
|
||||
"characteristic": "",
|
||||
"base": 0,
|
||||
"base": "",
|
||||
"skillroll": 0,
|
||||
"levels": 0,
|
||||
"templates": [
|
||||
@ -226,14 +245,16 @@
|
||||
},
|
||||
"power": {
|
||||
"templates": [
|
||||
"common",
|
||||
"power"
|
||||
]
|
||||
},
|
||||
"equipment": {
|
||||
"templates": [
|
||||
"common",
|
||||
"power"
|
||||
],
|
||||
"quantity": 1,
|
||||
"value": 0,
|
||||
"weight": 0,
|
||||
"moneycost": 0
|
||||
},
|
||||
@ -288,21 +309,29 @@
|
||||
"velValue": 0
|
||||
},
|
||||
"perk": {
|
||||
"roll": 0,
|
||||
"templates": [
|
||||
"common"
|
||||
]
|
||||
},
|
||||
"talent": {
|
||||
"roll": 0,
|
||||
"templates": [
|
||||
"common"
|
||||
]
|
||||
},
|
||||
"complication": {
|
||||
"hasroll": false,
|
||||
"roll": 0,
|
||||
"templates": [
|
||||
"common"
|
||||
]
|
||||
},
|
||||
"martialart": {
|
||||
"maneuver_phase": 0,
|
||||
"maneuver_ocv": 0,
|
||||
"maneuver_dcv": 0,
|
||||
"maneuver_effect": "",
|
||||
"templates": [
|
||||
"common"
|
||||
]
|
||||
|
@ -13,10 +13,16 @@
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
|
||||
<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>
|
||||
|
||||
<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}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
</div>
|
||||
</section>
|
||||
|
@ -15,18 +15,22 @@
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked system.equipped}}/></label>
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs}}
|
||||
|
||||
<li class="flexrow"><label class="item-field-label-long">Equipped ?</label>
|
||||
<label class="item-field-label-medium"><input type="checkbox" name="system.equipped" {{checked system.equipped}}/></label>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Quantity</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.quantity" value="{{system.quantity}}" data-dtype="Number"/>
|
||||
|
||||
<li class="flexrow"><label class="item-field-label-long">Weight</label>
|
||||
<input type="text" class="item-field-label-medium input-numeric-short padd-right" name="system.weight" value="{{system.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Weight</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{system.weight}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="system.moneycost" value="{{system.moneycost}}" data-dtype="Number"/>
|
||||
<li class="flexrow"><label class="item-field-label-long">Value</label>
|
||||
<input type="text" class="item-field-label-medium input-numeric-short padd-right" name="system.value" value="{{system.value}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -13,9 +13,7 @@
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
</div>
|
||||
|
@ -13,10 +13,12 @@
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
|
||||
<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}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
</div>
|
||||
</section>
|
||||
|
@ -13,9 +13,9 @@
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs}}
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
</div>
|
||||
|
@ -15,8 +15,8 @@
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Type</label>
|
||||
<select class="competence-base flexrow" type="text" name="system.skilltype" value="{{system.skilltype}}" data-dtype="String">
|
||||
<li class="flexrow"><label class="item-field-label-long">Type</label>
|
||||
<select class="item-field-label-medium" type="text" name="system.skilltype" value="{{system.skilltype}}" data-dtype="String">
|
||||
{{#select system.skilltype}}
|
||||
{{#each config.skillType as |char key|}}
|
||||
<option value="{{key}}">{{char}}</option>
|
||||
@ -25,32 +25,28 @@
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Base characteristic</label>
|
||||
<select class="competence-base flexrow" type="text" name="system.characteristic" value="{{system.characteristic}}" data-dtype="String">
|
||||
{{#if (isSkillCustom system.skilltype)}}
|
||||
<li class="flexrow"><label class="item-field-label-long">Base characteristic</label>
|
||||
<select class="item-field-label-medium" type="text" name="system.characteristic" value="{{system.characteristic}}" data-dtype="String">
|
||||
{{#select system.characteristic}}
|
||||
{{#each config.rollCharac as |char key|}}
|
||||
<option value="{{key}}">{{char}}</option>
|
||||
{{/each}}
|
||||
<option value="manual">Manual</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
{{#if (eq system.characteristic "manual")}}
|
||||
<li class="flexrow"><label class="item-field-label-long">Base value</label>
|
||||
<input type="text" class="item-field-label-medium" name="system.base" value="{{system.base}}" data-dtype="Number" {{#if (ne system.characteristic "manual")}}disabled{{/if}} />
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Base value</label>
|
||||
<input type="text" class="" name="system.base" value="{{system.base}}" data-dtype="Number" {{#if (ne system.characteristic "manual")}}disabled{{/if}} />
|
||||
<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>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Skill Roll points</label>
|
||||
<input type="text" class="" name="system.skillroll" value="{{system.skillroll}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Base cost</label>
|
||||
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">+1 cost</label>
|
||||
<input type="text" class="" name="system.plusonecost" value="{{system.plusonecost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -13,9 +13,7 @@
|
||||
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
</div>
|
||||
|
@ -5,4 +5,10 @@
|
||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="generic-label">Notes</label>
|
||||
<div class="medium-editor item-text-long-line">
|
||||
{{editor notes target="system.notes" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user