全局:加载json方法全部改为最新
This commit is contained in:
@@ -2,7 +2,7 @@ import { GachaData, Floor, GachaResult, Hope } from "../domain/activityField/gac
|
||||
import { ActivityModel } from "../db/Activity";
|
||||
import { DicGacha } from "../pubUtils/dictionary/DicGacha";
|
||||
import { UserGachaType, UserGachaModel } from "../db/UserGacha";
|
||||
import { shouldRefresh, getRandEelm, getRandomWithWeight } from "../pubUtils/util";
|
||||
import { shouldRefresh, getRandEelm, getRandEelmWithWeight } from "../pubUtils/util";
|
||||
import { REFRESH_HOUR, GACHA_TO_FLOOR, GACHA_FLOOR_TYPE, GACHA_CONTENT_TYPE, HERO_QUALITY_TYPE, GACHA_OCCUPY_HID, IT_TYPE, ITID, CONSUME_TYPE, SPECIAL_ATTR } from "../consts";
|
||||
import { getNextDayByGap, getTodayZeroDate } from "../pubUtils/timeUtil";
|
||||
import { gameData, getDicGachaFloor } from "../pubUtils/data";
|
||||
@@ -200,7 +200,7 @@ function getPoolByHope(hope: Hope[], qualtiy: number) {
|
||||
let list = gameData.gachaHope.map(cur => {
|
||||
return {...cur, hasGet: hopeMap.get(cur.id)?.hasGet||false};
|
||||
})
|
||||
let { dic: { id, hasGet } } = getRandomWithWeight(list);
|
||||
let { dic: { id, hasGet } } = getRandEelmWithWeight(list);
|
||||
if(id == 0 || hasGet) {
|
||||
return getAllHeroByQuality(qualtiy).filter(cur => !hasGetHope.includes(cur) );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user