Armes/Protections/Equipement
This commit is contained in:
parent
dea92e8c98
commit
312a4d8699
@ -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()
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
"equipement",
|
"equipement",
|
||||||
"artefact"
|
"artefact"
|
||||||
],
|
],
|
||||||
"talents": {
|
"talent": {
|
||||||
"utilisation": "",
|
"utilisation": "",
|
||||||
"prerequis": "",
|
"prerequis": "",
|
||||||
"isbonus": false,
|
"isbonus": false,
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
|
||||||
<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>
|
||||||
@ -30,19 +30,20 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long">Apporte un bonus ? </label>
|
<label class="generic-label item-field-label-long">Apporte un bonus ? </label>
|
||||||
<input type="checkbox" name="system.isbonus" {{checked system.isbonus}} />
|
<input type="checkbox" name="system.isbonus" {{checked system.isbonus}} />
|
||||||
</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>
|
||||||
|
Loading…
Reference in New Issue
Block a user