Fix powers

This commit is contained in:
LeRatierBretonnien 2022-12-29 20:30:28 +01:00
parent 73e1b1f68a
commit a91eb3d7bd
16 changed files with 122 additions and 73 deletions

View File

@ -19,14 +19,23 @@ export const Hero6_CONFIG = {
"custom": "Custom"
},
powerEquipmentType: {
"adjustement": "Adjustement",
"attack": "Attack",
"bodyaffecting": "Bodyaffecting",
"defense": "Defense",
"adjustment": "Adjustment",
"mental": "Mental",
"movement": "Movement",
"size": "Size",
"special": "Special",
"standard": "Standard"
},
powerTypeModifiers : {
"none": "None",
"attack": "Attack",
"automaton": "Automaton",
"bodyaffecting": "Bodyaffecting",
"defense": "Defense",
"sensory": "Sensory"
},
powerSenseAffecting: {
"none": "None",
"senseaffecting": "Senseaffecting",
"sensory": "Sensory",
"special": "Special"
}
}

0
packs/complications.db Normal file
View File

0
packs/perks.db Normal file
View File

0
packs/powers.db Normal file
View File

View File

@ -259,6 +259,10 @@ table { border: 1px solid #7a7971;}
object-position: 50% 0;
}
form .form-group label {
color: rgba(66, 66, 64, 0.95);
}
.button-img {
vertical-align: baseline;
width: 8%;

View File

@ -21,15 +21,6 @@
],
"license": "LICENSE.txt",
"packs": [
{
"type": "Item",
"label": "Armors",
"name": "armor",
"path": "packs/armor.db",
"system": "fvtt-hero-system-6",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Equipments",
@ -39,15 +30,6 @@
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Shields",
"name": "shields",
"path": "packs/shields.db",
"system": "fvtt-hero-system-6",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Weapons",
@ -59,18 +41,36 @@
},
{
"type": "Item",
"label": "Currency",
"name": "currency",
"path": "packs/currency.db",
"label": "Skills",
"name": "skills",
"path": "packs/skills.db",
"system": "fvtt-hero-system-6",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Skills",
"name": "skills",
"path": "packs/skills.db",
"label": "Powers",
"name": "powers",
"path": "packs/powers.db",
"system": "fvtt-hero-system-6",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Complications",
"name": "complications",
"path": "packs/complications.db",
"system": "fvtt-hero-system-6",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Perks",
"name": "perks",
"path": "packs/perks.db",
"system": "fvtt-hero-system-6",
"private": false,
"flags": {}
@ -82,7 +82,7 @@
"styles": [
"styles/simple.css"
],
"version": "10.0.2",
"version": "10.0.3",
"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.2.zip",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.3.zip",
"url": "https://www.uberwald.me/gitea/uberwald/",
"background": "images/ui/hro6_welcome_page.webp",
"id": "fvtt-hero-system-6"

View File

@ -192,11 +192,7 @@
"advantage",
"limitation",
"complication",
"equipment",
"attack",
"defense",
"maneuver",
"movement"
"equipment"
],
"templates": {
"common": {
@ -212,13 +208,17 @@
},
"power": {
"displayname": "",
"modifiers": [],
"petype": "",
"typemodifier": "",
"senseaffecting": false,
"modifiers": [],
"levels": 0,
"quantity": 0,
"range": "",
"damage": "",
"endurance": 0,
"hasroll": false,
"roll": 0,
"items": {}
}
},

View File

@ -13,11 +13,11 @@
{{> 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>
<div class="tab details" data-group="primary" data-tab="details">
</div>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li>
</div>
</section>
</form>

View File

@ -13,17 +13,20 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.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>
<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>
<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}}
</div>
</section>
</form>

View File

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

View File

@ -13,13 +13,13 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<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">
<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>
</section>
</form>

View File

@ -13,11 +13,21 @@
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
{{> 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>
{{> 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>
{{#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}}
</div>
</section>
</form>

View File

@ -42,6 +42,10 @@
{{/if}}
{{/if}}
<li class="flexrow"><label class="item-field-label-long">Levels</label>
<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>

View File

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

View File

@ -1,4 +1,8 @@
<div class="tab description" data-group="primary" data-tab="description">
<div class="flexrow">
<label class="item-field-label-medium">Display name</label>
<input type="text" class="" name="system.displayname" value="{{system.displayname}}" data-dtype="string"/>
</div>
<div>
<label class="generic-label">Description</label>
<div class="medium-editor item-text-long-line">

View File

@ -8,6 +8,20 @@
</select>
</li>
<li class="flexrow"><label class="item-field-label-long">Type Modifier</label>
<select class="item-field-label-long" type="text" name="system.typemodifier" value="{{system.typemodifier}}" data-dtype="String">
{{#select system.typemodifier}}
{{#each config.powerTypeModifiers as |name key|}}
<option value="{{key}}">{{name}}</option>
{{/each}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="item-field-label-long">Is sense affecting ?</label>
<label class="item-field-label-medium"><input type="checkbox" name="system.senseaffecting" {{checked system.senseaffecting}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-long">Range</label>
<input type="text" class="item-field-label-medium" name="system.range" value="{{system.range}}" data-dtype="String"/>
</li>