-
Notifications
You must be signed in to change notification settings - Fork 1
/
crcalculator.html
338 lines (301 loc) · 13.2 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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<!DOCTYPE html>
<html lang="en">
<head>
<!--5ETOOLS_CMP-->
<!--5ETOOLS_ANALYTICS-->
<!--5ETOOLS_ADCODE-->
<meta charset="utf-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="mobile-web-app-capable" content="yes">
<title>CR Calculator - 5etools</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/crcalculator.css">
<!-- Favicons -->
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="icon" type="image/png" sizes="256x256" href="favicon-256x256.png">
<link rel="icon" type="image/png" sizes="144x144" href="favicon-144x144.png">
<link rel="icon" type="image/png" sizes="128x128" href="favicon-128x128.png">
<link rel="icon" type="image/png" sizes="64x64" href="favicon-64x64.png">
<link rel="icon" type="image/png" sizes="48x48" href="favicon-48x48.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<!-- Chrome Web App Icons -->
<link rel="manifest" href="manifest.webmanifest">
<meta name="application-name" content="5etools">
<meta name="theme-color" content="#006bc4">
<!-- Windows Start Menu tiles -->
<meta name="msapplication-config" content="browserconfig.xml"/>
<meta name="msapplication-TileColor" content="#006bc4">
<!-- Apple Touch Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon-180x180.png">
<link rel="apple-touch-icon" sizes="360x360" href="apple-touch-icon-360x360.png">
<link rel="apple-touch-icon" sizes="167x167" href="apple-touch-icon-167x167.png">
<link rel="apple-touch-icon" sizes="152x152" href="apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon-120x120.png">
<meta name="apple-mobile-web-app-title" content="5etools">
<!-- macOS Safari Pinned Tab and Touch Bar -->
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#006bc4">
<!-- OpenSearch -->
<link rel="search" href="open-search.xml" title="Search 5etools" type="application/opensearchdescription+xml">
<script type="text/javascript" src="sw-injector.js"></script>
<script type="text/javascript" src="js/styleswitch.js"></script>
<script type="text/javascript" src="js/navigation.js"></script>
<script type="text/javascript" src="js/browsercheck.js"></script>
</head>
<body>
<div class="overlay-noise no-print"></div>
<div class="cancer__wrp-leaderboard cancer__anchor"><div class="cancer__disp-cancer"></div><div class="cancer__wrp-leaderboard-inner"><!--5ETOOLS_AD_LEADERBOARD--></div></div>
<header class="hidden-xs hidden-sm page__header">
<div class="container ve-flex-v-baseline">
<h1 class="page__title no-wrap my-0" id="page__title">CR Calculator</h1>
<p class="page__subtitle no-wrap my-0" id="page__subtitle">Easily build custom creatures.</p>
</div>
</header>
<nav class="container page__nav" id="navigation">
<ul class="nav nav-pills page__nav-inner" id="navbar"></ul>
</nav>
<div class="cancer__wrp-sidebar-rhs cancer__wrp-sidebar-rhs--scrolling-page cancer__anchor"><div class="cancer__disp-cancer"></div><div class="cancer__sidebar-rhs-inner cancer__sidebar-rhs-inner--top"><!--5ETOOLS_AD_RIGHT_1--></div><div class="cancer__sidebar-rhs-inner cancer__sidebar-rhs-inner--bottom"><!--5ETOOLS_AD_RIGHT_2--></div></div>
<main class="container">
<form id="crcalc" autocomplete="off">
<div class="row">
<div class="col-sm-6">
<div id="croutput">Waiting for calculation...</div>
<button class="ve-btn ve-btn-sm ve-btn-danger crc__reset mt-3" id="crcalc_reset" type="button">Reset</button>
<h4>Instructions</h4>
<ol>
<li>Enter expected CR of the creature.</li>
<li>Fill in the HP, AC, and other defensive attributes of the creature.</li>
<li>Fill in offensives attributes of the creature. DPR is averaged over three rounds!</li>
<li>Add any special Monster Features of creature.</li>
</ol>
<p>
<small>Be sure to read the <em>Dungeon Master's Guide</em> <a href="book.html#dmg,9,creating%20a%20monster,0">section on monster creation</a>, 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. You can also hover over each feature description to see how that
feature affects the calculations.
</small>
</p>
<hr>
<div class="crc__row">
<label for="expectedcr" class="ui-tip__parent" style="font-size: 1em;">
Expected CR:
<span class="explanation ui-tip__child">
CR calculation begins by determining what you want the final CR of the monster to be.
</span>
</label>
<span class="ve-flex-v-center">
<input type="text" id="expectedcr" value="0" size="2" class="form-control form-control--minimal input-xs">
</span>
</div>
</div>
<div class="col-sm-6 ve-text-center">
<h4>Monster Statistics by Challenge Rating</h4>
<table id="msbcr">
<tr>
<th>CR</th>
<th>XP</th>
<th>Prof.<br>Bonus</th>
<th>Armor<br>Class</th>
<th>Hit<br>Points</th>
<th>Attack<br>Bonus</th>
<th>Damage/<br>Round</th>
<th>Save<br>DC</th>
</tr>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6">
<h4>Defensive</h4>
<div class="crc__row">
<label for="hp" class="ui-tip__parent">
Hit Points:
<span class="explanation ui-tip__child">
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" class="form-control form-control--minimal input-xs">
</div>
<div class="crc__row">
<label for="ac" class="ui-tip__parent">
Armor Class:
<span class="explanation ui-tip__child">
A creature's AC adjusts its defensive CR.
</span>
</label>
<input type="number" id="ac" placeholder="AC" value="13" min="1" max="40" class="form-control form-control--minimal input-xs">
</div>
</div>
<div class="col-sm-6">
<h4>Offensive</h4>
<div class="crc__row">
<label for="dpr" class="ui-tip__parent">
Damage Per Round:
<span class="explanation ui-tip__child">
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 critics 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" class="form-control form-control--minimal input-xs">
</div>
<div class="crc__row">
<label for="attackbonus" class="ui-tip__parent">
Attack Bonus/Save DC:
<span class="explanation ui-tip__child">
A creature's attack bonus or save DC adjusts its offensive CR.
</span>
</label>
<input type="number" id="attackbonus" placeholder="Attack Bonus" value="3" min="-5" max="19" class="form-control form-control--minimal input-xs">
</div>
<div class="crc__row">
<label for="saveinstead" class="ui-tip__parent">
Use Saves?
<span class="explanation ui-tip__child">
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">
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6">
<div class="crc__row">
<label for="size" class="ui-tip__parent">
Size:
<span class="explanation ui-tip__child">
A creature's size determines the size of its individual hit dice.
</span>
</label>
<span class="ve-flex-v-center">
<select id="size" class="form-control input-xs">
<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>
</div>
<div class="crc__row">
<label for="hd" class="ui-tip__parent">
Hit Dice:
<span class="explanation ui-tip__child">
Unlike player characters, the number of hit dice an NPC gets is completely arbitrary. Adjust this amount to taste.
</span>
</label>
<div class="ve-flex-v-center">
<input type="number" id="hd" value="1" min="1" max="999" class="form-control form-control--minimal input-xs">
<span id="hdval">d8</span>
</div>
</div>
<div class="crc__row">
<label for="con" class="ui-tip__parent">
Constitution:
<span class="explanation ui-tip__child">
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" class="form-control form-control--minimal input-xs">
</div>
</div>
<div class="col-sm-6">
<div class="crc__row">
<label for="vulnerabilities" class="ui-tip__parent">
Vulnerabilities:
<span class="explanation ui-tip__child">
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" class="form-control form-control--minimal input-xs">
</div>
<div class="crc__row">
<label for="resistances" class="ui-tip__parent">
Resistances/Immunities:
<span class="explanation ui-tip__child">
A monster's HP is multiplied based on the resistances and immunities has to common damage types (non-magical bludgeoning, piercing, and slashing chief among them).
</span>
</label>
<span class="ve-flex-v-center">
<select id="resistances" class="form-control input-xs">
<option value="0" selected>None</option>
<option value="res">Resistances</option>
<option value="imm">Immunities</option>
</select>
</span>
</div>
<div class="crc__row">
<label for="flying" class="ui-tip__parent">
Flies and can deal damage at range (CR 0-9 only):
<span class="explanation ui-tip__child">
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">
</div>
<div class="crc__row">
<label for="saveprofs" class="ui-tip__parent">
Save Proficiencies:
<span class="explanation ui-tip__child">
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="ve-flex-v-center">
<select id="saveprofs" class="form-control input-xs">
<option value="0" selected>0-2</option>
<option value="2">3-4</option>
<option value="4">5-6</option>
</select>
</span>
</div>
</div>
</div>
</form>
<hr>
<div class="row">
<div class="col-sm-12" id="monsterfeatures">
<h4>Monster Features</h4>
<div class="crc__hdr_mon_features ve-flex-v-center">
<div class="ve-col-1"></div>
<div class="ve-col-2">Name</div>
<div class="ve-col-2">Example Monster</div>
<div class="ve-col-7">Feature Description</div>
</div>
<div class="crc__wrp_mon_features">
<!-- populate with JS -->
</div>
<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>
</main>
<!--5ETOOLS_SCRIPT_ANCHOR-->
<!--5ETOOLS_AD_ADHESION-->
<script type="text/javascript" defer src="lib/jquery.js"></script>
<script type="text/javascript" defer src="js/parser.js"></script>
<script type="text/javascript" defer src="js/utils.js"></script>
<script type="text/javascript" defer src="js/utils-ui.js"></script>
<script type="text/javascript" defer src="lib/localforage.js"></script>
<script type="module" defer src="js/omnidexer.js"></script>
<script type="module" src="js/omnisearch.js"></script>
<script type="module" src="js/filter.js"></script>
<script type="text/javascript" defer src="js/utils-dataloader.js"></script>
<script type="module" src="js/utils-brew.js"></script>
<script type="module" src="js/utils-config.js"></script>
<script type="text/javascript" defer src="js/render.js"></script>
<script type="text/javascript" defer src="js/render-dice.js"></script>
<script type="text/javascript" defer src="js/scalecreature.js"></script>
<script type="text/javascript" defer src="js/hist.js"></script>
<script type="text/javascript" defer src="js/crcalculator.js"></script>
<script type="text/javascript" defer src="js/list2.js"></script>
<script type="text/javascript" defer src="lib/elasticlunr.js"></script>
</body>
</html>