武将攻略:武将对比

This commit is contained in:
luying
2022-07-02 14:38:58 +08:00
parent c1eceaeba5
commit 11692c9a56
8 changed files with 84 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ import { RoleType } from "../../db/Role";
import { FriendShipType } from "../../db/FriendShip";
import * as friendUtil from '../../pubUtils/friendUtil'
import { FRIEND_RELATION_TYPE } from "../../consts";
import { EPlace, HeroType, Stone, Talent } from "../../db/Hero";
import { Connect, EPlace, HeroType, Stone, Talent } from "../../db/Hero";
import { JewelType, RandSe } from "../../db/Jewel";
export class FriendParams {
@@ -191,6 +191,14 @@ export class HeroDetailParam {
mdef: number;
}
talent: Talent[] = [];
connections: Connect[] = [];
favourLv: number = 0;
role: {
title: number;
scroll: number;
teraph: number;
school: number;
};
constructor(hero: HeroType) {
this.roleId = hero.roleId;
@@ -210,7 +218,8 @@ export class HeroDetailParam {
this.talent = skin.talent||[];
}
}
this.connections = hero.connections;
this.favourLv = hero.favourLv;
}
setAttributes(attributes: {hp: number, atk: number, def: number, mdef: number}) {
@@ -224,4 +233,8 @@ export class HeroDetailParam {
}
}
}
setRole(title: number, scroll: number, teraph: number, school: number) {
this.role = { title, scroll, teraph, school };
}
}