抽卡
This commit is contained in:
@@ -13,7 +13,7 @@ import { dicTower, loadTower } from "./dictionary/DicTower";
|
||||
import { dicTowerTask, loadTowerTask } from "./dictionary/DicTowerTask";
|
||||
import { dicWar, dicWarPvp, dicDailyWarByType, loadWar, dicHeroIdByWar } from "./dictionary/DicWar";
|
||||
import { dicWarJson, loadWarJson } from "./dictionary/DicWarJson";
|
||||
import { AUCTION_TIME } from "../consts";
|
||||
import { AUCTION_TIME, GACHA_CONTENT_TYPE } from "../consts";
|
||||
import { dicFashions, dicFashionsByHeroId, loadFashions } from "./dictionary/DicFashions";
|
||||
import { friendShips, friendShipHidAandIds, loadFriendShip } from "./dictionary/DicFriendShip";
|
||||
import { maxFriendShipLv, dicFriendShipLevelMap, loadFriendShipLevel } from "./dictionary/DicFriendShipLevel";
|
||||
@@ -548,6 +548,13 @@ export function getFriendLvByExp(exp: number) {
|
||||
return resultLv;
|
||||
}
|
||||
|
||||
export function getGachaContentOfHeroQuality(quality: number) {
|
||||
for(let [id, { type, param }] of gameData.gachaContent) {
|
||||
if(type == GACHA_CONTENT_TYPE.HERO && param[0] == quality) return id;
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主公当前经验获得当前等级
|
||||
* @param exp 累积经验
|
||||
|
||||
Reference in New Issue
Block a user