feat(card skill): add skill parameter override support
1. 新增卡牌技能参数覆写配置项,支持自定义伤害、buff数值等 2. 调整UI布局的上下边框参数,适配技能框显示 3. 完整打通技能覆写参数从配置到技能释放的全链路
This commit is contained in:
@@ -2,6 +2,7 @@ import * as exp from "constants"
|
||||
import { HeroInfo, HeroList, HType } from "./heroSet"
|
||||
import { FightSet } from "./GameSet"
|
||||
import { oops } from "db://oops-framework/core/Oops"
|
||||
import { SkillOverrides } from "./SkillSet"
|
||||
|
||||
class I18nString {
|
||||
constructor(private key: string, private params?: any[]) { }
|
||||
@@ -62,6 +63,7 @@ export interface CardConfig {
|
||||
t_times?: number // 触发次数
|
||||
t_inv?: number // 触发间隔(秒)
|
||||
keep_waves?: number // 维持的波次数(-1表示持续到战斗结束,0或undefined表示仅本波次)
|
||||
overrides?: SkillOverrides // 技能参数覆写(如自定义伤害ap、buff值、金币数等)
|
||||
}
|
||||
export const CardsUpSet: Record<number, number> = {
|
||||
1: 50,
|
||||
|
||||
Reference in New Issue
Block a user