Skip to content

Commit

Permalink
Update to latest copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ariestae committed Dec 8, 2017
1 parent b7d2f3c commit 99af4ec
Show file tree
Hide file tree
Showing 214 changed files with 217,945 additions and 182,418 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true
},
"rules": {
"block-scoped-var": "error",
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"no-alert": "error",
"no-case-declarations": "off",
"no-undef": "off",
"no-unused-expressions": "error",
"no-unused-vars": "off",
"no-useless-escape": "off",
"no-with": "error",
"prefer-const": [
"warn",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
]
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
desktop.ini
node_modules
6 changes: 6 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": "tab"
}
}
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "8"
79 changes: 51 additions & 28 deletions 5etools.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.png">

<script type="text/javascript" src="lib/js-cookie.js"></script>
<style id="dynamicStyle"></style> <!-- populated with JS -->
<script type="text/javascript" src="js/styleswitch.js"></script>
</head>

<body>
<header class="hidden-xs hidden-sm">
<div class="container">

<h1>5etools</h1>
<p>A suite of tools for 5e D&D players.</p>
<p>A suite of tools for 5e D&amp;D players.</p>
</div>
</header>
<nav class="container">
Expand All @@ -50,6 +53,7 @@ <h1>5etools</h1>
<ul class="dropdown-menu">
<li role="presentation"><a href="crcalculator.html">CR Calculator</a></li>
<li role="presentation"><a href="http://kobold.club" target="_blank" title="I could literally never build something better than Kobold Fight Club">Encounter Builder</a></li>
<li role="presentation"><a href="encountergen.html">Encounter Generator</a></li>
<li role="presentation"><a href="lootgen.html">Loot Generator</a></li>
</ul>
</li>
Expand All @@ -58,8 +62,12 @@ <h1>5etools</h1>
<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="cults.html">Cults</a></li>
<li role="presentation"><a href="items.html">Items</a></li>
<li role="presentation"><a href="rewards.html">Other Rewards</a></li>
<li role="presentation"><a href="psionics.html">Psionics</a></li>
<li role="presentation"><a href="spells.html">Spells</a></li>
<li role="presentation"><a href="variantrules.html">Variant Rules</a></li>
</ul>
</li>
<li role="presentation"><a href="statgen.html">Statgen</a></li>
Expand All @@ -70,56 +78,71 @@ <h1>5etools</h1>
<li role="presentation"><a href="editor.html">WYSIWYG Editor</a></li>
</ul>
</li>
<li role="presentation">
<a class="nightModeToggle" href="#" onclick="styleSwitcher.toggleActiveStyleSheet(); return false;"><script>document.write(styleSwitcher.getActiveStyleSheet() === StyleSwitcher.STYLE_DAY ? "Night Mode" : "Day Mode")</script></a>
</li>
</ul>
</nav>
<main class="container bodyContent">
<div class="row">
<div class="col-sm-12">
<p>5etools is a suite of HTML-and-JavaScript tools for players and DMs of D&D 5e. You can find and download the project on <a href="https://github.com/5egmegaanon/5etools">GitHub</a>. Simply download the project as a zip, extract it all to a folder,
<p>5etools is a suite of HTML-and-JavaScript tools for players and DMs of D&amp;D 5e. You can find and download the project on <a href="https://github.com/astranauta/astranauta.github.io">GitHub</a>. Simply download the project as a zip, extract it all to a folder,
open the .html files in a browser, and it's ready to go! You can also host your own mirror, or contribute to the project via GitHub. With all the Unearthed Arcana material released, data entry is appreciated!</p>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h4>Classes</h4>
<h4><a href="classes.html">Classes</a></h4>
<p>Classes.html allows you to quickly browse each of the official classes in 5e. You can also filter for the class' specific subclasses for easier reference, sharing produced URL for quick-access.</p>
<h4>Bestiary</h4>
<p>Bestiary.html provides a searchable, filterable list of the more than 760 stat blocks in D&D 5e. You can display them and each attack and damage roll can be done in-line with just a click.</p>
<h4><a href="backgrounds.html">Backgrounds</a></h4>
<p>Backgrounds.html lists the official backgrounds in D&amp;D 5e, including those from supplement material.</p>
<h4><a href="feats.html">Feats</a></h4>
<p>Feats.html provides a quick-use list of the feats in D&amp;D 5e, including those from Unearthed Arcana and supplements.</p>
<h4><a href="races.html">Races</a></h4>
<p>Races.html lists each of the races in D&amp;D 5e, including subraces and variants.</p>
<h4><a href="crcalculator.html">CR Calculator</a></h4>
<p>CRcalculator.html provides a verbose, in-depth Challenge Rating calculator, for determining the CR of custom monsters made for D&amp;D 5e.</p>
<h4><a href="lootgen.html">Loot Generator</a></h4>
<p>Lootgen.html is a random loot generator for both individual and hoard treasure based on CR for D&amp;D 5e.</p>
</div>
<div class="col-sm-6">
<h4>Items</h4>
<p>Items.html lists the mundane and magical items currently in D&D 5e, allowing quick access to their properties.</p>
<h4>Backgrounds</h4>
<p>Backgrounds.html lists the official backgrounds in D&D 5e, including those from supplement material.</p>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h4>Feats</h4>
<p>Feats.html provides a quick-use list of the feats in D&D 5e, including those from Unearthed Arcana and supplements.</p>
<h4>Races</h4>
<p>Races.html lists each of the races in D&D 5e, including subraces and variants.</p>
</div>
<div class="col-sm-6">
<h4>Spells</h4>
<p>Spells.html lists all of the official spells in D&D 5e. The list can be easily searched and filtered, and the entries can be shared through the generated URL.</p>
<h4>CR Calc</h4>
<p>CRcalculator.html provides a verbose, in-depth Challenge Rating calculator, for determining the CR of custom monsters made for D&D 5e.</p>
<h4><a href="bestiary.html">Bestiary</a></h4>
<p>Bestiary.html provides a searchable, filterable list of the more than 830 stat blocks in D&amp;D 5e. You can display them and each attack and damage roll can be done in-line with just a click.</p>
<h4><a href="conditions.html">Conditions</a>/<a href="cults.html">Cults</a></h4>
<p>Conditions.html lists all the feats in D&amp;D 5e. Cults.html lists all cults in the UA: Fiendish Options.</p>
<h4><a href="items.html">Items</a></h4>
<p>Items.html lists the mundane and magical items currently in D&amp;D 5e, allowing quick access to their properties.</p>
<h4><a href="rewards.html">Other Rewards</a></h4>
<p>Rewards.html lists the blessings, boons, and charms currently in D&amp;D 5e, allowing quick access to their properties.</p>
<h4><a href="spells.html">Spells</a>/<a href="psionics.html">Psionics</a></h4>
<p>Spells.html lists all of the official spells in D&amp;D 5e. Psionics.html lists all psionics in the UA: The Mystic Class. Both lists can be easily searched and filtered and the entries can be shared through the generated URL.</p>
<h4><a href="variantrules.html">Variant Rules</a></h4>
<p>Variantrules.html lists the variant and optional rules in D&amp;D 5e.</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h3>Use Roll20?</h3>
<p>You may be interested in <a href="https://github.com/5egmegaanon/5etoolsR20">5etoolsR20</a>! This userscript allows you to import much of 5etools' data without paying a dime.</p>
<p>Get Greasemonkey (Firefox) or Tampermonkey (Chrome). Install the script using this <a href="https://github.com/astranauta/5etoolsR20/raw/master/5etoolsR20.user.js">link</a>! This userscript allows you to import much of 5etools' data without paying a dime. If you are using the Shaped sheet, be sure to open up the NPC sheets and let them convert before using it. NOTE: It only imports when you're a DM.</p>
<h3>Use Discord?</h3>
<p>Now you can join our server using <a href="https://discord.gg/B2J9gM9">this</a> link!</p>
<h3>FAQ / Help</h3>
<p><b>Browser Support.</b> We aim to fully support <b>all</b> commonly used browsers, i.e. Chrome and Firefox. We have no plans to support any Microsoft browsers. Other browsers, e.g. Safari and Opera, might work OK but you may wish to upgrade to a better browser in order to have a better experience when using the internet.</p>
<p><b>Device Support.</b> We aim to support Windows and Android; mainly because they're the devices we usually have access to. Due to the amount of information displayed we typically aim for the best look-and-feel when using a monitor rather than a smartphone screen. Similar to our browser support, you may wish to upgrade to a better supported device in order to have a more secure / better experience when using the internet.</p>
<p><b>Filtering.</b> On most of the pages we have filters. By default we include and/or exclude certain things. The filter will include anything that's blue and exclude anything that's red. For example, if you want to see all spells from Xanathar's Guide to Everything that a Warlock can use but can't be used by a Wizard then you need to have "Xanathar's Guide to Everything" and "Warlock" in blue and "Wizard" in red - when you're in the Filter drop-down clicking an icon cycles the color from white (it doesn't matter either way) to blue (include these things) to red (exclude these things). If you get lost then simply click the Reset button and the filtering will go back to the default for that page.</p>
<p><b>Everything keeps changing.</b> Yes - it does; that's because we want to keep improving this site. We rarely delete data, but it may appear to be "missing"; that's often due to the filter settings. If you find entries are wrong then please let us know, e.g. using Discord or raise an issue in GitHub; we're typically very responsive. Similarly, if you have any good suggestions for improvements then we're up for that too! No change is too small to tell us about, e.g. spelling mistakes and links not working, but the bigger changes might take some time to get to the top of our priority list.</p>
<p><b>Links.</b> Much of the content includes hyperlinks to other parts of our site. Similarly, other things may look like links but they're often die-rollers, e.g. click on a 1d4+2 and we'll do the dice rolling for you and the results appear at the bottom of the screen. If in doubt, give it a click and see what it does!</p>
<p><b>Day/Night Mode.</b> Night Mode, with a dark background and lighter text, is a relatively recent new feature and we're still putting the finishing touches to its look-and-feel.</p>
<p><b>Sorting.</b> If you click on the column name in a table then the data in that column is sorted; clicking on it again will reverse the sort direction. Where possible, we've tried to be logical about the sorting, e.g. Self then touch then various distances then Unlimited and Special at the far end; some of the sorting is still work-in-progress - if you have any good ideas on how to improve it please let us know, e.g. sorting by Ability in Feats.</p>
<p><b>Hover.</b> Some of the things on the page will pop-up a tooltip if you hover the mouse over them, e.g. our source abbreviations will pop-up with the full name of the source. Actions and skill checks also have tooltips on some pages.</p>
</div>
</div>
</main>
<footer class="container">
</footer>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>


<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/bootstrap.js"></script>
</body>

</html>
15 changes: 15 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Please fill out as much of this template as possible/is applicable.

Is this a bug or a feature request:

Issue:

Page(s) affected:

Reproduction steps:

Additional information:

Browser (Chromium, Firefox, Edge, etc):

Platform (Windows, iOS, Android, etc):
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 astranauta and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
53 changes: 41 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,57 @@
## 5e Tools
[Go to 5etools](https://5egmegaanon.github.io/5etools/5etools.html)
[Go to 5etools](5etools.html)

[Join the 5etools Discord here!](https://discord.gg/B2J9gM9)

## Style Guidelines
- Use tabs over spaces.

## To-Do
- Continue Tome of Beasts entries.
- Clean up filtering interface.
- Plan layout of upcoming Mystic disciplines (spells? Special classes.html layout?)
- Plan layout of upcoming Mystic disciplines
- Continue adding Unearthed Arcana rules entries.
- A search engine?
- Dedicated servers??
- Continue cleaning up the website.

## Notes
To remove trailing commas in JSON:
Find: (.*?)(,)(:?\s*]|\s*})
Replace: $1$3

## How to import 5etools bestiary into Roll20
Or: how to get every monster into Roll20 with ease.
#### Character replacement:
- ’ should be replaced with '
- — should be replaced with \u2014
- “ and ” should be replaced with "

## Running 5etools Locally (Offline Copy)
There are several options for running a local/offline copy of 5etools, including:

**Beginner:** Use Firefox to open the files.

**Intermediate:** When using Chrome (or similar), a command-line switch is required to load some pages locally. On Windows, this can be accomplished by creating a Chrome shortcut and editing the properties of the shortcut to add `--allow-file-access-from-files` to the shortcut `Target`:

![Chrome tutorial](https://raw.githubusercontent.com/astranauta/astranauta.github.io/master/chrome-tutorial.png "Chrome tutorial")

Be sure to close any running Chrome instances (and kill any remaining Chrome processes as required) before opening the shortcut. A summary of the security implications can be found [here](https://superuser.com/a/873527).

**Advanced:** Host the project locally on a dev webserver, perhaps using [this](https://github.com/cortesi/devd).

## How to import 5etools beasts/spells/items into Roll20
1. Get Greasemonkey (Firefox) or Tampermonkey (Chrome).

2. Click [here](https://github.com/astranauta/5etoolsR20/raw/master/5etoolsR20.user.js) and install the script.

3. Open the Roll20 game where you want the stuff imported.

1. Go to https://github.com/5egmegaanon/D20plus. Follow the instructions for use: install Greasemonkey/Tampermonkey, install the script, then you're good to go.
4. Go to the gear icon and click on the things you want imported.

2. Open the Roll20 game you want to import the monsters into.
5. Let it run. The journal will start fill up with the stuff you selected. It's not too laggy but can take a long time depending on the amount of stuff you selected.

3. With the userscript installed, go to the gear icon and hit Import Monster. Use the following URL for the prompt that pops up:
https://raw.githubusercontent.com/5egmegaanon/5etools/master/data/bestiary.json
6. Bam. Done. If you are using the Shaped sheet, be sure to open up the NPC sheets and let them convert before using it.

4. Let it run. Your journal will fill up with monsters. It's not too laggy but can take a long time because of how many monsters there are.
You can convert stat blocks to JSON for importing via [this converter](converter.html).

5. Bam. Done. If you are using the Shaped sheet, be sure to open up the NPC sheets and let them convert before using it.
## License

You can convert stat blocks to JSON for importing via [this converter](https://5egmegaanon.github.io/5etools/converter.html).
This project is licensed under the terms of the MIT license.
Loading

0 comments on commit 99af4ec

Please sign in to comment.