feat(config): 实现英雄能力调整与英雄池扩展
完成以下核心变更: 1. 重构英雄卡牌消耗逻辑,按等级分档定价 2. 更新现有英雄数值规则,统一永久属性与概率buff效果 3. 新增10名新英雄并完善配置 4. 补充冰冻强化技能与对应计时buff 5. 更新英雄池列表与设计文档
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user