diff --git a/Ratten/ratten.css b/Ratten/ratten.css index c6df673a6e..a01d65bfe2 100644 --- a/Ratten/ratten.css +++ b/Ratten/ratten.css @@ -52,11 +52,26 @@ } .sheet-rolltemplate-standard .sheet-rolltemplate-item-left { - width: 90%; + width: 80%; } .sheet-rolltemplate-standard .sheet-rolltemplate-item-right { - width: 10%; + width: 20%; +} + +.sheet-rolltemplate-standard .rolltemplate-item-centered { + width: 100%; + font-weight: bold; +} + +.sheet-rolltemplate-standard .sheet-green { + color: green; + margin: 0 auto; +} + +.sheet-rolltemplate-standard .sheet-red { + color: red; + margin: 0 auto; } .holder .curved-border { @@ -64,7 +79,7 @@ border-radius: 5px; } -.holder button[type=roll].sheet-d6-dice::before { +.holder button.sheet-d6-dice::before { font-family: 'dicefontd6'; content: 'F '; } @@ -192,4 +207,4 @@ button { .holder .copyright { grid-column: 2 / 3; grid-row: 30 / 31; -} +} \ No newline at end of file diff --git a/Ratten/ratten.html b/Ratten/ratten.html index 1efeab2c8c..5e0eefd8cb 100644 --- a/Ratten/ratten.html +++ b/Ratten/ratten.html @@ -1,136 +1,176 @@
- RATTEN! - Charakterbogen © Loki -
- Name: - Rotte: - Ich: + RATTEN! + Charakterbogen © Loki +
+ Name: + Rotte: + Ich: +
+
+ EIGENSCHAFTEN +
+
+ Clever +
+
+ Sozial +
+
+ Stark +
+
+ Schnell +
+
+ Zäh +
+
+ Würfelpool: +
+
+ TALENTE +
+
+
+ +
+
+
+ TRICKS +
+
+
+ +
+
+
+ LIEDER +
+
+
+ + +
+
+
+ ROTTENVOR- UND NACHTEILE +
+
+
+ +
+
+
-
- EIGENSCHAFTEN -
-
- Clever -
-
- Sozial -
-
- Stark -
-
- Schnell -
-
- Zäh -
-
- Würfelpool: -
-
- TALENTE -
-
-
- -
-
-
- TRICKS -
-
-
- -
-
-
- LIEDER -
-
-
- - -
-
-
- ROTTENVOR- UND NACHTEILE -
-
-
- -
-
- -
- + -
-
{{name}}
-
 
-
-
Probe:
-
{{Probe}}
+
+
{{name}}
+
 
+
+
Probe:
+
{{Probe}}
+
+
+
Schwierigkeit:
+
{{Schwierigkeit}}
+
+ {{#rollBetween() computed::Gluecksgriff 1 1}} +
 
+
+
Glücksgriff!
+
+ {{/rollBetween() computed::Gluecksgriff 1 1}} + {{#rollBetween() computed::Patzer 1 1}} +
 
+
+
Patzer!
+
+ {{/rollBetween() computed::Patzer 1 1}}
-
-
Schwierigkeit:
-
{{Schwierigkeit}}
-
-
- + + on("clicked:clever", function() { + getAttrs(["clever"], function(values) { + calculateDicepool(values.clever); + }); + }); + + on("clicked:sozial", function() { + getAttrs(["sozial"], function(values) { + calculateDicepool(values.sozial); + }); + }); + + on("clicked:stark", function() { + getAttrs(["stark"], function(values) { + calculateDicepool(values.stark); + }); + }); + + on("clicked:schnell", function() { + getAttrs(["schnell"], function(values) { + calculateDicepool(values.schnell); + }); + }); + + on("clicked:zaeh", function() { + getAttrs(["zaeh"], function(values) { + calculateDicepool(values.zaeh); + }); + }); + + on("clicked:delete", function() { + setAttrs({ + wuerfelpool: 0 + }); + }); + + function calculateDicepool(value) { + getAttrs(["wuerfelpool"], function(values) { + setAttrs({ + wuerfelpool: (+values.wuerfelpool + +value) + }); + }); + + } + \ No newline at end of file