Armes/Protections/Equipement

This commit is contained in:
sladecraven 2022-10-24 18:36:18 +02:00
parent dea92e8c98
commit 312a4d8699
3 changed files with 20 additions and 16 deletions

View File

@ -14,6 +14,7 @@ import { HawkmoonActorSheet } from "./hawkmoon-actor-sheet.js";
import { HawkmoonUtility } from "./hawkmoon-utility.js";
import { HawkmoonCombat } from "./hawkmoon-combat.js";
import { HawkmoonItem } from "./hawkmoon-item.js";
import { HawkmoonEffectParser } from "./hawkmoon-effect-parser.js";
/* -------------------------------------------- */
/* Foundry VTT Initialization */
@ -25,7 +26,7 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */
// preload handlebars templates
HawkmoonUtility.preloadHandlebarsTemplates();
HawkmoonUtility.preloadHandlebarsTemplates()
/* -------------------------------------------- */
// Set an initiative formula for the system
@ -36,7 +37,7 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */
game.socket.on("system.fvtt-hawkmoon-cyd", data => {
HawkmoonUtility.onSocketMesssage(data);
HawkmoonUtility.onSocketMesssage(data)
});
/* -------------------------------------------- */
@ -45,7 +46,8 @@ Hooks.once("init", async function () {
CONFIG.Actor.documentClass = HawkmoonActor
CONFIG.Item.documentClass = HawkmoonItem
game.system.hawkmoon = {
HawkmoonUtility
HawkmoonUtility,
HawkmoonEffectParser
}
/* -------------------------------------------- */
@ -57,7 +59,8 @@ Hooks.once("init", async function () {
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("fvtt-hawkmoon-cyd", HawkmoonItemSheet, { makeDefault: true })
HawkmoonUtility.init();
HawkmoonUtility.init()
HawkmoonEffectParser.init()
});

View File

@ -121,7 +121,7 @@
"equipement",
"artefact"
],
"talents": {
"talent": {
"utilisation": "",
"prerequis": "",
"isbonus": false,

View File

@ -16,11 +16,11 @@
<div class="tab details" data-group="primary" data-tab="details">
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label item-field-label-long">Utilisation </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.utilisation"
value="{{system.utilisation}}" data-dtype="String">
<label class="generic-label item-field-label-long">Utilisation </label>
<select class="status-small-label color-class-common item-field-label-long" type="text"
name="system.utilisation" value="{{system.utilisation}}" data-dtype="String">
{{#select system.utilisation}}
<option value="permanent">Permanent</option>
<option value="sceance">Une fois par scéance</option>
@ -30,19 +30,20 @@
{{/select}}
</select>
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Apporte un bonus ? </label>
<input type="checkbox" name="system.isbonus" {{checked system.isbonus}} />
</li>
{{#if system.isbonus}}
<li class="flexrow item">
<label class="generic-label item-field-label-long">Formule de bonus </label>
</li>
<li class="flexrow item">
<textarea rows="3" type="text" class="padd-right color-class-common" data-dtype="String">{{predilection.bonusformula}}</textarea>
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Formule de bonus </label>
</li>
<li class="flexrow item">
<textarea rows="3" type="text" class="padd-right color-class-common"
data-dtype="String">{{predilection.bonusformula}}</textarea>
</li>
{{/if}}
</ul>
</div>