Skip to content

Commit

Permalink
Added support for hostile pcs, friendly npcs
Browse files Browse the repository at this point in the history
  • Loading branch information
RaySSharma committed Mar 11, 2020
1 parent cefbaea commit ac5b2fe
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 185 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 5E Encounter Builder

* **Author**: RaySSharma#4736
* **Version**: 0.1.0
* **Version**: 0.2.0
* **Foundry VTT Compatibility**: 0.5.0+
* **System Compatibility (If applicable)**: D&D5E
* **Translation Support**: en
Expand All @@ -15,12 +15,15 @@

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
* Calculates combat difficulty based on XP thresholds (DMG) 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 from compendiums or existing actors.
* Drag-and-drop from builder to canvas.
* *Approximates* encounter difficulty for friendly monsters or hostile players
* Hostile player XP set by comparing level to the deadly XP threshold table.
* Allied monster levels set by comparing XP to the deadly XP threshold table.

![Encounter](./images/testencounter.png "Encounter Building")
![Encounter2](./images/testencounter.gif "Encounter Building 2")
Expand Down Expand Up @@ -55,4 +58,12 @@ This module adds an Application to aid in building D&D5E combat encounters. Foll
* Added drag-and-drop for actors in compendiums to builder.
* Changed to click-to-remove for actors in builder.
* Added on-hover image for actors in builder.
* Added Chrome support (event.explicitOriginalTarget -> event.srcElement).
* Added Chrome support (event.explicitOriginalTarget -> event.srcElement).

#### 0.2.0

* Added support for hostile (opponent) players or friendly (allied) monsters.
* Player characters can only be placed once. Monsters can be placed multiple times.
* Added box highlighting when dragging opponents.
* Refactored HTML and CSS.
* Added button to clear builder.
Binary file modified encounter-builder.zip
Binary file not shown.
13 changes: 13 additions & 0 deletions encounter-builder/css/encounter-builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
min-height: 200px;
}
#EBContainers .group-container {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
width: 30%;
}
#EBContainers .group-legend {
Expand Down Expand Up @@ -61,6 +65,7 @@
}

#EBXP {
position: relative;
display: flex;
height: auto;
width: 100%;
Expand All @@ -70,3 +75,11 @@
margin: 0 auto;
text-align: center;
}
#EBXP .clear{
position: absolute;
margin-top: 5%;
width: 15%;
height: 45%;
text-align: center;
transform: translate(550%, 0%);
}
3 changes: 1 addition & 2 deletions encounter-builder/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"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"
"EB.EntityError": "EncounterBuilder | App only accept Actors"
}
2 changes: 1 addition & 1 deletion encounter-builder/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "encounter-builder",
"title": "5e Encounter Builder",
"description": "Adds an application to determine encounter difficulty, based on the Kobold Fight Club.",
"version": "0.1.1",
"version": "0.2.0",
"minimumCoreVersion": "0.5.0",
"author": "RaySSharma",
"scripts": ["./src/encounter-builder.js", "./src/builder-form.js"],
Expand Down
Loading

0 comments on commit ac5b2fe

Please sign in to comment.