-
Notifications
You must be signed in to change notification settings - Fork 1
/
crcalculator.html
262 lines (235 loc) · 10.3 KB
/
crcalculator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--
XML data was compiled by a reddit community for use with the "Fight Club 5" app.
Google "5e xml files" for more info.
Feel free to use, edit, and redistribute this as you wish.
I don't own any of the XML data anyway.
-->
<title>CR Calc - 5estuff</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.png">
</head>
<body>
<header class="hidden-xs hidden-sm">
<div class="container">
<h1>CR Calculator</h1>
<p>Put in the values and press calculate</p>
</div>
</header>
<nav class="container">
<ul class="nav nav-pills ">
<li role="presentation"><a href="index.html">5estuff</a></li>
<li role="presentation"><a href="rules.html">Rules</a></li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Player Options <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="classes.html">Classes</a></li>
<li role="presentation"><a href="backgrounds.html">Backgrounds</a></li>
<li role="presentation"><a href="feats.html">Feats</a></li>
<li role="presentation"><a href="races.html">Races</a></li>
</ul>
</li>
<li role="presentation" class="dropdown active">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">DM Tools <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation" class="active"><a href="crcalculator.html">CR Calculator</a></li>
<li role="presentation"><a href="lootgen.html">Loot Generator</a></li>
<li role="presentation"><a href="loot-tables.html">Loot Tables</a></li>
<li role="presentation"><a href="templates.html">Templates</a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">References <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="bestiary.html">Bestiary</a></li>
<li role="presentation"><a href="conditions.html">Conditions</a></li>
<li role="presentation"><a href="items.html">Items</a></li>
<li role="presentation"><a href="spells.html">Spells</a></li>
</ul>
</li>
<li role="presentation"><a href="statgen.html">Statgen</a></li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Utilities<span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="converter.html">Stat Block to JSON</a></li>
<li role="presentation"><a href="editor.html">WYSIWYG Editor</a></li>
</ul>
</li>
</ul>
</nav>
<main class="container bodyContent">
<form id="crcalc" autocomplete="off">
<div class="row">
<div class="col-sm-6">
<div id="croutput">Waiting for calculation...</div>
<br>
<input type="button" id="reset" value="Reset">
<h4>Instructions</h4>
<ol>
<li>Enter expected CR of creature.</li>
<li>Fill in the HP, AC, and other defensive attributes of creature.</li>
<li>Fill in offensives attributes of creature. DPR is averaged over three rounds!</li>
<li>Click which special Monster Features it has.</li>
<li>Done!</li>
</ol>
<p><small>Be sure to read the <em>Dungeon Master's Guide</em> section on monster creation, pages 273 through 283. You can click on the table to the right to fill in values for a given and adjust to taste. You can hover over the individual labels for a short description of how each attribute contributes to a monster's CR.</small></p>
<hr>
<label for="expectedcr" style="font-size: 1em;">Expected CR:
<span class="explanation">
CR calculation begins by determining what you want the final CR of the monster to be.
</span>
</label>
<span class="inputwrap">
<input type="text" id="expectedcr" value="0" size="2">
</span><br>
</div>
<div class="col-sm-6">
<h4>Monster Statistics by Challenge Rating</h4>
<table id="msbcr">
<tr>
<th>CR</th>
<th>Prof. Bonus</th>
<th>Armor Class</th>
<th>Hit Points</th>
<th>Attack Bonus</th>
<th>Damage/Round</th>
<th>Save DC</th>
</tr>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6">
<input type="button" id="calculate" value="Calculate" style="display: none;">
<h4>Defense</h4>
<label for="hp">Hit Points
<span class="explanation">
A creature's hit points determine its defensive CR before it is adjusted by its AC.
</span>
</label>
<input type="number" id="hp" placeholder="Average HP" value="1" min="0" max="850"><br />
<label for="ac">Armor Class
<span class="explanation">
A creature's AC adjusts its defensive CR.
</span>
</label>
<input type="number" id="ac" placeholder="AC" value="13" min="1" max="40"><br />
<hr>
<label for="size">Size:
<span class="explanation">
A creature's size determines the size of its individual hit dice.
</span>
</label>
<span class="inputwrap">
<select id="size">
<option value="Tiny">Tiny</option>
<option value="Small">Small</option>
<option value="Medium" selected>Medium</option>
<option value="Large">Large</option>
<option value="Huge">Huge</option>
<option value="Gargantuan">Gargantuan</option>
</select>
</span><br />
<label for="hd">Hit Dice:
<span class="explanation">
Unlike player characters, the number of hit dice an NPC gets is completely arbitrary. Adjust this amount to taste.
</span>
</label> <span class="inputwrap"><input type="number" id="hd" value="1" min="1" max="999"><span id="hdval">d8</span></span><br />
<label for="con">Constitution:
<span class="explanation">
A creature's HP is increases by its Constitution modifier for each hit die it has.
</span>
</label><input type="number" id="con" value="10" min="1" max="30"><br>
<input type="button" id="calculatehp" value="Calculate Average HP" style="display: none;"><br>
<label for="vulnerabilities">Vulnerabilities:
<span class="explanation">
If a creature is vulnerable to common damage types (especially bludgeoning, piercing, and slashing damage), its effective hit points are halved.
</span></label>
<input type="checkbox" id="vulnerabilities"><br>
<label for="resistances">Resistances/Immunities:
<span class="explanation">
A monster's HP is multiplied based on the resistances and immunities has to common damage types (non-magical budgeoning, piercing, and slashing chief among them).
</span></label>
<span class="inputwrap">
<select id="resistances" value="0">
<option value="0">None</option>
<option value="res">Resistances</option>
<option value="imm">Immunities</option>
</select>
</span><br>
<label for="flying">Flying at CRs 0-9:
<span class="explanation">
A monster’s effective AC is increased by 2 if it can fly and deal damage at range, though only if its expected challenge rating is 10 or lower.
</span></label>
<input type="checkbox" id="flying"><br>
<label for="saveprofs">Save Proficiencies:
<span class="explanation">
Increase a creature's effective AC by 2 if it has 3 or 4 saving throw proficiencies, or by 4 if it has 5 or 6.
</span></label>
<span class="inputwrap">
<select id="saveprofs" value="0">
<option value="0">0-2</option>
<option value="2">3-4</option>
<option value="4">5-6</option>
</select>
</span><br>
</div>
<div class="col-sm-6">
<h4>Offensive</h4>
<label for="dpr">Damage Per Round
<span class="explanation">
A creature's damage per round (DPR) determines its offensive CR, which is offset by its attack bonus or save DC. DPR is determined by averaging its maximum damage output (taking the average of dice rolls, ignoring crits and accuracy) over three rounds. Areas of effect are treated as though they hit two creatures, which fail any involved saving throws.
</span>
</label>
<input type="number" id="dpr" placeholder="Average DPR" value="1" min="0" max="320"><br />
<label for="attackbonus">Attack Bonus/Save DC
<span class="explanation">
A creature's attack bonus or save DC adjuts its offensive CR.
</span>
</label>
<input type="number" id="attackbonus" placeholder="Attack Bonus" value="3" min="-5" max="19"><br>
<label for="saveinstead">Use Saves?
<span class="explanation">
If a creature's damage output is more dependent on save-based abilities, its save DC is used for adjusting its offensive CR instead of its attack bonus.
</span>
</label>
<input type="checkbox" id="saveinstead" value="0"><br>
<hr>
</div>
</div>
</form>
<hr>
<div class="row">
<div class="col-sm-12" id="monsterfeatures">
<h4>Monster Features</h4>
<table>
<tr>
<th>Use?</th>
<th>Name</th>
<th>Example Monster</th>
<th>Effect</th>
<th>Effect on Challenge Rating</th>
</tr>
</table>
<p><small><em>Note: not all monster features are covered here. The DMG has specific instructions on how to manage other features.</em></small></p>
</div>
</div>
<hr>
</main>
<footer class="container">
</footer>
<script type="text/javascript" src="js/page-crcalculator.js"></script>
<script type="text/javascript" src="data/msbcr.json"></script>
<script type="text/javascript" src="data/monsterfeatures.json"></script>
<script type="text/javascript" src="js/list.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</body>
</html>