✨ feat(宝物): 添加宝物系统

This commit is contained in:
luying
2022-12-08 15:49:51 +08:00
parent b684307818
commit a83deeff5f
46 changed files with 15656 additions and 54 deletions
@@ -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,