From af8c89db201533ec4574dc00a797ae3ae4d18a8e Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Wed, 23 Dec 2020 11:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AA=E5=88=AB=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/role/handler/heroHandler.ts | 3 +-- shared/pubUtils/playerCe.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/game-server/app/servers/role/handler/heroHandler.ts b/game-server/app/servers/role/handler/heroHandler.ts index c8fa8aa0c..bc4bb6e14 100644 --- a/game-server/app/servers/role/handler/heroHandler.ts +++ b/game-server/app/servers/role/handler/heroHandler.ts @@ -1,4 +1,4 @@ -import {Application, BackendSession, createTcpMailBox, ChannelService} from 'pinus'; +import {Application, BackendSession, ChannelService} from 'pinus'; import { handleCost, addItems } from '../../../services/rewardService'; import { calPlayerCeAndSave } from '../../../services/playerCeService'; import { resResult } from '../../../pubUtils/util'; @@ -10,7 +10,6 @@ import { ItemModel } from '../../../db/Item'; import { gameData, getHeroExpByLv, getHeroStarByQuality, getHeroWakeByQuality, getHeroLvByExp, getMaxGradeByjobClass, getJobByGradeAndClass, getFriendShipById } from '../../../pubUtils/data'; import { RewardInter } from '../../../pubUtils/interface'; import { getAllAttrStage } from '../../../pubUtils/playerCe'; -import { Stats } from 'fs'; export default function(app: Application) { return new HeroHandler(app); diff --git a/shared/pubUtils/playerCe.ts b/shared/pubUtils/playerCe.ts index 627725fc8..987aba31c 100644 --- a/shared/pubUtils/playerCe.ts +++ b/shared/pubUtils/playerCe.ts @@ -2,7 +2,7 @@ * 体力系统 */ -import { HERO_SYSTEM_TYPE, ABI_TYPE } from '../consts'; +import { HERO_SYSTEM_TYPE, ABI_TYPE, JEWEL_ATTR } from '../consts'; import { deepCopy } from './util'; import { HeroModel, HeroType } from '../db/Hero'; @@ -15,7 +15,6 @@ import { DicSe } from './dictionary/DicSe'; import { EquipType } from '../db/Equip'; import { DicRandomEffectPool } from './dictionary/DicRandomEffectPool'; import { getGoodById } from './gamedata'; -import { JEWEL_ATTR } from '../consts/constModules/abilityConst'; const HERO_CE_RATIO = 100; const _ = require('underscore');