I decided to do little mess in Game_action.prototype.applyCritical function to make it deal a damage depending on currently
taking action hero, but there is small problem...
How can I access variable storing actor's level inside function? And I don't mean game variable, but global (or property) inside Game_actor class?
Or simplier, what I need to type in place of xxx to access currently selected actor's level?
taking action hero, but there is small problem...
Code:
Game_Action.prototype.applyCritical = function(damage) {
var CriticalValues = [1.1, 1.15, 1.2, 1.25, 1.5, 1.7, 1.8, 2, 2.45, 3];
var arg = xxx;
return Math.floor(damage * CriticalValues[arg]);
};
Or simplier, what I need to type in place of xxx to access currently selected actor's level?