style(10-11): prettier 格式化中级教程文档

This commit is contained in:
AncTe committed 2026-10-17 22:22:37 +08:00
1 parent beedb185d1
commit 4f4090d5c5
16 files changed
+204 -190

No files matched your search

+6 -2
View File
@@ -121,14 +121,18 @@ const effect: IEnemySpecialQueryEffect<IEnemyAttr, IHeroAttr> = {
add(handler) {
const result: ISpecial<any>[] = [];
const others = [...ctx.iterateEnemy()]
.filter(([, view]) => view.getComputedEnemy() !== handler.enemy)
.filter(
([, view]) => view.getComputedEnemy() !== handler.enemy
)
.sort(
([a], [b]) =>
ctx.indexer.index(a.x, a.y) -
ctx.indexer.index(b.x, b.y)
);
for (const [, view] of others) {
for (const special of view.getComputedEnemy().iterateSpecials()) {
for (const special of view
.getComputedEnemy()
.iterateSpecials()) {
if (special.code === 41) continue;
if (handler.enemy.hasSpecial(special.code)) continue;
result.push(special.clone());