Advertisement
Maliki79

Mal_YF_ATB_Edit_ChargingSkillsFix.js

Nov 5th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Game_Battler.prototype.atbChargeDenom = function() {
  2.     var denom = Math.max(1, BattleManager.atbCharge() * (this._atbChargeMod/100.0)); //ORIGINAL CODE var denom = Math.max(1, BattleManager.atbCharge() - this._atbChargeMod);
  3.     return denom;
  4. };
  5.  
  6. Game_Battler.prototype.setupATBCharge = function() {
  7.     if (this._bypassAtbEndTurn) return;
  8.     this.setATBCharging(true);
  9.     if (!this.currentAction()) this.makeActions();
  10.     if (this.currentAction()) {
  11.       var item = this.currentAction().item();
  12.       if (item) {
  13.         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!!!
  14.       } else {
  15.         this._atbChargeMod = 0;
  16.       }
  17.     } else {
  18.       this._atbChargeMod = 0;
  19.     }    
  20.     this.setATBCharge(0);
  21.     this.setActionState('waiting');
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement