11 Commits
1.1.2 ... 1.1.3

Author SHA1 Message Date
863236d478 JAVASCRIPT 2024-09-26 13:51:27 +02:00
34238b7dc9 gfd 2024-09-26 13:48:30 +02:00
ef50b84dba rg 2024-09-26 13:44:40 +02:00
6e69dd8681 dfgbhe 2024-09-26 13:42:11 +02:00
e83c7b8ee0 fff 2024-09-26 13:38:38 +02:00
aa7a951ae1 sdfg 2024-09-26 13:25:08 +02:00
004143280b jsjsjsjsjsjs 2024-09-26 12:48:40 +02:00
dcdd9af271 fuck js 2024-09-26 12:45:40 +02:00
bef8d4bf7e asd 2024-09-26 12:43:25 +02:00
0c670b82b6 Merge branch 'old-system' into 'master'
1.1.3

See merge request wintermyst/kidsonbrooms!5
2024-09-26 10:33:53 +00:00
428b82e388 1.1.3 2024-09-26 10:33:53 +00:00
6 changed files with 82 additions and 12 deletions

View File

@ -4,7 +4,7 @@ const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass')(require('sass'));
const zip = require('gulp-zip');
const fs = require('fs');
const fetch = import('node-fetch');
const fetch = require('node-fetch');
const replace = require('gulp-replace');
const FormData = require('form-data');
@ -259,7 +259,7 @@ async function uploadToPackageRegistry(done) {
/* Publish to FoundryVTT
/* ----------------------------------------- */
function publishToFoundry(done) {
async function publishToFoundry(done) {
const moduleManifestPath = 'system.json';
const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath));
@ -281,7 +281,7 @@ function publishToFoundry(done) {
// Construct the payload
const payload = {
id: id,
id: "kidsonbrooms",
release: {
version: version,
manifest: manifest,
@ -299,7 +299,7 @@ function publishToFoundry(done) {
}
// Send the POST request to Foundry VTT API
const response = fetch('https://api.foundryvtt.com/_api/packages/release', {
const response = await fetch('https://api.foundryvtt.com/_api/packages/release_version', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@ -308,9 +308,9 @@ function publishToFoundry(done) {
body: JSON.stringify(payload),
});
const responseData = response.json();
const responseData = await response.text();
if (responseData.status === 'success') {
if (responseData.includes('success')) {
console.log('Successfully published to Foundry VTT:');
console.log(JSON.stringify(responseData, null, 2));
done();

View File

@ -8,7 +8,7 @@ export class KidsOnBroomsActorSheet extends ActorSheet {
static get defaultOptions()
{
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["kids-on-brooms", "sheet", "actor"],
classes: ["kidsonbrooms", "sheet", "actor"],
width: 800,
height: 800,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "features" }]
@ -19,7 +19,7 @@ export class KidsOnBroomsActorSheet extends ActorSheet {
get template()
{
console.log("template", this.actor)
return `systems/kids-on-brooms/templates/actor/actor-${this.actor.type}-sheet.html`;
return `systems/kidsonbrooms/templates/actor/actor-${this.actor.type}-sheet.html`;
}
/* -------------------------------------------- */

View File

@ -1,6 +1,6 @@
{
"name": "kidsonbrooms",
"version": "1.1.2",
"version": "1.1.3",
"description": "CSS compiler for the Kids On Brooms system",
"scripts": {
"build": "gulp build",
@ -23,7 +23,7 @@
"gulp-sourcemaps": "^2.6.5",
"gulp-zip": "^5.0.1",
"kidsonbrooms": "file:",
"node-fetch": "^3.3.2"
"node-fetch": "^2.7.0"
},
"devDependencies": {
"sass": "^1.79.1"

View File

@ -1,3 +1,5 @@
The Kids On Brooms System Implemented in FoundryVTT
To get support create a issue on this Repository
To get support create a issue on this Repository or join my discord:
https://discord.gg/4sTXjxs5Yv

View File

@ -2,7 +2,7 @@
"id": "kidsonbrooms",
"title": "Kids on Brooms System",
"description": "The Kids on Brooms system for FoundryVTT!",
"version": "1.1.2",
"version": "1.1.3",
"compatibility": {
"minimum": 12,
"verified": 12.331

68
template.json Normal file
View File

@ -0,0 +1,68 @@
{
"Actor": {
"types": ["character", "npc"],
"templates": {
"base": {
"stats": {
"fight": {
"value": "d4",
"stat": 0,
"magic": 0
},
"flight": {
"value": "d4",
"stat": 0,
"magic": 0
},
"brains": {
"value": "d4",
"stat": 0,
"magic": 0
},
"brawn": {
"value": "d4",
"stat": 0,
"magic": 0
},
"charm": {
"value": "d4",
"stat": 0,
"magic": 0
},
"grit": {
"value": "d4",
"stat": 0,
"magic": 0
}
},
"description": ""
}
},
"character": {
"templates": ["base"],
"trope": "",
"age": "",
"pronouns": "",
"fear": "",
"motivation": "",
"grade":"",
"broom": {
"name": "",
"look": "",
"mechanicalbenifit": ""
},
"wand": {
"wood": "",
"core": ""
},
"animalfamiliar":"",
"schoolbag": "",
"adversityTokens": 0,
"tropequestions": "",
"strengths": ""
},
"npc": {
"templates": ["base"]
}
}
}