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

Fixes #508 wand of the war mage missing bonuses #512

Merged
merged 7 commits into from
Mar 28, 2021

Conversation

codeGlaze
Copy link

Description:

Related issue (if applicable): fixes #508
Wand of the War Mage was not applying the spell attack modifier.

WARNING: breaks existing name keys for the various Wands of the War Mage

  • Introduce new generic function for creating items (focused on caster bonuses but could be generic)

  • Added some missing "action" blurbs

  • Fixes possible typo in from-internal-item properties

  • Automatic EOL changes to fit file format

Checklist:

  • The code change is tested and works locally.
  • I have commented my code, particularly in hard-to-understand areas
  • There is commented out code in this PR. Features to return to or tweak, primarily documentation related.
  • My changes generate no new warnings (check the console)

@codeGlaze codeGlaze closed this Feb 24, 2021
@codeGlaze codeGlaze reopened this Feb 24, 2021
Copy link

@datdamnzotz datdamnzotz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments

@@ -333,6 +334,25 @@ Additionally, you can focus your senses as an action to magically discern the di
direction to the closest dragon within 30 miles of you that is of the same type as the armor. This special action can’t be used again until the next dawn."
)})

(defn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There already is a spell-attack-modifier-bonus and a spell-save-dc-bonus in modifiers.cljc
Do they not provide the functionality your after?

They can be used like this:

::modifiers [(mod5e/spell-attack-modifier-bonus 2)
(mod5e/spell-save-dc-bonus 3)]

@@ -2816,25 +2844,17 @@ The wand regains 1d6 + 1 expended charges daily at dawn. If you expend the wand
::type :wand
::rarity :uncommon
::description "The wand has 3 charges. While holding it, you can use an action to expend 1 of its charges, and if a secret door or trap is within 30 feet of you, the wand pulses and points at the one nearest to you. The wand regains 1d3 expended charges daily at dawn."
}{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you just need to add:

name-key "Wand of the War Mage, +1"
::type :wand
::rarity :uncommon
::attunement [:spellcaster]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::modifiers [(mod5e/spell-attack-modifier-bonus 1)
(mod5e/spell-save-dc-bonus 1)]

name-key "Wand of the War Mage, +2"
::type :wand
::rarity :rare
::attunement [:spellcaster]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::modifiers [(mod5e/spell-attack-modifier-bonus 2)
(mod5e/spell-save-dc-bonus 2)]

name-key "Wand of the War Mage, +3"
::type :wand
::rarity :very-rare
::attunement [:spellcaster]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::modifiers [(mod5e/spell-attack-modifier-bonus 3)
(mod5e/spell-save-dc-bonus 3)]

::attunement [:spellcaster]
::description "While holding this wand, you gain a +3 bonus to spell attack rolls. In addition, you ignore half cover when making a spell attack."
}{
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this whole section can be removed.

@codeGlaze
Copy link
Author

codeGlaze commented Feb 24, 2021

That's exactly what I did.

I used those modifiers, just abstracted it to cut down boilerplate code and potentially reuse for other items/custom items in the future.

@datdamnzotz
Copy link

datdamnzotz commented Feb 24, 2021

That's exactly what I did.

I used those modifiers, just abstracted it to cut down boilerplate code and potentially reuse for other items/custom items in the future.

Looks like this is moving away from the convention that is already in place across all the magic items for three items.
This is really the data set for all magic items, they should follow the same syntax across all of them docha think?

I disagree with what he did with the horn-of-valhalla or figurine-of-wondrous-power if you search those items they are defined by a function. There are a few of those.
They really should just be typed out like the rest instead of pushing functions for them.

I'm not apposed to introducing something like this - but imho it is the data set, probably should just follow that architecture - now if you want to update them all that's fine, but let's not just do 3.

@datdamnzotz datdamnzotz added area/application Task related to orcpub application itself bug Something isn't working labels Mar 20, 2021
@datdamnzotz
Copy link

In https://dev.dungeonmastersvault.com for testing

@datdamnzotz datdamnzotz added this to the 2.5.0.21 milestone Mar 28, 2021
@datdamnzotz datdamnzotz merged commit c030bc9 into Orcpub:develop Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/application Task related to orcpub application itself bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wand of the War Mage does not apply its bonuses
2 participants