fix: 装备录像 & boss战

This commit is contained in:
unanmed 2024-11-22 20:39:46 +08:00
parent 56365b38df
commit 5c449c6abd
3 changed files with 3 additions and 5 deletions

View File

@ -1763,7 +1763,7 @@ control.prototype._replayAction_equip = function (action) {
const cb = function () { const cb = function () {
const next = core.status.replay.toReplay[0] || ''; const next = core.status.replay.toReplay[0] || '';
if (!next.startsWith('equip:') && !next.startsWith('unEquip:')) { if (!next.startsWith('equip:') && !next.startsWith('unequip:')) {
core.removeFlag('__doNotCheckAutoEvents__'); core.removeFlag('__doNotCheckAutoEvents__');
core.checkAutoEvents(); core.checkAutoEvents();
} }
@ -1803,7 +1803,7 @@ control.prototype._replayAction_unEquip = function (action) {
var cb = function () { var cb = function () {
var next = core.status.replay.toReplay[0] || ''; var next = core.status.replay.toReplay[0] || '';
if (!next.startsWith('equip:') && !next.startsWith('unEquip:')) { if (!next.startsWith('equip:') && !next.startsWith('unequip:')) {
core.removeFlag('__doNotCheckAutoEvents__'); core.removeFlag('__doNotCheckAutoEvents__');
core.checkAutoEvents(); core.checkAutoEvents();
} }

View File

@ -689,8 +689,6 @@ utils.prototype._encodeRoute_encodeOne = function (t) {
if (t.startsWith('item:')) if (t.startsWith('item:'))
return 'I' + this._encodeRoute_id2number(t.slice(5)) + ':'; return 'I' + this._encodeRoute_id2number(t.slice(5)) + ':';
else if (t.startsWith('unEquip:')) return 'u' + t.slice(8); else if (t.startsWith('unEquip:')) return 'u' + t.slice(8);
else if (t.startsWith('equip:'))
return 'e' + this._encodeRoute_id2number(t.slice(6)) + ':';
else if (t.startsWith('saveEquip:')) return 's' + t.slice(10); else if (t.startsWith('saveEquip:')) return 's' + t.slice(10);
else if (t.startsWith('loadEquip:')) return 'l' + t.slice(10); else if (t.startsWith('loadEquip:')) return 'l' + t.slice(10);
else if (t.startsWith('fly:')) return 'F' + t.slice(4) + ':'; else if (t.startsWith('fly:')) return 'F' + t.slice(4) + ':';

View File

@ -193,7 +193,7 @@ export class TowerBoss extends BarrageBoss {
TowerBoss.effect.end(); TowerBoss.effect.end();
core.status.hero.hp = this.heroHp; core.status.hero.hp = this.heroHp;
Mota.Plugin.require('replay_g').clip('choice:0'); Mota.Plugin.require('replay_g').clip('choices:0');
} }
/** /**