mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-02 00:14:30 +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
|
||||
|
||||
@@ -39,7 +39,7 @@ const shadowInfo: Partial<Record<FloorIds, Light[]>> = {
|
||||
y: 144,
|
||||
decay: 20,
|
||||
r: 150,
|
||||
color: '#ee995333',
|
||||
color: '#e953',
|
||||
noShelter: true
|
||||
},
|
||||
{
|
||||
@@ -48,7 +48,7 @@ const shadowInfo: Partial<Record<FloorIds, Light[]>> = {
|
||||
y: 144,
|
||||
decay: 20,
|
||||
r: 150,
|
||||
color: '#ee995333',
|
||||
color: '#e953',
|
||||
noShelter: true
|
||||
},
|
||||
{
|
||||
@@ -57,7 +57,7 @@ const shadowInfo: Partial<Record<FloorIds, Light[]>> = {
|
||||
y: 336,
|
||||
decay: 20,
|
||||
r: 150,
|
||||
color: '#ee995333',
|
||||
color: '#e953',
|
||||
noShelter: true
|
||||
},
|
||||
{
|
||||
@@ -66,7 +66,7 @@ const shadowInfo: Partial<Record<FloorIds, Light[]>> = {
|
||||
y: 336,
|
||||
decay: 20,
|
||||
r: 150,
|
||||
color: '#ee995333',
|
||||
color: '#e953',
|
||||
noShelter: true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user