mirror of
https://github.com/motajs/template.git
synced 2026-11-02 15:04:30 +08:00
style(10-11): prettier 格式化中级教程文档
This commit is contained in:
1 parent
beedb185d1
commit
4f4090d5c5
16 files changed
+204
-190
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user