抽卡:求贤若渴pick武将按品质算数量

This commit is contained in:
luying
2022-06-27 17:36:11 +08:00
parent ed1586fefe
commit b5c2005192
5 changed files with 51 additions and 14 deletions

View File

@@ -214,6 +214,7 @@ export const gameData = {
gachaContentHero: dicGachaContentHero,
gachaHope: new Array<{id: number, weight: number}>(),
gachaTurntable: new Array<{quality: number, count: number}>(),
gachaPickHeroCnt: new Map<number, number>(),
heroTransPiece: new Map<number, number>(),
giftPackage: dicGiftPackage,
comBtlLvRange: new Map<number, {min: number, max: number}>(),
@@ -745,6 +746,13 @@ function getGachaTurntablePercent() {
});
}
function getGachaPickHeroCnt() {
let arr = decodeArrayListStr(RECRUIT.RECRUIT_GET_HERO_HIGH_RECRUIT);
arr.forEach(cur => {
gameData.gachaPickHeroCnt.set(parseInt(cur[0]), parseInt(cur[1]));
});
}
function getHeroTransPiece() {
let map = decodeIdCntArrayStr(RECRUIT.RECRUIT_CHANGE_SHARD, 1);
let newMap = new Map<number, number>();
@@ -955,6 +963,7 @@ function parseDicParam() {
decodeRaceEventItems();
getGachaHopePercent();
getGachaTurntablePercent();
getGachaPickHeroCnt();
getHeroTransPiece();
parseComBtlLvRange();
getCeRatio();