✨ feat(宝物): 添加宝物系统
This commit is contained in:
@@ -29,6 +29,7 @@ import { RoleCeModel } from "../../../db/RoleCe";
|
||||
import { CalCe } from "../../../services/role/calCe";
|
||||
import { getSchoolPoint } from "../../../services/roleService";
|
||||
import { LadderMatchModel } from "../../../db/LadderMatch";
|
||||
import { ArtifactModel } from "../../../db/Artifact";
|
||||
|
||||
|
||||
export default function (app: Application) {
|
||||
@@ -756,6 +757,10 @@ export class FriendHandler {
|
||||
let heroParam = new HeroDetailParam(hero);
|
||||
heroParam.setAttributes(attributes);
|
||||
heroParam.setJewels(jewels);
|
||||
if(hero.artifact > 0) {
|
||||
let artifact = await ArtifactModel.findbySeqId(hisRoleId, hero.artifact);
|
||||
if(artifact) heroParam.setArtifact(artifact);
|
||||
}
|
||||
|
||||
heroParam.setRole(
|
||||
role.title,
|
||||
|
||||
Reference in New Issue
Block a user