feat(config): 实现英雄能力调整与英雄池扩展

完成以下核心变更:
1. 重构英雄卡牌消耗逻辑,按等级分档定价
2. 更新现有英雄数值规则,统一永久属性与概率buff效果
3. 新增10名新英雄并完善配置
4. 补充冰冻强化技能与对应计时buff
5. 更新英雄池列表与设计文档
This commit is contained in:
panFD
2026-08-03 00:07:56 +08:00
parent 7033390417
commit 7f7c0496ca
4 changed files with 702 additions and 52 deletions

View File

@@ -1,6 +1,5 @@
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, TGroup } from "./SkillSet"
@@ -97,17 +96,22 @@ export interface CardConfig {
export const CardPoolList: CardConfig[] = [];
// 动态生成英雄卡池:所有英雄统一生成 lv1 卡牌
function getHeroCost(cardLv: number): number {
if (cardLv === 1) return 5;
if (cardLv === 2) return 10;
return 15;
}
HeroList.forEach(uuid => {
const hero = HeroInfo[uuid];
if (!hero) return;
const baseCost = FightSet.BASE_COST;
const baseWeight = 25;
CardPoolList.push({
uuid: hero.uuid,
type: CardType.Hero,
cost: baseCost,
cost: getHeroCost(hero.card_lv ?? 1),
weight: baseWeight,
card_lv: hero.card_lv ?? 1,
kind: CKind.Hero,