✨ feat(稷下学宫): 修改带出英灵奖励数量, 修改特性卡随机权重(流派、品质、等级相关)
This commit is contained in:
@@ -172,6 +172,7 @@ import { dicRougeScoreNum, dicRougeScoreReward, loadRougeScoreReward } from "./d
|
||||
import { dicRougeEffect, loadRougeEffect } from "./dictionary/DicRougeEffect";
|
||||
import { dicRougeEffectType, loadRougeEffectType } from "./dictionary/DicRougeEffectType";
|
||||
import { dicSpiritPlan, loadSpiritPlan } from "./dictionary/DicSpiritPlan";
|
||||
import { dicRougePassiveWeight, loadRougePassiveWeight } from "./dictionary/DicRougePassiveWeight";
|
||||
|
||||
export const gameData = {
|
||||
daily: dicDaily,
|
||||
@@ -414,7 +415,7 @@ export const gameData = {
|
||||
rougeCharaCardPlan: dicRougeCharaCardPlan,
|
||||
rougePassiveCardPlan: dicRougePassiveCardPlan,
|
||||
rougeHolyCardPlan: dicRougeHolyCardPlan,
|
||||
|
||||
rougePassiveWeight: dicRougePassiveWeight,
|
||||
rougeChallenge: dicRougeChallenge,
|
||||
rougeChallengePlan: dicRougeChallengePlan,
|
||||
rougeQuestionMarkPlan: dicRougeQuestionMarkPlan,
|
||||
@@ -1776,6 +1777,7 @@ function loadDatas(type?: string) {
|
||||
if (type == undefined || type == 'loadRougeCharaCardPlan') loadRougeCharaCardPlan();
|
||||
if (type == undefined || type == 'loadRougePassiveCardPlan') loadRougePassiveCardPlan();
|
||||
if (type == undefined || type == 'loadRougeHolyCardPlan') loadRougeHolyCardPlan();
|
||||
if (type == undefined || type == 'loadRougePassiveWeight') loadRougePassiveWeight();
|
||||
if (type == undefined || type === 'loadRougeChallenge') loadRougeChallenge();
|
||||
if (type == undefined || type == 'loadRougeChallengePlan') loadRougeChallengePlan();
|
||||
if (type == undefined || type == 'loadRougeQuestionMarkPlan') loadRougeQuestionMarkPlan();
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface DicRougeLayerPlan {
|
||||
readonly rewardPlan: number; // 每层可以赠送的奖励
|
||||
readonly shopPlan: number; // 该层可以随机到的商店方案
|
||||
readonly takeoutReward: RewardInter[]; //额外奖励
|
||||
readonly spiritPlan: number; //英灵随机奖励
|
||||
readonly spiritPlan: RewardInter[]; //英灵随机奖励
|
||||
}
|
||||
export const dicRougeLayerPlan = new Map<string, DicRougeLayerPlan>();
|
||||
export const dicRougeLayerPlanByPlanId = new Map<number, DicRougeLayerPlan[]>();
|
||||
@@ -29,6 +29,8 @@ export function loadRougeLayerPlan() {
|
||||
arr.forEach(o => {
|
||||
|
||||
o.takeoutReward = parseGoodStr(o.takeoutReward);
|
||||
o.spiritPlan = parseGoodStr(o.spiritPlan);
|
||||
|
||||
dicRougeLayerPlan.set(o.planId + '_' + o.layerIndex, o);
|
||||
|
||||
if (!dicRougeLayerPlanByPlanId.get(o.planId)) dicRougeLayerPlanByPlanId.set(o.planId, []);
|
||||
|
||||
28
shared/pubUtils/dictionary/DicRougePassiveWeight.ts
Normal file
28
shared/pubUtils/dictionary/DicRougePassiveWeight.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 流派增加权重
|
||||
*/
|
||||
|
||||
import { readFileAndParse } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicRougePassiveWeight {
|
||||
readonly id: number;
|
||||
readonly authorType: number; // 流派类型
|
||||
readonly quality: number; // 品质
|
||||
readonly level: number; // 等级
|
||||
readonly authorTypeWeightAdd: number; // 流派增加权重
|
||||
}
|
||||
export const dicRougePassiveWeight = new Map<string, DicRougePassiveWeight>();
|
||||
|
||||
export function loadRougePassiveWeight() {
|
||||
dicRougePassiveWeight.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ROUGE_PASSIVE_WEIGHT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
dicRougePassiveWeight.set(o.authorType + '_' + o.quality + '_' + o.level, o);
|
||||
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user