-
Notifications
You must be signed in to change notification settings - Fork 1
/
KRD_FloorDamage_var.js
44 lines (38 loc) · 1.2 KB
/
KRD_FloorDamage_var.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//================================================
// KRD_FloorDamage_var.js
//
// Copyright (c) 2018 KRD_DATA (くろうど)
// This plugin is released under the MIT License.
// https://opensource.org/licenses/mit-license.php
//================================================
/*:
* @plugindesc Change FloorDamage.
* @author KRD_DATA (くろうど)
*
* @param Variables
* @desc Input variables number.
* Default: 1
* @default 1
*
* @help This plugin does not provide plugin commands.
*/
/*:ja
* @plugindesc フロアダメージの値を変更します。
* @author KRD_DATA (くろうど)
*
* @param Variables
* @desc フロアダメージの値として使う変数番号を入力してください。
* Default: 1
* @default 1
*
* @help このプラグインには、プラグインコマンドはありません。
*
* フロアダメージの変数は初期値 0 なので、変数に値を設定してください。
*/
(function() {
var parameters = PluginManager.parameters('KRD_FloorDamage_var');
var variables = Number(parameters['Variables']);
Game_Actor.prototype.basicFloorDamage = function() {
return $gameVariables.value(variables);
};
})();