WIP Hero 6

This commit is contained in:
LeRatierBretonnien 2023-03-21 14:01:27 +01:00
parent 4d3f067bf9
commit d399b29d84
13 changed files with 256 additions and 134 deletions

View File

@ -12,6 +12,7 @@
"TypeLimitation": "Limitation", "TypeLimitation": "Limitation",
"TypeComplication": "Complication", "TypeComplication": "Complication",
"TypeEquipment": "Equipment", "TypeEquipment": "Equipment",
"TypeCurrency": "Currency" "TypeCurrency": "Currency",
"TypeManeuver": "Maneuver"
} }
} }

View File

@ -36,6 +36,7 @@ export class Hero6ActorSheet extends ActorSheet {
cssClass: this.isEditable ? "editable" : "locked", cssClass: this.isEditable ? "editable" : "locked",
system: objectData, system: objectData,
characteristics: this.actor.prepareCharac(), characteristics: this.actor.prepareCharac(),
defenses: duplicate(this.actor.system.defenses),
limited: this.object.limited, limited: this.object.limited,
skills: this.actor.getSkills( ), skills: this.actor.getSkills( ),
perks: this.actor.getPerks( ), perks: this.actor.getPerks( ),
@ -43,13 +44,13 @@ export class Hero6ActorSheet extends ActorSheet {
talents: this.actor.getTalents( ), talents: this.actor.getTalents( ),
complications: this.actor.getComplications( ), complications: this.actor.getComplications( ),
martialarts: this.actor.getMartialArts( ), martialarts: this.actor.getMartialArts( ),
maneuvers: this.actor.getManeuvers( ),
weapons: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getWeapons()) ), weapons: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getWeapons()) ),
armors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getArmors())), armors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getArmors())),
shields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getShields())), shields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getShields())),
equipments: this.actor.checkAndPrepareEquipments(duplicate(this.actor.getEquipmentsOnly()) ), equipments: this.actor.checkAndPrepareEquipments(duplicate(this.actor.getEquipmentsMoneys()) ),
subActors: duplicate(this.actor.getSubActors()), subActors: duplicate(this.actor.getSubActors()),
race: duplicate(this.actor.getRace()), race: duplicate(this.actor.getRace()),
moneys: duplicate(this.actor.getMoneys()),
encCapacity: this.actor.getEncumbranceCapacity(), encCapacity: this.actor.getEncumbranceCapacity(),
description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}), description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}),
motivation: await TextEditor.enrichHTML(this.object.system.biodata.motivation, {async: true}), motivation: await TextEditor.enrichHTML(this.object.system.biodata.motivation, {async: true}),

View File

@ -274,8 +274,10 @@ export class Hero6Actor extends Actor {
} }
return 0; return 0;
} }
/* ------------------------------------------- */ /* ------------------------------------------- */
getManeuvers() {
return this.items.filter(item => item.type == "maneuver" );
}
getEquipments() { getEquipments() {
return this.items.filter(item => item.type == "equipment" && item.system.subtype == "equipment"); return this.items.filter(item => item.type == "equipment" && item.system.subtype == "equipment");
} }
@ -288,7 +290,9 @@ export class Hero6Actor extends Actor {
getShields() { getShields() {
return this.items.filter(item => item.type == "equipment" && item.system.subtype == "shield"); return this.items.filter(item => item.type == "equipment" && item.system.subtype == "shield");
} }
/* ------------------------------------------- */ getEquipmentsMoneys() {
return duplicate(this.items.filter(item => item.type == "equipment" && (item.system.subtype == "equipment" || item.system.subtype == "money")) || [])
}
getEquipmentsOnly() { getEquipmentsOnly() {
return duplicate(this.items.filter(item => item.type == "equipment" && item.system.subtype == "equipment") || []) return duplicate(this.items.filter(item => item.type == "equipment" && item.system.subtype == "equipment") || [])
} }
@ -529,7 +533,7 @@ export class Hero6Actor extends Actor {
let rollData = this.getCommonRollData() let rollData = this.getCommonRollData()
rollData.mode = "item" rollData.mode = "item"
rollData.item = duplicate(item) rollData.item = duplicate(item)
if ( item.type == "skill") { if (item.type == "skill") {
this.prepareSkill(rollData.item) this.prepareSkill(rollData.item)
} }
this.startRoll(rollData) this.startRoll(rollData)

View File

@ -4,7 +4,8 @@ export const Hero6_CONFIG = {
equipment: "Equipment", equipment: "Equipment",
weapon: "Weapon", weapon: "Weapon",
armor: "Armor", armor: "Armor",
shield: "Shield" shield: "Shield",
money: "Money"
}, },
rollCharac : { rollCharac : {
"str": "Strength", "str": "Strength",

View File

@ -91,12 +91,6 @@ Hooks.once("ready", function () {
}); });
} }
// CSS patch for v9
if (game.version) {
let sidebar = document.getElementById("sidebar");
sidebar.style.width = "min-content";
}
welcomeMessage(); welcomeMessage();
Hero6Utility.ready() Hero6Utility.ready()
Hero6Commands.init() Hero6Commands.init()

View File

@ -298,7 +298,7 @@ export class Hero6Utility {
let actor = game.actors.get(rollData.actorId) let actor = game.actors.get(rollData.actorId)
// ability/save/size => 0 // ability/save/size => 0
let diceFormula = "3d6+" + rollData.bonusMalus let diceFormula = "3d6"
let target = 10 let target = 10
if (rollData.charac) { if (rollData.charac) {
target = rollData.charac.roll target = rollData.charac.roll
@ -306,7 +306,8 @@ export class Hero6Utility {
if (rollData.item) { if (rollData.item) {
target = rollData.item.roll || rollData.item.system.roll target = rollData.item.roll || rollData.item.system.roll
} }
target += rollData.bonusMalus
// Performs roll // Performs roll
console.log("Roll formula", diceFormula) console.log("Roll formula", diceFormula)
let myRoll = rollData.roll let myRoll = rollData.roll

View File

@ -954,7 +954,7 @@ ul, li {
#sidebar #sidebar-tabs i{ #sidebar #sidebar-tabs i{
width: 25px; width: 25px;
height: 25px; height: 25px;
display: inline-block; /*display: inline-block;*/
background-position:center; background-position:center;
background-size:cover; background-size:cover;
text-shadow: 1px 1px 0 rgba(0,0,0,0.75); text-shadow: 1px 1px 0 rgba(0,0,0,0.75);
@ -1420,6 +1420,11 @@ Focus FOC: #ff0084
max-width: 8rem; max-width: 8rem;
min-width: 8rem; min-width: 8rem;
} }
.item-field-label-long-img {
flex-grow:1;
max-width: 10rem;
min-width: 10rem;
}
.item-field-label-long2 { .item-field-label-long2 {
flex-grow:1; flex-grow:1;
max-width: 16rem; max-width: 16rem;

View File

@ -91,7 +91,7 @@
"styles": [ "styles": [
"styles/simple.css" "styles/simple.css"
], ],
"version": "10.0.14", "version": "10.0.20",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",
"verified": "10", "verified": "10",
@ -99,7 +99,7 @@
}, },
"title": "Hero System v6 for FoundrtVTT (Official)", "title": "Hero System v6 for FoundrtVTT (Official)",
"manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/raw/branch/main/system.json", "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.14.zip", "download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.17.zip",
"url": "https://www.uberwald.me/gitea/uberwald/", "url": "https://www.uberwald.me/gitea/uberwald/",
"background": "images/ui/hro6_welcome_page.webp", "background": "images/ui/hro6_welcome_page.webp",
"id": "fvtt-hero-system-6" "id": "fvtt-hero-system-6"

View File

@ -36,6 +36,7 @@
"value": 10, "value": 10,
"base": 10, "base": 10,
"category": "main", "category": "main",
"hasroll": true,
"realcost": 0, "realcost": 0,
"activecost": 0 "activecost": 0
}, },
@ -43,34 +44,40 @@
"label": "Dexterity", "label": "Dexterity",
"value": 10, "value": 10,
"base": 10, "base": 10,
"hasroll": true,
"category": "main" "category": "main"
}, },
"con": { "con": {
"label": "Constitution", "label": "Constitution",
"hasroll": true,
"category": "main", "category": "main",
"value": 10, "value": 10,
"base": 10 "base": 10
}, },
"int": { "int": {
"label": "Intelligence", "label": "Intelligence",
"hasroll": true,
"category": "main", "category": "main",
"value": 10, "value": 10,
"base": 10 "base": 10
}, },
"ego": { "ego": {
"label": "Ego", "label": "Ego",
"hasroll": true,
"category": "main", "category": "main",
"value": 10, "value": 10,
"base": 10 "base": 10
}, },
"pre": { "pre": {
"label": "Presence", "label": "Presence",
"hasroll": true,
"category": "main", "category": "main",
"value": 10, "value": 10,
"base": 10 "base": 10
}, },
"ocv": { "ocv": {
"label": "OCV", "label": "OCV",
"hasroll": false,
"base": 3, "base": 3,
"autoMod": "0", "autoMod": "0",
"userMod": "0", "userMod": "0",
@ -79,6 +86,7 @@
}, },
"dcv": { "dcv": {
"label": "DCV", "label": "DCV",
"hasroll": false,
"base": 3, "base": 3,
"autoMod": "0", "autoMod": "0",
"userMod": "0", "userMod": "0",
@ -87,6 +95,7 @@
}, },
"omcv": { "omcv": {
"label": "OMCV", "label": "OMCV",
"hasroll": false,
"base": 3, "base": 3,
"autoMod": "0", "autoMod": "0",
"userMod": "0", "userMod": "0",
@ -95,6 +104,7 @@
}, },
"dmcv": { "dmcv": {
"label": "DMCV", "label": "DMCV",
"hasroll": false,
"base": 3, "base": 3,
"autoMod": "0", "autoMod": "0",
"userMod": "0", "userMod": "0",
@ -103,11 +113,14 @@
}, },
"spd": { "spd": {
"label": "Speed", "label": "Speed",
"hasroll": false,
"value": 2, "value": 2,
"base": 2 "base": 2
}, },
"pd": { "pd": {
"label": "PD", "label": "PD",
"hasroll": false,
"isdefense": true,
"value": 2, "value": 2,
"base": 2, "base": 2,
"pd_nonresistant_total": 0, "pd_nonresistant_total": 0,
@ -117,6 +130,8 @@
}, },
"ed": { "ed": {
"label": "ED", "label": "ED",
"hasroll": false,
"isdefense": true,
"value": 2, "value": 2,
"base": 2, "base": 2,
"ed_nonresistant_total": 0, "ed_nonresistant_total": 0,
@ -126,21 +141,39 @@
}, },
"rec": { "rec": {
"label": "REC", "label": "REC",
"hasroll": false,
"value": 4, "value": 4,
"base": 4 "base": 4
}, },
"end": { "end": {
"label": "END", "label": "END",
"hasroll": false,
"isvital": true,
"damage": 0,
"value": 20, "value": 20,
"max": 20 "max": 20
}, },
"stun": { "stun": {
"label": "STUN", "label": "STUN",
"hasroll": false,
"isvital": true,
"damage": 0,
"value": 20,
"max": 20
},
"other": {
"label": "OTHER",
"hasroll": false,
"isvital": true,
"damage": 0,
"value": 20, "value": 20,
"max": 20 "max": 20
}, },
"body": { "body": {
"label": "Body", "label": "BODY",
"hasroll": false,
"isvital": true,
"damage": 0,
"value": 10, "value": 10,
"max": 10, "max": 10,
"loc": { "loc": {
@ -164,27 +197,59 @@
}, },
"running": { "running": {
"label": "Running", "label": "Running",
"hasroll": false,
"value": 12, "value": 12,
"base": 12 "base": 12
}, },
"swimming": { "swimming": {
"label": "Swimming", "label": "Swimming",
"hasroll": false,
"value": 4, "value": 4,
"base": 4 "base": 4
}, },
"leaping": { "leaping": {
"label": "Leaping", "label": "Leaping",
"hasroll": false,
"value": 4, "value": 4,
"base": 4, "base": 4,
"leaping_horizontal_base": 0, "leaping_horizontal_base": 0,
"leaping_horizontal_total": 0, "leaping_horizontal_total": 0,
"leaping_vertical_base": 0, "leaping_vertical_base": 0,
"leaping_vertical_total": 0 "leaping_vertical_total": 0
}, }
"flying": { }
"label": "Flying", },
"defenses": {
"defenses": {
"mental": {
"label": "Mental",
"value": 0, "value": 0,
"base": 0 "resistant": ""
},
"power": {
"label": "Power",
"value": 0,
"resistant": ""
},
"flash": {
"label": "Flash",
"value": 0,
"resistant": ""
},
"def1": {
"label": "N/A",
"value": 0,
"resistant": ""
},
"def2": {
"label": "N/A",
"value": 0,
"resistant": ""
},
"def3": {
"label": "N/A",
"value": 0,
"resistant": ""
} }
} }
}, },
@ -193,7 +258,8 @@
"character": { "character": {
"templates": [ "templates": [
"biodata", "biodata",
"characteristics" "characteristics",
"defenses"
], ],
"subactors": [] "subactors": []
} }
@ -205,11 +271,11 @@
"talent", "talent",
"power", "power",
"advantage", "advantage",
"maneuver",
"martialart", "martialart",
"limitation", "limitation",
"complication", "complication",
"equipment", "equipment"
"currency"
], ],
"templates": { "templates": {
"common": { "common": {
@ -239,11 +305,14 @@
"items": {} "items": {}
} }
}, },
"currency": { "maneuver": {
"quantity": 0,
"templates": [ "templates": [
"common" "common"
] ],
"pha": "",
"ocv": 0,
"dcv" : 0,
"active": false
}, },
"advantage": { "advantage": {
"templates": [ "templates": [
@ -314,15 +383,6 @@
"impenetrable": 0, "impenetrable": 0,
"value": 0 "value": 0
}, },
"maneuver": {
"templates": [
"common"
],
"phase": 0,
"ocv": "+0",
"dcv": "+0",
"active": false
},
"movement": { "movement": {
"templates": [ "templates": [
"common" "common"

View File

@ -89,32 +89,39 @@
{{!-- Combat Tab --}} {{!-- Combat Tab --}}
<div class="tab combat" data-group="primary" data-tab="combat"> <div class="tab combat" data-group="primary" data-tab="combat">
<div class="flexcol">
<div class="grid grid2col">
<div> <div>
<ul class="stat-list alternate-list"> <ul class="stat-list alternate-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header-long"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">Weapons</label></h3> <label class="">Maneuvers</label>
</span> </span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="short-label">Ability</label> <label class="short-label">PHA</label>
</span>
<span class="item-field-label-short">
<label class="short-label">OCV</label>
</span>
<span class="item-field-label-short">
<label class="short-label">DCV</label>
</span> </span>
<span class="item-field-label-medium"> <span class="item-field-label-medium">
<label class="short-label">Range</label> <label class="short-label">Effects</label>
</span> </span>
</li> </li>
{{#each equippedWeapons as |weapon key|}} {{#each maneuvers as |maneuver key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}"> <li class="item flexrow list-item list-item-shadow" data-item-id="{{maneuver._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{weapon.img}}" /></a> src="{{maneuver.img}}" /></a>
<span class="item-name-label-long"><a class ="roll-weapon">{{weapon.name}}</a></span> <span class="item-field-label-long">{{maneuver.name}}</span>
<span class="item-field-label-short">{{weapon.system.ability}}</span> <span class="item-field-label-short">{{maneuver.system.pha}}</span>
<span class="item-field-label-short">{{maneuver.system.ocv}}</span>
<span class="item-field-label-short">{{maneuver.system.dcv}}</span>
<span class="item-field-label-medium">{{perk.system.range}}</span> <span class="item-field-label-medium">{{maneuver.system.effects}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed"> <div class="item-controls item-controls-fixed">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div> </div>
@ -124,40 +131,74 @@
</div> </div>
<div> <div>
<ul class="stat-list alternate-list"> <ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg"> <li class="flexrow item">
<span class="item-name-label-header-long"> <label class="item-field-label-medium">SPD</label><label>{{system.characteristics.spd.value}}</label>
<h3><label class="items-title-text">Feats</label></h3>
</span>
<span class="item-field-label-medium">
<label class="short-label">Feature Die?</label>
</span>
<span class="item-field-label-medium">
<label class="short-label">SL?</label>
</span>
<span class="item-field-label-medium">
<label class="short-label">SL</label>
</span>
</li> </li>
{{#each feats as |feat key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{feat._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{feat.img}}" /></a>
<span class="item-name-label-long">{{feat.name}}</span>
<span class="item-field-label-medium">{{upperFirst feat.system.isfeatdie}}</span>
<span class="item-field-label-medium">{{upperFirst feat.system.issl}}</span>
<span class="item-field-label-medium">{{feat.system.sl}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul> </ul>
</div>
<div class="grid grid2col">
<div>
<ul class="stat-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-field-label-long">
<label class="">Vitals</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Val.</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Damage</label>
</span>
</li>
{{#each characteristics as |char key|}}
{{#if char.isvital}}
<li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
<span class="item-field-label-long">{{char.label}}</span>
<span class="item-field-label-short">{{char.value}}</span>
<input type="text" class="item-field-label-short" name="system.characteristics.{{key}}.damage" value="{{char.damage}}" data-dtype="Number" />
</li>
{{/if}}
{{/each}}
</ul>
</div>
<div>
<ul class="stat-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-field-label-long-img">
<label class="">Defenses</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Val.</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Resistant</label>
</span>
</li>
{{#each characteristics as |char key|}}
{{#if char.isdefense}}
<li class="item flexrow list-item list-item-shadow" data-charac-key="{{key}}">
<span class="item-field-label-long">{{char.label}}</span>
<span class="item-field-label-short">{{char.value}}</span>
<input type="text" class="item-field-label-short" name="system.characteristics.{{key}}.resistant" value="{{char.resistant}}" data-dtype="Number" />
</li>
{{/if}}
{{/each}}
{{#each defenses as |def key|}}
<li class="item flexrow list-item list-item-shadow" data-defense-key="{{key}}">
<span class="item-field-label-long">{{def.label}}</span>
<span class="item-field-label-short">{{def.value}}</span>
<input type="text" class="item-field-label-short" name="system.defenses.{{key}}.resistant" value="{{def.resistant}}" data-dtype="Number" />
</li>
{{/each}}
</ul>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -167,11 +208,11 @@
<div class="charac-item"> <div class="charac-item">
<ul> <ul>
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-field-label-short"> <span class="item-field-label-medium">
<h3><label class="item-field-label-short">Value</label></h3> <label class="">Value</label>
</span> </span>
<span class="item-field-label-medium"> <span class="item-field-label-medium">
<label class="item-field-label-long">characteristic</label> <label class="item-field-label-medium">CHAR</label>
</span> </span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="short-label">Base</label> <label class="short-label">Base</label>
@ -198,8 +239,8 @@
<ul class="stat-list alternate-list item-list"> <ul class="stat-list alternate-list item-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">Skills</label></h3> <label class="">Skills</label>
</span> </span>
<span class="item-field-label-long"> <span class="item-field-label-long">
<label class="short-label">CHAR</label> <label class="short-label">CHAR</label>
@ -213,8 +254,8 @@
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{skill._id}}"> <li class="item stat flexrow list-item list-item-shadow" data-item-id="{{skill._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" <a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{skill.img}}" /></a> src="{{skill.img}}" /></a>
<span class="item-name-label">{{skill.name}}</span> <span class="item-field-label-long">{{skill.name}}</span>
<span class="item-field-label-short">{{upper skill.charac}}</span> <span class="item-field-label-medium">{{upper skill.charac}}</span>
<span class="item-field-label-short"><a class="roll-item" data-type="skill"><i class="fas fa-dice"></i>{{skill.roll}}-</a></span> <span class="item-field-label-short"><a class="roll-item" data-type="skill"><i class="fas fa-dice"></i>{{skill.roll}}-</a></span>
<div class="item-filler">&nbsp;</div> <div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed"> <div class="item-controls item-controls-fixed">
@ -230,8 +271,8 @@
<ul class="stat-list alternate-list item-list"> <ul class="stat-list alternate-list item-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">Perks</label></h3> <label class="">Perks</label>
</span> </span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="short-label">Roll</label> <label class="short-label">Roll</label>
@ -261,8 +302,8 @@
<ul class="stat-list alternate-list item-list"> <ul class="stat-list alternate-list item-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">Talents</label></h3> <label class="items-title-text">Talents</label>
</span> </span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="short-label">Roll</label> <label class="short-label">Roll</label>
@ -292,8 +333,8 @@
<ul class="stat-list alternate-list item-list"> <ul class="stat-list alternate-list item-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">Martial Arts</label></h3> <label class="">Martial Arts</label>
</span> </span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="short-label">Roll</label> <label class="short-label">Roll</label>
@ -323,7 +364,9 @@
<ul class="stat-list alternate-list item-list"> <ul class="stat-list alternate-list item-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-img sheet-competence-img">&nbsp;</span> <span class="item-name-img">
<label class="">&nbsp;</label>
</span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="item-field-label-short">Cost</label> <label class="item-field-label-short">Cost</label>
</span> </span>
@ -345,7 +388,7 @@
<span class="item-field-label-long4">{{{power.enrichDescription}}} <span class="item-field-label-long4">{{{power.enrichDescription}}}
</span> </span>
{{#if power.system.hasroll}} {{#if power.system.hasroll}}
<span class="item-field-label-short"><a class="roll-item" data-type="perk"><i class="fas fa-dice"></i>{{power.system.roll}}-</a></span> <span class="item-field-label-short"><a class="roll-item" data-type="power"><i class="fas fa-dice"></i>{{power.system.roll}}-</a></span>
{{else}} {{else}}
<span class="item-field-label-short">&nbsp;</span> <span class="item-field-label-short">&nbsp;</span>
{{/if}} {{/if}}
@ -364,8 +407,8 @@
<ul class="stat-list alternate-list item-list"> <ul class="stat-list alternate-list item-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">Complications</label></h3> <label class="">Complications</label>
</span> </span>
<span class="item-field-label-short"> <span class="item-field-label-short">
<label class="short-label">Roll</label> <label class="short-label">Roll</label>
@ -399,38 +442,6 @@
<span class="small-label">Capacity : {{encCapacity}}</span> <span class="small-label">Capacity : {{encCapacity}}</span>
</div> </div>
<ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">Money</label></h3>
</span>
<span class="item-field-label-long">
<label class="short-label">Qty</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-type="currency" title="Create Item"><i class="fas fa-plus"></i></a>
</div>
</li>
{{#each moneys as |money key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{money._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{money.img}}" /></a>
<span class="item-name-label">{{money.name}}</span>
<span class="item-field-label-long"><label>
{{money.system.quantity}}
(<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
{{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Weapons" items=weapons}} {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Weapons" items=weapons}}
{{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Armor" items=armors}} {{> systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment-section.hbs title="Armor" items=armors}}

View File

@ -0,0 +1,40 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="item-field-label-medium">PHA</label>
<input type="text" class="item-field-label-medium" name="system.pha" value="{{system.pha}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="item-field-label-medium">OCV</label>
<input type="text" class="item-field-label-medium" name="system.ocv" value="{{system.ocv}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="item-field-label-medium">DCV</label>
<input type="text" class="item-field-label-medium" name="system.dcv" value="{{system.dcv}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="item-field-label-medium">Effects</label>
<input type="text" class="item-field-label-long" name="system.effects" value="{{system.effects}}" data-dtype="String"/>
</li>
{{> systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs}}
</ul>
</div>
</section>
</form>

View File

@ -1,7 +1,7 @@
<ul class="item-list alternate-list"> <ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg"> <li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header"> <span class="item-field-label-long-img">
<h3><label class="items-title-text">{{title}}</label></h3> <label class="">{{title}}</label>
</span> </span>
<span class="item-field-label-medium"> <span class="item-field-label-medium">
<label class="item-field-label-medium">Value</label> <label class="item-field-label-medium">Value</label>

View File

@ -1,7 +1,7 @@
<li class="item stat flexrow list-item list-item-shadow" data-attr-key="{{key}}"> <li class="item stat flexrow list-item list-item-shadow" data-attr-key="{{key}}">
<input type="text" class="item-field-label-short" name="system.characteristics.{{key}}.value" value="{{charac.value}}" data-dtype="Number"/> <input type="text" class="item-field-label-medium" name="system.characteristics.{{key}}.value" value="{{charac.value}}" data-dtype="Number"/>
<span class="item-field-label-medium" name="{{key}}"> <span class="item-field-label-medium" name="{{key}}">
<h4 class="item-field-label-medium margin-item-list">{{charac.label}}</a></h4> <h4 class="item-field-label-medium margin-item-list">{{charac.label}}</a></h4>
@ -9,7 +9,11 @@
<h4 class="item-field-label-short margin-item-list">{{charac.base}}</h4> <h4 class="item-field-label-short margin-item-list">{{charac.base}}</h4>
{{#if charac.hasroll}}
<h4 class="item-field-label-short margin-item-list"><a class="roll-charac" data-charac-key="{{key}}"><i class="fas fa-dice"></i>{{charac.roll}}-</a></h4> <h4 class="item-field-label-short margin-item-list"><a class="roll-charac" data-charac-key="{{key}}"><i class="fas fa-dice"></i>{{charac.roll}}-</a></h4>
{{else}}
<h4 class="item-field-label-short margin-item-list">&nbsp;</h4>
{{/if}}
<input type="text" class="item-field-label-long2" name="system.characteristics.{{key}}.notes" value="{{charac.notes}}" data-dtype="String"/> <input type="text" class="item-field-label-long2" name="system.characteristics.{{key}}.notes" value="{{charac.notes}}" data-dtype="String"/>