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 sass = require('gulp-sass')(require('sass'));
|
||||
const zip = require('gulp-zip');
|
||||
const { compile } = require('sass');
|
||||
|
||||
/* ----------------------------------------- */
|
||||
/* Compile Sass
|
||||
@ -37,7 +38,7 @@ const css = gulp.series(compileScss);
|
||||
/* ----------------------------------------- */
|
||||
|
||||
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;
|
||||
export default class Stat extends foundry.abstract.DataModel
|
||||
{
|
||||
|
||||
static defineSchema() {
|
||||
return {
|
||||
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})
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class Modifier extends foundry.abstract.DataModel
|
||||
|
@ -22,17 +22,11 @@ export default class PlayerCharacter extends ActorGeneral
|
||||
}
|
||||
|
||||
prepareBaseData() {
|
||||
super.prepareBaseData();
|
||||
let effectsToApply = this.gatherEffects();
|
||||
|
||||
effectsToApply.forEach(element => {
|
||||
switch (element.statID) {
|
||||
case value:
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
console.log(element);
|
||||
})
|
||||
}
|
||||
|
||||
|
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,
|
||||
"verified": 12
|
||||
},
|
||||
"esmodules": ["modules/kidsonbrooms.mjs"],
|
||||
"esmodules": ["kidsonbrooms.mjs"],
|
||||
"authors": [{
|
||||
"name": "Joscha Maier",
|
||||
"url": "https://github.com/josmaier"
|
||||
}],
|
||||
"documentTypes": {
|
||||
"Actor": {
|
||||
"playerCharacter": {
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
"languages": [{
|
||||
"lang": "en",
|
||||
"name": "English",
|
||||
@ -23,8 +30,11 @@
|
||||
"url": "https://gitlab.com/wintermyst/kidsonbrooms",
|
||||
"manifest": "https://your/hosted/system/repo/system.json",
|
||||
"download": "https://your/packaged/download/archive.zip",
|
||||
"gridDistance": 5,
|
||||
"gridUnits": "ft",
|
||||
"grid:": {
|
||||
"type": 1,
|
||||
"distance": 5,
|
||||
"units": "ft"
|
||||
},
|
||||
"relationships": {
|
||||
"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