mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-05 19:44:32 +08:00
标记要重写的部分,并在libs中删除被复写函数
This commit is contained in:
1 parent
06fc4c4940
commit
3bdb668c5f
16 files changed
+48
-307
No files matched your search
@@ -58,6 +58,7 @@ export class EnemyCollection implements RangeCollection<DamageEnemy> {
|
||||
|
||||
constructor(floorId: FloorIds) {
|
||||
this.floorId = floorId;
|
||||
this.extract();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
export function drawHalo(ctx, onMap) {
|
||||
if (main.replayChecking) return;
|
||||
if (!core.getLocalStorage('showHalo', true)) return;
|
||||
// todo: 不使用 core.status.checkBlock
|
||||
const halo = core.status.checkBlock.halo;
|
||||
ctx.save();
|
||||
for (const [loc, range] of Object.entries(halo)) {
|
||||
|
||||
@@ -4,6 +4,7 @@ export {};
|
||||
// 伤害弹出
|
||||
// 复写阻激夹域检测
|
||||
control.prototype.checkBlock = function (forceMockery) {
|
||||
// todo: 不使用 core.status.checkBlock
|
||||
var x = core.getHeroLoc('x'),
|
||||
y = core.getHeroLoc('y'),
|
||||
loc = x + ',' + y;
|
||||
@@ -37,6 +38,7 @@ control.prototype.checkBlock = function (forceMockery) {
|
||||
};
|
||||
|
||||
control.prototype.moveHero = function (direction, callback) {
|
||||
// todo: 不使用 core.status.checkBlock
|
||||
// 如果正在移动,直接return
|
||||
if (core.status.heroMoving != 0) return;
|
||||
if (core.isset(direction)) core.setHeroLoc('direction', direction);
|
||||
@@ -57,6 +59,7 @@ control.prototype.moveHero = function (direction, callback) {
|
||||
* @param {boolean} force
|
||||
*/
|
||||
function checkMockery(loc, force) {
|
||||
// todo: 不使用 core.status.checkBlock
|
||||
if (core.status.lockControl && !force) return;
|
||||
const mockery = core.status.checkBlock.mockery[loc];
|
||||
if (mockery) {
|
||||
|
||||
@@ -45,6 +45,7 @@ core.registerReplayAction('upgradeSkill', name => {
|
||||
});
|
||||
|
||||
core.registerReplayAction('study', name => {
|
||||
// todo: 删除getEnemyInfo
|
||||
if (!name.startsWith('study:')) return false;
|
||||
const [num, x, y] = name
|
||||
.slice(6)
|
||||
|
||||
Reference in new issue
Block a user