Created
February 24, 2022 03:50
-
-
Save triacontane/51b068aaef69188d4c5eb005a2a4446e to your computer and use it in GitHub Desktop.
基礎パラメータにイベントコマンドによる追加分を反映
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*============================================================================= | |
| (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