This commit is contained in:
2025-07-28 14:17:56 +08:00
parent 48eaa6d1ad
commit 953ae2e0f9
10 changed files with 734 additions and 178 deletions

View File

@@ -6,6 +6,7 @@ import { getHeroList, HeroList } from "./heroSet"
import { getSkills, HeroSkillList, SkillSet } from "./SkillSet"
import { equip_list, weapons, armors, accessorys, getEquipUUIDsByType } from "./Equips"
import { getEnhancement } from "./LevelUp"
import { TalentList } from "./TalentSet"
//1:伙伴 2:技能 3:装备的出现概率配置
export const CardProbability={
@@ -19,6 +20,7 @@ export const cardType={
EQUIP:3,
SPECIAL:4,
ENHANCEMENT:5,
TALENT:6,
}
// 获取随机卡牌UUID
export function getRandomCardUUID(
@@ -121,6 +123,9 @@ export function getRandomCardsByType(
case cardType.SPECIAL:
cardList = SuperCardsList;
break;
case cardType.TALENT:
cardList = Object.keys(TalentList).map(key => parseInt(key));
break;
default:
throw new Error(`Invalid card type: ${type}`);
}