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

View File

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

View File

@ -18,9 +18,9 @@
<ul class="item-list alternate-list"> <ul class="item-list alternate-list">
<li class="flexrow item"> <li class="flexrow item">
<label class="generic-label item-field-label-long">Utilisation </label> <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" <select class="status-small-label color-class-common item-field-label-long" type="text"
value="{{system.utilisation}}" data-dtype="String"> name="system.utilisation" value="{{system.utilisation}}" data-dtype="String">
{{#select system.utilisation}} {{#select system.utilisation}}
<option value="permanent">Permanent</option> <option value="permanent">Permanent</option>
<option value="sceance">Une fois par scéance</option> <option value="sceance">Une fois par scéance</option>
@ -37,12 +37,13 @@
</li> </li>
{{#if system.isbonus}} {{#if system.isbonus}}
<li class="flexrow item"> <li class="flexrow item">
<label class="generic-label item-field-label-long">Formule de bonus </label> <label class="generic-label item-field-label-long">Formule de bonus </label>
</li> </li>
<li class="flexrow item"> <li class="flexrow item">
<textarea rows="3" type="text" class="padd-right color-class-common" data-dtype="String">{{predilection.bonusformula}}</textarea> <textarea rows="3" type="text" class="padd-right color-class-common"
</li> data-dtype="String">{{predilection.bonusformula}}</textarea>
</li>
{{/if}} {{/if}}
</ul> </ul>
</div> </div>