赞 | 2 |
VIP | 0 |
好人卡 | 0 |
积分 | 27 |
经验 | 0 |
最后登录 | 2024-11-21 |
在线时间 | 472 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2713
- 在线时间
- 472 小时
- 注册时间
- 2020-8-20
- 帖子
- 78
|
我插了句setTimeout进去测试好像没什么问题
遇敌 胜利 逃跑成功
- BattleManager.processEscape = function() {
- $gameParty.performEscape();
- SoundManager.playEscape();
- const success = this._preemptive || Math.random() < this._escapeRatio;
- if (success) {
- this.onEscapeSuccess();
- setTimeout(() => {$gameMessage.clear();}, 1000);
- } else {
- this.onEscapeFailure();
- }
- return success;
- };
- BattleManager.displayStartMessages = function() {
- for (const name of $gameTroop.enemyNames()) {
- $gameMessage.add(TextManager.emerge.format(name));
- setTimeout(() => {
- SceneManager._scene._messageWindow.close();
- $gameMessage.clear();
- }, 1000);
- }
- if (this._preemptive) {
- $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
- } else if (this._surprise) {
- $gameMessage.add(TextManager.surprise.format($gameParty.name()));
- }
- };
- BattleManager.displayVictoryMessage = function() {
- $gameMessage.add(TextManager.victory.format($gameParty.name()));
- setTimeout(() => {$gameMessage.clear();}, 2000);
- };
复制代码 |
|