I hate this software and documentation
This commit is contained in:
parent
8da6565aae
commit
54798bd300
@ -3,6 +3,7 @@ const prefix = require('gulp-autoprefixer');
|
|||||||
const sourcemaps = require('gulp-sourcemaps');
|
const sourcemaps = require('gulp-sourcemaps');
|
||||||
const sass = require('gulp-sass')(require('sass'));
|
const sass = require('gulp-sass')(require('sass'));
|
||||||
const zip = require('gulp-zip');
|
const zip = require('gulp-zip');
|
||||||
|
const { compile } = require('sass');
|
||||||
|
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
/* Compile Sass
|
/* Compile Sass
|
||||||
@ -37,7 +38,7 @@ const css = gulp.series(compileScss);
|
|||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
|
||||||
function watchUpdates() {
|
function watchUpdates() {
|
||||||
gulp.watch(SYSTEM_SCSS, css);
|
gulp.watch(SYSTEM_SCSS, compileScss());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
@ -1,8 +1,2 @@
|
|||||||
{
|
{
|
||||||
"KIDSONBROOMS.EffectCreate": "Create Effect",
|
|
||||||
"KIDSONBROOMS.EffectToggle": "Toggle Effect",
|
|
||||||
"KIDSONBROOMS.EffectEdit": "Edit Effect",
|
|
||||||
"KIDSONBROOMS.EffectDelete": "Delete Effect",
|
|
||||||
|
|
||||||
"KIDSONBROOMS.Add": "Add"
|
|
||||||
}
|
}
|
@ -22,4 +22,8 @@ export default class ActorGeneral extends foundry.abstract.TypeDataModel
|
|||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prepareDerivedData() {
|
||||||
|
super.prepareDerivedData();
|
||||||
|
}
|
||||||
}
|
}
|
@ -4,6 +4,7 @@
|
|||||||
const fields = foundry.data.fields;
|
const fields = foundry.data.fields;
|
||||||
export default class Stat extends foundry.abstract.DataModel
|
export default class Stat extends foundry.abstract.DataModel
|
||||||
{
|
{
|
||||||
|
|
||||||
static defineSchema() {
|
static defineSchema() {
|
||||||
return {
|
return {
|
||||||
id: new fields.StringField({ required: true, initial: "statID"}),
|
id: new fields.StringField({ required: true, initial: "statID"}),
|
||||||
@ -13,6 +14,7 @@ export default class Stat extends foundry.abstract.DataModel
|
|||||||
modifier: new fields.NumberField({required: true, integer: true, initial: 0})
|
modifier: new fields.NumberField({required: true, integer: true, initial: 0})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Modifier extends foundry.abstract.DataModel
|
export class Modifier extends foundry.abstract.DataModel
|
||||||
|
@ -22,17 +22,11 @@ export default class PlayerCharacter extends ActorGeneral
|
|||||||
}
|
}
|
||||||
|
|
||||||
prepareBaseData() {
|
prepareBaseData() {
|
||||||
|
super.prepareBaseData();
|
||||||
let effectsToApply = this.gatherEffects();
|
let effectsToApply = this.gatherEffects();
|
||||||
|
|
||||||
effectsToApply.forEach(element => {
|
effectsToApply.forEach(element => {
|
||||||
switch (element.statID) {
|
console.log(element);
|
||||||
case value:
|
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
0
modules/sheets/_system.mjs
Normal file
0
modules/sheets/_system.mjs
Normal file
24
modules/sheets/actor-sheet.mjs
Normal file
24
modules/sheets/actor-sheet.mjs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
const {api, sheet} = foundry.applications;
|
||||||
|
|
||||||
|
|
||||||
|
export default class BaseActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorSheetV2) {
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
static get defaultOptions()
|
||||||
|
{
|
||||||
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
|
classes: ["kidsonbrooms", "sheet", "actor"],
|
||||||
|
width: 800,
|
||||||
|
height: 800,
|
||||||
|
tabs: [{}]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
get template()
|
||||||
|
{
|
||||||
|
console.log("template", this.actor)
|
||||||
|
return `systems/kidsonbrooms/templates/actor/actor-sheet-{$this.actor.type}.html`;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
19
system.json
19
system.json
@ -7,11 +7,18 @@
|
|||||||
"minimum": 12,
|
"minimum": 12,
|
||||||
"verified": 12
|
"verified": 12
|
||||||
},
|
},
|
||||||
"esmodules": ["modules/kidsonbrooms.mjs"],
|
"esmodules": ["kidsonbrooms.mjs"],
|
||||||
"authors": [{
|
"authors": [{
|
||||||
"name": "Joscha Maier",
|
"name": "Joscha Maier",
|
||||||
"url": "https://github.com/josmaier"
|
"url": "https://github.com/josmaier"
|
||||||
}],
|
}],
|
||||||
|
"documentTypes": {
|
||||||
|
"Actor": {
|
||||||
|
"playerCharacter": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"languages": [{
|
"languages": [{
|
||||||
"lang": "en",
|
"lang": "en",
|
||||||
"name": "English",
|
"name": "English",
|
||||||
@ -23,8 +30,11 @@
|
|||||||
"url": "https://gitlab.com/wintermyst/kidsonbrooms",
|
"url": "https://gitlab.com/wintermyst/kidsonbrooms",
|
||||||
"manifest": "https://your/hosted/system/repo/system.json",
|
"manifest": "https://your/hosted/system/repo/system.json",
|
||||||
"download": "https://your/packaged/download/archive.zip",
|
"download": "https://your/packaged/download/archive.zip",
|
||||||
"gridDistance": 5,
|
"grid:": {
|
||||||
"gridUnits": "ft",
|
"type": 1,
|
||||||
|
"distance": 5,
|
||||||
|
"units": "ft"
|
||||||
|
},
|
||||||
"relationships": {
|
"relationships": {
|
||||||
"requires": [
|
"requires": [
|
||||||
{
|
{
|
||||||
@ -36,5 +46,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"primaryTokenAttribute": "system.adversityTokens"
|
||||||
}
|
}
|
||||||
|
5
templates/actor/actor-sheet-pc.html
Normal file
5
templates/actor/actor-sheet-pc.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<section class="sheet-header flexcol"></section>
|
||||||
|
<header class="title flexrow">
|
||||||
|
<input class="charname" name="name" type="text" value="{{source.name}}" placeholder="Actor Name">
|
||||||
|
</div>
|
||||||
|
</section>
|
Loading…
Reference in New Issue
Block a user