Skip to content

Commit

Permalink
Merge pull request #8 from dmrickey/add-elemental-spell-types
Browse files Browse the repository at this point in the history
Add elemental spell types
  • Loading branch information
dmrickey authored Aug 1, 2023
2 parents 46f74c0 + 1014dfd commit 0aad792
Show file tree
Hide file tree
Showing 14 changed files with 533 additions and 366 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.d.ts]
quote_type = single
67 changes: 47 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ Supports PF1 v9+
### Table of contents

- [Armor Focus](#armor-focus)
- [Caster Level Offset for specified Magic School](#caster-level-offset-for-specified-magic-school)
- [Critical Helpers](#critical-helpers)
- [Element CL Bonus](#element-cl-bonus)
- [Elemental Focus](#elemental-focus)
- [Elemental Spell CL Bonus](#elemental-spell-cl-bonus)
- [Fate's Favored](#fates-favored)
- [Fortune and Misfortune](#fortune-and-misfortune)
- [Martial Focus](#martial-focus)
- [Skill Bonuses](#skill-bonuses)
- [Spell Caster Level Offset (for specific elements)](#spell-caster-level-offset-for-specific-elements)
- [Spell Caster Level Offset (for specific schools)](#spell-caster-level-offset-for-specific-schools)
- [Spell DC Bonuses (for all spells)](#spell-dc-bonuses-for-all-spells)
- [Spell DC Bonuses (for specific elements)](#spell-dc-bonuses-for-specific-elements)
- [Spell DC Bonuses (for specific schools)](#spell-dc-bonuses-for-specific-schools)
- [Spell Focus](#spell-focus)
- [Spell Specialization](#spell-specialization)
Expand Down Expand Up @@ -47,10 +49,6 @@ Increase the AC of your chosen armor type by +1 (`Armor Focus`) and additionally

</details>

## Caster Level Offset for specified Magic School
Has a formula input which accepts roll data variables plus a dropdown for selecting the school of magic.
- You must add a dictionary flag `schoolClOffset` to your buff/feature/etc. Once you add that, the inputs will show up below.

## Critical Helpers
Attack's critical variables can now be dynamically adjusted. Crit can be modified with keen. It can also be modified by a static amount to account for certain 3.5 classes or other homebrew. The critical multipler can also be adjusted--this is useful for a Swashbuckler's capstone ability (and any homebrew that needs it).

Expand Down Expand Up @@ -87,28 +85,28 @@ Attack's critical variables can now be dynamically adjusted. Crit can be modifie

</details>

## Element CL Bonus
Increase (or decrease) CL for spells that have a specific elemental damage type. Useful for specific abilities such as [Gnome's Pyromaniac alternate racial trait](https://www.aonprd.com/RacesDisplay.aspx?ItemName=Gnome#:~:text=and%20illusion%20resistance.-,Pyromaniac,-Source%20Advanced%20Race).
## Elemental Focus
Increase the DC by +1 of any spell you're casting for a specific element.

<details>
<summary>How to customize Elemental CL Bonus (click to expand)</summary>
<summary>How to customize Elemental Focus (click to expand)</summary>

- Follows the same basic setup as [Elemental Focus](#elemental-focus) but also includes a formula field.
- The inputs will appear automatically after adding the `elemental-cl` dictionary key
- The accepted values are `acid`, `cold`, `electric`, or `fire`.
- Follows the same basic setup as [Spell Focus](#spell-focus).
- You can manually configure it by setting a flag on the feat with a key of `elementalFocus`, `greaterElementalFocus`, or `mythicElementalFocus` and the mod will automatically add the inputs for you below the dictionary flags section.
- The accepted values are `acid`, `cold`, `electric`, or `fire`.
- The damage for the spell you're casting must be configured using one of the system's predefined types.

</details>

## Elemental Focus
Increase the DC by +1 of any spell you're casting for a specific element.
## Elemental Spell CL Bonus
Increase (or decrease) CL for spells that have a specific elemental damage type. Useful for specific abilities such as [Gnome's Pyromaniac alternate racial trait](https://www.aonprd.com/RacesDisplay.aspx?ItemName=Gnome#:~:text=and%20illusion%20resistance.-,Pyromaniac,-Source%20Advanced%20Race).

<details>
<summary>How to customize Elemental Focus (click to expand)</summary>
<summary>How to customize Elemental CL Bonus (click to expand)</summary>

- Follows the same basic setup as [Spell Focus](#spell-focus).
- You can manually configure it by setting a flag on the feat with a key of `elementalFocus`, `greaterElementalFocus`, or `mythicElementalFocus` and the mod will automatically add the inputs for you below the dictionary flags section.
- The accepted values are `acid`, `cold`, `electric`, or `fire`.
- Follows the same basic setup as [Elemental Focus](#elemental-focus) but also includes a formula field.
- The inputs will appear automatically after adding the `elemental-cl` dictionary key
- The accepted values are `acid`, `cold`, `electric`, or `fire`.
- The damage for the spell you're casting must be configured using one of the system's predefined types.

</details>
Expand Down Expand Up @@ -232,6 +230,26 @@ Various bonuses to skills. You can add Inspiration, change the base die, or add

</details>

## Spell Caster Level Offset (for specific elements)
For buffs, abilities, or banes (or anything else) that modify a specific school's caster level.

<details>
<summary>How to configure Elemental Spell CL (click to expand)</summary>

- You must add a dictionary flag `elemental-cl` to your buff/feature/etc. Once you add that, the inputs will show up below.

</details>

## Spell Caster Level Offset (for specific schools)
For buffs, abilities, or banes (or anything else) that modify a specific school's caster level.

<details>
<summary>How to configure Spell CL (click to expand)</summary>

- You must add a dictionary flag `schoolClOffset` to your buff/feature/etc. Once you add that, the inputs will show up below.

</details>

## Spell DC Bonuses (for all spells)
Generic Increase (or decrease) to the DC for all spells. These bonuses (from different abilities) will stack with each other.

Expand All @@ -240,7 +258,17 @@ Generic Increase (or decrease) to the DC for all spells. These bonuses (from dif

- Add the `genericSpellDC` dictionary flag for the inputs to show up automatically
- Input a bonus formula
- Because of a bug in pf1 0.82.5, the save button on the chat card will show the correct DC, but the info note at the bottom of the chat card will your base DC -- this is the same bug that happens if you use a conditional modifier to increase an individual spell's DC.

</details>

## Spell DC Bonuses (for specific elements)
Generic Increase (or decrease) to the DC for a given spells of elemental types (acid, cold, electricity, fire). These bonuses (from different abilities) will stack with each other.

<details>
<summary>How to configure Elemental Spell DC (click to expand)</summary>

- Add the `elemental--dc` dictionary flag for the inputs to show up automatically
- Input a bonus formula and select an element

</details>

Expand All @@ -252,7 +280,6 @@ Generic Increase (or decrease) to the DC for a given spell school. These bonuses

- Add the `school-dc` dictionary flag for the inputs to show up automatically
- Input a bonus formula and select a spell school
- Because of a bug in pf1 0.82.5, the save button on the chat card will show the correct DC, but the info note at the bottom of the chat card will your base DC -- this is the same bug that happens if you use a conditional modifier to increase an individual spell's DC.

</details>

Expand Down
17 changes: 7 additions & 10 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"ckl-roll-bonuses": {
"all-spells": "All Spells",
"all-spell-dc": "All Spells DC Offset",
"all-spell-cl": "All Spells CL",
"all-spell-dc": "All Spells DC",
"armor-focus": "Armor Focus",
"cl-mod": "{mod} CL",
"cl-label-mod": "{mod} CL ({label})",
"crit-offset": "Crit Offset ({mod})",
"crit-offset": "Crit Modifier ({mod})",
"dc-mod": "{mod} DC",
"dc-label-mod": "{mod} DC ({label})",
"elementalFocus": "Elemental Focus",
"elemental-cl": "Elemental CL Offset",
"elemental-cl": "Elemental CL",
"elemental-dc": "Elemental DC",
"fates-favored": "Fate's Favored",
"fortune": "Fortune",
"greaterElementalFocus": "Greater Elemental Focus",
Expand All @@ -24,19 +26,14 @@
"mythicSpellFocus": "Mythic Spell Focus",
"ok": "OK",
"roll-bonuses": "Roll Bonuses",
"school-dc": "School DC Offset",
"schoolClOffset": "School CL Offset",
"school-dc": "Spell School DC",
"schoolClOffset": "Spell School CL",
"spellFocus": "Spell Focus",
"skills": {
"config": "Skill Config",
"inspiration": "Inspiration"
},
"spell-specialization": "Spell Specialization",
"spells": {
"elementalFocusEnergy": "Elemental Focus Energy",
"schoolClOffset": "School CL Offset",
"spellFocusSchool": "Spell Focus School"
},
"versatilePerformance": {
"error": "Versatile Performance - invalid skill IDs",
"header": "Versatile Performance",
Expand Down
1 change: 0 additions & 1 deletion src/bonuses.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './bonuses/armor-focus/armor-focus.mjs';
import './bonuses/armor-focus/improved-armor-focus.mjs';
import './bonuses/critical.mjs';
import './bonuses/elemental-cl.mjs';
import './bonuses/fates-favored.mjs';
import './bonuses/fortune-handler.mjs';
import './bonuses/martial-focus.mjs';
Expand Down
176 changes: 0 additions & 176 deletions src/bonuses/elemental-cl.mjs

This file was deleted.

Loading

0 comments on commit 0aad792

Please sign in to comment.