fix pvp刷新对手时保存数据
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { RoleType } from "../db/Role";
|
||||
import { Robot } from "../db/PvpDefense";
|
||||
import { reduceCe } from "./util";
|
||||
import { PvpHeroInfo, PvpEnemies } from "../db/generalField";
|
||||
|
||||
export interface RewardInter {
|
||||
id: number;
|
||||
@@ -121,13 +122,22 @@ export class RankParam {
|
||||
}
|
||||
}
|
||||
|
||||
export interface PlayerDetailHero {
|
||||
export class PlayerDetailHero {
|
||||
actorId: number;
|
||||
lv: number;
|
||||
star: number;
|
||||
colorStar: number;
|
||||
quality: number;
|
||||
score: number;
|
||||
|
||||
setPvpHeroInfo?(hero: PvpEnemies) {
|
||||
this.actorId = hero.actorId;
|
||||
this.lv = hero.lv;
|
||||
this.star = hero.star;
|
||||
this.colorStar = hero.colorStar;
|
||||
this.quality = hero.quality;
|
||||
this.score = hero.score;
|
||||
}
|
||||
}
|
||||
|
||||
export class PlayerDetail {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { DicRandomEffectPool } from './dictionary/DicRandomEffectPool';
|
||||
import { HERO_CE_RATIO, ABI_STAGE } from '../consts';
|
||||
|
||||
import { findIndex } from 'underscore';
|
||||
|
||||
const randomName = require("chinese-random-name");
|
||||
const moment = require('moment');
|
||||
|
||||
export function genCode(len) {
|
||||
@@ -516,3 +516,7 @@ export function getAllAttrStage() {
|
||||
};
|
||||
return attrs;
|
||||
}
|
||||
|
||||
export function getChineseName() {
|
||||
return randomName.generate()
|
||||
}
|
||||
Reference in New Issue
Block a user