dd
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user