From d4bfbcf4d59f6a910778d2f689cf9e130d1f5ccc Mon Sep 17 00:00:00 2001 From: Jacek Janiszewski Date: Fri, 7 Jan 2022 18:41:43 +0100 Subject: [PATCH] Restore roll parameters --- Neuroshima/Neuroshima.css | 26 +++++++++- Neuroshima/Neuroshima.html | 98 ++++++++++++++++++++++++++++---------- 2 files changed, 98 insertions(+), 26 deletions(-) diff --git a/Neuroshima/Neuroshima.css b/Neuroshima/Neuroshima.css index 28c169b4f6..524eefd976 100644 --- a/Neuroshima/Neuroshima.css +++ b/Neuroshima/Neuroshima.css @@ -92,6 +92,21 @@ html,body { overflow:hidden; } +.charsheet input.big-inactive-box { + background-color: rgba(0,0,0,0.3); + border:3px solid rgba(0,0,0,0.7); + color: rgba(0,0,0,0.8); + font-family: 'Special Elite', cursive; + font-weight: bold; + font-size:14px; + width:100%; + text-align:center; + height: 25px; + resize:none; + overflow:hidden; +} + + .charsheet input.subtle-black-box { background-color: rgba(0,0,0,0.8); border:0px none transparent; @@ -515,7 +530,7 @@ table.wspolczynniki input[type=number].wsp-star-display { } .charsheet div.param-page { - width:300px; + width:200px; } .charsheet div.params-holder { @@ -528,5 +543,14 @@ table.wspolczynniki input[type=number].wsp-star-display { display: flex; justify-content: space-between; } + +.charsheet span.postfix { + font-family: 'Candal', sans-serif; + font-size: 40; +} + +.charsheet .layout-element { + visibility: hidden; +} /************************** ROLL PARAMETERS ***********************/ /******************************************************************/ \ No newline at end of file diff --git a/Neuroshima/Neuroshima.html b/Neuroshima/Neuroshima.html index c8ce2c047e..6e9455140b 100644 --- a/Neuroshima/Neuroshima.html +++ b/Neuroshima/Neuroshima.html @@ -521,27 +521,59 @@

Ustawienia rzutu

-
- - - - - - - -
+ +
+
+ + + + + + + +
+
+
+ +
+
+ +
+
+ + + % +
+
+ + + % +
+
+ + + % +
+
+
+ + + % +
+
+

Umiejętności

@@ -2024,9 +2056,22 @@ const levelRadioValues = ["1","2","3","4","5","6"]; /******************************************************************/ on('clicked:test', (info) => { - startRoll("&{template:test} {{name=Test}} {{roll1={[[1d20]],[[1d20]],[[1d20]]}}}", (results) => { - const total = results.results.roll1.result; - const computed = total % 4; + startRoll("&{template:test} {{name=Test}} {{roll1=[[1d20]]}} {{roll2=[[1d20]]}} {{roll3=[[1d20]]}}", (results) => { + const total = results.results.roll1.result + results.results.roll2.result + results.results.roll3.result; + const computed = total + 10; + + // Difficulty Modifiers + let modifier = 0.5; + + // Difficulty Level + let lvl = 3; + + // Slider + + // Critical rolls ( 1 / 20 ) + + // Successes and failures + finishRoll( results.rollId, @@ -2057,7 +2102,10 @@ on('clicked:test2', (info) => {

{{name}}

-

Result = {{roll1}}

+

D1 = {{roll1}}

+

D2 = {{roll2}}

+

D3 = {{roll3}}

+

dice = {{dice::roll1}}

Custom Result = {{computed::roll1}}