forked from ariestae/5etools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
214 changed files
with
217,945 additions
and
182,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
desktop.ini | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"rules": { | ||
"indentation": "tab" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- "8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`: | ||
|
||
 | ||
|
||
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. |
Oops, something went wrong.