军团:添加邀请红点和演武台功能

This commit is contained in:
luying
2021-12-21 16:59:29 +08:00
parent a4f426e172
commit 5f2c07da00
10 changed files with 71 additions and 33 deletions

View File

@@ -61,9 +61,11 @@ export interface DicBossBase {
readonly opencost: number;
// 击杀奖励
readonly killReward: RewardInter[];
// 伤害加成奖励
readonly damageReward: RewardInter[];
// 伤害加成系数
// 伤害加成奖励 参与奖励
readonly basicReward: RewardInter[];
// 伤害加成奖励 伤害贡献奖励
readonly damageRewardTotal: RewardInter[];
// boss血量系数boss血量为中位数 * ratio
readonly ratio: number;
// 鼓舞次数
readonly encourageSum: number;
@@ -78,7 +80,8 @@ const DicBossKeys: KeysEnum<DicBossBase> = {
consume: true,
opencost: true,
killReward: true,
damageReward: true,
basicReward: true,
damageRewardTotal: true,
ratio: true,
encourageSum: true
};
@@ -214,7 +217,8 @@ export function loadStructure() {
return { warId: parseInt(warArr[0]), bossHp: parseInt(warArr[1])}
});
o.killReward = parseGoodStr(o.killReward);
o.damageReward = parseGoodStr(o.damageReward);
o.basicReward = parseGoodStr(o.basicReward);
o.damageRewardTotal = parseGoodStr(o.damageRewardTotal);
dicBossBase.set(o.level, _.pick(o, Object.keys(DicBossKeys)));
dicBossBaseByBossLv.set(o.bossLevel, _.pick(o, Object.keys(DicBossKeys)));
});