MV SRD Timed Attack, need some help with a formula

Hey!

I'm using this plugin in my game and is working great, however, I want to change my damage formula. When the player succeeds with the timed attack the skill damage is increased by 25%, when the player fails, the damage is the same as base. I know with a bit of math I can achieve this but yeah, I'm not that good with that...

My actual damage formula for spells is this: Math.max(1, 50 + a.mat - b.mdf * 2)

You can add $gameTemp.tas_power to alter the formula.

Thanks!
Without modifying the plugin, the closest formula I can suggest is:

Math.max(1, 50 + a.mat - b.mdf * 2) * ($gameTemp.tas_power * 1.25)

With this formula, the skill's damage increases by 25% if it succeeds, but if it fails, it still deals less than the base damage (as the plugin specifies that $gameTemp.tas_power ranges from 0 to 1, depending on how close the "Timed Attack" was to being perfect).
Problem solved. The plugin has a parameter the allows you to adjust the value of $gameTemp.tas_power.
This thread is closed due to being indicated as solved. Report the next one so we can find it! If you need this thread reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/srd-timed-attack-need-some-help-with-a-formula.174716/