Advertisement
Maliki79

Mal_BypassSkillCost

May 1st, 2019
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Maliki's Bypass Skill Costs
  3. // Mal_BypassSkillCost.js
  4. // version 1.0
  5. //=============================================================================
  6. /*:  
  7.  * @plugindesc Version 1.0 Allows skills to bypass skill costs that are greater
  8.  * than their current amounts (MP or TP)
  9.  * @author Maliki79
  10.  * @help
  11.  * After installing this plugin, tag skills with <bypassCost>
  12.  *
  13.  * When selecting skills, any MP/TP cost will be ignored.  
  14.  * Skills will still consume the needed amount, but if the actor
  15.  * doesn't have enough, their points will be only reduced to 0.
  16.  */
  17.  
  18. var Mal_canPayCost = Game_BattlerBase.prototype.canPaySkillCost;
  19. Game_BattlerBase.prototype.canPaySkillCost = function(skill) {
  20.     if (skill.meta.bypassCost) return true;
  21.     return Mal_canPayCost.call(this, skill);
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement