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 #249, Fixes#514, Fixes #513; dueling FS, bracers archery #515

Merged

Conversation

codeGlaze
Copy link

@codeGlaze codeGlaze commented Feb 28, 2021

Description:

Fixes Issue #249, Fixes #513; Fixes #514; Fixes #515;

  • Fixed Dueling style not applying +2 bonus to one handed melee weapons.

    • Properly checks for weapons in only one hand
    • Properly only applies to non-two handed melee weapons
  • Added ?damage-bonus-fns to damage modifier calculation

  • Commented out melee- and ranged- specific damage bonus methods. Weird front end issues occurred when apply was... applied to those maps plus the map for the generic damage-bonus-fns

    • Properly utilizing the passed functions and conditions should eliminate the need for those other two methods.
  • Fixed Bracers of Archery applying attack bonus instead of damage bonus

    • Added new method weapon-damage-bonus-mod which duplicates almost all the code from weapon-attack-bonus-mod. Combining them may be worthwhile, using a third parameter to set which bonus we want, or even both.
  • Added boolean method bow? for checking if (long|short) bow, basically. Matches other weapon boolean checks.

  • Incidental EOL change in weapons.cljc to LF

Checklist:

  • The code change is tested and works locally.
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if necessary
  • There is no commented out code in this PR.
  • My changes generate no new warnings (check the console)

* Added `?melee-damage-bonus-fns` and `?ranged-damage-bonus-fns`to damage modifier calculation

* Added checking for one-handedness to apply Dueling Fighting Style Bonus
    + Correctly applies only to melee
    - TODO filter application of bonus to only one handed weapons

* Added new method `melee-damage-bonus-fn` to handle generic, conditional, damage bonuses

* Added boolean method `bow?` for checking if (long|short) bow, basically. Matches other weapon boolean checks.

* Incidental EOL change in `weapons.cljc` to LF
* Fixed Dueling style not applying +2 bonus to one handed melee weapons.
    + Properly checks for weapons in only one hand
    + Properly only applies to non-two handed melee weapons

* Commented out melee- and ranged- specific damage bonus methods. Weird front end issues occurred when `apply` was... applied to those maps plus the map for the generic `damage-bonus-fns`
    * Properly utilizing the passed functions and conditions should eliminate the need for those other two methods.

* Fixed Bracers of Archery applying attack bonus instead of damage bonus
    * Added new method `weapon-damage-bonus-mod` which duplicates almost all the code from `weapon-attack-bonus-mod`. Combining them may be worthwhile, using a third parameter to set which bonus we want, or even both.
@codeGlaze codeGlaze changed the title Fixes #249, Fixes#514; dueling FS, bracers archery Fixes #249, Fixes#514, Fixes #513; dueling FS, bracers archery Mar 2, 2021
@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 85278db 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.

Bracers of Archery do not apply damage bonus [Bug] Diff gone wrong
2 participants