Version 1.12 Minor Fix


Good afternoon folks.

User DavePerry from the rpgmakerweb forums alerted me to an issue with this plugin, so I've gone ahead and fixed the bug causing it, updated the documentation a bit to (hopefully) prevent this from happening again, and fixed a couple of other issues I found along the way. I've uploaded version 1.12 with the following changes:

  • Documentation has been updated. this.weaponFormula(alt) needs to be wrapped in an eval() function for it to work correctly in a damage formula, unless the weapon formula returns a flat number instead.
    • My test case to make sure the plugin was originally working was to test with flat value weapon formulas, and I never thought to check this function with actual damage formulas in it, and it turns out that the damage formula doesn't evaluate a string inside it as a value automatically, so you need to tell it to do that manually.
  • Removed a call to a debug function that is only present if you are using plugins from the YEP suite.
    • This function was called to post a damage calculation error into the console, it has been replaced with a console.log() command instead.
    • Removing this call fixes a crash that could happen in RMMZ, if you had a damage formula error, as you likely don't have any YEP plugins in your RMMZ project.
  • Fixed an issue where, when used together with my Dual Wield plugin, a weapon formula in a <dual wield skill> <mainhand skill> or <offhand skill> that contained 'a.atk' would not grab the correct attack value for the hand being swung, causing more damage than expected.

To download the update, either redownload the plugin from the main store page, or redownload it from your download library.

That's all for this update.

-Ramza

Files

Plugin Download 17 kB
Jan 20, 2021

Get MV/MZ Weapon Attack Formulas

Buy Now$3.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.