diff --git a/css/kidsonbrooms.css.map b/css/kidsonbrooms.css.map deleted file mode 100644 index a29835b..0000000 --- a/css/kidsonbrooms.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sourceRoot":"","sources":["../scss/kidsonbrooms.scss","../scss/global/_base.scss","../scss/global/_window.scss","../scss/utils/_typography.scss","../scss/global/_grid.scss","../scss/global/_flex.scss","../scss/utils/_mixins.scss","../scss/utils/_variables.scss","../scss/components/_forms.scss","../scss/utils/_colors.scss","../scss/components/_resource.scss","../scss/components/_items.scss","../scss/components/_effects.scss"],"names":[],"mappings":"AACQ;AASR;ACTQ;ACDR;EACE,aCDa;;;ADKb;EAEE;EACA;EACA;;;AERJ;EACE;EACA;EACA;EACA;;;AAKA;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;ACrBJ;ECkBE;EACA,gBDlBiB;ECmBjB,WDnByB;ECoBzB,iBAJkD;EAKlD,aALsE;EDftE;;;AAGF;ECaE;EACA,gBDbiB;ECcjB,WDd6B;ECe7B,iBAJkD;EAKlD,aALsE;EDVtE;;;AAGF;ECQE;EACA,gBDRiB;ECSjB,WDT2B;ECU3B,iBAJkD;EAKlD,aALsE;EDLtE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAIF;ECVE;EACA,gBDUiB;ECTjB,WDS6B;ECR7B,iBAJkD;EAKlD,aALsE;EDatE;;;AAGF;ECfE;EACA,gBDeiB;ECdjB,WDc2B;ECb3B,iBAJkD;EAKlD,aALsE;EDkBtE;;;AAGF;ECpBE;EACA,gBDoBiB;ECnBjB,WDmByB;EClBzB,iBAJkD;EAKlD,aALsE;EDuBtE;;;AAIF;EACE;EACA;EACA;;;AJ7CF;EACE,aMEW;;;ANEX;EAEE;EACA;EACA;;;ADIJ;AQhBA;EACE,aLDa;;AKIf;EFeE;EACA,gBEfiB;EFgBjB,WEhBsB;EFiBtB,iBEjB4B;EFkB5B,aALsE;EEZtE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAKN;EACE;EACA;;AAGF;EACE;;AAGF;AAAA;AAAA;EAGE;;AAIA;EACE,YCnDM;;ADsDR;EACE;;AAKJ;EACE;EACA;EACA;EACA;;AEhEF;EACE;;ACAF;EACE;EACA;EACA;EACA;EACA;EACA,QJHc;EIId;;AAEA;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA,OFxBM;;AE2BN;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA,OFvDG;;AEyDH;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAMN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;EACA;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA,QJrGc;EIsGd;;AAEA;EACE;EACA;;AAGF;EACE;EACA;;AAKJ;EACE;EACA;;ACzHA;AAAA;AAAA;EAGE;EACA;EACA;EACA;;AAGF;EACE;;AAKJ;AAAA;AAAA;EAGE;EACA,cHVmB","file":"kidsonbrooms.css"} \ No newline at end of file diff --git a/css/kidsonbrooms.css b/css/never-stop-blowing-up.css similarity index 80% rename from css/kidsonbrooms.css rename to css/never-stop-blowing-up.css index 0316024..482734f 100644 --- a/css/kidsonbrooms.css +++ b/css/never-stop-blowing-up.css @@ -5,6 +5,10 @@ font-family: "Roboto", sans-serif; } +.window-app .window-content > * { + flex:0; +} + .rollable:hover, .rollable:focus { color: #000; text-shadow: 0 0 10px rgb(146, 0, 225); @@ -316,10 +320,11 @@ } /* Styles limited to kidsonbrooms sheets */ -.kids-on-brooms .item-form { +.fvtt-never-stop-blowing-up .item-form { font-family: "Roboto", sans-serif; } -.kids-on-brooms .sheet-header { + +.fvtt-never-stop-blowing-up .sheet-header { display: -webkit-box; display: -ms-flexbox; display: flex; @@ -342,50 +347,51 @@ margin-bottom: 10px; height: 110px; } -.kids-on-brooms .sheet-header .profile-img { + +.fvtt-never-stop-blowing-up .sheet-header .profile-img { -webkit-box-flex: 0; -ms-flex: 0 0 100px; flex: 0 0 100px; height: 100px; margin-right: 10px; } -.kids-on-brooms .sheet-header .header-fields { +.fvtt-never-stop-blowing-up .sheet-header .header-fields { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; } -.kids-on-brooms .sheet-header h1.charname { +.fvtt-never-stop-blowing-up .sheet-header h1.charname { height: 50px; padding: 0; margin: 5px 0; border-bottom: 0; } -.kids-on-brooms .sheet-header h1.charname input { +.fvtt-never-stop-blowing-up .sheet-header h1.charname input { width: 100%; height: 100%; margin: 0; } -.kids-on-brooms div.editor-border { +.fvtt-never-stop-blowing-up div.editor-border { border: 2px solid rgb(81, 81, 81); border-radius: 10px; } -.kids-on-brooms .sheet-tabs { +.fvtt-never-stop-blowing-up .sheet-tabs { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; } -.kids-on-brooms .sheet-body, -.kids-on-brooms .sheet-body .tab, -.kids-on-brooms .sheet-body .tab .editor { +.fvtt-never-stop-blowing-up .sheet-body, +.fvtt-never-stop-blowing-up .sheet-body .tab, +.fvtt-never-stop-blowing-up .sheet-body .tab .editor { height: 100%; } -.kids-on-brooms .tox .tox-editor-container { +.fvtt-never-stop-blowing-up .tox .tox-editor-container { background: #fff; } -.kids-on-brooms .tox .tox-edit-area { +.fvtt-never-stop-blowing-up .tox .tox-edit-area { padding: 0 8px; } -.kids-on-brooms .selection-row { +.fvtt-never-stop-blowing-up .selection-row { display: -webkit-box; display: -ms-flexbox; display: flex; @@ -397,10 +403,10 @@ align-items: center; margin-bottom: 10px; } -.kids-on-brooms .resource-label { +.fvtt-never-stop-blowing-up .resource-label { font-weight: bold; } -.kids-on-brooms .items-header { +.fvtt-never-stop-blowing-up .items-header { height: 28px; margin: 2px 0; padding: 0; @@ -411,11 +417,11 @@ border: 2px groove #eeede0; font-weight: bold; } -.kids-on-brooms .items-header > * { +.fvtt-never-stop-blowing-up .items-header > * { font-size: 14px; text-align: center; } -.kids-on-brooms .items-header .item-name { +.fvtt-never-stop-blowing-up .items-header .item-name { font-weight: bold; padding-left: 5px; text-align: left; @@ -423,7 +429,7 @@ display: -ms-flexbox; display: flex; } -.kids-on-brooms .items-list { +.fvtt-never-stop-blowing-up .items-list { list-style: none; margin: 0; padding: 0; @@ -431,12 +437,12 @@ scrollbar-width: thin; color: #444; } -.kids-on-brooms .items-list .item-list { +.fvtt-never-stop-blowing-up .items-list .item-list { list-style: none; margin: 0; padding: 0; } -.kids-on-brooms .items-list .item { +.fvtt-never-stop-blowing-up .items-list .item { display: -webkit-box; display: -ms-flexbox; display: flex; @@ -446,10 +452,10 @@ padding: 0 2px; border-bottom: 1px solid #c9c7b8; } -.kids-on-brooms .items-list .item:last-child { +.fvtt-never-stop-blowing-up .items-list .item:last-child { border-bottom: none; } -.kids-on-brooms .items-list .item .item-name { +.fvtt-never-stop-blowing-up .items-list .item .item-name { -webkit-box-flex: 2; -ms-flex: 2; flex: 2; @@ -462,12 +468,12 @@ display: flex; color: #191813; } -.kids-on-brooms .items-list .item .item-name h3, .kids-on-brooms .items-list .item .item-name h4 { +.fvtt-never-stop-blowing-up .items-list .item .item-name h3, .fvtt-never-stop-blowing-up .items-list .item .item-name h4 { margin: 0; white-space: nowrap; overflow-x: hidden; } -.kids-on-brooms .items-list .item .item-name .item-image { +.fvtt-never-stop-blowing-up .items-list .item .item-name .item-image { -webkit-box-flex: 0; -ms-flex: 0 0 30px; flex: 0 0 30px; @@ -476,7 +482,7 @@ border: none; margin-right: 5px; } -.kids-on-brooms .items-list .item-controls { +.fvtt-never-stop-blowing-up .items-list .item-controls { display: -webkit-box; display: -ms-flexbox; display: flex; @@ -487,18 +493,18 @@ -ms-flex-pack: end; justify-content: flex-end; } -.kids-on-brooms .items-list .item-controls a { +.fvtt-never-stop-blowing-up .items-list .item-controls a { font-size: 12px; text-align: center; margin: 0 6px; } -.kids-on-brooms .items-list .item-prop { +.fvtt-never-stop-blowing-up .items-list .item-prop { text-align: center; border-left: 1px solid #c9c7b8; border-right: 1px solid #c9c7b8; font-size: 12px; } -.kids-on-brooms .items-list .items-header { +.fvtt-never-stop-blowing-up .items-list .items-header { height: 28px; margin: 2px 0; padding: 0; @@ -509,34 +515,34 @@ border: 2px groove #eeede0; font-weight: bold; } -.kids-on-brooms .items-list .items-header > * { +.fvtt-never-stop-blowing-up .items-list .items-header > * { font-size: 12px; text-align: center; } -.kids-on-brooms .items-list .items-header .item-name { +.fvtt-never-stop-blowing-up .items-list .items-header .item-name { padding-left: 5px; text-align: left; } -.kids-on-brooms .item-formula { +.fvtt-never-stop-blowing-up .item-formula { -webkit-box-flex: 0; -ms-flex: 0 0 200px; flex: 0 0 200px; padding: 0 8px; } -.kids-on-brooms .effects .item .effect-source, -.kids-on-brooms .effects .item .effect-duration, -.kids-on-brooms .effects .item .effect-controls { +.fvtt-never-stop-blowing-up .effects .item .effect-source, +.fvtt-never-stop-blowing-up .effects .item .effect-duration, +.fvtt-never-stop-blowing-up .effects .item .effect-controls { text-align: center; border-left: 1px solid #c9c7b8; border-right: 1px solid #c9c7b8; font-size: 12px; } -.kids-on-brooms .effects .item .effect-controls { +.fvtt-never-stop-blowing-up .effects .item .effect-controls { border: none; } -.kids-on-brooms .kids-on-brooms input:focus, -.kids-on-brooms .kids-on-brooms textarea:focus, -.kids-on-brooms .kids-on-brooms select:focus { +.fvtt-never-stop-blowing-up .fvtt-never-stop-blowing-up input:focus, +.fvtt-never-stop-blowing-up .fvtt-never-stop-blowing-up textarea:focus, +.fvtt-never-stop-blowing-up .fvtt-never-stop-blowing-up select:focus { outline: none; border-color: #8102dd; -} \ No newline at end of file +} diff --git a/css/test.css.map b/css/test.css.map deleted file mode 100644 index 5147620..0000000 --- a/css/test.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sourceRoot":"","sources":["../scss/kidsonbrooms.scss","../scss/global/_base.scss","../scss/global/_window.scss","../scss/utils/_typography.scss","../scss/global/_grid.scss","../scss/global/_flex.scss","../scss/utils/_mixins.scss","../scss/utils/_variables.scss","../scss/components/_forms.scss","../scss/utils/_colors.scss","../scss/components/_resource.scss","../scss/components/_items.scss","../scss/components/_effects.scss"],"names":[],"mappings":"AACQ;AASR;ACTQ;ACDR;EACE,aCDa;;;ADKb;EAEE;EACA;EACA;;;AERJ;EACE;EACA;EACA;EACA;;;AAKA;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;AAZF;EACE;;;AAIF;EACE;;;AAIF;EACE;EACA;;;ACrBJ;ECkBE;EACA,gBDlBiB;ECmBjB,WDnByB;ECoBzB,iBAJkD;EAKlD,aALsE;EDftE;;;AAGF;ECaE;EACA,gBDbiB;ECcjB,WDd6B;ECe7B,iBAJkD;EAKlD,aALsE;EDVtE;;;AAGF;ECQE;EACA,gBDRiB;ECSjB,WDT2B;ECU3B,iBAJkD;EAKlD,aALsE;EDLtE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAIF;ECVE;EACA,gBDUiB;ECTjB,WDS6B;ECR7B,iBAJkD;EAKlD,aALsE;EDatE;;;AAGF;ECfE;EACA,gBDeiB;ECdjB,WDc2B;ECb3B,iBAJkD;EAKlD,aALsE;EDkBtE;;;AAGF;ECpBE;EACA,gBDoBiB;ECnBjB,WDmByB;EClBzB,iBAJkD;EAKlD,aALsE;EDuBtE;;;AJtCF;EACE,aMEW;;;ANEX;EAEE;EACA;EACA;;;ADIJ;AQhBA;EACE,aLDa;;AKIf;EFeE;EACA,gBEfiB;EFgBjB,WEhBsB;EFiBtB,iBEjB4B;EFkB5B,aALsE;EEZtE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAKN;EACE;EACA;;AAGF;EACE;;AAGF;AAAA;AAAA;EAGE;;AAIA;EACE,YCnDM;;ADsDR;EACE;;AEvDJ;EACE;;ACAF;EACE;EACA;EACA;EACA;EACA;EACA,QJHc;EIId;;AAEA;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA,OFxBM;;AE2BN;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA,OFvDG;;AEyDH;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAMN;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;EACA;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA,QJrGc;EIsGd;;AAEA;EACE;EACA;;AAGF;EACE;EACA;;AAKJ;EACE;EACA;;ACzHA;AAAA;AAAA;EAGE;EACA;EACA;EACA;;AAGF;EACE;;AAKJ;AAAA;AAAA;EAGE;EACA,cHVmB","file":"test.css"} \ No newline at end of file diff --git a/lang/en.json b/lang/en.json index 9633520..b46aef8 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1,9 +1,9 @@ { - "KIDSONBROOMS.EffectCreate": "Create Effect", - "KIDSONBROOMS.EffectToggle": "Toggle Effect", - "KIDSONBROOMS.EffectEdit": "Edit Effect", - "KIDSONBROOMS.EffectDelete": "Delete Effect", + "NEVERSTOPBLOWINGUP.EffectCreate": "Create Effect", + "NEVERSTOPBLOWINGUP.EffectToggle": "Toggle Effect", + "NEVERSTOPBLOWINGUP.EffectEdit": "Edit Effect", + "NEVERSTOPBLOWINGUP.EffectDelete": "Delete Effect", - "KIDSONBROOMS.Add": "Add" + "NEVERSTOPBLOWINGUP.Add": "Add" } \ No newline at end of file diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index dfca7dc..60d5396 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -2,7 +2,7 @@ * Extend the base Actor document by defining a custom roll data structure which is ideal for the Simple system. * @extends {Actor} */ -export class KidsOnBroomsActor extends Actor { +export class NeverStopBlowingUpActor extends Actor { /** * Override getRollData() that's supplied to rolls. diff --git a/module/helpers/config.mjs b/module/helpers/config.mjs index ef6007d..462f2ea 100644 --- a/module/helpers/config.mjs +++ b/module/helpers/config.mjs @@ -1,7 +1,7 @@ -export const KIDSONBROOMS = {}; +export const NEVERSTOPBLOWINGUP = {}; // Define constants here, such as: -KIDSONBROOMS.foobar = { - 'bas': 'KIDSONBROOMS.bas', - 'bar': 'KIDSONBROOMS.bar' +NEVERSTOPBLOWINGUP.foobar = { + 'bas': 'NEVERSTOPBLOWINGUP.bas', + 'bar': 'NEVERSTOPBLOWINGUP.bar' }; \ No newline at end of file diff --git a/module/helpers/templates.mjs b/module/helpers/templates.mjs index a96cd05..628470c 100644 --- a/module/helpers/templates.mjs +++ b/module/helpers/templates.mjs @@ -7,9 +7,9 @@ return loadTemplates([ // Actor partials. - "systems/kidsonbrooms/templates/actor/parts/actor-features.html", - "systems/kidsonbrooms/templates/actor/parts/actor-adversity.html", - "systems/kidsonbrooms/templates/actor/parts/actor-stats.html", - "systems/kidsonbrooms/templates/actor/parts/actor-npc-stats.html", + "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-features.html", + "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-adversity.html", + "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-stats.html", + "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-npc-stats.html", ]); }; diff --git a/module/kidsonbrooms.mjs b/module/never-stop-blowing-up.mjs similarity index 91% rename from module/kidsonbrooms.mjs rename to module/never-stop-blowing-up.mjs index 194b3ae..e82e419 100644 --- a/module/kidsonbrooms.mjs +++ b/module/never-stop-blowing-up.mjs @@ -1,12 +1,12 @@ // Import document classes. -import { KidsOnBroomsActor } from "./documents/actor.mjs"; +import { NeverStopBlowingUpActor } from "./documents/actor.mjs"; // Import sheet classes. -import { KidsOnBroomsActorSheet } from "./sheets/actor-sheet.mjs"; +import { NeverStopBlowingUpActorSheet } from "./sheets/actor-sheet.mjs"; // Import helper/utility classes and constants. import { preloadHandlebarsTemplates } from "./helpers/templates.mjs"; -import { KIDSONBROOMS } from "./helpers/config.mjs"; +import { NEVERSTOPBLOWINGUP } from "./helpers/config.mjs"; /* -------------------------------------------- */ /* Init Hook */ @@ -25,13 +25,13 @@ Hooks.once('init', async function() { // Add utility classes and functions to the global game object so that they're more easily // accessible in global contexts. game.kidsonbrooms = { - KidsOnBroomsActor, + NeverStopBlowingUpActor, _onTakeAdversityToken: _onTakeAdversityToken, // Add the function to the global object _onSpendAdversityTokens: _onSpendAdversityTokens // Add the function to the global object }; // Add custom constants for configuration. - CONFIG.KIDSONBROOMS = KIDSONBROOMS; + CONFIG.NEVERSTOPBLOWINGUP = NEVERSTOPBLOWINGUP; /** * Set an initiative formula for the system @@ -44,11 +44,11 @@ Hooks.once('init', async function() { // Define custom Document classes - CONFIG.Actor.documentClass = KidsOnBroomsActor; + CONFIG.Actor.documentClass = NeverStopBlowingUpActor; // Register sheet application classes Actors.unregisterSheet("core", ActorSheet); - Actors.registerSheet("kidsonbrooms", KidsOnBroomsActorSheet, { makeDefault: true }); + Actors.registerSheet("fvtt-never-stop-blowing-up", NeverStopBlowingUpActorSheet, { makeDefault: true }); //If there is a new chat message that is a roll we add the adversity token controls Hooks.on("renderChatMessage", (message, html, messageData) => { @@ -86,10 +86,10 @@ Hooks.once('init', async function() { // Update the message content tokenControls.update({ content: updatedContent }); // Set the flag on the chat message to indicate that the token has been claimed - tokenControls.setFlag("kidsonbrooms", "tokenClaimed", true); + tokenControls.setFlag("fvtt-never-stop-blowing-up", "tokenClaimed", true); } else { // Emit a socket request to update the message to show that the token has been claimed - game.socket.emit('system.kidsonbrooms', { + game.socket.emit('system.fvtt-never-stop-blowing-up', { action: "takeToken", messageID: message.id, actorID: actor.id, @@ -117,7 +117,7 @@ Hooks.once('init', async function() { * if a player wants to claim a token we will update the message since they do not have the permissions */ Hooks.once('ready', function() { - game.socket.on('system.kidsonbrooms', async (data) => { + game.socket.on('system.fvtt-never-stop-blowing-up', async (data) => { console.log("Socket data received:", data); if (data.action === "spendTokens") { @@ -189,7 +189,7 @@ Hooks.once('ready', function() { // Update the message content tokenControls.update({ content: updatedContent }); // Set the flag on the chat message to indicate that the token has been claimed - tokenControls.setFlag("kidsonbrooms", "tokenClaimed", true); + tokenControls.setFlag("fvtt-never-stop-blowing-up", "tokenClaimed", true); } }); }); @@ -276,7 +276,7 @@ async function _onSpendAdversityTokens(e, rollMessageId) { console.log(`Requesting to spend ${tokensToSpend} tokens for ${rollActor.name} by ${spendingPlayerActor.name} (cost: ${tokenCost})`); // Emit a socket request to spend tokens - game.socket.emit('system.kidsonbrooms', { + game.socket.emit('system.fvtt-never-stop-blowing-up', { action: "spendTokens", rollActorId: rollActorId, spendingActorId: spendingPlayerActor.id, // Send the player's actor who is spending the tokens @@ -299,8 +299,8 @@ async function _updateRollMessage(rollMessageId, tokensToSpend, isPlayerOfActor) } // Retrieve current tokens spent from flags, or initialize to 0 if not found - let cumulativeTokensSpent = message.getFlag("kidsonbrooms", "tokensSpent") || 0; - let newTotal = message.getFlag("kidsonbrooms", "newRollTotal") || message.rolls[0].total; + let cumulativeTokensSpent = message.getFlag("fvtt-never-stop-blowing-up", "tokensSpent") || 0; + let newTotal = message.getFlag("fvtt-never-stop-blowing-up", "newRollTotal") || message.rolls[0].total; /*if(isPlayerOfActor) { @@ -311,10 +311,10 @@ async function _updateRollMessage(rollMessageId, tokensToSpend, isPlayerOfActor) }*/ cumulativeTokensSpent += tokensToSpend; newTotal += tokensToSpend; - await message.setFlag("kidsonbrooms", "newRollTotal", newTotal); + await message.setFlag("fvtt-never-stop-blowing-up", "newRollTotal", newTotal); // Update the message's flags to store the cumulative tokens spent - await message.setFlag("kidsonbrooms", "tokensSpent", cumulativeTokensSpent); + await message.setFlag("fvtt-never-stop-blowing-up", "tokensSpent", cumulativeTokensSpent); let newContent = ""; if(cumulativeTokensSpent === 1) { diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index b4a3819..415d2a1 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -2,13 +2,13 @@ * Extend the basic ActorSheet with some very simple modifications * @extends {ActorSheet} */ -export class KidsOnBroomsActorSheet extends ActorSheet { +export class NeverStopBlowingUpActorSheet extends ActorSheet { /** @override */ static get defaultOptions() { return foundry.utils.mergeObject(super.defaultOptions, { - classes: ["kidsonbrooms", "sheet", "actor"], + classes: ["fvtt-never-stop-blowing-up", "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/kidsonbrooms/templates/actor/actor-${this.actor.type}-sheet.html`; + return `systems/fvtt-never-stop-blowing-up/templates/actor/actor-${this.actor.type}-sheet.html`; } diff --git a/system.json b/system.json index 2fd1a35..47c0d61 100644 --- a/system.json +++ b/system.json @@ -1,24 +1,26 @@ { - "id": "kidsonbrooms", - "title": "Kids on Brooms System", - "description": "The Kids on Brooms system for FoundryVTT!", - "version": "1.1.6", + "id": "fvtt-never-stop-blowing-up", + "title": "Never Stop Blowing Up", + "description": "The Never Stop Blowing Up system for FoundryVTT!", + "version": "12.0.0", "compatibility": { "minimum": 12, - "verified": 12.331 + "verified": 12 }, "authors": [{ "name": "Joscha Maier" + },{ + "name": "LeRatierBretonnien" }], - "esmodules": ["module/kidsonbrooms.mjs"], - "styles": ["css/kidsonbrooms.css"], + "esmodules": ["module/never-stop-blowing-up.mjs"], + "styles": ["css/never-stop-blowing-up.css"], "socket": true, "grid": { "distance": 5, "units": "ft" }, "primaryTokenAttribute": "system.adversityTokens", - "url": "https://gitlab.com/wintermyst/kidsonbrooms", - "manifest": "https://gitlab.com/wintermyst/kidsonbrooms/-/raw/master/system.json", - "download": "https://gitlab.com/wintermyst/kidsonbrooms/-/raw/master/kidsonbrooms.zip?inline=false" + "url": "https://www.uberwald.me/gitea/uberwald/fvtt-never-stop-blowing-up", + "manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-never-stop-blowing-up/raw/branch/master/system.json", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-never-stop-blowing-up/release/file.zip" } diff --git a/template.json b/template.json index 10376e7..85163be 100644 --- a/template.json +++ b/template.json @@ -4,32 +4,62 @@ "templates": { "base": { "stats": { - "fight": { + "stat1": { + "name": "fight", "value": "d4", "stat": 0, "magic": 0 }, - "flight": { + "stat2": { + "name": "flight", "value": "d4", "stat": 0, "magic": 0 }, - "brains": { + "stat3": { + "name": "brains", "value": "d4", "stat": 0, "magic": 0 }, - "brawn": { + "stat4": { + "name": "brawn", "value": "d4", "stat": 0, "magic": 0 }, - "charm": { + "stat5": { + "name": "charm", "value": "d4", "stat": 0, "magic": 0 }, - "grit": { + "stat6": { + "name": "grit", + "value": "d4", + "stat": 0, + "magic": 0 + }, + "stat7": { + "name": "N/A", + "value": "d4", + "stat": 0, + "magic": 0 + }, + "stat8": { + "name": "N/A", + "value": "d4", + "stat": 0, + "magic": 0 + }, + "stat9": { + "name": "N/A", + "value": "d4", + "stat": 0, + "magic": 0 + }, + "stat10": { + "name": "N/A", "value": "d4", "stat": 0, "magic": 0 @@ -40,6 +70,11 @@ }, "character": { "templates": ["base"], + "wounds": { + "minor": {"m1": false, "m2": false, "m3": false}, + "moderate": {"m1": false, "m2": false}, + "mortal": {"m1": false} + }, "trope": "", "age": "", "pronouns": "", diff --git a/templates/actor/actor-character-sheet.html b/templates/actor/actor-character-sheet.html index 96bb181..08be03f 100644 --- a/templates/actor/actor-character-sheet.html +++ b/templates/actor/actor-character-sheet.html @@ -7,7 +7,7 @@
- +
@@ -20,9 +20,9 @@ {{!-- Sheet Body --}} @@ -32,12 +32,12 @@
- {{> "systems/kidsonbrooms/templates/actor/parts/actor-features.html"}} - {{> "systems/kidsonbrooms/templates/actor/parts/actor-adversity.html"}} + {{> "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-features.html"}} + {{> "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-adversity.html"}}
@@ -50,10 +50,7 @@ {{editor schoolbag target="system.schoolbag" engine="prosemirror" button=false collaborate=false editable=true}}
- - - - + {{!-- Strengths Tab --}}
{{editor strengths target="system.strengths" engine="prosemirror" button=false collaborate=false editable=true}} diff --git a/templates/actor/actor-npc-sheet.html b/templates/actor/actor-npc-sheet.html index 4299a0a..6cac8ab 100644 --- a/templates/actor/actor-npc-sheet.html +++ b/templates/actor/actor-npc-sheet.html @@ -28,7 +28,7 @@ {{!-- Owned Features Tab --}}
- {{> "systems/kidsonbrooms/templates/actor/parts/actor-npc-stats.html"}} + {{> "systems/fvtt-never-stop-blowing-up/templates/actor/parts/actor-npc-stats.html"}}
diff --git a/templates/actor/parts/actor-features.html b/templates/actor/parts/actor-features.html index 2a3d936..fab7e74 100644 --- a/templates/actor/parts/actor-features.html +++ b/templates/actor/parts/actor-features.html @@ -1,49 +1,56 @@
- +
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- Your Broom +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + --> + + +
- +
- - - + --> + -
- Wand Selection - - -
- - - - - - - - - - - - - - - - - -
- - -
- - - - - - - - - - - - - - - - - - - - - - -
+ + +
+ Wounds +
+ Minor + {{#each system.wounds.minor as |minorWound key|}} + + {{/each}} +
+
+ Moderate + {{#each system.wounds.moderate as |minorWound key|}} + + {{/each}} +
+
+ Mortal + {{#each system.wounds.mortal as |minorWound key|}} + + {{/each}} +
+
+
\ No newline at end of file diff --git a/templates/actor/parts/actor-npc-stats.html b/templates/actor/parts/actor-npc-stats.html index 79b648b..ba74a1c 100644 --- a/templates/actor/parts/actor-npc-stats.html +++ b/templates/actor/parts/actor-npc-stats.html @@ -1,7 +1,7 @@
{{#each system.stats as |stat key|}}
- {{key}} + {{stat.name}}
+
{{/each}} diff --git a/templates/actor/parts/actor-stats.html b/templates/actor/parts/actor-stats.html index 94f8032..762fa71 100644 --- a/templates/actor/parts/actor-stats.html +++ b/templates/actor/parts/actor-stats.html @@ -1,16 +1,16 @@
{{#each system.stats as |stat key|}}
- {{capitalizeFirst key}} +
@@ -22,13 +22,13 @@
- +