diff --git a/assets/logos/mournblade_logo_chaos.webp b/assets/logos/mournblade_logo_chaos.webp new file mode 100644 index 0000000..a5ae37a Binary files /dev/null and b/assets/logos/mournblade_logo_chaos.webp differ diff --git a/assets/logos/mournblade_logo_texte.webp b/assets/logos/mournblade_logo_texte.webp new file mode 100644 index 0000000..a2aaac4 Binary files /dev/null and b/assets/logos/mournblade_logo_texte.webp differ diff --git a/modules/mournblade-actor-sheet.js b/modules/mournblade-actor-sheet.js index 8d309d3..2ccd701 100644 --- a/modules/mournblade-actor-sheet.js +++ b/modules/mournblade-actor-sheet.js @@ -4,7 +4,7 @@ */ import { MournbladeUtility } from "./mournblade-utility.js"; -import { MournbladeRollDialog } from "./Mournblade-roll-dialog.js"; +import { MournbladeRollDialog } from "./mournblade-roll-dialog.js"; /* -------------------------------------------- */ export class MournbladeActorSheet extends ActorSheet { diff --git a/modules/mournblade-actor.js b/modules/mournblade-actor.js index 9d3921f..a9ece2d 100644 --- a/modules/mournblade-actor.js +++ b/modules/mournblade-actor.js @@ -44,6 +44,14 @@ export class MournbladeActor extends Actor { return super.create(data, options); } + /* -------------------------------------------- */ + getWeapons() { + return this.data.items.filter(item => item.type == "arme" ) + } + /* -------------------------------------------- */ + getArmors() { + return this.data.items.filter(item => item.type == "protection" ) + } /* -------------------------------------------- */ prepareBaseData() { } diff --git a/modules/mournblade-commands.js b/modules/mournblade-commands.js index f97d9bc..85a77eb 100644 --- a/modules/mournblade-commands.js +++ b/modules/mournblade-commands.js @@ -1,6 +1,5 @@ /* -------------------------------------------- */ -import { MournbladeActorCreate } from "./mournblade-create-char.js"; import { MournbladeUtility } from "./mournblade-utility.js"; import { MournbladeRollDialog } from "./mournblade-roll-dialog.js"; @@ -8,15 +7,15 @@ import { MournbladeRollDialog } from "./mournblade-roll-dialog.js"; export class MournbladeCommands { static init() { - if (!game.system.Mournblade.commands) { - const MournbladeCommands = new MournbladeCommands(); - MournbladeCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => MournbladeCommands.createChar(msg), descr: "Create a new character" }); - MournbladeCommands.registerCommand({ path: ["/pool"], func: (content, msg, params) => MournbladeCommands.poolRoll(msg), descr: "Generic Roll Window" }); - game.system.Mournblade.commands = MournbladeCommands; + if (!game.system.mournblade.commands) { + //const MournbladeCommands = new MournbladeCommands() + //MournbladeCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => MournbladeCommands.createChar(msg), descr: "Create a new character" }); + //game.system.mournblade.commands = MournbladeCommands } } + constructor() { - this.commandsTable = {}; + this.commandsTable = {} } /* -------------------------------------------- */ diff --git a/modules/mournblade-item-sheet.js b/modules/mournblade-item-sheet.js index a3ec36e..5fe0761 100644 --- a/modules/mournblade-item-sheet.js +++ b/modules/mournblade-item-sheet.js @@ -1,4 +1,4 @@ -import { MournbladeUtility } from "./Mournblade-utility.js"; +import { MournbladeUtility } from "./mournblade-utility.js"; /** * Extend the basic ItemSheet with some very simple modifications diff --git a/modules/mournblade-main.js b/modules/mournblade-main.js index f68986d..1676cc5 100644 --- a/modules/mournblade-main.js +++ b/modules/mournblade-main.js @@ -11,7 +11,7 @@ import { MournbladeActor } from "./mournblade-actor.js"; import { MournbladeItemSheet } from "./mournblade-item-sheet.js"; import { MournbladeActorSheet } from "./mournblade-actor-sheet.js"; -import { MournbladeNPCSheet } from "./mournblade-npc-sheet.js"; +//import { MournbladeNPCSheet } from "./mournblade-npc-sheet.js"; import { MournbladeUtility } from "./mournblade-utility.js"; import { MournbladeCombat } from "./mournblade-combat.js"; import { MournbladeItem } from "./mournblade-item.js"; @@ -45,14 +45,13 @@ Hooks.once("init", async function () { CONFIG.Combat.documentClass = MournbladeCombat CONFIG.Actor.documentClass = MournbladeActor CONFIG.Item.documentClass = MournbladeItem - //CONFIG.Token.objectClass = MournbladeToken - game.system.Mournblade = { }; + game.system.mournblade = { } /* -------------------------------------------- */ // Register sheet application classes Actors.unregisterSheet("core", ActorSheet); Actors.registerSheet("fvtt-mournblade", MournbladeActorSheet, { types: ["character"], makeDefault: true }); - Actors.registerSheet("fvtt-mournblade", MournbladeNPCSheet, { types: ["npc"], makeDefault: false }); + //Actors.registerSheet("fvtt-mournblade", MournbladeNPCSheet, { types: ["npc"], makeDefault: false }); Items.unregisterSheet("core", ItemSheet); Items.registerSheet("fvtt-mournblade", MournbladeItemSheet, { makeDefault: true }); @@ -102,7 +101,7 @@ Hooks.on("chatMessage", (html, content, msg) => { if (content[0] == '/') { let regExp = /(\S+)/g; let commands = content.match(regExp); - if (game.system.Mournblade.commands.processChatCommand(commands, content, msg)) { + if (game.system.mournblade.commands.processChatCommand(commands, content, msg)) { return false; } } diff --git a/modules/mournblade-utility.js b/modules/mournblade-utility.js index 7e2e9da..2f9642f 100644 --- a/modules/mournblade-utility.js +++ b/modules/mournblade-utility.js @@ -1,7 +1,6 @@ /* -------------------------------------------- */ import { MournbladeCombat } from "./mournblade-combat.js"; import { MournbladeCommands } from "./mournblade-commands.js"; -import { MournbladeActorCreate } from "./mournblade-create-char.js"; /* -------------------------------------------- */ export class MournbladeUtility { @@ -52,7 +51,7 @@ export class MournbladeUtility { /* -------------------------------------------- */ static async ready() { const skills = await MournbladeUtility.loadCompendium("fvtt-mournblade.skills") - this.skills = specs.map(i => i.toObject()) + this.skills = skills.map(i => i.toObject()) } /* -------------------------------------------- */ @@ -83,13 +82,7 @@ export class MournbladeUtility { static async preloadHandlebarsTemplates() { const templatePaths = [ - 'systems/fvtt-mournblade/templates/editor-notes-gm.html', - 'systems/fvtt-mournblade/templates/partial-roll-select-effects.html', - 'systems/fvtt-mournblade/templates/partial-options-statistics.html', - 'systems/fvtt-mournblade/templates/partial-options-level.html', - 'systems/fvtt-mournblade/templates/partial-options-range.html', - 'systems/fvtt-mournblade/templates/partial-options-equipment-types.html', - 'systems/fvtt-mournblade/templates/partial-equipment-effects.html' + 'systems/fvtt-mournblade/templates/editor-notes-gm.html' ] return loadTemplates(templatePaths); } diff --git a/styles/simple.css b/styles/simple.css index 421b406..8e504e8 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1191,17 +1191,17 @@ ul, li { color: #CCC } #pause > img { - content: url(../images/ui/pegasus_logo_v1.webp); - height: 160px; + content: url(../assets/logos/mournblade_logo_chaos.webp); + height: 256px; width: 256px; top: -80px; left: calc(50% - 132px); } #logo { - content : url(../images/ui/pegasus_logo_v1.webp); - width: 100px; - height: 60px; + content : url(../assets/logos/mournblade_logo_texte.webp); + width: 120px; + height: 40px; } .dice-cell { diff --git a/templates/actor-partial-ames.html b/templates/actor-partial-ames.html new file mode 100644 index 0000000..2250f5d --- /dev/null +++ b/templates/actor-partial-ames.html @@ -0,0 +1,29 @@ + +

{{typedata.label}}

+
 
+ + -1 + -2 + -3 + / + +
+ + \ No newline at end of file diff --git a/templates/actor-partial-paradigmes.html b/templates/actor-partial-paradigmes.html new file mode 100644 index 0000000..0edc592 --- /dev/null +++ b/templates/actor-partial-paradigmes.html @@ -0,0 +1,22 @@ +{{#each data.paradigmes as |para key|}} +
  • + + + + + {{#if para.editable}} +

    + +

    + {{else}} +

    {{para.label}}

    + {{/if}} +
    + + + +
  • +{{/each}} \ No newline at end of file diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html new file mode 100644 index 0000000..89a140e --- /dev/null +++ b/templates/actor-sheet.html @@ -0,0 +1,407 @@ +
    + + {{!-- Sheet Header --}} +
    +
    +
    +
    +

    + {{!-- Sheet Tab Navigation --}} + +
    + +
    +
    +
    + + {{!-- Sheet Body --}} +
    + + {{!-- Combat Tab --}} +
    + +
    + +
    +
    + + +

    AMES

    +
    + {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="physique" typedata=data.amestype.physique}} + + {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="social" typedata=data.amestype.social}} + + {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="mental" typedata=data.amestype.mental}} + +
    +
    + +
    +
    + + +

    ARCHETYPE

    +
    +

    +
      +
    • + + {{archetype.name}} +
       
      +
      + + +
      +
    • +
    + +

    Spécialités

    +
      + {{#each specialites as |spec key|}} +
    • + + {{spec.name}} +
       
      +
      + + +
      +
    • + {{/each}} +
    + +

    Familiarités :

    +
      + {{#each familiarites as |fami key|}} +
    • + + {{fami.name}} +
       
      +
      + + +
      +
    • + {{/each}} +
    + +
    +
    +
    + +
    + +
    + + + +

    PARADIGMES

    +
    +
      + {{> systems/fvtt-imperium5/templates/actor-partial-paradigmes.html}} +
    +
    + +
    + + + +

    NATURE PROFONDE

    +
    +
      +
    • + + {{nature.name}} +
       
      +
      + + +
      +
    • +
    + +

    Traits

    +
      + {{#each traits as |trait key|}} +
    • + + {{trait.name}} +
       
      +
      + + +
      +
    • + {{/each}} +
    + +

    Symbioses :

    +
      + {{#each symbioses as |symbiose key|}} +
    • + + {{symbiose.name}} +
       
      +
      + + +
      +
    • + {{/each}} +
    +
    + + +
    + +
    + + {{!-- Equipement Tab --}} +
    + +
    + +
    +
      +
    • + +

      +
      + + + +
    • + {{#each equipements as |equip key|}} +
    • + + {{equip.name}} + {{equip.data.value}} + +
       
      +
      + + +
      +
    • + {{/each}} +
    +
    + +
    +
      +
    • + +

      +
      + + + + + + +
    • + {{#each capacites as |capa key|}} +
    • + + {{capa.name}} + {{capa.data.aide}} + {{capa.data.ressource}} + +
       
      +
      + + +
      +
    • + {{/each}} +
    +
    + +
    + +
    + +
    +
      +
    • + +

      +
      + + + +
    • + {{#each singularites as |singul key|}} +
    • + + {{singul.name}} + {{singul.data.value}} + +
       
      +
      + + +
      +
    • + {{/each}} +
    +
    + +
    +
      +
    • + +

      +
      + + + +
    • + {{#each contacts as |contact key|}} +
    • + + {{contact.name}} + {{contact.data.value}} + +
       
      +
      + + +
      +
    • + {{/each}} +
    +
    + + +
    + +
    + + {{!-- Biography Tab --}} +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    +
    +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
    +
    + +
    +
    +

    Apparence actuelle :

    +
    + {{editor content=data.biodata.appactual target="data.biodata.appactual" button=true owner=owner + editable=editable}} +
    +
    +
    +

    Autres identités :

    +
    + {{editor content=data.biodata.identities target="data.biodata.identities" button=true owner=owner + editable=editable}} +
    +
    +
    + +
    +
    +

    Traits particuliers :

    +
    + {{editor content=data.biodata.traits target="data.biodata.traits" button=true owner=owner + editable=editable}} +
    +
    +
    +

    Souvenirs quantiques :

    +
    + {{editor content=data.biodata.memories target="data.biodata.memories" button=true owner=owner + editable=editable}} +
    +
    +
    + +
    +
    +

    Rebuild :

    +
    + {{editor content=data.biodata.rebuild target="data.biodata.rebuild" button=true owner=owner + editable=editable}} +
    +
    +
    +

    Relations, contacts et acolytes :

    +
    + {{editor content=data.biodata.contacts target="data.biodata.contacts" button=true owner=owner + editable=editable}} +
    +
    +
    + +

    Qui suis-je :

    +
    + {{editor content=data.biodata.whoami target="data.biodata.whoami" button=true owner=owner + editable=editable}} +
    +
    +

    Notes :

    +
    + {{editor content=data.biodata.notes target="data.biodata.notes" button=true owner=owner editable=editable}} +
    +
    + +
    + +
    +
    \ No newline at end of file diff --git a/templates/chat-generic-result.html b/templates/chat-generic-result.html new file mode 100644 index 0000000..658ae08 --- /dev/null +++ b/templates/chat-generic-result.html @@ -0,0 +1,54 @@ +
    + {{#if actorImg}} + {{alias}} + {{/if}} +

    {{alias}}

    +
    + +
    + + {{#if img}} +
    + {{name}} +
    + {{/if}} + +
    +
    + +
    + +
    + + diff --git a/templates/editor-notes-gm.html b/templates/editor-notes-gm.html new file mode 100644 index 0000000..f3b3218 --- /dev/null +++ b/templates/editor-notes-gm.html @@ -0,0 +1,6 @@ +{{#if data.isGM}} +

    GM Notes :

    +
    + {{editor content=data.gmnotes target="data.gmnotes" button=true owner=owner editable=editable}} +
    +{{/if}} diff --git a/templates/item-default-sheet.html b/templates/item-default-sheet.html new file mode 100644 index 0000000..0d9ec11 --- /dev/null +++ b/templates/item-default-sheet.html @@ -0,0 +1,49 @@ +
    +
    + +
    +

    +
    +
    + + {{!-- Sheet Body --}} +
    + +
    + {{#if (exists data.type)}} + + + + + {{/if}} + {{#if (exists data.value)}} + + + + + {{/if}} + + {{#if (exists data.aide)}} + + + + + {{/if}} + + {{#if (exists data.ressource)}} + + + + + {{/if}} + + {{> systems/fvtt-imperium5/templates/partial-item-description.html}} + +
    + +
    +
    diff --git a/templates/partial-actor-equipment.html b/templates/partial-actor-equipment.html new file mode 100644 index 0000000..01158d3 --- /dev/null +++ b/templates/partial-actor-equipment.html @@ -0,0 +1,49 @@ +
  • + + {{#if (eq level 1)}} + {{equip.name}} + {{else}} + {{equip.name}} + {{/if}} + + + + + + {{#if (count equip.data.effects)}} + {{#if equip.data.activated}} + Deactivate + {{else}} + Activate + {{/if}} + {{else}} +  -  + {{/if}} + + + {{#if equip.data.iscontainer}} + {{equip.data.contentsEnc}} + {{else}} + {{mul equip.data.weight equip.data.quantity}} + {{/if}} + + + {{#if equip.data.idrDice}} + {{equip.data.idrDice}} + {{else}} +  -  + {{/if}} + + +
     
    +
    + {{#if (eq level 1)}} + {{#if equip.data.equipped}}{{else}}{{/if}} + {{/if}} + +
    +
  • diff --git a/templates/partial-actor-stat-block.html b/templates/partial-actor-stat-block.html new file mode 100644 index 0000000..d2cdb82 --- /dev/null +++ b/templates/partial-actor-stat-block.html @@ -0,0 +1,16 @@ +
  • + + + + +

    {{stat.abbrev}}

    +
    + + +
  • \ No newline at end of file diff --git a/templates/partial-actor-status.html b/templates/partial-actor-status.html new file mode 100644 index 0000000..7fd3734 --- /dev/null +++ b/templates/partial-actor-status.html @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/templates/partial-equipment-effects.html b/templates/partial-equipment-effects.html new file mode 100644 index 0000000..1736d89 --- /dev/null +++ b/templates/partial-equipment-effects.html @@ -0,0 +1,16 @@ +
  • +
  • +
  • + +
  • diff --git a/templates/partial-item-description.html b/templates/partial-item-description.html new file mode 100644 index 0000000..5baa212 --- /dev/null +++ b/templates/partial-item-description.html @@ -0,0 +1,6 @@ + + + +
    + {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} +
    diff --git a/templates/partial-options-equipment-types.html b/templates/partial-options-equipment-types.html new file mode 100644 index 0000000..ab60653 --- /dev/null +++ b/templates/partial-options-equipment-types.html @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/templates/post-item.html b/templates/post-item.html new file mode 100644 index 0000000..1bad9c8 --- /dev/null +++ b/templates/post-item.html @@ -0,0 +1,8 @@ +
    +

    {{name}}

    + {{#if img}} + + {{/if}} +

    Description :

    +

    {{{data.description}}}

    +
    diff --git a/templates/roll-dialog-generic.html b/templates/roll-dialog-generic.html new file mode 100644 index 0000000..75c582d --- /dev/null +++ b/templates/roll-dialog-generic.html @@ -0,0 +1,88 @@ +
    +
    + {{#if img}} + + {{/if}} +

    {{title}}

    +
    + +
    + +
    + +
    + Stat Dice : + +  + {{statMod}} +
    + + {{#if specList}} +
    + Spec : + +   +
    + {{/if}} + +
    + Spec Dice : + +   +
    + +
    + Bonus Dice : + +   +
    + +
    + Hindrance Dice : + +   +
    + +
    + Other Dice : + +   +
    + +
    + +
    + {{> systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html}} +
    + +
    + +