feat: 怪物及地图伤害系统

This commit is contained in:
AncTe committed 2026-04-14 18:10:21 +08:00
1 parent fe67939a05
commit 057d5ab813
28 files changed
+3638 -264

No files matched your search

+13 -35
View File
@@ -15,42 +15,14 @@ type PartialNumbericEnemyProperty =
| 'purify'
| 'atkValue'
| 'defValue'
| 'damage'
| 'iceDecline'
| 'iceCore'
| 'fireCore'
| 'together'
| 'hungry'
| 'ice'
| 'crit'
| 'courage'
| 'charge'
| 'paleShield'
| 'iceHalo'
| 'day'
| 'night'
| 'melt'
| 'hpHalo'
| 'assimilateRange';
| 'damage';
type BooleanEnemyProperty =
| 'zoneSquare'
| 'haloSquare'
| 'notBomb'
| 'add'
| 'haloAdd'
| 'specialMultiply';
type DetailedEnemy<I extends EnemyIds = EnemyIds> = {
specialText: string[];
toShowSpecial: string[];
toShowColor: Color[];
specialColor: Color[];
damageColor: Color;
criticalDamage: number;
critical: number;
defDamage: number;
} & Enemy<I>;
| 'haloAdd';
type Enemy<I extends EnemyIds = EnemyIds> = {
/**
@@ -89,11 +61,6 @@ type Enemy<I extends EnemyIds = EnemyIds> = {
*/
afterBattle: MotaEvent;
specialHalo?: number[];
translation?: [number, number];
/** 战争号角 */
horn?: [number, number, number];
/** 大怪物绑定贴图 */
bigImage?: ImageIds;
} & {
@@ -134,6 +101,17 @@ interface EnemyInfoBase extends EnemySpecialBase {
point: number;
}
type DetailedEnemy<I extends EnemyIds = EnemyIds> = {
specialText: string[];
toShowSpecial: string[];
toShowColor: Color[];
specialColor: Color[];
damageColor: Color;
criticalDamage: number;
critical: number;
defDamage: number;
} & Enemy<I>;
/**
* 怪物的特殊属性定义
*/