Skip to content

Commit

Permalink
Add 5e support for monsters/creatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Nereare committed Aug 3, 2022
1 parent e8d027a commit 4304e0e
Show file tree
Hide file tree
Showing 10 changed files with 674 additions and 273 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
nereare_grimoire (1.13.13)
nereare_grimoire (1.18.0)
jekyll (>= 4.0)
jekyll-feed (>= 0.12.1)
jekyll-redirect-from (>= 0.15)
Expand Down
438 changes: 299 additions & 139 deletions _layouts/monster.html

Large diffs are not rendered by default.

80 changes: 80 additions & 0 deletions _plugins/cr-format.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
module Jekyll
module CRFormat
def cr_format(input)
case input
when 0
return "0 (0 XP or 10 XP)"
when "1/8"
return "1/8 (25 XP)"
when "1/4"
return "1/4 (50 XP)"
when "1/2"
return "1/2 (100 XP)"
when 1
return "1 (200 XP)"
when 2
return "2 (450 XP)"
when 3
return "3 (700 XP)"
when 4
return "4 (1,100 XP)"
when 5
return "5 (1,800 XP)"
when 6
return "6 (2,300 XP)"
when 7
return "7 (2,900 XP)"
when 8
return "8 (3,900 XP)"
when 9
return "9 (5,000 XP)"
when 10
return "10 (5,900 XP)"
when 11
return "11 (7,200 XP)"
when 12
return "12 (8,400 XP)"
when 13
return "13 (10,000 XP)"
when 14
return "14 (11,500 XP)"
when 15
return "15 (13,000 XP)"
when 16
return "16 (15,000 XP)"
when 17
return "17 (18,000 XP)"
when 18
return "18 (20,000 XP)"
when 19
return "19 (22,000 XP)"
when 20
return "20 (25,000 XP)"
when 21
return "21 (33,000 XP)"
when 22
return "22 (41,000 XP)"
when 23
return "23 (50,000 XP)"
when 24
return "24 (62,000 XP)"
when 25
return "25 (75,000 XP)"
when 26
return "26 (90,000 XP)"
when 27
return "27 (105,000 XP)"
when 28
return "28 (120,000 XP)"
when 29
return "29 (135,000 XP)"
when 30
return "30 (155,000 XP)"
else
return "—"
end
end
end
end

Liquid::Template.register_filter(Jekyll::CRFormat)
38 changes: 23 additions & 15 deletions assets/css/stats-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,28 +76,34 @@ $bar : $h-line;
padding-left: 1.1em;
line-height: 1.4em;

&.first{ margin: 8px 0 0; }
&.last{ margin: 0 0 10px; }
&:first-child { margin-top: 8px; }
&:last-child { margin-bottom: 10px; }

h4, p {
display: inline;
margin: 0;
color: $header;
color: $body;
font-size: 13.5px;
line-height: 1.2em;
}
h4{
font-family: 'Montserrat', sans-serif;
font-variant: normal;
color: $header;
&:after { content: ':'; }
color: $body;
font-weight: 900;
&:after { content: '.'; }
}
p { color: black; }

ul {
list-style-type: none;
text-indent: 2px;
}
}

.abilities {
text-align: center;
color: $header;
color: $body;

& > div {
display: inline-block;
Expand All @@ -113,7 +119,8 @@ $bar : $h-line;
font-size: 14px;
line-height: 1.2em;
text-transform: uppercase;
color: $header;
color: $body;
font-weight: bold;
}
& p {
margin: 0 0 10px;
Expand All @@ -133,27 +140,28 @@ $bar : $h-line;
& h4 {
font-family: 'Montserrat', sans-serif;
font-variant: none;
&:after { content: ':'; }
color: $body;
&:after { content: '.'; }
}
}

.actions {
margin: 0 0 20px;

& h3 {
p {
text-indent: 10px;
margin-top: 5px;
}
h3 {
border-bottom: 1px solid $header;
color: $header;
font-size: 21px;
font-variant: small-caps;
font-weight: normal;
letter-spacing: 1px;
margin: 20px 0 0;
padding: 0 0 10px;
text-indent: 5px;
}
&:last-child{ margin: 0; }
&:last-child { margin: 0; }
}

@media screen and (max-width: 575px){
@media screen and (max-width: 575px) {
.stat-block { margin: 20px 0; }
}
149 changes: 104 additions & 45 deletions docs/layouts/monster.md

Large diffs are not rendered by default.

71 changes: 0 additions & 71 deletions docs/layouts/monster_example.md

This file was deleted.

73 changes: 73 additions & 0 deletions docs/layouts/monster_example_35.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
title: 3.5e Example
layout: default

parent: Monster
grand_parent: Layouts Guide
nav_order: 1
---

# 3.5e Monster Example

Here is an example of an empty monster entry.

```yaml
---
title : Monster Page Title
author : Author Name
date : 2019-08-19

monster:
name : Terrasque
size : Colossal
type : Magical Beast
subtype : non-biped
align : always neutral
abilities:
str : 45
dex : 16
con : 35
int : 3
wis : 14
cha : 14
e35:
ac:
base : 35
desc : -8 size, +3 Dex, +30 natural
touch : 5
flat : 32
hp:
hp : 858
hd : 48d10 + 594
speed : 20ft
initiative : +7
space : 30ft
reach : 20ft
saves:
fort : +38
ref : +29
will : +20
skills : Listen +17, Search +9, Spot +17, Survival +14 (+16 following tracks)
feats : Alertness, Awesome Blow, Blind-Fight, Cleave, Combat Reflexes, Dodge, Great Cleave, Improved Bull Rush, Improved Initiative, Iron Will, Power Attack, Toughness (6)
cr : 20
treasure : None
advancement : 49+ HD (Colossal)
lvl_adj : N/A
env : Any
org : Solitary
qualities : Augmented critical, frightful presence, improved grab, rush, swallow whole
sp_attacks : Augmented critical, frightful presence, improved grab, rush, swallow whole
attacks:
- name : Full Attack
desc : Bite +57 melee (4d8+17/18-20/×3) and 2 horns +52 melee (1d10+8) and 2 claws +52 melee (1d12+8) and tail slap +52 melee (3d8+8)
- name : Bite
desc : +57 melee (4d8+17/18-20/×3)
possessions :
- name : Item
desc : Description

layout: monster
---

# Description of the monster here.
```
Loading

0 comments on commit 4304e0e

Please sign in to comment.