I hate this software and documentation

This commit is contained in:
Joscha Maier 2024-10-07 14:12:05 +02:00
parent 8da6565aae
commit 54798bd300
No known key found for this signature in database
GPG Key ID: 8C4D045D84A30ABA
9 changed files with 54 additions and 19 deletions

View File

@ -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());
}
/* ----------------------------------------- */

View File

@ -1,8 +1,2 @@
{
"KIDSONBROOMS.EffectCreate": "Create Effect",
"KIDSONBROOMS.EffectToggle": "Toggle Effect",
"KIDSONBROOMS.EffectEdit": "Edit Effect",
"KIDSONBROOMS.EffectDelete": "Delete Effect",
"KIDSONBROOMS.Add": "Add"
}

View File

@ -22,4 +22,8 @@ export default class ActorGeneral extends foundry.abstract.TypeDataModel
}),
}
}
prepareDerivedData() {
super.prepareDerivedData();
}
}

View File

@ -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

View File

@ -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);
})
}

View File

View 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`;
}
}

View File

@ -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"
}

View 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>