新建三区的第一个小区域

This commit is contained in:
AncTe committed 2023-05-20 22:44:22 +08:00
1 parent 6676ca4d58
commit 308e683ee2
28 files changed
+921 -16

No files matched your search

+15 -2
View File
@@ -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;
}
}
/**
-2
View File
@@ -1,5 +1,3 @@
///<reference path="../../../src/types/core.d.ts" />
/**
* 滑动数组
* @param arr
+4 -4
View File
@@ -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
}
]