From 08a8415cba633d74c21c40087034cb1e2cdcbe48 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 1 Nov 2022 16:26:53 +0100 Subject: [PATCH] NPC + roll enhancements + calcul intensite --- lang/en.json | 9 +- lang/fr.json | 19 ++ styles/simple.css | 14 ++ system.json | 12 +- template.json | 14 ++ templates/actor-partial-ames.html | 2 +- templates/actor-pm-sheet.html | 277 ++++++++++++----------------- templates/actor-sheet.html | 142 +++++++++------ templates/item-default-sheet.html | 19 +- templates/roll-dialog-generic.html | 10 +- 10 files changed, 282 insertions(+), 236 deletions(-) create mode 100644 lang/fr.json diff --git a/lang/en.json b/lang/en.json index 077404a..a624b2a 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1,3 +1,6 @@ -{ - -} \ No newline at end of file +"ACTOR": { + "TypePersonnage": "Personnage", + "TypeCreature": "Créature", + "TypeEntite": "Entité de cauchemar", + "TypeVehicule": "Véhicule" +}, diff --git a/lang/fr.json b/lang/fr.json new file mode 100644 index 0000000..718d9fa --- /dev/null +++ b/lang/fr.json @@ -0,0 +1,19 @@ +{ + "ACTOR": { + "TypeCharacter": "Personnage", + "TypePm": "Protagoniste du meneur" + }, + "ITEM": { + "TypeCapacite": "Capacité", + "TypeArchetype": "Archétype", + "TypeSpecialite": "Spécialité", + "TypeFamiliarite": "Familiarité", + "TypeNature": "Nature Profonde", + "TypeTrait": "Trait", + "TypeSymbiose": "Symbiose", + "TypeRessource": "Ressource", + "TypeSingularite": "Singularité", + "TypeContact": "Contact", + "TypeEquipement": "Equipement" + } +} \ No newline at end of file diff --git a/styles/simple.css b/styles/simple.css index d8d2576..77f54d0 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1402,6 +1402,10 @@ ul, li { width: 64px; height: auto; } +.separator-slash { + width: 0.8rem; + max-width: 0.8rem; +} .item-name-img { flex-grow:1; max-width: 2rem; @@ -1438,6 +1442,16 @@ ul, li { max-width: 8rem; min-width: 8rem; } +.item-field-label-long2 { + flex-grow:1; + max-width: 20rem; + min-width: 20rem; +} +.item-field-label-long2-no-img { + flex-grow:1; + max-width: 18rem; + min-width: 18rem; +} .item-control-end { align-self: flex-end; } diff --git a/system.json b/system.json index df9e4a8..5b366ba 100644 --- a/system.json +++ b/system.json @@ -7,7 +7,15 @@ "flags": {} } ], - "version": "10.0.9", + "languages": [ + { + "lang": "fr", + "name": "Français", + "path": "lang/fr.json", + "flags": {} + } + ], + "version": "10.0.12", "compatibility": { "minimum": "10", "verified": "10", @@ -67,5 +75,5 @@ "background": "images/ui/imperium5_welcome_page.webp", "url": "https://www.uberwald.me/gitea/uberwald/fvtt-imperium5", "manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-imperium5/raw/branch/master/system.json", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-imperium5/archive/fvtt-imperium5-v10.0.7.zip" + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-imperium5/archive/fvtt-imperium5-v10.0.11.zip" } \ No newline at end of file diff --git a/template.json b/template.json index f03d2d4..9e8dd92 100644 --- a/template.json +++ b/template.json @@ -141,6 +141,20 @@ } ], "rupture": 0 + }, + "paradigmes": { + "custom01": { + "label": "A changer", + "value": 0, + "used": false, + "editable": true + }, + "custom02": { + "label": "A changer", + "value": 0, + "used": false, + "editable": true + } } } }, diff --git a/templates/actor-partial-ames.html b/templates/actor-partial-ames.html index 29fa111..ea91999 100644 --- a/templates/actor-partial-ames.html +++ b/templates/actor-partial-ames.html @@ -15,7 +15,7 @@ / + @root.editScore}}disabled{{/unless}} /> diff --git a/templates/actor-pm-sheet.html b/templates/actor-pm-sheet.html index 1d1d0d8..7c37f70 100644 --- a/templates/actor-pm-sheet.html +++ b/templates/actor-pm-sheet.html @@ -31,79 +31,59 @@

AMES

- +
-

Niveau

+ + name="system.ames.niveau" value="{{system.ames.niveau}}" data-dtype="Number" {{#unless + @root.editScore}}disabled{{/unless}} />
-

Intensité

+ + name="system.ames.intensite" value="{{system.ames.intensite}}" data-dtype="Number" {{#unless + @root.editScore}}disabled{{/unless}} />
+ + + + + + + + + + + + + + + + + +
-
-
- - -

ARCHETYPE

-
-

-
    -
  • - - {{archetype.name}} -
     
    -
    - - -
    -
  • -
- -

Spécialités

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

Familiarités :

-
    - {{#each familiarites as |fami key|}} -
  • - - {{fami.name}} -
     
    -
    - - -
    -
  • - {{/each}} -
- -
-
- - -
-
@@ -115,12 +95,18 @@
+
+ +
+ +

NATURE PROFONDE

+ {{#if nature}}
  • @@ -132,6 +118,13 @@
+ {{else}} + + {{/if}}

Traits

- - - - - - {{!-- Equipement Tab --}} -
- -
-
  • @@ -200,6 +183,9 @@
+
+ +
  • @@ -230,63 +216,63 @@
-
+
-
+
+
    +
  • + +

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

    +
    + + + +
  • + {{#each contacts as |contact key|}} +
  • + + {{contact.name}} + {{contact.system.value}} + +
     
    +
    + + +
    +
  • + {{/each}} +
+
-
-
    -
  • - -

    -
    - - - -
  • - {{#each singularites as |singul key|}} -
  • - - {{singul.name}} - {{singul.system.value}} -
     
    -
    - - -
    -
  • - {{/each}} -
-
-
    -
  • - -

    -
    - - - -
  • - {{#each contacts as |contact key|}} -
  • - - {{contact.name}} - {{contact.system.value}} - -
     
    -
    - - -
    -
  • - {{/each}} -
-
- -
@@ -308,7 +294,8 @@
  • - +
  • @@ -321,18 +308,21 @@
  • - +
  • - +
  • - +
  • @@ -341,7 +331,8 @@
  • - +
  • @@ -354,16 +345,7 @@ editable=editable}} -
    -

    Autres identités :

    -
    - {{editor system.biodata.identities target="system.biodata.identities" button=true owner=owner - editable=editable}} -
    -
    - -

    Traits particuliers :

    @@ -371,30 +353,7 @@ editable=editable}}
    -
    -

    Souvenirs quantiques :

    -
    - {{editor system.biodata.memories target="system.biodata.memories" button=true owner=owner - editable=editable}} -
    -
    -
    -
    -
    -

    Rebuild :

    -
    - {{editor system.biodata.rebuild target="system.biodata.rebuild" button=true owner=owner - editable=editable}} -
    -
    -
    -

    Relations, contacts et acolytes :

    -
    - {{editor system.biodata.contacts target="system.biodata.contacts" button=true owner=owner - editable=editable}} -
    -

    Qui suis-je :

    diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index a397f98..833775f 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -28,17 +28,20 @@

    KARMA

    - Karma + Karma + name="system.karma.value" value="{{system.karma.value}}" data-dtype="Number" {{#unless + @root.editScore}}disabled{{/unless}} /> Source + name="system.karma.source" value="{{system.karma.source}}" data-dtype="Number" {{#unless + @root.editScore}}disabled{{/unless}} /> - XP + XP + name="system.karma.xp" value="{{system.karma.xp}}" data-dtype="Number" {{#unless + @root.editScore}}disabled{{/unless}} />
    @@ -52,11 +55,14 @@

    AMES

    - {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="physique" typedata=system.amestype.physique}} + {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="physique" + typedata=system.amestype.physique}} - {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="social" typedata=system.amestype.social}} + {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="social" + typedata=system.amestype.social}} - {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="mental" typedata=system.amestype.mental}} + {{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="mental" + typedata=system.amestype.mental}}
    @@ -68,6 +74,8 @@

    ARCHETYPE

    + + {{#if archetype}} + {{else}} + + + {{/if}}

    Spécialités