do-disciplinary-committee-m.../www/js/plugins/BordSkin.js
2025-05-04 14:43:03 -05:00

60 lines
2.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//=============================================================================
// BordSkin.js
//=============================================================================
/*:ja
* @plugindesc ver1.00 能力値にステートに設定した定数を加算します。
* @author まっつUP
*
* @help
*
* RPGで笑顔を・・・
*
* このヘルプとパラメータの説明をよくお読みになってからお使いください。
*
* パラメータとプラグインコマンドともにありません。
* 定数は基本能力値の倍率やバフの倍率によって変わることはありません。
*
* ステートのノートタグ
*
* <BSparamId:value>
*
* 例atkを100上昇させる。
* <BS2:100>
*
* このプラグインを利用する場合は
* readmeなどに「まっつ」の名を入れてください。
* また、素材のみの販売はダメです。
* 上記以外の規約等はございません。
* もちろんツクールMVで使用する前提です。
* 何か不具合ありましたら気軽にどうぞ。
*
* 免責事項:
* このプラグインを利用したことによるいかなる損害も制作者は一切の責任を負いません。
*
*/
(function() {
//var parameters = PluginManager.parameters('BordSkin');
Game_BattlerBase.prototype.paramPlus2 = function(paramId) { //新規
var str1 = 'BS' + paramId;
var amount = 0;
this._states.forEach(function(stateId) {
var val1 = Number($dataStates[stateId].meta[str1] || 0);
if(val1) amount += val1;
}, this);
return amount;
};
Game_BattlerBase.prototype.param = function(paramId) {
var value = this.paramBase(paramId) + this.paramPlus(paramId);
value *= this.paramRate(paramId) * this.paramBuffRate(paramId);
value += this.paramPlus2(paramId);
var maxValue = this.paramMax(paramId);
var minValue = this.paramMin(paramId);
return Math.round(value.clamp(minValue, maxValue));
};
})();