✨ feat(宝物): 添加宝物系统
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user