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 + }); + } + }); + }); + +