diff --git a/CHANGELOG.md b/CHANGELOG.md index 99109a7..9d30a04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,6 @@ # CHANGELOG -## 0.0.5 -- design de la feuille de personnage - -## 0.0.4 -- dialog box pour lancer les dés - -## 0.0.3 -- ajout de la variable de setting Mode de Jeu -- lancement des dés pour les compétences des PJ -- affichage de la rareté - -## 0.0.2 - -- Ajout du logo - -## 0.0.1 - -- Création du dépôt \ No newline at end of file +## 0.1.5 +- début de mise en forme des feuilles créature et pnj +- possibilité de changer le type de capacité (pour ajouter des capacités de totem) \ No newline at end of file diff --git a/lang/en.json b/lang/en.json index baca1fd..6cd1c72 100644 --- a/lang/en.json +++ b/lang/en.json @@ -92,7 +92,11 @@ "reaction": "Réaction", "pools":"Réserves", "gear": "Matériel", - "protection": "Protection" + "protection": "Protection", + "skills": "Compétences", + "pattern": "Gabarit", + "size": "Taille", + "pack": "Groupe" }, "VERMINE": { @@ -182,7 +186,7 @@ "will":{ "name": "Volonté"}, "empathy":{ "name": "Empathie"} }, - "SKILLS_LEVELS": { + "SKILL_LEVELS": { "beginner": "Débutant", "proficient": "Confirmé", "expert":"Expert", @@ -197,19 +201,16 @@ }, "ROLE_LEVELS": { "minor": "Mineur", - "secondaray": "Secondaire", + "secondary": "Secondaire", "important":"Important", "major":"Majeur" }, - - - "VERMINE.effect_treate": "Create Effect", - "VERMINE.effect_toggle": "Toggle Effect", - "VERMINE.effect_edit": "Edit Effect", - "VERMINE.effect_delete": "Delete Effect", - - "VERMINE.Add": "Ajouter", - + "PATTERN_LEVELS": { + "insect": "Insecte", + "rat": "Rat", + "dog":"Chien", + "bear":"Ours" + }, "TOTEMS": { "human": { "name": "L'Humain", @@ -347,7 +348,8 @@ "toxics": { "name": "Toxiques"}, "ruins": { "name": "Vestiges"} }, - - "VERMINE.sexes.male":"Masculin", - "VERMINE.sexes.female":"Féminin" + "SEXES": { + "male": "Masculin", + "female":"Féminin" + } } \ No newline at end of file diff --git a/module/system/config.mjs b/module/system/config.mjs index b9d6d02..d8f9c63 100644 --- a/module/system/config.mjs +++ b/module/system/config.mjs @@ -48,6 +48,25 @@ VERMINE.RoleLevels = { 4:{ "label":"ROLE_LEVELS.major", "reaction":4, "reaction_bonus":2, "pools":4, "gear":10, "gear_hindrance":2, "protection":3}, } +VERMINE.PatternLevels = { + 1:{ "label":"PATTERN_LEVELS.insect", "attack":2, "damage":0, "minorWound":0, "majorWound":0, "deadlyWound":1}, + 2:{ "label":"PATTERN_LEVELS.rat", "attack":3, "damage":1, "minorWound":0, "majorWound":1, "deadlyWound":1}, + 3:{ "label":"PATTERN_LEVELS.dog", "attack":4, "damage":3, "minorWound":1, "majorWound":1, "deadlyWound":1}, + 4:{ "label":"PATTERN_LEVELS.bear", "attack":6, "damage":6, "minorWound":2, "majorWound":2, "deadlyWound":2}, +} + +VERMINE.SizeLevels = { + 1:{ "attack":2, "vigor":1, "minorWound":0, "majorWound":0, "deadlyWound":1}, + 2:{ "attack":3, "vigor":2, "minorWound":0, "majorWound":1, "deadlyWound":1}, + 3:{ "attack":4, "vigor":3, "minorWound":1, "majorWound":1, "deadlyWound":1} +} + +VERMINE.PackLevels = { + 1:{ "attack":1, "damage":1, "minorWound":0, "majorWound":0, "deadlyWound":1}, + 2:{ "attack":2, "damage":2, "minorWound":2, "majorWound":2, "deadlyWound":2}, + 3:{ "attack":5, "damage":5, "minorWound":3, "majorWound":3, "deadlyWound":3} +} + VERMINE.abilityCategories = { "physical": { "label":"VERMINE.ability_category.physical" diff --git a/module/system/handlebars-manager.mjs b/module/system/handlebars-manager.mjs index 36352ae..dd8044c 100644 --- a/module/system/handlebars-manager.mjs +++ b/module/system/handlebars-manager.mjs @@ -63,7 +63,7 @@ export const registerHandlebarsHelpers = function () { // return threat level information Handlebars.registerHelper('threatLevel', function (property, level, options) { - if (level < 1 || level > 5) + if (level < 1 || level > 4) return ""; let levelData = CONFIG.VERMINE.ThreatLevels[level]; if (property == 'label'){ @@ -75,7 +75,7 @@ export const registerHandlebarsHelpers = function () { // return experience level information Handlebars.registerHelper('experienceLevel', function (property, level, options) { - if (level < 1 || level > 5) + if (level < 1 || level > 4) return ""; let levelData = CONFIG.VERMINE.ExperienceLevels[level]; if (property == 'label'){ @@ -87,7 +87,7 @@ export const registerHandlebarsHelpers = function () { // return role level information Handlebars.registerHelper('roleLevel', function (property, level, options) { - if (level < 1 || level > 5) + if (level < 1 || level > 4) return ""; let levelData = CONFIG.VERMINE.RoleLevels[level]; if (property == 'label'){ @@ -97,6 +97,43 @@ export const registerHandlebarsHelpers = function () { } }); + // return pattern level information + Handlebars.registerHelper('patternLevel', function (property, level, options) { + if (level < 1 || level > 4) + return ""; + let levelData = CONFIG.VERMINE.PatternLevels[level]; + if (property == 'label'){ + return (levelData !== undefined) ? game.i18n.localize(levelData[property]) : ""; + } else { + return (levelData !== undefined) ? levelData[property] : ""; + } + }); + + // return size level information + Handlebars.registerHelper('sizeLevel', function (property, level, options) { + if (level < 1 || level > 4) + return ""; + let levelData = CONFIG.VERMINE.SizeLevels[level]; + if (property == 'label'){ + return (levelData !== undefined) ? game.i18n.localize(levelData[property]) : ""; + } else { + return (levelData !== undefined) ? levelData[property] : ""; + } + }); + + // return pack level information + Handlebars.registerHelper('packLevel', function (property, level, options) { + if (level < 0 || level > 3) + return ""; + let levelData = CONFIG.VERMINE.PackLevels[level]; + if (property == 'label'){ + return (levelData !== undefined) ? game.i18n.localize(levelData[property]) : ""; + } else { + return (levelData !== undefined) ? levelData[property] : ""; + } + }); + + // return skill level information Handlebars.registerHelper('skillLevel', function (property, level, options) { if (level < 1 || level > 5) diff --git a/system.json b/system.json index 7d8d910..50f9451 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "vermine2047", "title": "Vermine 2047", "description": "The Vermine 2047 system for FoundryVTT!", - "version": "0.1.4", + "version": "0.1.5", "compatibility": { "minimum": "10", "verified": "10.287", diff --git a/template.json b/template.json index dddd3c9..c1c66c2 100644 --- a/template.json +++ b/template.json @@ -331,6 +331,7 @@ "npc": { "templates": ["base"], "age": 15, + "skills": "", "threat": { "value": 1, "min": 1, @@ -384,8 +385,8 @@ }, "creature": { "templates": ["base"], - "age": 15, - "template": { + "skills": "", + "pattern": { "value": 1, "min": 1, "max": 4 @@ -399,6 +400,11 @@ "value": 1, "min": 1, "max": 4 + }, + "pack": { + "value": 0, + "min": 0, + "max": 3 } } }, diff --git a/templates/actor/actor-creature-sheet.html b/templates/actor/actor-creature-sheet.html index 0d43778..73cb1c3 100644 --- a/templates/actor/actor-creature-sheet.html +++ b/templates/actor/actor-creature-sheet.html @@ -1,42 +1,39 @@ -
+ {{!-- Sheet Header --}}
-

- {{!-- The grid classes are defined in scss/global/_grid.scss. To use, - use both the "grid" and "grid-Ncol" class where "N" can be any number - from 1 to 12 and will create that number of columns. --}}
- - {{!-- "flex-group-center" is also defined in the _grid.scss file - and it will add a small amount of padding, a border, and will - center all of its child elements content and text. --}} +

+ +

+
+ + +
+
+
- -
- - / - + +
+ + ({{ patternLevel "label" system.pattern.value }})
- -
- - / - + +
+
- -
- - / - + +
+ + ({{ roleLevel "label" system.role.value }})
@@ -47,23 +44,19 @@ {{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}}
{{!-- Biography Tab --}} -
- {{!-- If you want TinyMCE editors to output inline rolls when rendered, you need to pass the actor's roll data to the rollData property. --}} - {{editor system.biography target="system.biography" rollData=rollData button=true owner=owner editable=editable}} -
- - {{!-- Owned Items Tab --}} -
- {{> "systems/vermine2047/templates/actor/parts/actor-items.html"}} +
+
+

{{ localize 'IDENTITY.notes'}}

+ {{editor system.biography target="system.biography" button=true owner=owner editable=editable}} +
{{!-- Active Effects Tab --}} diff --git a/templates/actor/actor-npc-sheet.html b/templates/actor/actor-npc-sheet.html index c742b90..c022c63 100644 --- a/templates/actor/actor-npc-sheet.html +++ b/templates/actor/actor-npc-sheet.html @@ -8,22 +8,25 @@
-
- +
+ + ({{ threatLevel "label" system.threat.value }})
-
+
+ ({{ experienceLevel "label" system.experience.value }})
-
+
+ ({{ roleLevel "label" system.role.value }})
@@ -34,24 +37,21 @@ {{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}}
{{!-- Biography Tab --}} -
+

{{ localize 'ADVERSITY.threat'}}

  • {{ localize 'ADVERSITY.attack'}} {{ threatLevel "attack" system.threat.value }}
  • -
  • -
  • {{ localize 'ADVERSITY.damage'}}
  • -
  • {{ localize 'ADVERSITY.weapon'}}
  • {{ localize 'ADVERSITY.vigor'}} {{ threatLevel "vigor" system.threat.value }}
  • {{ localize 'ADVERSITY.wounds'}} {{ threatLevel "minorWound" system.threat.value }}/{{ threatLevel "majorWound" system.threat.value }}/{{ threatLevel "deadlyWound" system.threat.value }}
@@ -60,6 +60,10 @@

{{ localize 'ADVERSITY.experience'}}

    +
  • + + +
  • {{ localize 'ADVERSITY.action'}} {{ experienceLevel "action" system.experience.value }}
  • {{ localize 'ADVERSITY.specialties'}} {{ experienceLevel "specialties" system.experience.value }}
  • {{ localize 'ADVERSITY.rerolls'}} {{ experienceLevel "rerolls" system.experience.value }}
  • @@ -76,7 +80,7 @@
-
+

{{ localize 'IDENTITY.notes'}}

{{editor system.biography target="system.biography" button=true owner=owner editable=editable}}
diff --git a/templates/actor/parts/group-experience.hbs b/templates/actor/parts/group-experience.hbs index 9d507b8..a2d9b45 100644 --- a/templates/actor/parts/group-experience.hbs +++ b/templates/actor/parts/group-experience.hbs @@ -48,7 +48,6 @@ {{item.name}}
-
@@ -67,7 +66,6 @@ {{item.name}}
-
diff --git a/templates/actor/parts/group-info.hbs b/templates/actor/parts/group-info.hbs index a805650..413a53e 100644 --- a/templates/actor/parts/group-info.hbs +++ b/templates/actor/parts/group-info.hbs @@ -6,6 +6,7 @@
    {{#each abilities as |item id|}} + {{#if (ne item.type 'totem')}}
  1. {{item.name}} @@ -14,6 +15,7 @@
  2. + {{/if}} {{/each}}
diff --git a/templates/item/item-ability-sheet.html b/templates/item/item-ability-sheet.html index 898d0b9..7475713 100644 --- a/templates/item/item-ability-sheet.html +++ b/templates/item/item-ability-sheet.html @@ -18,7 +18,11 @@
- +