Refactored random tables for GM sheet, added treasure table, and removed epub background image.

This commit is contained in:
Mark Wolfman
2021-08-15 22:12:05 -05:00
parent e7ccb6f9f3
commit 52903d91a1
6 changed files with 1226 additions and 542 deletions
+2
View File
@@ -55,6 +55,8 @@ the following random tables are available.
- **"conjure animals"** - A list of options to choose from when a
player casts the *Conjure Animals* spell.
- **"treasure"** - Tables for rolling treasure dropped by individuals
or hoards.
.. code-block:: python
:caption: Example:
+5 -1
View File
@@ -251,7 +251,7 @@ def html_parts(
return parts
def rst_to_html(rst, top_heading_level=0):
def rst_to_html(rst, top_heading_level: int = 0, format_dice: bool = True):
"""Basic markup of reST to HTML code.
The translation between reST headings and LaTeX headings is
@@ -268,6 +268,9 @@ def rst_to_html(rst, top_heading_level=0):
top_heading_level : optional
The highest level heading that will be added to the HTML as
described above.
format_dice
If true, dice strings (e.g. "1d4") will be formatted in
monospace font.
Returns
=======
@@ -280,6 +283,7 @@ def rst_to_html(rst, top_heading_level=0):
html = ""
else:
# Mark hit dice in monospace font
if format_dice:
rst = dice_re.sub(r"``\1``", rst)
_html_parts = html_parts(rst)
html = _html_parts["body"]
+5 -5
View File
@@ -6,7 +6,7 @@ h1, h2, h3, h4, h5, h6 {
}
body {
/* background: #f4ecdb; */
background-image: url("../images/paper.jpg");
/* background-image: url("../images/paper.jpg"); */
background-size: 100%;
}
p {
@@ -156,14 +156,14 @@ table p {
}
th {
padding-left: 5px;
padding-right: 5px;
padding-left: 10px;
padding-right: 10px;
text-align: center;
}
td {
padding-left: 5px;
padding-right: 5px;
padding-left: 10px;
padding-right: 10px;
text-align: center;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 KiB

After

Width:  |  Height:  |  Size: 67 KiB

+4 -535
View File
@@ -1,539 +1,8 @@
<h1 id="gm-random-tables">Random Tables</h1>
[% if conjure_animals %]
[% for table in tables %]
<h2 id="gm-random-tables-[[ table.name | to_heading_id ]]">[[ table.name ]]</h2>
<!-- https://the-azure-triskele.obsidianportal.com/wikis/conjure-animals-table -->
<h2 id="gm-random-tables-conjure-animals">Conjure Animals</h2>
[[ table.__doc__ | rst_to_html(format_dice=False) ]]
<!-- Which category of beasts to summon -->
<table>
<tr>
<th>1d4</th>
<th>Number of Beasts</th>
</tr>
<tr>
<td>1</td>
<td>One beast of challenge rating 2</td>
</tr>
<tr>
<td>2</td>
<td>Two beasts of challenge rating 1</td>
</tr>
<tr>
<td>3</td>
<td>Four beasts of challenge rating 1/2</td>
</tr>
<tr>
<td>4</td>
<td>Eight beasts of challenge rating 1/4 or lower</td>
</tr>
</table>
<!-- CR2 Beasts -->
<table>
<tr>
<th>1d20</th>
<th>CR2 Beasts</th>
</tr>
<tr>
<td>1-2</td>
<td>Allosaurus</td>
</tr>
<tr>
<td>3-4</td>
<td>Giant Boar</td>
</tr>
<tr>
<td>5-6</td>
<td>Giant Constrictor Snake</td>
</tr>
<tr>
<td>7-8</td>
<td>Giant Elk</td>
</tr>
<tr>
<td>9-10</td>
<td>Hunter Shark</td>
</tr>
<tr>
<td>11</td>
<td>Plesiosaurus</td>
</tr>
<tr>
<td>12-13</td>
<td>Polar Bear</td>
</tr>
<tr>
<td>14-15</td>
<td>Rhinoceros</td>
</tr>
<tr>
<td>16-17</td>
<td>Saber-toothed Tiger</td>
</tr>
<tr>
<td>18-19</td>
<td>Swarm of Poisonous Snakes</td>
</tr>
<tr>
<td>20</td>
<td>Roll on CR 1 Beast Table</td>
</tr>
</table>
<!-- CR1 Beasts -->
<table>
<tr>
<th>1d12</th>
<th>Challenge Rating 1 Beasts</th>
</tr>
<tr>
<td>1</td>
<td>Brown Bear</td>
</tr>
<tr>
<td>2</td>
<td>Dire Wolf</td>
</tr>
<tr>
<td>3</td>
<td>Fire Snake</td>
</tr>
<tr>
<td>4</td>
<td>Giant Eagle</td>
</tr>
<tr>
<td>5</td>
<td>Giant Hyena</td>
</tr>
<tr>
<td>6</td>
<td>Giant Octopus</td>
</tr>
<tr>
<td>7</td>
<td>Giant Spider</td>
</tr>
<tr>
<td>8</td>
<td>Giant Toad</td>
</tr>
<tr>
<td>9</td>
<td>Giant Vulture</td>
</tr>
<tr>
<td>10</td>
<td>Lion</td>
</tr>
<tr>
<td>11</td>
<td>Tiger</td>
</tr>
<tr>
<td>12</td>
<td>Roll on CR ½ Beast Table</td>
</tr>
</table>
<table>
<tr>
<th>1d20</th>
<th>Challenge Rating ½ Beasts</th>
</tr>
<tr>
<td>1-2</td>
<td>Ape</td>
</tr>
<tr>
<td>3-4</td>
<td>Black Bear</td>
</tr>
<tr>
<td>5-6</td>
<td>Crocodile</td>
</tr>
<tr>
<td>7-8</td>
<td>Giant Goat</td>
</tr>
<tr>
<td>9-10</td>
<td>Giant Sea Horse</td>
</tr>
<tr>
<td>11-12</td>
<td>Giant Wasp</td>
</tr>
<tr>
<td>13-14</td>
<td>Reef Shark</td>
</tr>
<tr>
<td>15-16</td>
<td>Swarm of Insects (below)</td>
</tr>
<tr>
<td>17-18</td>
<td>Warhorse</td>
</tr>
<tr>
<td>19</td>
<td>Worg</td>
</tr>
<tr>
<td>20</td>
<td>Roll on Lesser Beast Menu Table</td>
</tr>
</table>
<!-- Swarm of insects (mostly for flavor) -->
<table>
<tr>
<th>1d6</th>
<th>Swarm of Insects</th>
</tr>
<tr>
<td>1</td>
<td>Ant</td>
</tr>
<tr>
<td>2</td>
<td>Beatles</td>
</tr>
<tr>
<td>3</td>
<td>Centipedes</td>
</tr>
<tr>
<td>4</td>
<td>Locusts</td>
</tr>
<tr>
<td>5</td>
<td>Spiders</td>
</tr>
<tr>
<td>6</td>
<td>Wasps</td>
</tr>
</table>
<!-- Challenge Rating 1/4 and Lesser Beasts -->
<table>
<tr>
<th>1d6</th>
<th>CR ¼ and Lesser Beast Menu</th>
</tr>
<tr>
<td>1-2</td>
<td>Menu A</td>
</tr>
<tr>
<td>3-4</td>
<td>Menu B</td>
</tr>
<tr>
<td>5-6</td>
<td>Menu C</td>
</tr>
</table>
<!-- CR1/4 and Lesser Beasts -->
<table>
<tr>
<th>1d20</th>
<th>Lesser Beast Menu A</th>
</tr>
<tr>
<td>1</td>
<td>Axe Beak</td>
</tr>
<tr>
<td>2</td>
<td>Baboon</td>
</tr>
<tr>
<td>3</td>
<td>Badger</td>
</tr>
<tr>
<td>4</td>
<td>Bat</td>
</tr>
<tr>
<td>5</td>
<td>Blood Hawk</td>
</tr>
<tr>
<td>6</td>
<td>Boar</td>
</tr>
<tr>
<td>7</td>
<td>Camel</td>
</tr>
<tr>
<td>8</td>
<td>Cat</td>
</tr>
<tr>
<td>9</td>
<td>Chicken*</td>
</tr>
<tr>
<td>10</td>
<td>Constrictor Snake</td>
</tr>
<tr>
<td>11</td>
<td>Crab</td>
</tr>
<tr>
<td>12</td>
<td>Deer</td>
</tr>
<tr>
<td>13</td>
<td>Draft Horse</td>
</tr>
<tr>
<td>14</td>
<td>Eagle</td>
</tr>
<tr>
<td>15</td>
<td>Elk</td>
</tr>
<tr>
<td>16</td>
<td>Flying Snake</td>
</tr>
<tr>
<td>17</td>
<td>Frog</td>
</tr>
<tr>
<td>18</td>
<td>Giant Badger</td>
</tr>
<tr>
<td>19</td>
<td>Giant Bat</td>
</tr>
<tr>
<td>20</td>
<td>Giant Centipede</td>
</tr>
</table>
<dl class="random-table-definitions">
<dt>*Chicken</dt>
<dd>Raven stats with Advantage on checks to wake
up targets instead of mimicry</dd>
</dl>
<!-- CR1/4 and Lesser Beasts -->
<table>
<tr>
<th>1d20</th>
<th>Lesser Beast Menu B</th>
</tr>
<tr>
<td>1</td>
<td>Giant Crab </td>
</tr>
<tr>
<td>2</td>
<td>Giant Fire Beetle </td>
</tr>
<tr>
<td>3</td>
<td>Giant Frog</td>
</tr>
<tr>
<td>4</td>
<td>Giant Lizard</td>
</tr>
<tr>
<td>5</td>
<td>Giant Owl</td>
</tr>
<tr>
<td>6</td>
<td>Giant Poisonous Snake</td>
</tr>
<tr>
<td>7</td>
<td>Giant Rat</td>
</tr>
<tr>
<td>8</td>
<td>Giant Weasel</td>
</tr>
<tr>
<td>9</td>
<td>Giant Wolf Spider</td>
</tr>
<tr>
<td>10</td>
<td>Goat</td>
</tr>
<tr>
<td>11</td>
<td>Hawk</td>
</tr>
<tr>
<td>12</td>
<td>Hyena</td>
</tr>
<tr>
<td>13</td>
<td>Jackal</td>
</tr>
<tr>
<td>14</td>
<td>Lemur*</td>
</tr>
<tr>
<td>15</td>
<td>Lizard</td>
</tr>
<tr>
<td>16</td>
<td>Mastiff</td>
</tr>
<tr>
<td>17</td>
<td>Mule</td>
</tr>
<tr>
<td>18</td>
<td>Newt**</td>
</tr>
<tr>
<td>19</td>
<td>Octopus</td>
</tr>
<tr>
<td>20</td>
<td>Octopus, Cascadian Tree***</td>
</tr>
</table>
<dl class="random-table-definitions">
<dt>*Lemur</dt>
<dd>Weasel stats with a common Climb speed instead of a
bite attack</dd>
<dt>**Newt</dt>
<dd>Lizard stats with Amphibious instead of a bite
attack</dd>
<dt>***Octopus, Cascadian Tree</dt>
<dd>Octopus stats with Amphibious
and a 10 ft land speed instead of camouflage</dd>
</dl>
<!-- CR1/4 and Lesser Beasts -->
<table>
<tr>
<th>1d20</th>
<th>Lesser Beast Menu C</th>
</tr>
<tr>
<td>1</td>
<td>Owl</td>
</tr>
<tr>
<td>2</td>
<td>Panther</td>
</tr>
<tr>
<td>3</td>
<td>Poisonous Snake</td>
</tr>
<tr>
<td>4</td>
<td>Pony</td>
</tr>
<tr>
<td>5</td>
<td>Pteranodon</td>
</tr>
<tr>
<td>6</td>
<td>Quipper</td>
</tr>
<tr>
<td>7</td>
<td>Rat</td>
</tr>
<tr>
<td>8</td>
<td>Raven</td>
</tr>
<tr>
<td>9</td>
<td>Riding Horse</td>
</tr>
<tr>
<td>10</td>
<td>Scorpion</td>
</tr>
<tr>
<td>11</td>
<td>Sea Horse</td>
</tr>
<tr>
<td>12</td>
<td>Shocker Lizard*</td>
</tr>
<tr>
<td>13</td>
<td>Spider</td>
</tr>
<tr>
<td>14</td>
<td>Swarm of Bats</td>
</tr>
<tr>
<td>15</td>
<td>Swarm of Rats</td>
</tr>
<tr>
<td>16</td>
<td>Swarm of Ravens</td>
</tr>
<tr>
<td>17</td>
<td>Turtle**</td>
</tr>
<tr>
<td>18</td>
<td>Vulture</td>
</tr>
<tr>
<td>19</td>
<td>Weasel</td>
</tr>
<tr>
<td>20</td>
<td>Wolf</td>
</tr>
</table>
<dl class="random-table-definitions">
<dt>*Shocker Lizard</dt>
<dd>Lizard stats with Static Electricity ranged attack of 1d6
Electricity damage Close/Medium.</dd>
<dt>**Turtle</dt>
<dd>Lizard stats with 14 natural armor and no climb speed.</dd>
</dl>
[% endif %]
[% endfor %]
File diff suppressed because it is too large Load Diff