Skip to content

Commit

Permalink
add compendiums
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryBeaver committed Oct 21, 2022
1 parent b47be5d commit 50107e7
Show file tree
Hide file tree
Showing 66 changed files with 175 additions and 32 deletions.
43 changes: 33 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

## Work in progress

! Carefully structure will probably change until i finalize this module with version 1.0.0 !,
so do not start creating tones of recipes already ! The future upgrades might break them.
! Carefully structure might change until i finalize this module with version 1.0.0 !,

! breaking change release: 0.2.x -> 0.3.x !

## Features
![img.gif](pictures/video.gif)
### Loot subtype Recipe
![img.png](pictures/newItem.png)

Expand All @@ -30,16 +29,16 @@ You may add Items via drag and drop as Ingredients.
you may add a skill that is required in the crafting process.
you can enable that costs and ingredients are also payed when the check failed.
#### results:
![img.png](pictures/rollTable.png)

You may add Items or RollTable via drag and drop as result.
The result is the outcome of a successfull crafting process.
If you add a RollTable you will get quantity amount of rolls on that table not one roll quantity of times.

### Crafting
![img.png](pictures/crafting.png)
You can start a crafting process by clicking on a recipe in your inventar

You can start a crafting process by clicking on a recipe in your inventar
#### Recipe Compendium
![img.png](pictures/img.png)
![img.png](pictures/crafting.png)
or throu recipe compendium
- list all recipes that you have permission to see for all items in your world (not compendium)
- filter available: only those that you have at least one ingredient of any quantity of.
Expand All @@ -48,13 +47,37 @@ or throu recipe compendium
- you can display details for a Recipe:
- it will display you an uneditable recipe and shows you which ingredients are missing.
- you can hit the craft button to start a craft process.
- a craft process will ask for the given skill if any and returns with an result
- a craft process will ask for the given skill if any and returns with a result
### Result
![img.png](pictures/result.png)

You will see a chat message with your result
You will see a chat message with your result

### Compendiums
This module comes with some example compendiums.
#### Ingredients
![img.png](pictures/ingredients.png)

You do not need to import those just drag and drop them into your recipes or use the recipe compendium.
#### Potions
![img.png](pictures/potions.png)

You do not need to import those just drag and drop them into your recipes or use the recipe compendium.
#### RandomTable
![img.png](pictures/table.png)

You do not need to import those just drag and drop them into your recipes or use the recipe compendium.
#### Recipes
![img.png](pictures/recipes.png)

You need to import them and then grant permission to the users you want to have access to it.
The recipecompendium will only show the recipes the user has access to.


## latest features:
### 0.4.x feature compendiums,
you now can use items directly from compendium,
module comes with 4 compendiums ingredients,rolltables,potions and recipes
### 0.3.x feature add initial anyOf ingredient
you now can have anyOf ingredients
breaking change 0.2.x -> 0.3.x
Expand All @@ -75,7 +98,7 @@ I want to create a random potion.
### macro
I want to be able to add macros to recipes.
giving them more flexibility e.g. get damage on certain recipes where you failed your check.
### ingredients/potions/recipes package
### ingredients/potions/recipes package (done 0.4.x)
The identity of ingredients works best when the item originates from compendium
- I want a compendium package with lots of garbage items (mushrooms etc. that you can drop as loot)
- I want a compendium package with various potions (dnd5e is so borring here)
Expand Down
Binary file added icons/mushroom/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mushroom/32.png
Binary file added icons/mushroom/33.png
Binary file added icons/mushroom/34.png
Binary file added icons/mushroom/35.png
Binary file added icons/mushroom/36.png
Binary file added icons/mushroom/37.png
Binary file added icons/mushroom/38.png
Binary file added icons/mushroom/39.png
Binary file added icons/mushroom/4.png
Binary file added icons/mushroom/40.png
Binary file added icons/mushroom/41.png
Binary file added icons/mushroom/42.png
Binary file added icons/mushroom/43.png
Binary file added icons/mushroom/44.png
Binary file added icons/mushroom/45.png
Binary file added icons/mushroom/46.png
Binary file added icons/mushroom/47.png
Binary file added icons/mushroom/48.png
Binary file added icons/mushroom/49.png
Binary file added icons/mushroom/5.png
Binary file added icons/mushroom/50.png
Binary file added icons/mushroom/6.png
Binary file added icons/mushroom/7.png
Binary file added icons/mushroom/8.png
Binary file added icons/mushroom/9.png
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"errors": {
"tableNotFound": "RollTable not found for : ",
"tableNotValid": "RollTable return invalid Object : ",
"tableItemNotFound": "Item not found in RollTable for :"
"itemNotFound": "Item not found in RollTable for :"
}
},
"settings": {
Expand Down
38 changes: 37 additions & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Beaver's Crafting System",
"description": "A Crafting Module for DnD",
"id": "beavers-crafting",
"version": "0.3.2",
"version": "0.4.0",
"authors": [
{
"name": "angryBeaver",
Expand All @@ -25,6 +25,42 @@
"css/crafting.css"
],
"packs": [
{
"entity": "Item",
"label": "potions",
"name": "potions",
"path": "./packs/potions.db",
"module": "beavers-crafting",
"type": "Item",
"private": false
},
{
"entity": "Item",
"label": "ingredients",
"name": "ingredients",
"path": "./packs/ingredients.db",
"module": "beavers-crafting",
"type": "Item",
"private": false
},
{
"entity": "RollTable",
"label": "crafting",
"name": "crafting",
"path": "./packs/crafting.db",
"module": "beavers-crafting",
"type": "RollTable",
"private": false
},
{
"entity": "Item",
"label": "recipes",
"name": "recipes",
"path": "./packs/recipes.db",
"module": "beavers-crafting",
"type": "Item",
"private": false
}
],
"url": "https://github.com/AngryBeaver/beavers-crafting",
"manifest": "https://github.com/AngryBeaver/beavers-crafting/releases/latest/download/module.json",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "beavers-crafting",
"title": "Beaver's Crafting",
"version": "0.3.2",
"version": "0.4.0",
"description": "Crafting",
"devDir": "C:\\Users\\User\\AppData\\Local\\FoundryVTT\\Data\\modules",
"main": "src/main.js",
Expand Down
1 change: 1 addition & 0 deletions packs/crafting.db
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Random Common Potions","img":"icons/consumables/potions/bottle-bulb-empty-glass.webp","description":"","results":[{"type":2,"weight":1,"range":[1,1],"drawn":false,"text":"Beauty Elexir","img":"icons/consumables/potions/bottle-bulb-corked-glowing-red.webp","documentCollection":"beavers-crafting.potions","documentId":"6mg7QLtafdc2lDp9","_id":"HWW8w28gkWsoeEJV","flags":{}},{"type":2,"weight":1,"range":[2,2],"drawn":false,"text":"Bug Shield","img":"icons/consumables/potions/bottle-bulb-corked-green.webp","documentCollection":"beavers-crafting.potions","documentId":"Qqh06crGN0I4wQuj","_id":"mXbhyesZfR682NGR","flags":{}},{"type":2,"weight":1,"range":[3,3],"drawn":false,"text":"Cobra Kai","img":"icons/consumables/potions/bottle-conical-corked-cyan.webp","documentCollection":"beavers-crafting.potions","documentId":"MChWuF8FTz5vOntg","_id":"0hMQGOWnRG59Ot3Z","flags":{}},{"type":2,"weight":1,"range":[4,4],"drawn":false,"text":"Comfort","img":"icons/consumables/potions/bottle-conical-corked-green.webp","documentCollection":"beavers-crafting.potions","documentId":"KHCZLpOKIl9Kjy84","_id":"IKAfiT30lfy5ay2o","flags":{}},{"type":2,"weight":1,"range":[5,5],"drawn":false,"text":"Cure Disease","img":"icons/consumables/potions/bottle-circular-corked-labeled-green.webp","documentCollection":"beavers-crafting.potions","documentId":"kSlCgJX5DO7u0F6a","_id":"TVfnDgmoVoy5Tyb1","flags":{}},{"type":2,"weight":1,"range":[6,6],"drawn":false,"text":"Cure Undead","img":"icons/consumables/potions/bottle-conical-corked-labeled-skull-poison-green.webp","documentCollection":"beavers-crafting.potions","documentId":"tEG8DYWsIjsnq89H","_id":"b0ukkYhjUoQW4kcC","flags":{}},{"type":2,"weight":1,"range":[7,7],"drawn":false,"text":"Detect Magic","img":"icons/consumables/potions/bottle-bulb-corked-purple.webp","documentCollection":"beavers-crafting.potions","documentId":"hOpVQsMdNcgoZe8A","_id":"iPXgKiQ2W17NXuTR","flags":{}},{"type":2,"weight":1,"range":[8,8],"drawn":false,"text":"Messenger's Potion","img":"icons/consumables/potions/bottle-conical-corked-labeled-shell-cyan.webp","documentCollection":"beavers-crafting.potions","documentId":"Sp3E9go1b56yNnBX","_id":"spqreevsfeWHGMhi","flags":{}},{"type":2,"weight":1,"range":[9,9],"drawn":false,"text":"Minor Invisibility","img":"icons/consumables/potions/bottle-conical-corked-blue.webp","documentCollection":"beavers-crafting.potions","documentId":"kmMTJHkbMUoOLJIy","_id":"ljwQlVWZFoswU3mZ","flags":{}},{"type":2,"weight":1,"range":[10,10],"drawn":false,"text":"Plant Nourishment","img":"icons/consumables/potions/bottle-conical-bubbling-blue.webp","documentCollection":"beavers-crafting.potions","documentId":"NRltRDCfJCTu6frt","_id":"ZvOEO8sCJzAogX1N","flags":{}},{"type":2,"weight":1,"range":[11,11],"drawn":false,"text":"Repair Glue","img":"icons/consumables/potions/bottle-conical-corked-purple.webp","documentCollection":"beavers-crafting.potions","documentId":"SUJ0FsFU1YlW8Ail","_id":"DBivtjclvL6w9g51","flags":{}},{"type":2,"weight":1,"range":[12,12],"drawn":false,"text":"Potion of Healing","img":"icons/consumables/potions/potion-tube-corked-red.webp","documentCollection":"dnd5e.items","documentId":"ytlsBjYsZ7OBSEBs","_id":"nHDerrERX8Z9VtEh","flags":{}}],"formula":"1d12","replacement":true,"displayRoll":true,"flags":{"core":{"sourceId":"RollTable.KWje7ICPvZ4yoQ0N"}},"_stats":{"systemId":"dnd5e","systemVersion":"2.0.3","coreVersion":"10.288","createdTime":1665245454596,"modifiedTime":1666356242493,"lastModifiedBy":"pPshwaHPlcuH6Kxv"},"_id":"N9KfQlZpKnmpJxeg","folder":null,"sort":0,"ownership":{"default":0,"pPshwaHPlcuH6Kxv":3}}
Loading

0 comments on commit 50107e7

Please sign in to comment.