好友:初步申请到查看链

This commit is contained in:
luying
2021-02-02 14:16:56 +08:00
parent a9e2b79c79
commit 5df5f6ed93
15 changed files with 582 additions and 16 deletions

View File

@@ -0,0 +1,30 @@
// 好友表
import { readJsonFile } from '../util'
import { FILENAME } from '../../consts'
export interface DicRoleFriend {
// id
readonly id: number;
// 主公等级
readonly lv: number;
// 好友数量
readonly frdCnt: number;
// 每日可收取好友情谊点上限
readonly receiveMax: number;
// 每日可赠送好友情谊点上限
readonly sendMax: number;
}
const str = readJsonFile(FILENAME.DIC_ROLE_FRIEND);
let arr = JSON.parse(str);
export const dicRoleFriend = new Map<number, DicRoleFriend>();
arr.forEach(o => {
dicRoleFriend.set(o.lv, o);
});
arr = undefined;

View File

@@ -0,0 +1,28 @@
// 亲密度等级表
import { readJsonFile } from '../util'
import { FILENAME } from '../../consts'
export interface DicRoleFriendLv {
// id
readonly id: number;
// 亲密度等级
readonly lv: number;
// 亲密度值
readonly value: number;
// 寻宝加成
readonly comBattleAdd: number;
}
const str = readJsonFile(FILENAME.DIC_ROLE_FRIEND_LEVEL);
let arr = JSON.parse(str);
export const dicRoleFriendLv = new Map<number, DicRoleFriendLv>();
arr.forEach(o => {
dicRoleFriendLv.set(o.lv, o);
});
arr = undefined;