-
Notifications
You must be signed in to change notification settings - Fork 0
/
bentelk_DashyBoots.js
41 lines (36 loc) · 1.24 KB
/
bentelk_DashyBoots.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
/*:
* @plugindesc Replaces dashing with an item that increases your move speed.
* @author Ben Hendel-Doying
*
* @help
* The ALWAYS DASH option is removed from the game, and dashing by holding
* SHIFT is no longer possible.
*
* If the party's inventory contains the "Dashy Boots" item, then the party
* dashes UNLESS they hold SHIFT.
*
* @param Dashy Boots Item
* @type item
* @desc The item which enables dashing.
* @default 38
*/
(function() {
let dashyBootsItemId = Number(PluginManager.parameters('bentelk_DashyBoots')['Dashy Boots Item']);
Game_Player.prototype.updateDashing = function() {
if (this.isMoving()) {
return;
}
if (this.canMove() && !this.isInVehicle() && !$gameMap.isDashDisabled()) {
this._dashing = $gameParty.hasItem($dataItems[dashyBootsItemId]) && !this.isDashButtonPressed();
} else {
this._dashing = false;
}
};
Game_Player.prototype.isDashButtonPressed = function() {
return Input.isPressed('shift');
};
Window_Options.prototype.addGeneralOptions = function() {
//this.addCommand(TextManager.alwaysDash, 'alwaysDash');
this.addCommand(TextManager.commandRemember, 'commandRemember');
};
})();