perf: 增加技能对象池最大容量并优化伤害日志

将技能对象池最大容量从64提升至128,以支持更多并发技能实例。
将技能6008的结束类型从动画结束改为碰撞检测,提高准确性。
移除伤害计算中不必要的施法者属性获取和击杀计数更新,简化日志输出。
This commit is contained in:
panw
2026-03-18 10:37:25 +08:00
parent e059c97670
commit eff4154ba3
3 changed files with 4 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ export class Skill extends ecs.Entity {
private debugMode: boolean = false;
/** 多键对象池Map<prefabPath, NodePool> */
static pools: Map<string, NodePool> = new Map();
static readonly MAX_POOL_SIZE: number = 64;
static readonly MAX_POOL_SIZE: number = 128;
static getFromPool(path: string): Node | null {
if (this.pools.has(path)) {