mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-05 03:14:31 +08:00
新建三区的第一个小区域
This commit is contained in:
1 parent
6676ca4d58
commit
308e683ee2
28 files changed
+921
-16
No files matched your search
@@ -99,7 +99,16 @@ export class EnemyCollection implements RangeCollection<DamageEnemy> {
|
||||
});
|
||||
}
|
||||
|
||||
calMapDamage(noCache: boolean = false) {}
|
||||
/**
|
||||
* 计算地图伤害
|
||||
* @param noCache 是否不使用缓存
|
||||
*/
|
||||
calMapDamage(noCache: boolean = false) {
|
||||
if (noCache) this.mapDamage = {};
|
||||
this.list.forEach(v => {
|
||||
v.calMapDamage(this.mapDamage);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 向怪物施加光环
|
||||
@@ -413,7 +422,11 @@ export class DamageEnemy<T extends EnemyIds = EnemyIds> {
|
||||
}));
|
||||
}
|
||||
|
||||
calMapDamage() {}
|
||||
calMapDamage(damage?: Record<string, MapDamage>) {
|
||||
damage ??= {};
|
||||
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
///<reference path="../../../src/types/core.d.ts" />
|
||||
|
||||
/**
|
||||
* 滑动数组
|
||||
* @param arr
|
||||
|
||||
Reference in new issue
Block a user