0558名前は開発中のものです。
2023/07/24(月) 20:07:30.91ID:to4H1KXvBattleManager.processEscape = function() {
$gameParty.performEscape();
SoundManager.playEscape();
//const success = this._preemptive || Math.random() < this._escapeRatio; // ここは原文
// ここから修正箇所
var _escapeRatio = 1; // ここの1が逃走率なので好きに変える
console.log(_escapeRatio); // デバッグ用の逃走率表示コマンド デバックが終わったらこの行は削除
const success = this._preemptive || Math.random() < _escapeRatio;
// ここまで修正箇所
if (success) {
this.onEscapeSuccess();
} else {
this.onEscapeFailure();
}
return success;
};
簡単なテスト済み