Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Maliki's Bypass Skill Costs
- // Mal_BypassSkillCost.js
- // version 1.0
- //=============================================================================
- /*:
- * @plugindesc Version 1.0 Allows skills to bypass skill costs that are greater
- * than their current amounts (MP or TP)
- * @author Maliki79
- * @help
- * After installing this plugin, tag skills with <bypassCost>
- *
- * When selecting skills, any MP/TP cost will be ignored.
- * Skills will still consume the needed amount, but if the actor
- * doesn't have enough, their points will be only reduced to 0.
- */
- var Mal_canPayCost = Game_BattlerBase.prototype.canPaySkillCost;
- Game_BattlerBase.prototype.canPaySkillCost = function(skill) {
- if (skill.meta.bypassCost) return true;
- return Mal_canPayCost.call(this, skill);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement