local Base = require("Battle/Expression/ExpLevel/ExpLevelFunction/ExpLevelFunction") local EventSystem = require('Event/EventSystem') local ExpSlgGvELevelFunction = class("ExpSlgGvELevelFunction", Base) function ExpSlgGvELevelFunction:OnLevelSucceed() --logging.log(LTAG.LOG, "[gjh]OnLevelSucceed,boss dmg:", FP.tonumberV1(self.levelFunction.dmgToBoss)) EventSystem.Dispatch(EventID.Level_BattleSummary, true, false, FP.tonumberV1(self.levelFunction.dmgToBoss)) end function ExpSlgGvELevelFunction:OnLevelFail() --logging.log(LTAG.LOG, "[gjh]OnLevelFail, boss dmg:", FP.tonumberV1(self.levelFunction.dmgToBoss)) EventSystem.Dispatch(EventID.Level_BattleSummary, false, false, FP.tonumberV1(self.levelFunction.dmgToBoss)) end return ExpSlgGvELevelFunction