-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit encounter building module
- Loading branch information
0 parents
commit 07a1cb5
Showing
10 changed files
with
481 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,44 @@ | ||
## 5E Encounter Builder | ||
|
||
* **Author**: RaySSharma#4736 | ||
* **Version**: 0.0.1 | ||
* **Foundry VTT Compatibility**: 0.5.0+ | ||
* **System Compatibility (If applicable)**: D&D5E | ||
* **Translation Support**: en | ||
|
||
### Link(s) to Module | ||
|
||
* [https://github.com/RaySSharma/foundry-modules/tree/master/encounter-builder](https://github.com/RaySSharma/foundry-modules/tree/master/encounter-builder) | ||
* [https://raw.githubusercontent.com/RaySSharma/foundry-modules/master/encounter-builder/encounter-builder/module.json](https://raw.githubusercontent.com/RaySSharma/foundry-modules/master/encounter-builder/encounter-builder/module.json) | ||
|
||
### Description | ||
|
||
This module adds an Application to aid in building D&D5E combat encounters. Following a similar design to [Kobold Fight Club](https://kobold.club/fight/#/encounter-builder), this module calculates encounter difficulty for your chosen PCs and monsters/NPCs. Encounter prep has never been easier! | ||
|
||
* Calculates combat difficulty based on XP thresholds (PHB) for players | ||
* Includes difficulty multipliers for fights against many opponents | ||
* Adjusts difficulty for parties of <3 players, or >5 players. | ||
* Calculates total XP and XP per player. | ||
* Drag-and-drop tokens onto or off the Application. | ||
|
||
![Encounter](./images/testencounter.png "Encounter Building") | ||
|
||
### Installation | ||
|
||
#### Method 1 | ||
|
||
* Download the .zip file in this repository. | ||
* Extract the contents of the zip to your dataPath, `/Data/modules/` | ||
* Restart Foundry. | ||
|
||
#### Method 2 | ||
|
||
* Start up Foundry and click "Install Module" in the "Add-On Modules" tab. | ||
* Paste the link: `https://raw.githubusercontent.com/RaySSharma/foundry-modules/master/encounter-builder/encounter-builder/module.json` | ||
* Click "Install" and it should appear in your modules list. | ||
|
||
### Updates | ||
|
||
#### 0.0.1 | ||
|
||
* Created the Encounter Builder Application. |
Binary file not shown.
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,75 @@ | ||
#EBContainers { | ||
display: flex; | ||
height: auto; | ||
width: 100%; | ||
min-height: 200px; | ||
} | ||
#EBOutcome { | ||
display: flex; | ||
height: auto; | ||
width: 100%; | ||
} | ||
|
||
#EBContainers .leftContainer { | ||
width: 30%; | ||
} | ||
#EBContainers .leftField { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
#EBContainers .pc-portraits { | ||
width: 50px; | ||
height: 50px; | ||
} | ||
#EBContainers .pc-container { | ||
padding: 2%; | ||
line-height: 0%; | ||
} | ||
#EBContainers .pc-container:hover .pc-portraits { | ||
opacity: 0.3; | ||
} | ||
|
||
#EBContainers .centerContainer { | ||
width: 50%; | ||
} | ||
#EBContainers .difficulty-rating { | ||
width: 70%; | ||
margin: 0 auto; | ||
text-align: center; | ||
} | ||
#EBContainers .difficulty-threshold { | ||
width: 50%; | ||
margin: 0 auto; | ||
text-align: center; | ||
} | ||
#EBContainers .daily-budget { | ||
width: 80%; | ||
margin: 0 auto; | ||
text-align: center; | ||
padding-top: 10%; | ||
} | ||
|
||
#EBContainers .rightContainer { | ||
width: 30%; | ||
} | ||
#EBContainers .rightField { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
#EBContainers .npc-portraits { | ||
width: 50px; | ||
height: 50px; | ||
} | ||
#EBContainers .npc-container { | ||
padding: 2%; | ||
line-height: 0%; | ||
} | ||
#EBContainers .npc-container:hover .npc-portraits { | ||
opacity: 0.3; | ||
} | ||
|
||
#EBOutcome .scores { | ||
width: 50%; | ||
margin: 0 auto; | ||
text-align: center; | ||
} |
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,8 @@ | ||
{ | ||
"EB.Title": "5E Encounter Builder", | ||
"EB.Description": "Adds an application to determine encounter difficulty, based on the Kobold Fight Club.", | ||
"EB.id": "encounter-builder", | ||
"EB.Submit": "Submit", | ||
"EB.EntityError": "EncounterBuilder | App only accept Actors", | ||
"EB.ImportError": "EncounterBuilder | Must import Actor first" | ||
} |
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,18 @@ | ||
{ | ||
"name": "encounter-builder", | ||
"title": "5e Encounter Builder", | ||
"description": "Adds an application to determine encounter difficulty, based on the Kobold Fight Club.", | ||
"version": "0.0.1", | ||
"minimumCoreVersion": "0.5.0", | ||
"author": "RaySSharma", | ||
"scripts": ["./src/encounter-builder.js", "./src/builder-form.js"], | ||
"styles": ["./css/encounter-builder.css"], | ||
"languages": [{ | ||
"lang": "en", | ||
"name": "English", | ||
"path": "lang/en.json" | ||
}], | ||
"url": "https://github.com/RaySSharma/foundry-modules/tree/master/encounter-builder", | ||
"manifest": "https://raw.githubusercontent.com/RaySSharma/foundry-modules/master/encounter-builder/encounter-builder/module.json", | ||
"download": "https://github.com/RaySSharma/foundry-modules/raw/master/encounter-builder/encounter-builder.zip" | ||
} |
Oops, something went wrong.