Increasing critical damage of a specific skill

I'm trying to increase the critical damage of a specific skill, but I'm unsure as to how to finish the formula. This is what I have:
if (target.result().critical) ; formula

can I just put a *n before the semicolon?

Thanks in advance,
Oggy
would this be easier?
1667019982819.png


VisuMZ_1_BattleCore
I think this kind of thing would work:

(a.atk * 4 - b.def * 2) * (target.result().critical ? 2 : 1)
I.e. "formula" times an extra factor of 2 if it's a crit, or times 1 (no change) otherwise.

[Edit: swapped var for let.] Equivalently, with an if and temporary variable r:

let r = a.atk * 4 - b.def * 2; if (target.result().critical) r * 2; else r
I.e. store "formula" in a temporary variable r; if it's a crit, return 2 times r, otherwise just return r.
Thanks so much for the replies! They were very helpful.

Original thread: https://forums.rpgmakerweb.com/threads/increasing-critical-damage-of-a-specific-skill.152313/