Advertisement
Maliki79

Mal_SummonCore_EX

May 18th, 2019
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Maliki's Max Summon Changer
  3. // Mal_SummonCore_EX.js
  4. // version 1.0
  5. //=============================================================================
  6. /*:  
  7. * @plugindesc ver1.0 - Allows user's of SumRndmDde's Summon Core to change
  8. * the max number of summons in game.
  9.  * @author Maliki79
  10.  *
  11.  * @help Use the Script Call $gameParty.changeMaxSummon(x);
  12.  * (With X being any whole number)
  13.  * to change the max number of summons.
  14.  * This number will be added to the default max summons.
  15.  * Use a negative number to lower the max amount.
  16.  * (Max Summons cannot be set below 0)
  17.  */
  18.  
  19.  Game_Party.prototype.maxSummonMembers = function() {
  20.     var total = _.maxSummons + (this.maxSummonPlus || 0);
  21.     if (total > 0) return total;
  22.     return 0;
  23. };
  24.  
  25. Game_Party.prototype.changeMaxSummon = function(amount) {
  26.     var amount = Number(amount) || 0;
  27.     this.maxSummonPlus = amount;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement