Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Game_Battler.prototype.atbChargeDenom = function() {
- var denom = Math.max(1, BattleManager.atbCharge() * (this._atbChargeMod/100.0)); //ORIGINAL CODE var denom = Math.max(1, BattleManager.atbCharge() - this._atbChargeMod);
- return denom;
- };
- Game_Battler.prototype.setupATBCharge = function() {
- if (this._bypassAtbEndTurn) return;
- this.setATBCharging(true);
- if (!this.currentAction()) this.makeActions();
- if (this.currentAction()) {
- var item = this.currentAction().item();
- if (item) {
- this._atbChargeMod = Number(item.meta.atbSpeed) || item.speed; //item.speed; //Set either to be a percentage of gauge. Smaller number is FASTER. 0 is INSTANT!!!
- } else {
- this._atbChargeMod = 0;
- }
- } else {
- this._atbChargeMod = 0;
- }
- this.setATBCharge(0);
- this.setActionState('waiting');
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement