vehicules pour la feuille de groupe - v0.0.14
This commit is contained in:
@@ -143,6 +143,8 @@ ul.unstyled li {
|
|||||||
.actor.sheet .form .characteristics h4 {
|
.actor.sheet .form .characteristics h4 {
|
||||||
font-size:1.25rem;
|
font-size:1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.actor.sheet .form .tab.totem h4,
|
||||||
.actor.sheet .form .tab.equipment h4,
|
.actor.sheet .form .tab.equipment h4,
|
||||||
.actor.sheet .form .tab.stories h4 {
|
.actor.sheet .form .tab.stories h4 {
|
||||||
margin-top:0.875rem;
|
margin-top:0.875rem;
|
||||||
|
|||||||
+8
-2
@@ -68,7 +68,12 @@
|
|||||||
"traits": "Traits",
|
"traits": "Traits",
|
||||||
"clew": "Indice",
|
"clew": "Indice",
|
||||||
"combat": "Combat",
|
"combat": "Combat",
|
||||||
"stories": "Histoires"
|
"stories": "Histoires",
|
||||||
|
"gear": "Matériel",
|
||||||
|
"information": "Informations",
|
||||||
|
"boost": "boost",
|
||||||
|
"group_abilities": "Capacités de groupe",
|
||||||
|
"totem_abilities": "Capacités de totem"
|
||||||
},
|
},
|
||||||
"ITEMS": {
|
"ITEMS": {
|
||||||
"defense": "Protection",
|
"defense": "Protection",
|
||||||
@@ -83,7 +88,8 @@
|
|||||||
"abilities": "Capacités",
|
"abilities": "Capacités",
|
||||||
"specialties": "Spécialités",
|
"specialties": "Spécialités",
|
||||||
"evolution": "Adaptation",
|
"evolution": "Adaptation",
|
||||||
"evolutions": "Adaptations"
|
"evolutions": "Adaptations",
|
||||||
|
"vehicles": "Véhicules"
|
||||||
},
|
},
|
||||||
"ABILITIES": {
|
"ABILITIES": {
|
||||||
"vigor": { "name": "Vigueur"},
|
"vigor": { "name": "Vigueur"},
|
||||||
|
|||||||
@@ -48,7 +48,17 @@ export class VermineActorSheet extends ActorSheet {
|
|||||||
|
|
||||||
// Prepare NPC data and items.
|
// Prepare NPC data and items.
|
||||||
if (actorData.type == 'npc') {
|
if (actorData.type == 'npc') {
|
||||||
this._prepareItems(context);
|
this._prepareNpcItems(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepare Group data and items.
|
||||||
|
if (actorData.type == 'group') {
|
||||||
|
this._prepareGroupItems(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepare Creature data and items.
|
||||||
|
if (actorData.type == 'npc') {
|
||||||
|
this._prepareCreatureItems(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add roll data for TinyMCE editors.
|
// Add roll data for TinyMCE editors.
|
||||||
@@ -180,6 +190,116 @@ export class VermineActorSheet extends ActorSheet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organize and classify Items for Npc sheets.
|
||||||
|
*
|
||||||
|
* @param {Object} actorData The actor to prepare.
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
_prepareNpcItems(context) {
|
||||||
|
// Initialize containers.
|
||||||
|
const gear = [];
|
||||||
|
const traits = [];
|
||||||
|
|
||||||
|
|
||||||
|
// Iterate through items, allocating to containers
|
||||||
|
for (let i of context.items) {
|
||||||
|
i.img = i.img || DEFAULT_TOKEN;
|
||||||
|
// Append to gear.
|
||||||
|
if (i.type === 'item') {
|
||||||
|
gear.push(i);
|
||||||
|
}
|
||||||
|
else if (i.type === 'trait') {
|
||||||
|
traits.push(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assign and return
|
||||||
|
context.gear = gear;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organize and classify Items for Group sheets.
|
||||||
|
*
|
||||||
|
* @param {Object} actorData The actor to prepare.
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
_prepareGroupItems(context) {
|
||||||
|
// Initialize containers.
|
||||||
|
const gear = [];
|
||||||
|
const defenses = [];
|
||||||
|
const abilities = [];
|
||||||
|
const weapons = [];
|
||||||
|
const vehicles = [];
|
||||||
|
|
||||||
|
// Iterate through items, allocating to containers
|
||||||
|
for (let i of context.items) {
|
||||||
|
i.img = i.img || DEFAULT_TOKEN;
|
||||||
|
// Append to gear.
|
||||||
|
if (i.type === 'item') {
|
||||||
|
gear.push(i);
|
||||||
|
}
|
||||||
|
else if (i.type === 'defense') {
|
||||||
|
defenses.push(i);
|
||||||
|
}
|
||||||
|
else if (i.type === 'weapon') {
|
||||||
|
weapons.push(i);
|
||||||
|
}
|
||||||
|
else if (i.type === 'ability') {
|
||||||
|
abilities.push(i);
|
||||||
|
}
|
||||||
|
else if (i.type === 'vehicle') {
|
||||||
|
vehicles.push(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assign and return
|
||||||
|
context.gear = gear;
|
||||||
|
context.weapons = weapons;
|
||||||
|
context.defenses = defenses;
|
||||||
|
context.abilities = abilities;
|
||||||
|
context.vehicles = vehicles;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organize and classify Items for Creature sheets.
|
||||||
|
*
|
||||||
|
* @param {Object} actorData The actor to prepare.
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
_prepareCreatureItems(context) {
|
||||||
|
// Initialize containers.
|
||||||
|
const gear = [];
|
||||||
|
const traits = [];
|
||||||
|
|
||||||
|
|
||||||
|
// Iterate through items, allocating to containers
|
||||||
|
for (let i of context.items) {
|
||||||
|
i.img = i.img || DEFAULT_TOKEN;
|
||||||
|
// Append to gear.
|
||||||
|
if (i.type === 'item') {
|
||||||
|
gear.push(i);
|
||||||
|
}
|
||||||
|
else if (i.type === 'trait') {
|
||||||
|
traits.push(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assign and return
|
||||||
|
context.gear = gear;
|
||||||
|
|
||||||
|
}
|
||||||
async _onItemCreate(event) {
|
async _onItemCreate(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const header = event.currentTarget;
|
const header = event.currentTarget;
|
||||||
|
|||||||
@@ -0,0 +1,231 @@
|
|||||||
|
import {onManageActiveEffect, prepareActiveEffectCategories} from "../system/effects.mjs";
|
||||||
|
import { VermineActorSheet } from "./actor-sheet.mjs";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend the basic ActorSheet with some very simple modifications
|
||||||
|
* @extends {VermineActorSheet}
|
||||||
|
*/
|
||||||
|
export class VermineGroupSheet extends VermineActorSheet {
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
static get defaultOptions() {
|
||||||
|
return mergeObject(super.defaultOptions, {
|
||||||
|
classes: ["vermine2047", "sheet", "actor"],
|
||||||
|
template: "systems/vermine2047/templates/actor/actor-sheet.html",
|
||||||
|
width: 600,
|
||||||
|
height: 600,
|
||||||
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "features" }]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
get template() {
|
||||||
|
return `systems/vermine2047/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
getData() {
|
||||||
|
// Retrieve the data structure from the base sheet. You can inspect or log
|
||||||
|
// the context variable to see the structure, but some key properties for
|
||||||
|
// sheets are the actor object, the data object, whether or not it's
|
||||||
|
// editable, the items array, and the effects array.
|
||||||
|
const context = super.getData();
|
||||||
|
|
||||||
|
// Use a safe clone of the actor data for further operations.
|
||||||
|
const actorData = this.actor.toObject(false);
|
||||||
|
|
||||||
|
// Add the actor's data to context.data for easier access, as well as flags.
|
||||||
|
context.system = actorData.system;
|
||||||
|
context.flags = actorData.flags;
|
||||||
|
context.config = CONFIG.VERMINE;
|
||||||
|
|
||||||
|
// Prepare character data and items.
|
||||||
|
if (actorData.type == 'character') {
|
||||||
|
this._prepareItems(context);
|
||||||
|
this._prepareCharacterData(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepare NPC data and items.
|
||||||
|
if (actorData.type == 'npc') {
|
||||||
|
this._prepareItems(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add roll data for TinyMCE editors.
|
||||||
|
context.rollData = context.actor.getRollData();
|
||||||
|
|
||||||
|
// Prepare active effects
|
||||||
|
context.effects = prepareActiveEffectCategories(this.actor.effects);
|
||||||
|
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organize and classify Items for Character sheets.
|
||||||
|
*
|
||||||
|
* @param {Object} actorData The actor to prepare.
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
_prepareCharacterData(context) {
|
||||||
|
// Handle ability scores.
|
||||||
|
for (let [k, v] of Object.entries(context.system.abilities)) {
|
||||||
|
v.label = game.i18n.localize(context.system.abilities[k].label) ?? k;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organize and classify Items for Character sheets.
|
||||||
|
*
|
||||||
|
* @param {Object} actorData The actor to prepare.
|
||||||
|
*
|
||||||
|
* @return {undefined}
|
||||||
|
*/
|
||||||
|
_prepareItems(context) {
|
||||||
|
// Initialize containers.
|
||||||
|
const gear = [];
|
||||||
|
const features = [];
|
||||||
|
const spells = {
|
||||||
|
0: [],
|
||||||
|
1: [],
|
||||||
|
2: [],
|
||||||
|
3: [],
|
||||||
|
4: [],
|
||||||
|
5: [],
|
||||||
|
6: [],
|
||||||
|
7: [],
|
||||||
|
8: [],
|
||||||
|
9: []
|
||||||
|
};
|
||||||
|
|
||||||
|
// Iterate through items, allocating to containers
|
||||||
|
for (let i of context.items) {
|
||||||
|
i.img = i.img || DEFAULT_TOKEN;
|
||||||
|
// Append to gear.
|
||||||
|
if (i.type === 'item') {
|
||||||
|
gear.push(i);
|
||||||
|
}
|
||||||
|
// Append to features.
|
||||||
|
else if (i.type === 'feature') {
|
||||||
|
features.push(i);
|
||||||
|
}
|
||||||
|
// Append to spells.
|
||||||
|
else if (i.type === 'spell') {
|
||||||
|
if (i.system.spellLevel != undefined) {
|
||||||
|
spells[i.system.spellLevel].push(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assign and return
|
||||||
|
context.gear = gear;
|
||||||
|
context.features = features;
|
||||||
|
context.spells = spells;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
activateListeners(html) {
|
||||||
|
super.activateListeners(html);
|
||||||
|
|
||||||
|
// Render the item sheet for viewing/editing prior to the editable check.
|
||||||
|
html.find('.item-edit').click(ev => {
|
||||||
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
|
const item = this.actor.items.get(li.data("itemId"));
|
||||||
|
item.sheet.render(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
// -------------------------------------------------------------
|
||||||
|
// Everything below here is only needed if the sheet is editable
|
||||||
|
if (!this.isEditable) return;
|
||||||
|
|
||||||
|
// Add Inventory Item
|
||||||
|
html.find('.item-create').click(this._onItemCreate.bind(this));
|
||||||
|
|
||||||
|
// Delete Inventory Item
|
||||||
|
html.find('.item-delete').click(ev => {
|
||||||
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
|
const item = this.actor.items.get(li.data("itemId"));
|
||||||
|
item.delete();
|
||||||
|
li.slideUp(200, () => this.render(false));
|
||||||
|
});
|
||||||
|
|
||||||
|
// Active Effect management
|
||||||
|
html.find(".effect-control").click(ev => onManageActiveEffect(ev, this.actor));
|
||||||
|
|
||||||
|
// Rollable abilities.
|
||||||
|
html.find('.rollable').click(this._onRoll.bind(this));
|
||||||
|
|
||||||
|
// Drag events for macros.
|
||||||
|
if (this.actor.isOwner) {
|
||||||
|
let handler = ev => this._onDragStart(ev);
|
||||||
|
html.find('li.item').each((i, li) => {
|
||||||
|
if (li.classList.contains("inventory-header")) return;
|
||||||
|
li.setAttribute("draggable", true);
|
||||||
|
li.addEventListener("dragstart", handler, false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle creating a new Owned Item for the actor using initial data defined in the HTML dataset
|
||||||
|
* @param {Event} event The originating click event
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
async _onItemCreate(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const header = event.currentTarget;
|
||||||
|
// Get the type of item to create.
|
||||||
|
const type = header.dataset.type;
|
||||||
|
// Grab any data associated with this control.
|
||||||
|
const data = duplicate(header.dataset);
|
||||||
|
// Initialize a default name.
|
||||||
|
const name = `New ${type.capitalize()}`;
|
||||||
|
// Prepare the item object.
|
||||||
|
const itemData = {
|
||||||
|
name: name,
|
||||||
|
type: type,
|
||||||
|
system: data
|
||||||
|
};
|
||||||
|
// Remove the type from the dataset since it's in the itemData.type prop.
|
||||||
|
delete itemData.system["type"];
|
||||||
|
|
||||||
|
// Finally, create the item!
|
||||||
|
return await Item.create(itemData, {parent: this.actor});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle clickable rolls.
|
||||||
|
* @param {Event} event The originating click event
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
_onRoll(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
const element = event.currentTarget;
|
||||||
|
const dataset = element.dataset;
|
||||||
|
|
||||||
|
// Handle item rolls.
|
||||||
|
if (dataset.rollType) {
|
||||||
|
if (dataset.rollType == 'item') {
|
||||||
|
const itemId = element.closest('.item').dataset.itemId;
|
||||||
|
const item = this.actor.items.get(itemId);
|
||||||
|
if (item) return item.roll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Handle rolls that supply the formula directly.
|
||||||
|
if (dataset.roll) {
|
||||||
|
let label = dataset.label ? `[ability] ${dataset.label}` : '';
|
||||||
|
let roll = new Roll(dataset.roll, this.actor.getRollData());
|
||||||
|
roll.toMessage({
|
||||||
|
speaker: ChatMessage.getSpeaker({ actor: this.actor }),
|
||||||
|
flavor: label,
|
||||||
|
rollMode: game.settings.get('core', 'rollMode'),
|
||||||
|
});
|
||||||
|
return roll;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -21,6 +21,12 @@
|
|||||||
"systems/vermine2047/templates/actor/parts/actor-stories.hbs",
|
"systems/vermine2047/templates/actor/parts/actor-stories.hbs",
|
||||||
"systems/vermine2047/templates/actor/parts/actor-effects.html",
|
"systems/vermine2047/templates/actor/parts/actor-effects.html",
|
||||||
|
|
||||||
|
// Group partials
|
||||||
|
"systems/vermine2047/templates/actor/parts/group-vehicles.hbs",
|
||||||
|
"systems/vermine2047/templates/actor/parts/group-info.hbs",
|
||||||
|
"systems/vermine2047/templates/actor/parts/group-items.hbs",
|
||||||
|
"systems/vermine2047/templates/actor/parts/group-experience.hbs",
|
||||||
|
|
||||||
// additional templates
|
// additional templates
|
||||||
"systems/vermine2047/templates/roll.hbs",
|
"systems/vermine2047/templates/roll.hbs",
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ export const registerHooks = function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// changement de la pause
|
// changement de la pause
|
||||||
/*Hooks.on("renderPause", async function () {
|
Hooks.on("renderPause", async function () {
|
||||||
if ($("#pause").attr("class") !== "paused") return;
|
if ($("#pause").attr("class") !== "paused") return;
|
||||||
$(".paused img").attr("src", 'systems/vermine2047/assets/images/ui/vermine_pause.webp');
|
$(".paused img").attr("src", 'systems/vermine2047/assets/images/ui/vermine_pause.webp');
|
||||||
$(".paused img").css({ "opacity": 1});
|
$(".paused img").css({ "opacity": 1});
|
||||||
$("#pause.paused figcaption").text("Communauté endormie...");
|
$("#pause.paused figcaption").text("Communauté endormie...");
|
||||||
});*/
|
});
|
||||||
|
|
||||||
// Hooks.on('renderChatLog', (log, html, data) => VermineFight.chatListeners(html));
|
// Hooks.on('renderChatLog', (log, html, data) => VermineFight.chatListeners(html));
|
||||||
// Hooks.on('renderChatMessage', (message, html, data) => VermineFight.chatMessageHandler(message, html, data));
|
// Hooks.on('renderChatMessage', (message, html, data) => VermineFight.chatMessageHandler(message, html, data));
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { VermineActor } from "./documents/actor.mjs";
|
|||||||
|
|
||||||
import { VermineCharacterSheet } from "./sheets/character-sheet.mjs";
|
import { VermineCharacterSheet } from "./sheets/character-sheet.mjs";
|
||||||
import { VermineNpcSheet } from "./sheets/npc-sheet.mjs";
|
import { VermineNpcSheet } from "./sheets/npc-sheet.mjs";
|
||||||
|
import { VermineGroupSheet } from "./sheets/npc-group.mjs";
|
||||||
import { VermineCreatureSheet } from "./sheets/creature-sheet.mjs";
|
import { VermineCreatureSheet } from "./sheets/creature-sheet.mjs";
|
||||||
|
|
||||||
import { VermineItem } from "./documents/item.mjs";
|
import { VermineItem } from "./documents/item.mjs";
|
||||||
@@ -65,6 +66,11 @@ Hooks.once('init', async function() {
|
|||||||
types: ['creature'],
|
types: ['creature'],
|
||||||
makeDefault: true,
|
makeDefault: true,
|
||||||
}); // Register vehicle Sheet
|
}); // Register vehicle Sheet
|
||||||
|
|
||||||
|
Actors.registerSheet('vermine2047', VermineGroupSheet, {
|
||||||
|
types: ['group'],
|
||||||
|
makeDefault: true,
|
||||||
|
}); // Register vehicle Sheet
|
||||||
Items.unregisterSheet("core", ItemSheet);
|
Items.unregisterSheet("core", ItemSheet);
|
||||||
Items.registerSheet("vermine2047", VermineItemSheet, { makeDefault: true });
|
Items.registerSheet("vermine2047", VermineItemSheet, { makeDefault: true });
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"id": "vermine2047",
|
"id": "vermine2047",
|
||||||
"title": "Vermine 2047",
|
"title": "Vermine 2047",
|
||||||
"description": "The Vermine 2047 system for FoundryVTT!",
|
"description": "The Vermine 2047 system for FoundryVTT!",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": 10,
|
"minimum": 10,
|
||||||
"verified": "10.287",
|
"verified": "10.287",
|
||||||
|
|||||||
+38
-4
@@ -25,7 +25,7 @@
|
|||||||
"identity": {
|
"identity": {
|
||||||
"height": 0,
|
"height": 0,
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
"vermine2047": "",
|
"totem": "",
|
||||||
"age": 15,
|
"age": 15,
|
||||||
"profile": "",
|
"profile": "",
|
||||||
"origin": "",
|
"origin": "",
|
||||||
@@ -346,6 +346,29 @@
|
|||||||
"max": 4
|
"max": 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"group": {
|
||||||
|
"templates": ["base"],
|
||||||
|
"identity": {
|
||||||
|
"totem": "",
|
||||||
|
"profile": "",
|
||||||
|
"origin": "",
|
||||||
|
"theme": "",
|
||||||
|
"instincts": "",
|
||||||
|
"prohibits": "",
|
||||||
|
"major_objectives": "",
|
||||||
|
"minor_objectives": "",
|
||||||
|
"notes": ""
|
||||||
|
},
|
||||||
|
"equipment": {
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"value": 1,
|
||||||
|
"min": 1,
|
||||||
|
"max": 3
|
||||||
|
},
|
||||||
|
"members": []
|
||||||
|
},
|
||||||
"creature": {
|
"creature": {
|
||||||
"templates": ["base"],
|
"templates": ["base"],
|
||||||
"age": 15,
|
"age": 15,
|
||||||
@@ -367,14 +390,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
"types": ["item", "weapon", "defense", "ability", "specialty", "trait", "background", "trauma", "evolution", "rumor"],
|
"types": ["item", "weapon", "defense", "vehicle", "ability", "specialty", "trait", "background", "trauma", "evolution", "rumor"],
|
||||||
"templates": {
|
"templates": {
|
||||||
"base": {
|
"base": {
|
||||||
"description": "",
|
"description": "",
|
||||||
"rarity":3,
|
"rarity":3,
|
||||||
"reliability":3,
|
"reliability":3,
|
||||||
"quantity": 1,
|
"quantity": 1,
|
||||||
"weight": 0
|
"weight": 0,
|
||||||
|
"traits": []
|
||||||
},
|
},
|
||||||
"list": {
|
"list": {
|
||||||
"description": ""
|
"description": ""
|
||||||
@@ -396,7 +420,14 @@
|
|||||||
"mobility":3
|
"mobility":3
|
||||||
},
|
},
|
||||||
"ability": {
|
"ability": {
|
||||||
"templates": ["list"]
|
"templates": ["list"],
|
||||||
|
"type": "character",
|
||||||
|
"level": {
|
||||||
|
"value": 1,
|
||||||
|
"min": 1,
|
||||||
|
"max": 3
|
||||||
|
},
|
||||||
|
"effects": []
|
||||||
},
|
},
|
||||||
"specialty": {
|
"specialty": {
|
||||||
"templates": ["list"]
|
"templates": ["list"]
|
||||||
@@ -405,6 +436,9 @@
|
|||||||
"templates": ["list"],
|
"templates": ["list"],
|
||||||
"level":0
|
"level":0
|
||||||
},
|
},
|
||||||
|
"vehicle": {
|
||||||
|
"templates": ["base"]
|
||||||
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"templates": ["list"]
|
"templates": ["list"]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<form class="{{cssClass}} {{actor.type}} flexcol" autocomplete="off">
|
||||||
|
|
||||||
|
{{!-- Sheet Header --}}
|
||||||
|
<header class="sheet-header">
|
||||||
|
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100"/>
|
||||||
|
<div class="header-fields">
|
||||||
|
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||||
|
{{!-- The grid classes are defined in scss/global/_grid.scss. To use,
|
||||||
|
use both the "grid" and "grid-Ncol" class where "N" can be any number
|
||||||
|
from 1 to 12 and will create that number of columns. --}}
|
||||||
|
<div class="resources grid grid-3col">
|
||||||
|
|
||||||
|
{{!-- "flex-group-center" is also defined in the _grid.scss file
|
||||||
|
and it will add a small amount of padding, a border, and will
|
||||||
|
center all of its child elements content and text. --}}
|
||||||
|
<div class="resource flex-group-center">
|
||||||
|
<label for="system.health.value" class="resource-label">Health</label>
|
||||||
|
<div class="resource-content flexrow flex-center flex-between">
|
||||||
|
<input type="text" name="system.health.value" value="{{system.health.value}}" data-dtype="Number"/>
|
||||||
|
<span> / </span>
|
||||||
|
<input type="text" name="system.health.max" value="{{system.health.max}}" data-dtype="Number"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="resource flex-group-center">
|
||||||
|
<label for="system.power.value" class="resource-label">Power</label>
|
||||||
|
<div class="resource-content flexrow flex-center flex-between">
|
||||||
|
<input type="text" name="system.power.value" value="{{system.power.value}}" data-dtype="Number"/>
|
||||||
|
<span> / </span>
|
||||||
|
<input type="text" name="system.power.max" value="{{system.power.max}}" data-dtype="Number"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="resource flex-group-center">
|
||||||
|
<label for="system.cr" class="resource-label">CR / XP</label>
|
||||||
|
<div class="resource-content flexrow flex-center flex-between">
|
||||||
|
<input type="text" name="system.cr" value="{{system.cr}}" data-dtype="Number"/>
|
||||||
|
<span> / </span>
|
||||||
|
<input type="text" disabled="true" name="system.xp" value="{{system.xp}}" data-dtype="Number"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{!-- Sheet Tab Navigation --}}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
{{!-- Default tab is specified in actor-sheet.mjs --}}
|
||||||
|
<a class="item" data-tab="description">{{localize 'VERMINE.information' }}</a>
|
||||||
|
<a class="item" data-tab="gear">{{localize 'VERMINE.gear' }}</a>
|
||||||
|
<a class="item" data-tab="totem">{{localize 'VERMINE.experience' }}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{!-- Sheet Body --}}
|
||||||
|
<section class="sheet-body">
|
||||||
|
|
||||||
|
{{!-- Biography Tab --}}
|
||||||
|
<div class="tab biography" data-group="primary" data-tab="description">
|
||||||
|
<h3>{{ localize 'VERMINE.information'}}</h3>
|
||||||
|
{{> "systems/vermine2047/templates/actor/parts/group-info.hbs"}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- Owned Items Tab --}}
|
||||||
|
<div class="tab items" data-group="primary" data-tab="gear">
|
||||||
|
<h3>{{ localize 'VERMINE.gear'}}</h3>
|
||||||
|
{{> "systems/vermine2047/templates/actor/parts/group-items.hbs"}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{!-- Active Effects Tab --}}
|
||||||
|
<div class="tab effects flexcol" data-group="primary" data-tab="totem">
|
||||||
|
<h3>{{ localize 'VERMINE.experience'}}</h3>
|
||||||
|
{{> "systems/vermine2047/templates/actor/parts/group-experience.hbs"}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
||||||
|
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
<div class="grid grid-3col">
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'VERMINE.boost'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each abilities as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'VERMINE.group_abilities'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each specialties as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'VERMINE.totem_abilities'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each backgrounds as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4 class="align-center">
|
||||||
|
{{ localize 'VERMINE.pool' }}
|
||||||
|
</h4>
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
<div class="grid grid-2col">
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'ITEMS.abilities'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each abilities as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'ITEMS.specialties'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each specialties as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'ITEMS.backgrounds'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each backgrounds as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'ITEMS.traumas'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each traumas as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'ITEMS.evolutions'}}</h4>
|
||||||
|
<ol class="list-item">
|
||||||
|
{{#each evolutions as |item id|}}
|
||||||
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-controls flexrow">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-eye"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
<div class="grid grid-2col">
|
||||||
|
<div>
|
||||||
|
<ol class="items-list">
|
||||||
|
<li class="item flexrow items-header">
|
||||||
|
<div class="item-name" style="flex:4;">{{ localize 'IDENTITY.name'}}</div>
|
||||||
|
<div class="item-quantity">{{ localize 'VERMINE.qty'}}</div>
|
||||||
|
<div class="item-weight">{{ localize 'VERMINE.weight'}}</div>
|
||||||
|
<div class="item-controls">
|
||||||
|
<a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{#each gear as |item id|}}
|
||||||
|
<li class="item flexrow flex-group-center" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<div class="item-image">
|
||||||
|
<a class="item-control item-edit" data-roll-type="item"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/></a>
|
||||||
|
</div>
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<p><a class="item-control item-edit" title="Edit Item">{{item.system.quantity}}</a></p>
|
||||||
|
<p><a class="item-control item-edit" title="Edit Item">{{item.system.weight}}</a></p>
|
||||||
|
<div class="item-controls">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>{{ localize 'IDENTITY.notes'}}</h4>
|
||||||
|
{{editor system.equipment.description target="system.equipment.description" button=true owner=owner editable=editable}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4>{{localize 'ITEMS.weapons'}}</h4>
|
||||||
|
{{> "systems/vermine2047/templates/actor/parts/actor-weapons.hbs"}}
|
||||||
|
<h4>{{localize 'ITEMS.defenses'}}</h4>
|
||||||
|
{{> "systems/vermine2047/templates/actor/parts/actor-defenses.hbs"}}
|
||||||
|
<h4>{{localize 'ITEMS.vehicles'}}</h4>
|
||||||
|
{{> "systems/vermine2047/templates/actor/parts/group-vehicles.hbs"}}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<ol class="items-list">
|
||||||
|
<li class="item flexrow items-header">
|
||||||
|
<div class="item-name" style="flex:4;">{{ localize 'IDENTITY.name'}}</div>
|
||||||
|
<div class="item-mobility">{{ localize 'VERMINE.mobility'}}</div>
|
||||||
|
<div class="item-rarity">{{ localize 'VERMINE.rarity'}}</div>
|
||||||
|
<div class="item-reliability">{{ localize 'VERMINE.reliability'}}</div>
|
||||||
|
<div class="item-controls">
|
||||||
|
<a class="item-control item-create" title="Create item" data-type="defense"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{#each vehicles as |item id|}}
|
||||||
|
<li class="item flexrow flex-group-center" data-item-id="{{item._id}}">
|
||||||
|
<div class="item-name" style="flex:4;">
|
||||||
|
<div class="item-image">
|
||||||
|
<a class="item-control item-edit" data-roll-type="item"><img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/></a>
|
||||||
|
</div>
|
||||||
|
<a class="item-control item-edit" title="Edit Item">{{item.name}}</a>
|
||||||
|
</div>
|
||||||
|
<p><a class="item-control item-edit" title="Edit Item">{{item.system.mobility}}</a></p>
|
||||||
|
<p><a class="item-control item-edit" title="Edit Item">{{item.system.rarity}}</a></p>
|
||||||
|
<p><a class="item-control item-edit" title="Edit Item">{{item.system.reliability}}</a></p>
|
||||||
|
<div class="item-controls">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
Reference in New Issue
Block a user