军团:修改个人功勋→个人活跃
This commit is contained in:
@@ -102,7 +102,7 @@ export interface DicDonateBase {
|
||||
// 捐献值
|
||||
readonly donateValue: {type: number, count: number}[];
|
||||
// 捐献奖励
|
||||
readonly donateReward: {fund: number, honour: number}[];
|
||||
readonly donateReward: {fund: number, active: number}[];
|
||||
// 今日捐献宝箱领取奖励系数
|
||||
readonly boxRewardRatio: number;
|
||||
}
|
||||
@@ -259,16 +259,16 @@ export function parseDonateValue(str: string) {
|
||||
return result
|
||||
}
|
||||
|
||||
// {"fund": number, "honour": number}
|
||||
// {"fund": number, "active": number}
|
||||
export function parseDonateReward(str: string) {
|
||||
let result = new Array<{ fund: number, honour: number }>();
|
||||
let result = new Array<{ fund: number, active: number }>();
|
||||
if (!str) return result;
|
||||
let decodeArr = decodeArrayListStr(str);
|
||||
for (let [fund, honour] of decodeArr) {
|
||||
if (isNaN(parseInt(fund)) || isNaN(parseInt(honour))) {
|
||||
for (let [fund, active] of decodeArr) {
|
||||
if (isNaN(parseInt(fund)) || isNaN(parseInt(active))) {
|
||||
throw new Error('data table format wrong');
|
||||
}
|
||||
result.push({ fund: parseInt(fund), honour: parseInt(honour) });
|
||||
result.push({ fund: parseInt(fund), active: parseInt(active) });
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user