42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
/*:ja
|
|
* @target MZ
|
|
* @plugindesc 空スキルのウェイトをなくす
|
|
* @author
|
|
*
|
|
*/
|
|
|
|
Window_BattleLog.prototype.displayAction = function (subject, item) {
|
|
var numMethods = this._methods.length;
|
|
if (DataManager.isSkill(item)) {
|
|
if (item.message1) {
|
|
this.push("addText", subject.name() + item.message1.format(item.name));
|
|
}
|
|
if (item.message2) {
|
|
this.push("addText", item.message2.format(item.name));
|
|
}
|
|
} else {
|
|
this.push("addText", TextManager.useItem.format(subject.name(), item.name));
|
|
}
|
|
if (this._methods.length === numMethods && !item.meta.NoneSkill) {
|
|
this.push("wait");
|
|
}
|
|
|
|
Window_Base.prototype.updateOpen = function () {
|
|
if (this._opening) {
|
|
this.openness = 255;
|
|
if (this.isOpen()) {
|
|
this._opening = false;
|
|
}
|
|
}
|
|
};
|
|
|
|
Window_Base.prototype.updateClose = function () {
|
|
if (this._closing) {
|
|
this.openness = 0;
|
|
if (this.isClosed()) {
|
|
this._closing = false;
|
|
}
|
|
}
|
|
};
|
|
Window_BattleLog.prototype.startTurn = function () {};
|
|
};
|