Feuille PNJ suite
This commit is contained in:
parent
814266e649
commit
a6ae7babbe
10
changelog.md
10
changelog.md
@ -1,4 +1,14 @@
|
|||||||
# 12.0
|
# 12.0
|
||||||
|
## 12.0.14 - Les légions d'Astrobazzarh
|
||||||
|
- Feuille de PNJ:
|
||||||
|
- boutons standard (encaissement, ...)
|
||||||
|
- boutons pour ajuster les compteurs
|
||||||
|
- visualisation des blessures
|
||||||
|
- click sur blessure pour ajouter/enlever
|
||||||
|
|
||||||
|
## 12.0.13 - La Chance d'Astrobazzarh
|
||||||
|
- Fix: jets de caractéristiques
|
||||||
|
|
||||||
## 12.0.12 - L'étalage d'Astrobazzarh
|
## 12.0.12 - L'étalage d'Astrobazzarh
|
||||||
- Fix: On peut de nouveau vendre des items sans propriétaire, depuis les compendiums ou depuis l'onglet des Objets
|
- Fix: On peut de nouveau vendre des items sans propriétaire, depuis les compendiums ou depuis l'onglet des Objets
|
||||||
- Début de Feuille PNJ au format des encarts Scriptarium
|
- Début de Feuille PNJ au format des encarts Scriptarium
|
||||||
|
@ -128,7 +128,7 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
|
|||||||
this.render(true);
|
this.render(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.html.find('.visu-tmr').click(async event => this.actor.displayTMR("visu"))
|
this.html.find('.button-tmr-visu').click(async event => this.actor.displayTMR("visu"))
|
||||||
|
|
||||||
// Everything below here is only needed if the sheet is editable
|
// Everything below here is only needed if the sheet is editable
|
||||||
if (!this.options.editable) return;
|
if (!this.options.editable) return;
|
||||||
@ -186,7 +186,7 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
|
|||||||
this.html.find('.item-equip').click(async event => this.actor.equiperObjet(RdDSheetUtility.getItemId(event)))
|
this.html.find('.item-equip').click(async event => this.actor.equiperObjet(RdDSheetUtility.getItemId(event)))
|
||||||
this.html.find('.chance-actuelle').click(async event => this.actor.rollCarac('chance-actuelle'))
|
this.html.find('.chance-actuelle').click(async event => this.actor.rollCarac('chance-actuelle'))
|
||||||
|
|
||||||
this.html.find('.chance-appel').click(async event => this.actor.rollAppelChance())
|
this.html.find('.button-appel-chance').click(async event => this.actor.rollAppelChance())
|
||||||
|
|
||||||
this.html.find('[name="jet-astrologie"]').click(async event => this.actor.astrologieNombresAstraux())
|
this.html.find('[name="jet-astrologie"]').click(async event => this.actor.astrologieNombresAstraux())
|
||||||
this.html.find('.tache-label a').click(async event => this.actor.rollTache(RdDSheetUtility.getItemId(event)))
|
this.html.find('.tache-label a').click(async event => this.actor.rollTache(RdDSheetUtility.getItemId(event)))
|
||||||
@ -234,10 +234,10 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
|
|||||||
});
|
});
|
||||||
// Display TMR
|
// Display TMR
|
||||||
|
|
||||||
this.html.find('.monte-tmr').click(async event => this.actor.displayTMR("normal"))
|
this.html.find('.button-tmr').click(async event => this.actor.displayTMR("normal"))
|
||||||
this.html.find('.monte-tmr-rapide').click(async event => this.actor.displayTMR("rapide"))
|
this.html.find('.button-tmr-rapide').click(async event => this.actor.displayTMR("rapide"))
|
||||||
|
|
||||||
this.html.find('.repos').click(async event => await this.actor.repos())
|
this.html.find('.button-repos').click(async event => await this.actor.repos())
|
||||||
|
|
||||||
this.html.find('.carac-xp-augmenter').click(async event => this.actor.updateCaracXPAuto(event.currentTarget.name.replace("augmenter.", "")))
|
this.html.find('.carac-xp-augmenter').click(async event => this.actor.updateCaracXPAuto(event.currentTarget.name.replace("augmenter.", "")))
|
||||||
this.html.find('.competence-xp-augmenter').click(async event => this.actor.updateCompetenceXPAuto(RdDSheetUtility.getItemId(event)))
|
this.html.find('.competence-xp-augmenter').click(async event => this.actor.updateCompetenceXPAuto(RdDSheetUtility.getItemId(event)))
|
||||||
@ -279,7 +279,7 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
|
|||||||
this.html.find('.moral-malheureux').click(async event => this.actor.jetDeMoral('malheureuse'))
|
this.html.find('.moral-malheureux').click(async event => this.actor.jetDeMoral('malheureuse'))
|
||||||
this.html.find('.moral-neutre').click(async event => this.actor.jetDeMoral('neutre'))
|
this.html.find('.moral-neutre').click(async event => this.actor.jetDeMoral('neutre'))
|
||||||
this.html.find('.moral-heureux').click(async event => this.actor.jetDeMoral('heureuse'))
|
this.html.find('.moral-heureux').click(async event => this.actor.jetDeMoral('heureuse'))
|
||||||
this.html.find('.ethylisme-test').click(async event => this.actor.jetEthylisme())
|
this.html.find('.button-ethylisme').click(async event => this.actor.jetEthylisme())
|
||||||
|
|
||||||
this.html.find('.ptreve-actuel-plus').click(async event => this.actor.reveActuelIncDec(1))
|
this.html.find('.ptreve-actuel-plus').click(async event => this.actor.reveActuelIncDec(1))
|
||||||
this.html.find('.ptreve-actuel-moins').click(async event => this.actor.reveActuelIncDec(-1))
|
this.html.find('.ptreve-actuel-moins').click(async event => this.actor.reveActuelIncDec(-1))
|
||||||
|
@ -24,14 +24,15 @@ export class RdDBaseActorReveSheet extends RdDBaseActorSheet {
|
|||||||
// Everything below here is only needed if the sheet is editable
|
// Everything below here is only needed if the sheet is editable
|
||||||
if (!this.options.editable) return;
|
if (!this.options.editable) return;
|
||||||
|
|
||||||
this.html.find('.encaisser-direct').click(async event => this.actor.encaisser())
|
this.html.find('.button-encaissement').click(async event => this.actor.encaisser())
|
||||||
this.html.find('.roll-carac a').click(async event => this.actor.rollCarac(Grammar.toLowerCaseNoAccent(event.currentTarget.attributes.name.value)));
|
this.html.find('.roll-carac').click(async event => {
|
||||||
|
this.actor.rollCarac(Grammar.toLowerCaseNoAccent(event.currentTarget.attributes['data-carac-name'].value))});
|
||||||
this.html.find('.roll-competence').click(async event => this.actor.rollCompetence(RdDSheetUtility.getItemId(event)));
|
this.html.find('.roll-competence').click(async event => this.actor.rollCompetence(RdDSheetUtility.getItemId(event)));
|
||||||
this.html.find('.endurance-plus').click(async event => this.actor.santeIncDec("endurance", 1));
|
this.html.find('.endurance-plus').click(async event => this.actor.santeIncDec("endurance", 1));
|
||||||
this.html.find('.endurance-moins').click(async event => this.actor.santeIncDec("endurance", -1));
|
this.html.find('.endurance-moins').click(async event => this.actor.santeIncDec("endurance", -1));
|
||||||
|
|
||||||
if (game.user.isGM) {
|
if (game.user.isGM) {
|
||||||
this.html.find('.remise-a-neuf').click(async event => this.actor.remiseANeuf())
|
this.html.find('.button-remise-a-neuf').click(async event => this.actor.remiseANeuf())
|
||||||
this.html.find('.delete-active-effect').click(async event => this.actor.removeEffect(this.html.find(event.currentTarget).parents(".active-effect").data('effect')));
|
this.html.find('.delete-active-effect').click(async event => this.actor.removeEffect(this.html.find(event.currentTarget).parents(".active-effect").data('effect')));
|
||||||
this.html.find('.enlever-tous-effets').click(async event => await this.actor.removeEffects());
|
this.html.find('.enlever-tous-effets').click(async event => await this.actor.removeEffects());
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const endActuelle = this.getEnduranceActuelle();
|
const endActuelle = this.getEnduranceActuelle();
|
||||||
const blessure = await RdDItemBlessure.createBlessure(this, encaissement.gravite, encaissement.dmg.loc.label, attacker);
|
const blessure = await RdDItemBlessure.createBlessure(this, encaissement.gravite, encaissement.dmg?.loc.label ??'', attacker);
|
||||||
if (blessure.isCritique()) {
|
if (blessure.isCritique()) {
|
||||||
encaissement.endurance = endActuelle;
|
encaissement.endurance = endActuelle;
|
||||||
}
|
}
|
||||||
@ -196,6 +196,13 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
|
|||||||
return blessure;
|
return blessure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async supprimerBlessure({gravite}) {
|
||||||
|
const toDelete = this.itemTypes[ITEM_TYPES.blessure].find(it => it.system.gravite == gravite)?.id
|
||||||
|
if (toDelete){
|
||||||
|
await this.deleteEmbeddedDocuments('Item', [toDelete]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async supprimerBlessures(filterToDelete) {
|
async supprimerBlessures(filterToDelete) {
|
||||||
const toDelete = this.filterItems(filterToDelete, ITEM_TYPES.blessure)
|
const toDelete = this.filterItems(filterToDelete, ITEM_TYPES.blessure)
|
||||||
.map(it => it.id);
|
.map(it => it.id);
|
||||||
@ -203,7 +210,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
|
|||||||
}
|
}
|
||||||
|
|
||||||
countBlessures(filter = it => !it.isContusion()) {
|
countBlessures(filter = it => !it.isContusion()) {
|
||||||
return this.filterItems(filter, 'blessure').length
|
return this.filterItems(filter, ITEM_TYPES.blessure).length
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -9,16 +9,19 @@ export class RdDActorExportSheet extends RdDActorSheet {
|
|||||||
static async init() {
|
static async init() {
|
||||||
await loadTemplates([
|
await loadTemplates([
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/arme.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/arme.hbs",
|
||||||
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs",
|
||||||
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessures.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-compteur.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-compteur.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/esquive.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/esquive.hbs",
|
||||||
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/fatigue.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/protection.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/protection.hbs",
|
||||||
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs",
|
"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs",
|
||||||
])
|
])
|
||||||
Actors.registerSheet(SYSTEM_RDD, RdDActorExportSheet, { types: ["personnage"], makeDefault: false, label: "Feuille d'encart" })
|
Actors.registerSheet(SYSTEM_RDD, RdDActorExportSheet, { types: ["personnage"], makeDefault: false, label: "Feuille simplifiée" })
|
||||||
}
|
}
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return foundry.utils.mergeObject(RdDActorSheet.defaultOptions, {
|
return foundry.utils.mergeObject(RdDActorSheet.defaultOptions, {
|
||||||
@ -39,6 +42,19 @@ export class RdDActorExportSheet extends RdDActorSheet {
|
|||||||
formData.export = this.getMappingValues();
|
formData.export = this.getMappingValues();
|
||||||
formData.competences = this.getCompetences(CATEGORIES_COMPETENCES)
|
formData.competences = this.getCompetences(CATEGORIES_COMPETENCES)
|
||||||
formData.draconic = this.getCompetences(CATEGORIES_DRACONIC)
|
formData.draconic = this.getCompetences(CATEGORIES_DRACONIC)
|
||||||
|
const legeres = this.actor.nbBlessuresLegeres()
|
||||||
|
const graves = this.actor.nbBlessuresGraves()
|
||||||
|
const critiques = this.actor.nbBlessuresCritiques()
|
||||||
|
formData.etat = {
|
||||||
|
surenc: this.actor.computeMalusSurEncombrement(),
|
||||||
|
fatigue: {
|
||||||
|
value: this.actor.getFatigueActuelle(),
|
||||||
|
max: this.actor.getFatigueMax(),
|
||||||
|
malus: this.actor.malusFatigue()
|
||||||
|
},
|
||||||
|
blessures: legeres + graves + critiques,
|
||||||
|
blessure: [legeres > 0, legeres > 1, legeres > 2, legeres > 3, legeres > 4, graves > 0, graves > 1, critiques > 0],
|
||||||
|
}
|
||||||
formData.options.exportScriptarium = OptionsAvancees.isUsing(EXPORT_CSV_SCRIPTARIUM)
|
formData.options.exportScriptarium = OptionsAvancees.isUsing(EXPORT_CSV_SCRIPTARIUM)
|
||||||
return formData
|
return formData
|
||||||
}
|
}
|
||||||
@ -49,7 +65,7 @@ export class RdDActorExportSheet extends RdDActorSheet {
|
|||||||
colName: it.colName ?? it.column,
|
colName: it.colName ?? it.column,
|
||||||
column: it.column,
|
column: it.column,
|
||||||
rollClass: it.rollClass,
|
rollClass: it.rollClass,
|
||||||
value: it.getter(this.actor, context)
|
value: String(it.getter(this.actor, context))
|
||||||
}]))
|
}]))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,8 +94,19 @@ export class RdDActorExportSheet extends RdDActorSheet {
|
|||||||
|
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
this.html.find('.button-export').click(async event => {
|
|
||||||
|
|
||||||
|
this.html.find('.click-blessure-remove').click(async event =>
|
||||||
|
await this.actor.supprimerBlessure({
|
||||||
|
gravite: this.html.find(event.currentTarget).data('gravite')
|
||||||
|
})
|
||||||
|
)
|
||||||
|
this.html.find('.click-blessure-add').click(async event =>
|
||||||
|
await this.actor.ajouterBlessure({
|
||||||
|
gravite: this.html.find(event.currentTarget).data('gravite')
|
||||||
|
// event.currentTarget.attributes['data-gravite'].value
|
||||||
|
})
|
||||||
|
)
|
||||||
|
this.html.find('.button-export').click(async event => {
|
||||||
ExportScriptarium.INSTANCE.exportActors([this.actor],
|
ExportScriptarium.INSTANCE.exportActors([this.actor],
|
||||||
`${this.actor.uuid}-${this.actor.name}`
|
`${this.actor.uuid}-${this.actor.name}`
|
||||||
)
|
)
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
||||||
<div class="header-buttons">
|
<div class="header-buttons">
|
||||||
<span class="encaisser-direct"><a><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
|
<span><a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
|
||||||
{{#if @root.options.isGM}}
|
{{#if @root.options.isGM}}
|
||||||
<span class="remise-a-neuf"><a><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
|
<span><a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
||||||
<div class="header-buttons">
|
<div class="header-buttons">
|
||||||
<span class="encaisser-direct"><a><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
|
<span><a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
|
||||||
{{#if @root.options.isGM}}
|
{{#if @root.options.isGM}}
|
||||||
<span class="remise-a-neuf"><a><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
|
<span><a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<label class="carac-xp"/>
|
<label class="carac-xp"/>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if carac.derivee}}
|
{{#if carac.derivee}}
|
||||||
<span class="carac-label roll-carac" name="system.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
|
<span class="carac-label" name="system.carac.{{key}}.label"><a class="roll-carac" data-carac-name={{key}}>{{carac.label}}</a></span>
|
||||||
<label class="competence-value">{{carac.value}}</label>
|
<label class="competence-value">{{carac.value}}</label>
|
||||||
<label class="carac-xp"/>
|
<label class="carac-xp"/>
|
||||||
{{else}}
|
{{else}}
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="carac-label roll-carac tooltip" name="system.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
|
<span class="carac-label tooltip" name="system.carac.{{key}}.label"><a class="roll-carac" data-carac-name={{key}}>{{carac.label}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<input class="carac-value" type="text" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
<input class="carac-value" type="text" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
||||||
<span class="carac-xp tooltip">
|
<span class="carac-xp tooltip">
|
||||||
|
@ -1,10 +1,35 @@
|
|||||||
<form class="{{cssClass}}" autocomplete="off" >
|
<form class="{{cssClass}}" autocomplete="off" >
|
||||||
<section class="sheet-header">
|
<section class="sheet-header">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<h1 class="flex-grow charname">{{name}}</h1>
|
<div class="flex-group-left flex-grow-0-5">
|
||||||
{{#if options.exportScriptarium}}
|
<h1 class="charname">{{name}}
|
||||||
<span class="flex-group-right flex-shrink chat-card-button-area"><a class="button-export chat-card-button">Export </a></span>
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div class="flex-group-right flex-grow-3">
|
||||||
|
{{#if system.attributs.hautrevant.value}}
|
||||||
|
<a class="button-tmr" data-tooltip="Montée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
|
||||||
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg"/>
|
||||||
|
</a>
|
||||||
|
<a class="button-tmr-rapide" data-tooltip="Montée accélérée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
|
||||||
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-rapide.svg"/>
|
||||||
|
</a>
|
||||||
|
<a class="button-tmr-visu" data-tooltip="Regarder les Terres Médianes">
|
||||||
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-view.svg"/>
|
||||||
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<a class="button-appel-chance"><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" data-tooltip="Appel à la chance"/></a>
|
||||||
|
<a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a>
|
||||||
|
<a class="button-ethylisme"><img class="button-img" src="icons/svg/tankard.svg" data-tooltip="Boire"/></a>
|
||||||
|
<a class="button-repos"><img class="button-img" src="icons/svg/sleep.svg" data-tooltip="Se reposer"/></a>
|
||||||
|
{{#if @root.options.isGM}}
|
||||||
|
<a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a>
|
||||||
|
{{/if}}
|
||||||
|
{{#if options.exportScriptarium}}
|
||||||
|
<a class="button-export">
|
||||||
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/scriptarium.svg" data-tooltip="Export format Scriptarium"/>
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="sheet-body" style=:"margin-bottom: 3rem;">
|
<section class="sheet-body" style=:"margin-bottom: 3rem;">
|
||||||
@ -26,7 +51,7 @@
|
|||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.volonte}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.volonte}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.empathie}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.empathie}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.intellect}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.intellect}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-compteur.hbs" carac=export.reve actuel=export.reve_actuel}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-compteur.hbs" carac=export.reve actuel=export.reve_actuel button-name='ptreve-actuel'}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.chance}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.chance}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flexcol flex-group-top">
|
<div class="flexcol flex-group-top">
|
||||||
@ -35,9 +60,12 @@
|
|||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.lancer}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.lancer}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.derobee}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.derobee}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs" carac=export.vie actuel=export.vie_actuel}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs" carac=export.vie actuel=export.vie_actuel}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs" carac=export.endurance actuel=export.vie_actuel}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs" carac=export.endurance actuel=export.endurance_actuel}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/fatigue.hbs" }}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.plusdom}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.plusdom}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/protection.hbs" export}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/protection.hbs" export}}
|
||||||
|
<div class="flexrow"> </div>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessures.hbs" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
5
templates/actor/export-scriptarium/blessure.hbs
Normal file
5
templates/actor/export-scriptarium/blessure.hbs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{#if blessure}}
|
||||||
|
<a class="click-blessure-remove" data-gravite="{{gravite}}"><i class="fa-regular fa-face-head-bandage blessure-active-{{gravite}}"></i></a>
|
||||||
|
{{else}}
|
||||||
|
<a class="click-blessure-add" data-gravite="{{gravite}}"><i class="fa-regular fa-circle"></i></a>
|
||||||
|
{{/if}}
|
26
templates/actor/export-scriptarium/blessures.hbs
Normal file
26
templates/actor/export-scriptarium/blessures.hbs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
<div class="flexrow">
|
||||||
|
<div>Légères</div>
|
||||||
|
<div class="flex-group-right">
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[0] gravite=2}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[1] gravite=2}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[2] gravite=2}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[3] gravite=2}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[4] gravite=2}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<div>Graves</div>
|
||||||
|
<div class="flex-group-right">
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[5] gravite=4}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[6] gravite=4}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<div>Critiques</div>
|
||||||
|
<div class="flex-group-right">
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[7] gravite=6}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,19 +1,18 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div>
|
<div>
|
||||||
{{#if carac.rollClass}}
|
{{#if carac.rollClass}}
|
||||||
<a class="{{carac.rollClass}}" name="{{carac.column}}">
|
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">
|
||||||
{{upper carac.colName}}
|
{{upper carac.colName}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{upper carac.colName}}
|
{{upper carac.colName}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<a class="{{button-name}}-moins"><i class="fa-regular fa-square-minus"></i></a>
|
||||||
|
<a class="{{button-name}}-plus"><i class="fa-regular fa-square-plus"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-right {{actuel.rollClass}}">
|
<div class="flex-group-right">
|
||||||
<a>
|
{{log carac.colName carac.value (eq carac.value actuel.value) actuel.value}}
|
||||||
{{#unless (eq carac.value actuel.value)}}
|
{{log carac.colName carac.value (eq 1 1) actuel.value}}
|
||||||
{{actuel.value}} /
|
<a class="{{actuel.rollClass}}" data-carac-name="{{actuel.column}}">{{carac.value}} {{#unless (eq carac.value actuel.value)}}(Actuel : {{actuel.value}}){{/unless}}</a>
|
||||||
{{/unless}}
|
|
||||||
{{carac.value}}
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,19 +1,10 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div>
|
<div>
|
||||||
{{#if carac.rollClass}}
|
|
||||||
<a class="{{carac.rollClass}}" name="{{carac.column}}">
|
|
||||||
{{upperFirst carac.colName}}
|
{{upperFirst carac.colName}}
|
||||||
</a>
|
<a class="{{carac.column}}-moins"><i class="fa-regular fa-square-minus"></i></a>
|
||||||
{{else}}
|
<a class="{{carac.column}}-plus"><i class="fa-regular fa-square-plus"></i></a>
|
||||||
{{upperFirst carac.colName}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-right {{actuel.rollClass}}">
|
<div class="flex-group-right">
|
||||||
<a>
|
<a class="{{actuel.rollClass}}" data-carac-name="{{actuel.column}}">{{carac.value}} {{#unless (eq carac.value actuel.value)}}(Actuel : {{actuel.value}}){{/unless}}</a>
|
||||||
{{#unless (eq carac.value actuel.value)}}
|
|
||||||
{{actuel.value}} /
|
|
||||||
{{/unless}}
|
|
||||||
{{carac.value}}
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div>
|
<div>
|
||||||
{{#if carac.rollClass}}
|
{{#if carac.rollClass}}
|
||||||
<a class="{{carac.rollClass}}" name="{{carac.column}}">
|
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">
|
||||||
{{upperFirst carac.colName}}
|
{{upperFirst carac.colName}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div>
|
<div>
|
||||||
{{#if carac.rollClass}}
|
{{#if carac.rollClass}}
|
||||||
<a class="{{carac.rollClass}}" name="{{carac.column}}">{{upper carac.colName}}</a>
|
<a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">{{upper carac.colName}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{upper carac.colName}}
|
{{upper carac.colName}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
12
templates/actor/export-scriptarium/fatigue.hbs
Normal file
12
templates/actor/export-scriptarium/fatigue.hbs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<div class="flexrow">
|
||||||
|
<div>Fatigue
|
||||||
|
{{#if etat.fatigue.malus}}
|
||||||
|
({{etat.fatigue.malus}})
|
||||||
|
{{/if}}
|
||||||
|
<a class="fatigue-moins"><i class="fa-regular fa-square-minus"></i></a>
|
||||||
|
<a class="fatigue-plus"><i class="fa-regular fa-square-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
<div class="flex-group-right">
|
||||||
|
{{etat.fatigue.value}}{{#if etat.fatigue.value}} / {{etat.fatigue.max}}{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,19 +1,19 @@
|
|||||||
<div class="header-buttons">
|
<div class="header-buttons">
|
||||||
<span class="chance-appel">
|
<span>
|
||||||
<a><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" data-tooltip="Appel à la chance"/></a>
|
<a class="button-appel-chance"><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" data-tooltip="Appel à la chance"/></a>
|
||||||
</span>
|
</span>
|
||||||
<span class="encaisser-direct">
|
<span>
|
||||||
<a><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a>
|
<a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a>
|
||||||
</span>
|
</span>
|
||||||
<span class="ethylisme-test">
|
<span>
|
||||||
<a><img class="button-img" src="icons/svg/tankard.svg" data-tooltip="Boire"/></a>
|
<a class="button-ethylisme"><img class="button-img" src="icons/svg/tankard.svg" data-tooltip="Boire"/></a>
|
||||||
</span>
|
</span>
|
||||||
<span class="repos">
|
<span>
|
||||||
<a><img class="button-img" src="icons/svg/sleep.svg" data-tooltip="Se reposer"/></a>
|
<a class="button-repos"><img class="button-img" src="icons/svg/sleep.svg" data-tooltip="Se reposer"/></a>
|
||||||
</span>
|
</span>
|
||||||
{{#if @root.options.isGM}}
|
{{#if @root.options.isGM}}
|
||||||
<span class="remise-a-neuf">
|
<span>
|
||||||
<a><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a>
|
<a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a>
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{{#if system.attributs.hautrevant.value}}
|
{{#if system.attributs.hautrevant.value}}
|
||||||
<div class="tmr-buttons">
|
<div class="tmr-buttons">
|
||||||
<span class="monte-tmr">
|
<span>
|
||||||
<a data-tooltip="Montée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
|
<a class="button-tmr" data-tooltip="Montée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
|
||||||
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg"/>
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg"/>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="monte-tmr-rapide">
|
<span>
|
||||||
<a data-tooltip="Montée accélérée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
|
<a class="button-tmr-rapide" data-tooltip="Montée accélérée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
|
||||||
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-rapide.svg"/>
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-rapide.svg"/>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="visu-tmr">
|
<span>
|
||||||
<a data-tooltip="Regarder les Terres Médianes">
|
<a class="button-tmr-visu" data-tooltip="Regarder les Terres Médianes">
|
||||||
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-view.svg"/>
|
<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-view.svg"/>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user