Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created February 24, 2022 03:50
Show Gist options
  • Select an option

  • Save triacontane/51b068aaef69188d4c5eb005a2a4446e to your computer and use it in GitHub Desktop.

Select an option

Save triacontane/51b068aaef69188d4c5eb005a2a4446e to your computer and use it in GitHub Desktop.
基礎パラメータにイベントコマンドによる追加分を反映
/*=============================================================================
(C)2022 Triacontane
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
=============================================================================*/
/*:
* @plugindesc 基礎パラメータにイベントコマンドによる追加ぶんを反映させて返すメソッド
* @target MZ
* @author トリアコンタン
*
* @help
*
* 計算式で使う場合
* a.paramDoping(paramId);
*
* スクリプトで使う場合
* $gameActors.actor(1).paramDoping(paramId)
*
* MV/MZ両用
*/
(()=> {
Game_Actor.prototype.paramDoping = function(paramId) {
return this.paramBase(paramId) + Game_Battler.prototype.paramPlus.call(this, paramId);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment