Implement the 026-roll-initiative feature that adds d20 roll buttons for bestiary combatants' initiative using a click-to-edit pattern (d20 icon when empty, plain text when set), plus a Roll All button in the top bar that batch-rolls for all unrolled bestiary combatants, with randomness confined to the adapter layer and the domain receiving pre-resolved dice values

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-03-10 16:29:09 +01:00
parent 5b0bac880d
commit d5f7b6ee36
20 changed files with 926 additions and 27 deletions

19
d20.svg Normal file
View File

@@ -0,0 +1,19 @@
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
width="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1"
stroke-linecap="round"
stroke-linejoin="round"
>
<polygon points="20.22 16.76 20.22 7.26 12.04 2.51 3.85 7.26 3.85 16.76 12.04 21.51 20.22 16.76"/>
<line x1="7.29" y1="9.26" x2="3.85" y2="7.26"/>
<line x1="20.22" y1="7.26" x2="16.79" y2="9.26"/>
<line x1="12.04" y1="17.44" x2="12.04" y2="21.51"/>
<polygon points="12.04 17.44 20.22 16.76 16.79 9.26 12.04 17.44"/>
<polygon points="12.04 17.44 7.29 9.26 3.85 16.76 12.04 17.44"/>
<polygon points="12.04 2.51 7.29 9.26 16.79 9.26 12.04 2.51"/>
</svg>

After

Width:  |  Height:  |  Size: 667 B