Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
863236d478 | |||
34238b7dc9 | |||
ef50b84dba | |||
6e69dd8681 | |||
e83c7b8ee0 | |||
aa7a951ae1 | |||
004143280b | |||
dcdd9af271 | |||
bef8d4bf7e | |||
0c670b82b6 | |||
428b82e388 |
12
gulpfile.js
12
gulpfile.js
@ -4,7 +4,7 @@ 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 fs = require('fs');
|
const fs = require('fs');
|
||||||
const fetch = import('node-fetch');
|
const fetch = require('node-fetch');
|
||||||
const replace = require('gulp-replace');
|
const replace = require('gulp-replace');
|
||||||
const FormData = require('form-data');
|
const FormData = require('form-data');
|
||||||
|
|
||||||
@ -259,7 +259,7 @@ async function uploadToPackageRegistry(done) {
|
|||||||
/* Publish to FoundryVTT
|
/* Publish to FoundryVTT
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
|
||||||
function publishToFoundry(done) {
|
async function publishToFoundry(done) {
|
||||||
const moduleManifestPath = 'system.json';
|
const moduleManifestPath = 'system.json';
|
||||||
const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath));
|
const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath));
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ function publishToFoundry(done) {
|
|||||||
|
|
||||||
// Construct the payload
|
// Construct the payload
|
||||||
const payload = {
|
const payload = {
|
||||||
id: id,
|
id: "kidsonbrooms",
|
||||||
release: {
|
release: {
|
||||||
version: version,
|
version: version,
|
||||||
manifest: manifest,
|
manifest: manifest,
|
||||||
@ -299,7 +299,7 @@ function publishToFoundry(done) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send the POST request to Foundry VTT API
|
// 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',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@ -308,9 +308,9 @@ function publishToFoundry(done) {
|
|||||||
body: JSON.stringify(payload),
|
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('Successfully published to Foundry VTT:');
|
||||||
console.log(JSON.stringify(responseData, null, 2));
|
console.log(JSON.stringify(responseData, null, 2));
|
||||||
done();
|
done();
|
||||||
|
@ -8,7 +8,7 @@ export class KidsOnBroomsActorSheet extends ActorSheet {
|
|||||||
static get defaultOptions()
|
static get defaultOptions()
|
||||||
{
|
{
|
||||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
classes: ["kids-on-brooms", "sheet", "actor"],
|
classes: ["kidsonbrooms", "sheet", "actor"],
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 800,
|
height: 800,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "features" }]
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "features" }]
|
||||||
@ -19,7 +19,7 @@ export class KidsOnBroomsActorSheet extends ActorSheet {
|
|||||||
get template()
|
get template()
|
||||||
{
|
{
|
||||||
console.log("template", this.actor)
|
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`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "kidsonbrooms",
|
"name": "kidsonbrooms",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"description": "CSS compiler for the Kids On Brooms system",
|
"description": "CSS compiler for the Kids On Brooms system",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
@ -23,7 +23,7 @@
|
|||||||
"gulp-sourcemaps": "^2.6.5",
|
"gulp-sourcemaps": "^2.6.5",
|
||||||
"gulp-zip": "^5.0.1",
|
"gulp-zip": "^5.0.1",
|
||||||
"kidsonbrooms": "file:",
|
"kidsonbrooms": "file:",
|
||||||
"node-fetch": "^3.3.2"
|
"node-fetch": "^2.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"sass": "^1.79.1"
|
"sass": "^1.79.1"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
The Kids On Brooms System Implemented in FoundryVTT
|
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
|
@ -2,7 +2,7 @@
|
|||||||
"id": "kidsonbrooms",
|
"id": "kidsonbrooms",
|
||||||
"title": "Kids on Brooms System",
|
"title": "Kids on Brooms System",
|
||||||
"description": "The Kids on Brooms system for FoundryVTT!",
|
"description": "The Kids on Brooms system for FoundryVTT!",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": 12,
|
"minimum": 12,
|
||||||
"verified": 12.331
|
"verified": 12.331
|
||||||
|
68
template.json
Normal file
68
template.json
Normal 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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user