Skip to content

Commit

Permalink
First commit encounter building module
Browse files Browse the repository at this point in the history
  • Loading branch information
RaySSharma committed Mar 9, 2020
0 parents commit 07a1cb5
Show file tree
Hide file tree
Showing 10 changed files with 481 additions and 0 deletions.
Empty file added .gitignore
Empty file.
44 changes: 44 additions & 0 deletions README.md
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 added encounter-builder.zip
Binary file not shown.
75 changes: 75 additions & 0 deletions encounter-builder/css/encounter-builder.css
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;
}
8 changes: 8 additions & 0 deletions encounter-builder/lang/en.json
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"
}
18 changes: 18 additions & 0 deletions encounter-builder/module.json
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"
}
Loading

0 comments on commit 07a1cb5

Please sign in to comment.