from totem to vermine - v0.0.12
This commit is contained in:
@@ -4,13 +4,13 @@ import {onManageActiveEffect, prepareActiveEffectCategories} from "../system/eff
|
||||
* Extend the basic ActorSheet with some very simple modifications
|
||||
* @extends {ActorSheet}
|
||||
*/
|
||||
export class TotemActorSheet extends ActorSheet {
|
||||
export class VermineActorSheet extends ActorSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["totem", "sheet", "actor"],
|
||||
template: "systems/totem/templates/actor/actor-sheet.html",
|
||||
classes: ["vermine2047", "sheet", "actor"],
|
||||
template: "systems/vermine2047/templates/actor/actor-sheet.html",
|
||||
height: 820,
|
||||
width: 690,
|
||||
resizable: false,
|
||||
@@ -20,7 +20,7 @@ export class TotemActorSheet extends ActorSheet {
|
||||
|
||||
/** @override */
|
||||
get template() {
|
||||
return `systems/totem/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||
return `systems/vermine2047/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@@ -39,7 +39,7 @@ export class TotemActorSheet extends ActorSheet {
|
||||
// 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.TOTEM;
|
||||
context.config = CONFIG.VERMINE;
|
||||
|
||||
// Prepare character data and items.
|
||||
if (actorData.type == 'character') {
|
||||
@@ -176,7 +176,7 @@ export class TotemActorSheet extends ActorSheet {
|
||||
context.traumas = traumas;
|
||||
context.backgrounds = backgrounds;
|
||||
context.rumors = rumors;
|
||||
console.log("context", context);
|
||||
// console.log("context", context);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import {onManageActiveEffect, prepareActiveEffectCategories} from "../system/effects.mjs";
|
||||
import { TotemActorSheet } from "./actor-sheet.mjs";
|
||||
import { VermineActorSheet } from "./actor-sheet.mjs";
|
||||
import { getRollBox } from "../system/dialogs.mjs";
|
||||
|
||||
/**
|
||||
* Extend the basic ActorSheet with some very simple modifications
|
||||
* @extends {TotemActorSheet}
|
||||
* @extends {VermineActorSheet}
|
||||
*/
|
||||
export class TotemCharacterSheet extends TotemActorSheet {
|
||||
export class VermineCharacterSheet extends VermineActorSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["totem", "sheet", "actor"],
|
||||
template: "systems/totem/templates/actor/actor-sheet.html",
|
||||
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" }]
|
||||
@@ -21,7 +21,7 @@ export class TotemCharacterSheet extends TotemActorSheet {
|
||||
|
||||
/** @override */
|
||||
get template() {
|
||||
return `systems/totem/templates/actor/actor-character-sheet.html`;
|
||||
return `systems/vermine2047/templates/actor/actor-character-sheet.html`;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@@ -40,7 +40,7 @@ export class TotemCharacterSheet extends TotemActorSheet {
|
||||
// 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.TOTEM;
|
||||
context.config = CONFIG.VERMINE;
|
||||
|
||||
// Prepare character data and items.
|
||||
if (actorData.type == 'character') {
|
||||
@@ -221,7 +221,7 @@ export class TotemCharacterSheet extends TotemActorSheet {
|
||||
/*const label = game.i18n.localize(dataset.label) ? `[ability] ${game.i18n.localize(dataset.label)}` : '';
|
||||
console.log($(element).attr('for'));
|
||||
const NoD = this.actor.system.skills[$(element).attr('for').split('.')[2]]?.value || 0
|
||||
return game.totem.TotemRoll.roll(this.actor.id, label, NoD, 0, {});*/
|
||||
return game.vermine2047.VermineRoll.roll(this.actor.id, label, NoD, 0, {});*/
|
||||
let data = {
|
||||
actorId: this.actor.id,
|
||||
label: game.i18n.localize(dataset.label)
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import {onManageActiveEffect, prepareActiveEffectCategories} from "../system/effects.mjs";
|
||||
import { TotemActorSheet } from "./actor-sheet.mjs";
|
||||
import { VermineActorSheet } from "./actor-sheet.mjs";
|
||||
|
||||
/**
|
||||
* Extend the basic ActorSheet with some very simple modifications
|
||||
* @extends {ActorSheet}
|
||||
*/
|
||||
export class TotemCreatureSheet extends ActorSheet {
|
||||
export class VermineCreatureSheet extends ActorSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["totem", "sheet", "actor"],
|
||||
template: "systems/totem/templates/actor/actor-sheet.html",
|
||||
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" }]
|
||||
@@ -20,7 +20,7 @@ export class TotemCreatureSheet extends ActorSheet {
|
||||
|
||||
/** @override */
|
||||
get template() {
|
||||
return `systems/totem/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||
return `systems/vermine2047/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@@ -39,7 +39,7 @@ export class TotemCreatureSheet extends ActorSheet {
|
||||
// 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.TOTEM;
|
||||
context.config = CONFIG.VERMINE;
|
||||
|
||||
// Prepare character data and items.
|
||||
if (actorData.type == 'character') {
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
* Extend the basic ItemSheet with some very simple modifications
|
||||
* @extends {ItemSheet}
|
||||
*/
|
||||
export class TotemItemSheet extends ItemSheet {
|
||||
export class VermineItemSheet extends ItemSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["totem", "sheet", "item"],
|
||||
classes: ["vermine2047", "sheet", "item"],
|
||||
width: 520,
|
||||
height: 480,
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }]
|
||||
@@ -16,7 +16,7 @@ export class TotemItemSheet extends ItemSheet {
|
||||
|
||||
/** @override */
|
||||
get template() {
|
||||
const path = "systems/totem/templates/item";
|
||||
const path = "systems/vermine2047/templates/item";
|
||||
// Return a single sheet for all item types.
|
||||
// return `${path}/item-sheet.html`;
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import {onManageActiveEffect, prepareActiveEffectCategories} from "../system/effects.mjs";
|
||||
import { TotemActorSheet } from "./actor-sheet.mjs";
|
||||
import { VermineActorSheet } from "./actor-sheet.mjs";
|
||||
|
||||
/**
|
||||
* Extend the basic ActorSheet with some very simple modifications
|
||||
* @extends {TotemActorSheet}
|
||||
* @extends {VermineActorSheet}
|
||||
*/
|
||||
export class TotemNpcSheet extends TotemActorSheet {
|
||||
export class VermineNpcSheet extends VermineActorSheet {
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["totem", "sheet", "actor"],
|
||||
template: "systems/totem/templates/actor/actor-sheet.html",
|
||||
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" }]
|
||||
@@ -20,7 +20,7 @@ export class TotemNpcSheet extends TotemActorSheet {
|
||||
|
||||
/** @override */
|
||||
get template() {
|
||||
return `systems/totem/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||
return `systems/vermine2047/templates/actor/actor-${this.actor.type}-sheet.html`;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@@ -39,7 +39,7 @@ export class TotemNpcSheet extends TotemActorSheet {
|
||||
// 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.TOTEM;
|
||||
context.config = CONFIG.VERMINE;
|
||||
|
||||
// Prepare character data and items.
|
||||
if (actorData.type == 'character') {
|
||||
|
||||
Reference in New Issue
Block a user