Enhance sheets
This commit is contained in:
parent
dc27fa8ff2
commit
0fe4202098
@ -38,6 +38,10 @@ export class Hero6ActorSheet extends ActorSheet {
|
|||||||
characteristics: this.actor.prepareCharac(),
|
characteristics: this.actor.prepareCharac(),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
skills: this.actor.getSkills( ),
|
skills: this.actor.getSkills( ),
|
||||||
|
perks: this.actor.getPerks( ),
|
||||||
|
powers: this.actor.getPowers( ),
|
||||||
|
talents: this.actor.getTalents( ),
|
||||||
|
complications: this.actor.getComplications( ),
|
||||||
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())),
|
||||||
@ -50,7 +54,16 @@ export class Hero6ActorSheet extends ActorSheet {
|
|||||||
moneys: duplicate(this.actor.getMoneys()),
|
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}),
|
||||||
notes: await TextEditor.enrichHTML(this.object.system.biodata.notes, {async: true}),
|
motivation: await TextEditor.enrichHTML(this.object.system.biodata.motivation, {async: true}),
|
||||||
|
quote: await TextEditor.enrichHTML(this.object.system.biodata.quote, {async: true}),
|
||||||
|
tactics: await TextEditor.enrichHTML(this.object.system.biodata.tactics, {async: true}),
|
||||||
|
campaignuse: await TextEditor.enrichHTML(this.object.system.biodata.campaignuse, {async: true}),
|
||||||
|
appearance: await TextEditor.enrichHTML(this.object.system.biodata.appearance, {async: true}),
|
||||||
|
notes1: await TextEditor.enrichHTML(this.object.system.biodata.notes1, {async: true}),
|
||||||
|
notes2: await TextEditor.enrichHTML(this.object.system.biodata.notes2, {async: true}),
|
||||||
|
notes3: await TextEditor.enrichHTML(this.object.system.biodata.notes3, {async: true}),
|
||||||
|
notes4: await TextEditor.enrichHTML(this.object.system.biodata.notes4, {async: true}),
|
||||||
|
notes5: await TextEditor.enrichHTML(this.object.system.biodata.notes5, {async: true}),
|
||||||
containersTree: this.actor.containersTree,
|
containersTree: this.actor.containersTree,
|
||||||
encCurrent: this.actor.encCurrent,
|
encCurrent: this.actor.encCurrent,
|
||||||
options: this.options,
|
options: this.options,
|
||||||
@ -139,6 +152,11 @@ export class Hero6ActorSheet extends ActorSheet {
|
|||||||
const characKey = $(event.currentTarget).data("charac-key");
|
const characKey = $(event.currentTarget).data("charac-key");
|
||||||
this.actor.rollCharac(characKey);
|
this.actor.rollCharac(characKey);
|
||||||
});
|
});
|
||||||
|
html.find('.roll-item').click((event) => {
|
||||||
|
const li = $(event.currentTarget).parents(".item");
|
||||||
|
let itemId = li.data("item-id")
|
||||||
|
this.actor.rollItem(itemId);
|
||||||
|
});
|
||||||
|
|
||||||
html.find('.roll-weapon').click((event) => {
|
html.find('.roll-weapon').click((event) => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
|
@ -170,6 +170,26 @@ export class Hero6Actor extends Actor {
|
|||||||
Hero6Utility.sortArrayObjectsByName(comp)
|
Hero6Utility.sortArrayObjectsByName(comp)
|
||||||
return comp
|
return comp
|
||||||
}
|
}
|
||||||
|
getPerks() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'perk') || [])
|
||||||
|
Hero6Utility.sortArrayObjectsByName(comp)
|
||||||
|
return comp
|
||||||
|
}
|
||||||
|
getPowers() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'power') || [])
|
||||||
|
Hero6Utility.sortArrayObjectsByName(comp)
|
||||||
|
return comp
|
||||||
|
}
|
||||||
|
getTalents() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'talent') || [])
|
||||||
|
Hero6Utility.sortArrayObjectsByName(comp)
|
||||||
|
return comp
|
||||||
|
}
|
||||||
|
getComplications() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'complication') || [])
|
||||||
|
Hero6Utility.sortArrayObjectsByName(comp)
|
||||||
|
return comp
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async equipItem(itemId) {
|
async equipItem(itemId) {
|
||||||
@ -341,8 +361,8 @@ export class Hero6Actor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
prepareCharacValues( charac) {
|
prepareCharacValues( charac) {
|
||||||
charac.total = charac.base+charac.value
|
charac.total = charac.value
|
||||||
charac.roll = 9 + Math.floor((charac.base+charac.value)/5)
|
charac.roll = 9 + Math.floor((charac.value)/5)
|
||||||
}
|
}
|
||||||
prepareCharac() {
|
prepareCharac() {
|
||||||
let characs = duplicate(this.system.characteristics)
|
let characs = duplicate(this.system.characteristics)
|
||||||
@ -444,6 +464,14 @@ export class Hero6Actor extends Actor {
|
|||||||
}
|
}
|
||||||
this.startRoll(rollData)
|
this.startRoll(rollData)
|
||||||
}
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
rollItem(itemId) {
|
||||||
|
let item = this.items.get( itemId)
|
||||||
|
let rollData = this.getCommonRollData()
|
||||||
|
rollData.mode = "item"
|
||||||
|
rollData.item = duplicate(item)
|
||||||
|
this.startRoll(rollData)
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollSkill(skillId) {
|
rollSkill(skillId) {
|
||||||
|
@ -154,6 +154,7 @@ export class Hero6Utility {
|
|||||||
'systems/fvtt-hero-system-6/templates/partials/editor-notes-gm.hbs',
|
'systems/fvtt-hero-system-6/templates/partials/editor-notes-gm.hbs',
|
||||||
'systems/fvtt-hero-system-6/templates/partials/partial-roll-select.hbs',
|
'systems/fvtt-hero-system-6/templates/partials/partial-roll-select.hbs',
|
||||||
'systems/fvtt-hero-system-6/templates/partials/partial-actor-characteristic-block.hbs',
|
'systems/fvtt-hero-system-6/templates/partials/partial-actor-characteristic-block.hbs',
|
||||||
|
'systems/fvtt-hero-system-6/templates/partials/partial-actor-full-charac.hbs',
|
||||||
'systems/fvtt-hero-system-6/templates/partials/partial-actor-status.hbs',
|
'systems/fvtt-hero-system-6/templates/partials/partial-actor-status.hbs',
|
||||||
'systems/fvtt-hero-system-6/templates/partials/partial-options-abilities.hbs',
|
'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-nav.hbs',
|
||||||
@ -301,6 +302,9 @@ export class Hero6Utility {
|
|||||||
if (rollData.charac) {
|
if (rollData.charac) {
|
||||||
target = rollData.charac.roll
|
target = rollData.charac.roll
|
||||||
}
|
}
|
||||||
|
if (rollData.item) {
|
||||||
|
target = rollData.item.system.roll
|
||||||
|
}
|
||||||
|
|
||||||
// Performs roll
|
// Performs roll
|
||||||
console.log("Roll formula", diceFormula)
|
console.log("Roll formula", diceFormula)
|
||||||
@ -323,6 +327,9 @@ export class Hero6Utility {
|
|||||||
if ( myRoll.terms[0].total == 18) { // Always a failure
|
if ( myRoll.terms[0].total == 18) { // Always a failure
|
||||||
rollData.isSuccess = false
|
rollData.isSuccess = false
|
||||||
}
|
}
|
||||||
|
if (rollData.isSuccess ) {
|
||||||
|
rollData.margin = target - rollData.result
|
||||||
|
}
|
||||||
|
|
||||||
let msg = await this.createChatWithRollMode(rollData.alias, {
|
let msg = await this.createChatWithRollMode(rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-hero-system-6/templates/chat/chat-generic-result.hbs`, rollData)
|
content: await renderTemplate(`systems/fvtt-hero-system-6/templates/chat/chat-generic-result.hbs`, rollData)
|
||||||
|
@ -1420,6 +1420,11 @@ Focus FOC: #ff0084
|
|||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
min-width: 8rem;
|
min-width: 8rem;
|
||||||
}
|
}
|
||||||
|
.item-field-label-long2 {
|
||||||
|
flex-grow:1;
|
||||||
|
max-width: 16rem;
|
||||||
|
min-width: 16rem;
|
||||||
|
}
|
||||||
.item-control-end {
|
.item-control-end {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles/simple.css"
|
"styles/simple.css"
|
||||||
],
|
],
|
||||||
"version": "10.0.9",
|
"version": "10.0.10",
|
||||||
"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.9.zip",
|
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.10.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"
|
||||||
|
@ -8,12 +8,21 @@
|
|||||||
"biodata": {
|
"biodata": {
|
||||||
"species": "",
|
"species": "",
|
||||||
"age": 0,
|
"age": 0,
|
||||||
|
"campaign":"",
|
||||||
|
"alternateids":"",
|
||||||
|
"player": "",
|
||||||
|
"gm": "",
|
||||||
"gender": 0,
|
"gender": 0,
|
||||||
"character": "",
|
"character": "",
|
||||||
"religion": "",
|
"religion": "",
|
||||||
"weight": "",
|
"weight": "",
|
||||||
"height": "",
|
"height": "",
|
||||||
"background": "",
|
"background": "",
|
||||||
|
"motivation": "",
|
||||||
|
"quote" : "",
|
||||||
|
"tactics": "",
|
||||||
|
"campaignuse": "",
|
||||||
|
"appearance": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"notes": "",
|
"notes": "",
|
||||||
"gmnotes": ""
|
"gmnotes": ""
|
||||||
@ -23,7 +32,7 @@
|
|||||||
"characteristics": {
|
"characteristics": {
|
||||||
"str": {
|
"str": {
|
||||||
"label": "Strength",
|
"label": "Strength",
|
||||||
"value": 0,
|
"value": 10,
|
||||||
"base": 10,
|
"base": 10,
|
||||||
"category": "main",
|
"category": "main",
|
||||||
"realcost": 0,
|
"realcost": 0,
|
||||||
@ -31,32 +40,32 @@
|
|||||||
},
|
},
|
||||||
"dex": {
|
"dex": {
|
||||||
"label": "Dexterity",
|
"label": "Dexterity",
|
||||||
"value": 0,
|
"value": 10,
|
||||||
"base": 10,
|
"base": 10,
|
||||||
"category": "main"
|
"category": "main"
|
||||||
},
|
},
|
||||||
"con": {
|
"con": {
|
||||||
"label": "Constitution",
|
"label": "Constitution",
|
||||||
"category": "main",
|
"category": "main",
|
||||||
"value": 0,
|
"value": 10,
|
||||||
"base": 10
|
"base": 10
|
||||||
},
|
},
|
||||||
"int": {
|
"int": {
|
||||||
"label": "Intelligence",
|
"label": "Intelligence",
|
||||||
"category": "main",
|
"category": "main",
|
||||||
"value": 0,
|
"value": 10,
|
||||||
"base": 10
|
"base": 10
|
||||||
},
|
},
|
||||||
"ego": {
|
"ego": {
|
||||||
"label": "Ego",
|
"label": "Ego",
|
||||||
"category": "main",
|
"category": "main",
|
||||||
"value": 0,
|
"value": 10,
|
||||||
"base": 10
|
"base": 10
|
||||||
},
|
},
|
||||||
"pre": {
|
"pre": {
|
||||||
"label": "Presence",
|
"label": "Presence",
|
||||||
"category": "main",
|
"category": "main",
|
||||||
"value": 0,
|
"value": 10,
|
||||||
"base": 10
|
"base": 10
|
||||||
},
|
},
|
||||||
"ocv": {
|
"ocv": {
|
||||||
@ -120,7 +129,7 @@
|
|||||||
"base": 4
|
"base": 4
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"label": "REC",
|
"label": "END",
|
||||||
"value": 20,
|
"value": 20,
|
||||||
"max": 20
|
"max": 20
|
||||||
},
|
},
|
||||||
|
@ -30,21 +30,22 @@
|
|||||||
|
|
||||||
{{!-- Sheet Tab Navigation --}}
|
{{!-- Sheet Tab Navigation --}}
|
||||||
<nav class="sheet-tabs tabs" data-group="primary">
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
<a class="item" data-tab="main">Main</a>
|
|
||||||
<a class="item" data-tab="combat">Combat</a>
|
<a class="item" data-tab="combat">Combat</a>
|
||||||
|
<a class="item" data-tab="biodata">Background</a>
|
||||||
|
<a class="item" data-tab="char">Char</a>
|
||||||
<a class="item" data-tab="skills">Skills</a>
|
<a class="item" data-tab="skills">Skills</a>
|
||||||
<a class="item" data-tab="powers">Powers/Perks</a>
|
<a class="item" data-tab="perks">Perks</a>
|
||||||
|
<a class="item" data-tab="talents">Talents</a>
|
||||||
|
<a class="item" data-tab="martial">Martial Arts</a>
|
||||||
|
<a class="item" data-tab="powers">Powers</a>
|
||||||
|
<a class="item" data-tab="complications">Complications</a>
|
||||||
<a class="item" data-tab="equipment">Equipment</a>
|
<a class="item" data-tab="equipment">Equipment</a>
|
||||||
<a class="item" data-tab="biodata">Biography</a>
|
<a class="item" data-tab="notes">Notes</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
|
|
||||||
{{!-- Main Tab --}}
|
|
||||||
<div class="tab main" data-group="primary" data-tab="main">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{!-- Combat Tab --}}
|
{{!-- Combat Tab --}}
|
||||||
<div class="tab combat" data-group="primary" data-tab="combat">
|
<div class="tab combat" data-group="primary" data-tab="combat">
|
||||||
@ -117,30 +118,42 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
|
||||||
<ul class="stat-list alternate-list">
|
|
||||||
<li class="item flexrow list-item items-title-bg">
|
|
||||||
<span class="item-name-label-header-long">
|
|
||||||
<h3><label class="items-title-text">Conditions</label></h3>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
{{#each conditions as |condition key|}}
|
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{condition._id}}">
|
|
||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
|
||||||
src="{{condition.img}}" /></a>
|
|
||||||
<span class="item-name-label-long">{{condition.name}}</span>
|
|
||||||
<div class="item-filler"> </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>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{!-- Char Tab --}}
|
||||||
|
<div class="tab char" data-group="primary" data-tab="char">
|
||||||
|
|
||||||
|
<div class="charac-item">
|
||||||
|
<ul>
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="items-title-medium">
|
||||||
|
<h3><label class="items-title-medium">CHAR</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Value</label>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Base</label>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Roll</label>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-long">
|
||||||
|
<label class="short-label">Notes</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#each characteristics as |charac key|}}
|
||||||
|
{{> systems/fvtt-hero-system-6/templates/partials/partial-actor-full-charac.hbs charac=charac key=key}}
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
{{!-- Skills Tab --}}
|
{{!-- Skills Tab --}}
|
||||||
<div class="tab skills" data-group="primary" data-tab="skills">
|
<div class="tab skills" data-group="primary" data-tab="skills">
|
||||||
|
|
||||||
@ -150,20 +163,20 @@
|
|||||||
<h3><label class="items-title-text">Skills</label></h3>
|
<h3><label class="items-title-text">Skills</label></h3>
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-short">
|
<span class="item-field-label-short">
|
||||||
<label class="short-label">Charac.</label>
|
<label class="short-label">CHAR</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>
|
||||||
</span>
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
</li>
|
</li>
|
||||||
{{#each skills as |skill key|}}
|
{{#each skills as |skill key|}}
|
||||||
<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"><a class="roll-skill">{{skill.name}}</a></span>
|
<span class="item-name-label">{{skill.name}}</span>
|
||||||
<span class="item-field-label-short">{{upper skill.system.characteristic}}</span>
|
<span class="item-field-label-short">{{upper skill.system.characteristic}}</span>
|
||||||
<span class="item-field-label-short">{{skill.system.base}}</span>
|
<span class="item-field-label-short"><a class="roll-item" data-type="skill"><i class="fas fa-dice"></i>{{skill.system.base}}-</a></span>
|
||||||
<span class="item-field-label-long"> - </span>
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </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>
|
||||||
@ -173,7 +186,100 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- Skills Tab --}}
|
{{!-- Perks Tab --}}
|
||||||
|
<div class="tab perks" data-group="primary" data-tab="perks">
|
||||||
|
|
||||||
|
<ul class="stat-list alternate-list item-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Perks</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Roll</label>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{#each perks as |perk key|}}
|
||||||
|
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{perk._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{perk.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{perk.name}}</span>
|
||||||
|
{{#if perk.system.hasroll}}
|
||||||
|
<span class="item-field-label-short"><a class="roll-item" data-type="perk"><i class="fas fa-dice"></i>{{perk.system.roll}}-</a></span>
|
||||||
|
{{else}}
|
||||||
|
<span class="item-field-label-short"> </span>
|
||||||
|
{{/if}}
|
||||||
|
<div class="item-filler"> </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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- Talents Tab --}}
|
||||||
|
<div class="tab talents" data-group="primary" data-tab="talents">
|
||||||
|
|
||||||
|
<ul class="stat-list alternate-list item-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Talents</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Roll</label>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{#each talents as |talent key|}}
|
||||||
|
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{talent._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{talent.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{talent.name}}</span>
|
||||||
|
{{#if talent.system.hasroll}}
|
||||||
|
<span class="item-field-label-short"><a class="roll-item" data-type="perk"><i class="fas fa-dice"></i>{{talent.system.roll}}-</a></span>
|
||||||
|
{{else}}
|
||||||
|
<span class="item-field-label-short"> </span>
|
||||||
|
{{/if}}
|
||||||
|
<div class="item-filler"> </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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- Martial Tab --}}
|
||||||
|
<div class="tab martial" data-group="primary" data-tab="martial">
|
||||||
|
|
||||||
|
<ul class="stat-list alternate-list item-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Martial Arts</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Roll</label>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{#each talents as |talent key|}}
|
||||||
|
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{talent._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{talent.img}}" /></a>
|
||||||
|
<span class="item-name-label"><a class="roll-item" data-type="talent">{{talent.name}}</a></span>
|
||||||
|
{{#if talent.system.hasroll}}
|
||||||
|
<span class="item-field-label-short">{{talent.system.roll}}-</span>
|
||||||
|
{{else}}
|
||||||
|
<span class="item-field-label-short"> </span>
|
||||||
|
{{/if}}
|
||||||
|
<div class="item-filler"> </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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- Powers Tab --}}
|
||||||
<div class="tab powers" data-group="primary" data-tab="powers">
|
<div class="tab powers" data-group="primary" data-tab="powers">
|
||||||
|
|
||||||
<ul class="stat-list alternate-list item-list">
|
<ul class="stat-list alternate-list item-list">
|
||||||
@ -181,9 +287,6 @@
|
|||||||
<span class="item-name-label-header">
|
<span class="item-name-label-header">
|
||||||
<h3><label class="items-title-text">Powers</label></h3>
|
<h3><label class="items-title-text">Powers</label></h3>
|
||||||
</span>
|
</span>
|
||||||
<span class="item-field-label-short">
|
|
||||||
<label class="short-label">Charac</label>
|
|
||||||
</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>
|
||||||
</span>
|
</span>
|
||||||
@ -192,10 +295,43 @@
|
|||||||
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{power._id}}">
|
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{power._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="{{power.img}}" /></a>
|
src="{{power.img}}" /></a>
|
||||||
<span class="item-name-label"><a class="roll-skill">{{power.name}}</a></span>
|
<span class="item-name-label">{{power.name}}</span>
|
||||||
<span class="item-field-label-short">{{upper power.system.ability}}</span>
|
{{#if power.system.hasroll}}
|
||||||
<span class="item-field-label-short">{{power.system.skilldice}}</span>
|
<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-long"> - </span>
|
{{else}}
|
||||||
|
<span class="item-field-label-short"> </span>
|
||||||
|
{{/if}}
|
||||||
|
<div class="item-filler"> </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>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- Complications Tab --}}
|
||||||
|
<div class="tab complications" data-group="primary" data-tab="complications">
|
||||||
|
|
||||||
|
<ul class="stat-list alternate-list item-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Complications</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Roll</label>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{#each complications as |comp key|}}
|
||||||
|
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{comp._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{comp.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{comp.name}}</span>
|
||||||
|
{{#if comp.system.hasroll}}
|
||||||
|
<span class="item-field-label-short"><a class="roll-item" data-type="perk"><i class="fas fa-dice"></i>{{comp.system.roll}}-</a></span>
|
||||||
|
{{else}}
|
||||||
|
<span class="item-field-label-short"> </span>
|
||||||
|
{{/if}}
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </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>
|
||||||
@ -395,8 +531,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<ul class="item-list alternate-list">
|
<ul class="item-list alternate-list">
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Origin</label>
|
<label class="generic-label">Alternate IDs</label>
|
||||||
<input type="text" class="" name="system.biodata.origin" value="{{data.biodata.origin}}"
|
<input type="text" class="" name="system.biodata.alternateids" value="{{data.biodata.origin}}"
|
||||||
data-dtype="String" />
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
@ -420,51 +556,96 @@
|
|||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Size</label>
|
<label class="generic-label">Campaign name</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.biodata.size" value="{{data.biodata.size}}" data-dtype="Number">
|
<input type="text" class="" name="system.biodata.campaign" value="{{data.biodata.campaign}}" data-dtype="String" />
|
||||||
{{#select data.biodata.size}}
|
|
||||||
<option value="1">Tiny</option>
|
|
||||||
<option value="2">Small</option>
|
|
||||||
<option value="3">Medium</option>
|
|
||||||
<option value="4">Large</option>
|
|
||||||
<option value="5">Huge</option>
|
|
||||||
<option value="6">Gargantuan</option>
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Sex</label>
|
<label class="generic-label">Gender</label>
|
||||||
<input type="text" class="" name="system.biodata.sex" value="{{data.biodata.sex}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.gender" value="{{data.biodata.gender}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Preferred Hand</label>
|
<label class="generic-label">Player</label>
|
||||||
<input type="text" class="" name="system.biodata.preferredhand" value="{{data.biodata.preferredhand}}"
|
<input type="text" class="" name="system.biodata.player" value="{{data.biodata.player}}"
|
||||||
data-dtype="String" />
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item" data-item-id="{{race._id}}">
|
<li class="flexrow item">
|
||||||
<label class="generic-label">Race</label>
|
<label class="generic-label">GM</label>
|
||||||
<a class="item-edit"><img class="stat-icon" src="{{race.img}}"></a>
|
<input type="text" class="" name="system.biodata.gm" value="{{data.biodata.gm}}"
|
||||||
<input type="text" class="" name="system.biodata.racename" value="{{data.biodata.racename}}" data-dtype="String" />
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3>Background/History : </h3>
|
||||||
<hr>
|
|
||||||
<h3>Background : </h3>
|
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor description target="system.biodata.description" button=true owner=owner
|
{{editor description target="system.biodata.description" button=true owner=owner
|
||||||
editable=editable}}
|
editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Notes : </h3>
|
<h3>Personality/Motivation : </h3>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor notes target="system.biodata.notes" button=true owner=owner editable=editable}}
|
{{editor motivation target="system.biodata.motivation" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</article>
|
<h3>Quote : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor quote target="system.biodata.quote" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<h3>Powers/Tactics : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor tactics target="system.biodata.tactics" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<h3>Campaign Use : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor campaignuse target="system.biodata.campaignuse" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<h3>Appearance : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor appearance target="system.biodata.appearance" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{!-- Notes Tab --}}
|
||||||
|
<div class="tab notes" data-group="primary" data-tab="notes">
|
||||||
|
<h3>Notes 1 : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor notes1 target="system.biodata.notes1" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<h3>Notes 2 : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor notes2 target="system.biodata.notes2" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<h3>Notes 3 : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor notes3 target="system.biodata.notes3" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<h3>Notes 4 : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor notes4 target="system.biodata.notes4" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<h3>Notes 5 : </h3>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor notes5 target="system.biodata.notes5" button=true owner=owner
|
||||||
|
editable=editable}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
@ -15,10 +15,23 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if item}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="item-field-label-long margin-item-list">{{upperFirst item.type}} : </span>
|
||||||
|
<span class="item-field-label-medium margin-item-list">{{item.system.roll}}-</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="item-field-label-long margin-item-list">Bonus/Malus : </span>
|
<span class="item-field-label-long margin-item-list">Bonus/Malus : </span>
|
||||||
<select class="item-field-label-medium" type="text" id="bonusMalus" value="{{bonusMalus}}" data-dtype="Number" >
|
<select class="item-field-label-medium" type="text" id="bonusMalus" value="{{bonusMalus}}" data-dtype="Number" >
|
||||||
{{#select bonusMalus}}
|
{{#select bonusMalus}}
|
||||||
|
<option value="-10">-10</option>
|
||||||
|
<option value="-9">-9</option>
|
||||||
|
<option value="-8">-8</option>
|
||||||
|
<option value="-7">-7</option>
|
||||||
|
<option value="-6">-6</option>
|
||||||
|
<option value="-5">-5</option>
|
||||||
<option value="-4">-4</option>
|
<option value="-4">-4</option>
|
||||||
<option value="-3">-3</option>
|
<option value="-3">-3</option>
|
||||||
<option value="-2">-2</option>
|
<option value="-2">-2</option>
|
||||||
@ -28,6 +41,12 @@
|
|||||||
<option value="2">2</option>
|
<option value="2">2</option>
|
||||||
<option value="3">3</option>
|
<option value="3">3</option>
|
||||||
<option value="4">4</option>
|
<option value="4">4</option>
|
||||||
|
<option value="5">5</option>
|
||||||
|
<option value="6">6</option>
|
||||||
|
<option value="7">7</option>
|
||||||
|
<option value="8">8</option>
|
||||||
|
<option value="9">9</option>
|
||||||
|
<option value="10">10</option>
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,13 +22,20 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{#if charac}}
|
{{#if charac}}
|
||||||
<li>Charac : {{charac.label}}
|
<li>CHAR : {{charac.label}}</li>
|
||||||
</li>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if item}}
|
||||||
|
<li>{{item.name}} ({{upperFirst item.type}})</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<li>Bonus/Malus : {{bonusMalus}}
|
<li>Bonus/Malus : {{bonusMalus}}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><strong>Result : {{result}}</strong> ({{#if isSuccess}}Success!!{{else}}Failure!{{/if}})</li>
|
<li><strong>Result : {{result}}</strong> ({{#if isSuccess}}Success!!{{else}}Failure!{{/if}})</li>
|
||||||
|
{{#if isSuccess}}
|
||||||
|
<li><strong>Margin : {{margin}}</strong>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
<li class="item flexrow list-item" data-attr-key="{{key}}">
|
<li class="item flexrow list-item" data-attr-key="{{key}}">
|
||||||
<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"><a class="roll-charac" data-charac-key="{{key}}">{{charac.label}}</a></h4>
|
<h4 class="item-field-label-medium margin-item-list">{{charac.label}}</a></h4>
|
||||||
</span>
|
</span>
|
||||||
<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-short" name="system.characteristics.{{key}}.value" value="{{charac.value}}" data-dtype="Number"/>
|
||||||
<h4 class="item-field-label-short margin-item-list">{{charac.total}}</h4>
|
|
||||||
<h4 class="item-field-label-short margin-item-list"><a class="roll-charac" data-charac-key="{{key}}">{{charac.roll}}-</a></h4>
|
<!-- <h4 class="item-field-label-short margin-item-list">{{charac.total}}</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>
|
||||||
</li>
|
</li>
|
13
templates/partials/partial-actor-full-charac.hbs
Normal file
13
templates/partials/partial-actor-full-charac.hbs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<li class="item flexrow list-item" data-attr-key="{{key}}">
|
||||||
|
<span class="item-field-label-medium" name="{{key}}">
|
||||||
|
<h4 class="item-field-label-medium margin-item-list">{{charac.label}}</a></h4>
|
||||||
|
</span>
|
||||||
|
{{#if (eq charac.category "main")}}
|
||||||
|
<h4 class="item-field-label-short margin-item-list">{{charac.base}}</h4>
|
||||||
|
{{else}}
|
||||||
|
<input type="text" class="item-field-label-short" name="system.characteristics.{{key}}.value" value="{{charac.value}}" data-dtype="Number"/>
|
||||||
|
{{/if}}
|
||||||
|
<h4 class="item-field-label-short margin-item-list">{{charac.base}}</h4>
|
||||||
|
<h4 class="item-field-label-short margin-item-list">{{charac.total}}</h4>
|
||||||
|
<input type="text" class="item-field-label-long2" name="system.characteristics.{{key}}.notes" value="{{charac.notes}}" data-dtype="String"/>
|
||||||
|
</li>
|
Loading…
Reference in New Issue
Block a user