Change damage formula on crit? (VX Ace)

Hey guys! I'm new on this forum but was wondering if anyone here knew anyway to modify the formula used for damage on critical attacks. 


I'm currently making a game that draws heavily from Dragon Warrior I in terms of stats and damage (as I enjoy the low numbers that are used in the game and would like to emulate a huge portion of the logic from that game, while making sure to not allow for some of the errors from the game). 
Currently, I have 

if (b.result.critical==true);(a.atk/2);else;(a.atk-b.agi/2)/2;end;

in my attack formula, and in Game_Battler, I'm setting critical damage to just be the damage variable, but for some reason I'm getting damage values of 5-8 when I'm expecting values of 2-3.

If anyone has any scripts that work well for something like this, or if scripts aren't needed and someone can point me in the right direction, I'd be very appreciative!
You can find this in the Game_Battler class:


def apply_critical(damage)
damage * 3
end


Modify this method to adjust the critical damage.


The argument damage is the non-critical damage value. 


You can use the battler's stats there too with atk, agi, and so on.


Also, make sure to switch off variance for the skills/items you want to use for testing, so that you get static values for comparison purposes.


And the reason why you get the increased damage is that method I copied above. You expect 2 for damage, but you will get 6 on critical, because that method multiplies the regular damage by 3 on critical hits automatically, regardless what is written in your damage formula.

Original thread: https://forums.rpgmakerweb.com/threads/change-damage-formula-on-crit-vx-ace.61297/