好友:寻宝关系加成及黑名单屏蔽
This commit is contained in:
@@ -3,7 +3,7 @@ import { RoleType, RoleModel } from "../db/Role";
|
||||
import { FriendRelationType, Relation } from "../db/FriendRelation";
|
||||
import { getResStr } from "../pubUtils/util";
|
||||
import { STATUS, FRIEND_RELATION_TYPE } from "../consts";
|
||||
import { FriendShipType } from "../db/FriendShip";
|
||||
import { FriendShipType, FriendShipModel } from "../db/FriendShip";
|
||||
import { outputCnt } from '../pubUtils/friendUtil';
|
||||
|
||||
/**
|
||||
@@ -87,4 +87,16 @@ function getSentHeart(roleId: string, relation: Relation) {
|
||||
beSentHeart: json.beSentHeart,
|
||||
beSentHeartTime: json.beSentHeartTime
|
||||
}
|
||||
}
|
||||
|
||||
export async function getFriendLvAdd(roleId: string, hisRoleId: string) {
|
||||
let friendShip = await FriendShipModel.getFriendLv(roleId, hisRoleId);
|
||||
if(!friendShip) {
|
||||
return 0
|
||||
}
|
||||
let dic = gameData.roleFriendLv.get(friendShip.friendLv);
|
||||
if(!dic) {
|
||||
return 0
|
||||
}
|
||||
return dic.comBattleAdd
|
||||
}
|
||||
Reference in New Issue
Block a user