* @zh 获取指定类型的叠加层数 * @en Get stack count for specified type
(typeId: string)
| 366 | * @en Get stack count for specified type |
| 367 | */ |
| 368 | getStacks(typeId: string): number { |
| 369 | const effects = this.getByType(typeId); |
| 370 | return effects.reduce((sum, e) => sum + e.stacks, 0); |
| 371 | } |
| 372 | |
| 373 | /** |
| 374 | * @zh 获取所有效果 |