diff --git a/Harry Potter JDR/harryPotterJDR.css b/Harry Potter JDR/harryPotterJDR.css index 62e525a976..aa690e84eb 100644 --- a/Harry Potter JDR/harryPotterJDR.css +++ b/Harry Potter JDR/harryPotterJDR.css @@ -210,7 +210,7 @@ div.sheet-options { display: none; background: var(--fond); - width: 200px; + width: 260px; justify-content: space-between; border-radius: 5px; z-index: 100; @@ -218,6 +218,7 @@ div.sheet-options border: 1px solid black; padding: 5px; right: 60px; + flex-wrap:wrap; } div.sheet-options > label @@ -253,7 +254,7 @@ div.sheet-options > label > select width: 50%; padding: 0px; text-align: center; - height: 20px; + height: 100%; border-radius: 0px; } @@ -1210,7 +1211,7 @@ div.sheet-competencesMoldus > .repcontrol > .btn:last-of-type, div.sheet-competencesSorciers > .repcontrol > .btn:last-of-type { border-left:0px; - margin-top:-3px; + margin-top:-2px; } div.sheet-competencesGenerales > div:nth-of-type(1), @@ -1624,12 +1625,18 @@ div.sheet-competencesSorciers > .repcontainer > .repitem > div > label > input[t cursor:context-menu; } -input[type="hidden"].sheet-sangHidden[value="1"] + div.sheet-competencesMoldus, -input[type="hidden"].sheet-sangHidden[value="3"] + div.sheet-competencesSorciers +input[type="hidden"].sheet-sangHidden[value="1"] ~ div.sheet-competencesMoldus, +input[type="hidden"].sheet-sangHidden[value="3"] ~ div.sheet-competencesSorciers { display:none; } +input[type="hidden"].sheet-educationMixte[value="1"] ~ div.sheet-competencesMoldus, +input[type="hidden"].sheet-educationMixte[value="1"] ~ div.sheet-competencesSorciers +{ + display:flex; +} + div.sheet-sortileges, div.sheet-potions { diff --git a/Harry Potter JDR/harryPotterJDR.html b/Harry Potter JDR/harryPotterJDR.html index cbdba1bd9e..d934d84981 100644 --- a/Harry Potter JDR/harryPotterJDR.html +++ b/Harry Potter JDR/harryPotterJDR.html @@ -34,7 +34,7 @@ { const sang = parseInt(value["sang"], 10)||0; - if(sang== 0 || sang == 1 || sang == 3) + if(sang == 0) { setAttrs({ bricolageMB:10, @@ -47,6 +47,19 @@ }); } + if(sang == 1) + { + setAttrs({ + bricolageMB:0, + cultureGeneraleMoldueMMB:0, + jeuxMoldusMMB:0, + serrurerieMB:0, + cultureGeneraleSorciersSMB:20, + jeuxSorciersSMB:10, + mythesLegendesSorciersMB:5 + }); + } + if(sang == 2) { setAttrs({ @@ -59,6 +72,19 @@ mythesLegendesSorciersMB:0 }); } + + if(sang == 3) + { + setAttrs({ + bricolageMB:10, + cultureGeneraleMoldueMMB:20, + jeuxMoldusMMB:10, + serrurerieMB:10, + cultureGeneraleSorciersSMB:0, + jeuxSorciersSMB:0, + mythesLegendesSorciersMB:0 + }); + } }); }); @@ -70,6 +96,26 @@ ["debloquerCScolaire"]:1 }); }); + + on( + "sheet:opened" + , function() + { + getAttrs(["discretionFamilier", "version"], function(value) + { + const version = parseInt(value["version"], 10)||0; + const discretion = parseInt(value["discretionFamilier"], 10)||0; + + if(version < 1) + { + setAttrs({ + discretionScoreFamilier:discretion, + discretionFamilier:"Discrétion", + version:1 + }); + } + }); + }); + +
@@ -189,44 +249,44 @@
- + - +
- + - +
- + - +
- + - +
- + - +
- + - +
- + - +
- + - +
@@ -269,11 +329,11 @@
- +
- +
- - - - - + + + + +
@@ -361,6 +421,7 @@
+
@@ -386,7 +447,7 @@ - +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
+

Compétences des Moldus

- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
+

Compétences des Sorciers

- +
- +
- +
- +
- +
@@ -2072,32 +2135,32 @@
- +
- +
- +
- +
- +
- +
@@ -2118,97 +2181,97 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -2226,28 +2289,28 @@
- - + +
- +
- +
- +
- +
@@ -2268,117 +2331,117 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -2396,32 +2459,32 @@
- +
- +
- +
- +
- +
- +
@@ -2442,97 +2505,97 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -2550,28 +2613,28 @@
- - + +
- +
- +
- +
- +
@@ -2592,117 +2655,117 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -2720,32 +2783,32 @@
- +
- +
- +
- +
- +
- +
@@ -2766,97 +2829,97 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -2874,28 +2937,28 @@
- - + +
- +
- +
- +
- +
@@ -2916,117 +2979,117 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -3044,32 +3107,32 @@
- +
- +
- +
- +
- +
- +
@@ -3090,97 +3153,97 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -3198,28 +3261,28 @@
- - + +
- +
- +
- +
- +
@@ -3275,7 +3338,7 @@ - +
- +
- +
@@ -3398,17 +3461,17 @@
- +
- +
- +
@@ -3428,17 +3491,17 @@
- +
- +
- +
@@ -3458,17 +3521,17 @@
- +
- +
- +
@@ -3649,44 +3712,44 @@

Caractéristiques

- + - +
- + - +
- + - +
- + - +
- + - +
- + - +
- + - +
- + - +
@@ -3729,7 +3792,7 @@
- +
@@ -3742,37 +3805,37 @@
- +
- - + +
- +
- +
- +
- +
- +
@@ -3803,7 +3866,7 @@ Difficulté {{diff}}
- {{#^rollBetween() jet 1 5}} + {{#^rollBetween() jet 1 critique}} {{#^rollBetween() jet 96 100}} {{#rollBetween() jet 1 diff}}
@@ -3811,9 +3874,9 @@
{{/rollBetween() jet 1 diff}} {{/^rollBetween() jet 96 100}} - {{/^rollBetween() jet 1 5}} + {{/^rollBetween() jet 1 critique}} - {{#^rollBetween() jet 1 5}} + {{#^rollBetween() jet 1 critique}} {{#^rollBetween() jet 96 100}} {{#rollGreater() jet diff}}
@@ -3821,13 +3884,13 @@
{{/rollGreater() jet diff}} {{/^rollBetween() jet 96 100}} - {{/^rollBetween() jet 1 5}} + {{/^rollBetween() jet 1 critique}} - {{#rollBetween() jet 1 5}} + {{#rollBetween() jet 1 critique}}
Réussite critique
- {{/rollBetween() jet 1 5}} + {{/rollBetween() jet 1 critique}} {{#rollBetween() jet 96 100}}