✨ 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
+6
View File
@@ -4,6 +4,7 @@ import * as friendUtil from '../../pubUtils/friendUtil'
import { FRIEND_RELATION_TYPE } from "../../consts";
import { Connect, EPlace, HeroType, Stone, Talent } from "../../db/Hero";
import { JewelType, RandSe } from "../../db/Jewel";
import { ArtifactModelType } from "../../db/Artifact";
export class FriendParams {
roleId: string;
@@ -201,6 +202,7 @@ export class HeroDetailParam {
school: number;
};
subHid: number = 0;
artifacts: {artifactId: number, lv: number }[] = []
constructor(hero: HeroType) {
this.roleId = hero.roleId;
@@ -239,4 +241,8 @@ export class HeroDetailParam {
setRole(title: number, scroll: number, teraph: number, school: number) {
this.role = { title, scroll, teraph, school };
}
setArtifact(artifact: ArtifactModelType) {
this.artifacts.push({ artifactId: artifact.artifactId, lv: artifact.lv });
}
}