Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected spellings and fixed a typo #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions 5e-macros/utility/v11/Foraging rule (Ranger)
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
*/

const regions = {
"Mountains & Hills [DC 15]": {dc: 15, food: ["Berries", "Fish", "Flowers", "Fruit", "Fungi", "Insects", "Meet", "Nuts", "Plants", "Seeds", "Roots", "Weeds"]},
"Forest & Jungle [DC 10]": {dc: 10, food: ["Berries", "Fish", "Flowers", "Fruit", "Fungi", "Insects", "Meet", "Nuts", "Plants", "Roots", "Seeds", "Vegetables"]},
"Desert [DC 20]": {dc: 20, food: ["Insects", "Meet", "Seeds", "Roots", "Weeds"]},
"Dungeon & Underdark [DC 20]": {dc: 20, food: ["Berries", "Fish", "Flowers", "Fruit", "Fungi", "Meet", "Seeds", "Roots", "Weeds"]},
"City [DC 15]": {dc: 15, food: ["Flowers", "Insects", "Meet", "Seeds", "Roots", "Rubbish", "Weeds"], note: "Note: the meet probably be bird, cat, dog, or rat"},
"Artic [DC 20]": {dc: 20, food: ["Fish", "Meet", "Seeds", "Roots", "Weeds"]},
"Swamp [DC 15]": {dc: 15, food: ["Berries", "Fish", "Flowers", "Fungi", "Insects", "Meet", "Seeds", "Roots", "Weeds"]},
"Grassland [DC 10]": {dc: 10, food: ["Berries", "Flowers", "Fruit", "Insects", "Meet", "Seeds", "Roots", "Vegetables", "Weeds"]},
"Mountains & Hills [DC 15]": {dc: 15, food: ["Berries", "Fish", "Flowers", "Fruit", "Fungi", "Insects", "Meat", "Nuts", "Plants", "Seeds", "Roots", "Weeds"]},
"Forest & Jungle [DC 10]": {dc: 10, food: ["Berries", "Fish", "Flowers", "Fruit", "Fungi", "Insects", "Meat", "Nuts", "Plants", "Roots", "Seeds", "Vegetables"]},
"Desert [DC 20]": {dc: 20, food: ["Insects", "Meat", "Seeds", "Roots", "Weeds"]},
"Dungeon & Underdark [DC 20]": {dc: 20, food: ["Berries", "Fish", "Flowers", "Fruit", "Fungi", "Meat", "Seeds", "Roots", "Weeds"]},
"City [DC 15]": {dc: 15, food: ["Flowers", "Insects", "Meat", "Seeds", "Roots", "Rubbish", "Weeds"], note: "Note: the Meat probably be bird, cat, dog, or rat"},
"Artic [DC 20]": {dc: 20, food: ["Fish", "Meat", "Seeds", "Roots", "Weeds"]},
"Swamp [DC 15]": {dc: 15, food: ["Berries", "Fish", "Flowers", "Fungi", "Insects", "Meat", "Seeds", "Roots", "Weeds"]},
"Grassland [DC 10]": {dc: 10, food: ["Berries", "Flowers", "Fruit", "Insects", "Meat", "Seeds", "Roots", "Vegetables", "Weeds"]},
"Coast [DC 10]": {dc: 10, food: ["Fish", "Fruit", "Mollusks", "Roots", "Seaweed", "Weeds"]}
};

Expand Down Expand Up @@ -109,6 +109,6 @@ const foodMessage = Object.entries(foodTypes)
.join(', ');
await ChatMessage.create({content: `<b>You gathered the following types of food</b>: ${foodMessage}`});
if (dialog.region === "City [DC 15]") {
await ChatMessage.create({content: `<span style="color:red">Note:</span> the meet probably be bird, cat, dog, or rat`});
await ChatMessage.create({content: `<span style="color:red">Note:</span> the meat is probably bird, cat, dog, or rat`});
}
}