forked from EntropiaFox/astranauta.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lootgen.html
198 lines (185 loc) · 8.31 KB
/
lootgen.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
<!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">
<title>Lootgen - 5etools</title>
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/jquery-ui-slider-pips.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.png">
<script>if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.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 id="lootgen">
<header class="hidden-xs hidden-sm page__header">
<div class="container">
<h1 class="page__title">Loot Generator</h1>
<p class="page__subtitle">Choose Challenge Rating, if it's a hoard or not, then Roll Loot!</p>
</div>
</header>
<nav class="container page__nav" id="navigation">
<ul class="nav page__nav-inner" id="navbar">
</ul>
</nav>
<div class="cancer__wrp-leaderboard"><!--5ETOOLS_AD_LEADERBOARD--></div>
<div class="cancer__wrp-sidebar-rhs"><!--5ETOOLS_AD_RIGHT_1--><div class="cancer__sidebar-rhs-inner"><!--5ETOOLS_AD_RIGHT_2--></div></div>
<main class="container">
<div class="row">
<div class="col-sm-5">
<div class="btn-group w-100">
<span class="btn btn-default col-4" id="btn-lootgen">Find Treasure</span>
<span class="btn btn-default col-4" id="btn-loot-table">Loot Tables</span>
<span class="btn btn-default col-4" id="btn-random-magic-item">Party Loot</span>
</div>
<div id="container-lootgen" class="hidden">
<br/>
<div id="controls">
<div class="input-group">
<span class="input-group-addon">Challenge Rating</span>
<select class="form-control clickable" id="cr">
<option value="0" selected>1-4</option>
<option value="5">5-10</option>
<option value="11">11-16</option>
<option value="17">17+</option>
</select>
<span class="input-group-addon" style="padding: 0;">
<label for="hoard" class="clickable" style="margin-bottom: 0; padding: 6px 12px; user-select: none;">
Hoard? <input type="checkbox" id="hoard" value="0" class="clickable" style="vertical-align: bottom;">
</label>
</span>
</div>
<br/>
<button class="col-9 btn btn-default" id="genloot">Roll Loot!</button>
<button class="col-2-9 btn btn-default pull-right id-clear">Clear</button>
<p>
<small>Based on the tables and rules in the
<a href="book.html#DMG,7,treasure%20tables,0"><em>Dungeon Master's Guide</em>, pages 133-149.</a>
</small>
</p>
</div>
</div>
<div id="container-loot-table" class="hidden">
<div class="mb-2"></div>
<div class="btn-group w-100 mb-2">
<span class="btn btn-default col-6" id="btn-dmg-loot-table">DMG</span>
<span class="btn btn-default col-6" id="btn-xge-loot-table">XGE</span>
</div>
<br/>
<div id="container-dmg-loot-table">
<div class="input-group w-100">
<span class="input-group-addon">Select Table </span>
<select class="form-control clickable" id="table-sel">
<option value="" selected>View individual tables...</option>
</select>
<span class="input-group-addon" style="padding: 0;">
<label class="clickable" style="margin-bottom: 0; padding: 6px 12px; user-select: none;">
Show Table <input checked type="checkbox" class="id-showLootTable clickable" style="vertical-align: bottom;">
</label>
</span>
</div>
<br>
<button class="col-9 btn btn-default" id="rollAgaintTable">Roll Loot!</button>
<button class="col-2-9 btn btn-default pull-right id-clear">Clear</button>
<small>Based on the tables and rules in the
<a href="book.html#DMG,7,random%20treasure"><em>Dungeon Master's Guide</em>, pages 133-149.</a>
</small>
</div>
<div id="container-xge-loot-table">
<div class="input-group">
<span class="input-group-addon">Select Category</span>
<select class="form-control clickable" id="random-from-loot-table">
<option value="" selected>View Loot Category...</option>
</select>
<span class="input-group-addon" style="padding: 0;">
<label class="clickable" style="margin-bottom: 0; padding: 6px 12px; user-select: none;">
Show Table <input checked type="checkbox" class="id-showLootTable clickable" style="vertical-align: bottom;">
</label>
</span>
</div>
<br/>
<div style="display: flex; justify-content: space-between">
<button class="col-9 btn btn-default" id="get-random-item-from-table">Pick Random Item</button>
<button class="col-2-9 btn btn-default pull-right id-clear">Clear</button>
</div>
<p>
<small>Based on the tables and rules in the
<a href="book.html#XGE,2,awarding%20magic%20items"><em>Xanathar's Guide to Everything</em>, pages 135-136</a>.
</small>
</p>
</div>
</div>
<div id="container-random-magic-item" class="hidden">
<br/>
<p>
Generates a set of magical items for a party, based on the tables and rules in <a href="book.html#XGE,2,awarding%20magic%20items"><em>Xanathar's Guide to Everything</em>, pages 135-136</a>.
</p>
<p><i>
If the "Exact Level" option is selected, the output will include a proportional number of items for any partially-completed tier.
</i></p>
<div>
<div class="mb-3">
<div class="input-group">
<span class="input-group-addon" style="width: 10%" id="selectCharLevel">Character Level</span>
<span class="input-group-addon" style="padding: 0; border-left: 1px solid #ccc;">
<label class="clickable" style="margin-bottom: 0; padding: 6px 12px; user-select: none;">
Exact Level? <input type="checkbox" checked id="closest-tier" class="clickable" style="vertical-align: bottom;">
</label>
</span>
</div>
</div>
<div class="slider w-100" style="margin-bottom: 23px;"></div>
<div id="random-magic-item-select-tier" class="input-group w-100">
<select class="form-control clickable" id="charLevel" style="border-top-right-radius: 3px; border-bottom-right-radius: 3px;">
<option value="4" selected>1-4</option>
<option value="10">5-10</option>
<option value="16">11-16</option>
<option value="20">17+</option>
</select>
<span class="input-group-addon" style="padding: 0; display: none;" id="wrp-char-cumulative">
<label class="clickable" style="margin-bottom: 0; padding: 6px 12px; user-select: none;">
Cumulative with Previous Tiers? <input type="checkbox" checked id="char-cumulative" class="clickable" style="vertical-align: bottom;">
</label>
</span>
</div>
</div>
<br>
<div style="display: flex; justify-content: space-between">
<button class="col-9 btn btn-default" id="get-group-of-items-for-character">Generate Items for a Party</button>
<button class="col-2-9 btn btn-default pull-right id-clear">Clear</button>
</div>
</div>
<div id="classtable"></div>
</div>
<div class="col-sm-7">
<div id="lootoutput"></div>
</div>
</div>
</main>
<!--5ETOOLS_SCRIPT_ANCHOR-->
<!--5ETOOLS_AD_ADHESION-->
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/jquery-ui.js"></script>
<script type="text/javascript" src="lib/jquery-ui-slider-pip.js"></script>
<script type="text/javascript" src="lib/elasticlunr.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/utils-ui.js"></script>
<script type="text/javascript" src="lib/localforage.js"></script>
<script type="text/javascript" src="js/genutils.js"></script>
<script type="text/javascript" src="js/omnidexer.js"></script>
<script type="text/javascript" src="js/omnisearch.js"></script>
<script type="text/javascript" src="js/render.js"></script>
<script type="text/javascript" src="js/scalecreature.js"></script>
<script type="text/javascript" src="js/lootgen.js"></script>
<script type="text/javascript" src="js/list2.js"></script>
</body>
</html>