import { COM_TEAM_STATUS } from '../../consts'; import { getBossHpByBlueprtId, getDicBlueprtById } from '../../pubUtils/data'; import { transBossHpArr } from '../../services/battleService'; import ComBattleTeam from './../../db/ComBattleTeam'; export class MemComBtlTeam extends ComBattleTeam { bossCurHp: number; curRnd: number; bossHp: number; constructor(teamCode: string, pub: boolean, blueprtId: number, capId: string, ceLimit: number) { super(); const { lv } = getDicBlueprtById(blueprtId); this.lv = lv; const { bossHpSum, bossHpArr } = getBossHpByBlueprtId(blueprtId); this.bossHpArr = transBossHpArr(bossHpArr); this.teamCode = teamCode; this.pub = pub; this.blueprtId = blueprtId; this.status = COM_TEAM_STATUS.DEFAULT; this.capId = capId; this.ceLimit = ceLimit; this.curRnd = 0; this.roleCnt = 1; this.timeout = false; this.bossCurHp = bossHpSum; this.bossHp = bossHpSum; this.blacklist = []; } };