赞 | 2 |
VIP | 0 |
好人卡 | 0 |
积分 | 27 |
经验 | 0 |
最后登录 | 2024-11-10 |
在线时间 | 458 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2654
- 在线时间
- 458 小时
- 注册时间
- 2020-8-20
- 帖子
- 76
|
我插了句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);
- };
复制代码 |
|