✨ feat(共鸣系统): 新增
This commit is contained in:
@@ -15,7 +15,7 @@ import { dicWar, dicWarPvp, dicDailyWarByType, loadWar, dicHeroIdByWar, dicComBa
|
||||
import { dicWarJson, loadWarJson } from "./dictionary/DicWarJson";
|
||||
import { AUCTION_TIME, BOSS_HP_RATIO_TYPE } from "../consts";
|
||||
import { dicFashions, dicFashionsByHeroId, loadFashions } from "./dictionary/DicFashions";
|
||||
import { friendShips, friendShipsByLv, friendShipsMax, loadFriendShip } from "./dictionary/DicFriendShip";
|
||||
import { friendShipByIndex, friendShips, friendShipsByLv, friendShipsMax, loadFriendShip } from "./dictionary/DicFriendShip";
|
||||
import { dicHeroQualityUp, loadHeroQualityUp } from "./dictionary/DicHeroQualityUp";
|
||||
import { dicHeroStar, loadHeroStar } from "./dictionary/DicHeroStar";
|
||||
import { dicHeroWake, loadHeroWake } from "./dictionary/DicHeroWake";
|
||||
@@ -174,6 +174,7 @@ import { dicRougeCharaCardPlan, loadRougeCharaCardPlan } from "./dictionary/DicR
|
||||
import { dicRougeHolyCardPlan, loadRougeHolyCardPlan } from "./dictionary/DicRougeHolyCardPlan";
|
||||
import { dicBossHpRatio, loadBossHpRatio } from "./dictionary/DicBossHpRatio";
|
||||
import { dicSpiritCompose, loadSpiritCompose } from "./dictionary/DicSpiritCompose";
|
||||
import { dicResonance, loadResonance } from "./dictionary/DicResonance";
|
||||
|
||||
export const gameData = {
|
||||
daily: dicDaily,
|
||||
@@ -207,6 +208,7 @@ export const gameData = {
|
||||
friendShips: friendShips,
|
||||
friendShipsByLv: friendShipsByLv,
|
||||
friendShipsMax: friendShipsMax,
|
||||
friendShipByIndex: friendShipByIndex,
|
||||
randomEffectPool: dicRandomEffectPool,
|
||||
randomEffectPoolByGroupAndLv: dicRandomEffectPoolByGroupAndLv,
|
||||
title: dicTitle,
|
||||
@@ -436,6 +438,8 @@ export const gameData = {
|
||||
bossHpRatio: dicBossHpRatio,
|
||||
spiritCompose: dicSpiritCompose,
|
||||
spiritByQuality: dicSpiritByQuality,
|
||||
|
||||
resonance: dicResonance,
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
@@ -1384,9 +1388,9 @@ export function getRougeEffectTypeKind(effectTypes: number[]) {
|
||||
}
|
||||
|
||||
export function getBossHpRatio(type: BOSS_HP_RATIO_TYPE, day: number) {
|
||||
let arr = gameData.bossHpRatio.get(type)||[];
|
||||
let arr = gameData.bossHpRatio.get(type) || [];
|
||||
let bossHpRatio = 1;
|
||||
for(let { serverOpen, ratio } of arr) {
|
||||
for (let { serverOpen, ratio } of arr) {
|
||||
bossHpRatio = ratio;
|
||||
if (serverOpen != -1 && serverOpen >= day) break;
|
||||
}
|
||||
@@ -1807,9 +1811,10 @@ function loadDatas(type?: string) {
|
||||
if (type == undefined || type == 'loadRougeTechLevel') loadRougeTechLevel();
|
||||
if (type == undefined || type == 'loadBossHpRatio') loadBossHpRatio();
|
||||
if (type == undefined || type == 'loadSpiritCompose') loadSpiritCompose();
|
||||
if (type == undefined || type == 'loadResonance') loadResonance();
|
||||
|
||||
console.log('loadDatas type: ', type || 'all');
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 后台调用重载资源
|
||||
|
||||
Reference in New Issue
Block a user