Skip to content

Commit ff4cc23

Browse files
authored
Merge pull request #380 from datdamnzotz/fix-html-markup-add-rolls-to-tools
fix html markup and add rolls to tools
2 parents b7ad2fe + f1105b9 commit ff4cc23

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cljs/orcpub/dnd/e5/views.cljs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@
28992899
[:tr.f-w-b
29002900
{:class-name (if mobile? "f-s-12")}
29012901
[:th.p-10 "Name"]
2902-
[:td.p-10 (if mobile? "Prof?" "Proficient?")]
2902+
[:th.p-10 (if mobile? "Prof?" "Proficient?")]
29032903
(if skill-expertise
29042904
[:th.p-10 "Expertise?"])
29052905
[:th.p-10 (if (not mobile?) [:div.w-40 "Bonus"])]]
@@ -2940,7 +2940,7 @@
29402940
[:tr.f-w-b
29412941
{:class-name (if mobile? "f-s-12")}
29422942
[:th.p-10 "Name"]
2943-
[:td.p-10 (if mobile? "Prof?" "Proficient?")]
2943+
[:th.p-10 (if mobile? "Prof?" "Proficient?")]
29442944
(if tool-expertise
29452945
[:th.p-10 "Expertise?"])
29462946
[:th.p-10 (if (not mobile?) [:div.w-40 "Bonus"])]]
@@ -2956,7 +2956,10 @@
29562956
[:td.p-10 (boolean-icon proficient?)]
29572957
(if tool-expertise
29582958
[:td.p-10 (boolean-icon expertise?)])
2959-
[:td.p-10.f-s-18.f-w-b (common/bonus-str (tool-bonus-fn kw))]]))
2959+
[:td.p-10.f-s-18.f-w-b (common/bonus-str (tool-bonus-fn kw))]
2960+
[:td [:div.tooltip [:button.roll-button
2961+
{:on-click (button-roll-handler (str name " check: ") (str "1d20" (common/mod-str (tool-bonus-fn kw))))}
2962+
"Roll"] [:span.tooltiptext "ctrl+click for advantage shift+click for disadvantage"]]]]))
29602963
tool-profs))]]]])))))
29612964

29622965

0 commit comments

Comments
 (0)