增加战斗前后上阵英雄参数,方便查询作弊
This commit is contained in:
parent
b955b1c4bf
commit
44356ebb52
@ -200,6 +200,8 @@ BIReport.FIGHT_OPT_TYPE = {
|
|||||||
END = "End",
|
END = "End",
|
||||||
SELECT_SKILL_OPEN = "SelectSkillOpen",
|
SELECT_SKILL_OPEN = "SelectSkillOpen",
|
||||||
SELECT_SKILL = "SelectSkill",
|
SELECT_SKILL = "SelectSkill",
|
||||||
|
HERO_INFO = "HeroInfo",
|
||||||
|
HERO_REPORT = "HeroReport",
|
||||||
}
|
}
|
||||||
|
|
||||||
BIReport.FIGHT_DEATH_TYPE = {
|
BIReport.FIGHT_DEATH_TYPE = {
|
||||||
@ -1117,6 +1119,52 @@ function BIReport:postFightSkillSelect(battleType, battleData, skillList, chapte
|
|||||||
self:report(EVENT_NAME_FIGHT, args)
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BIReport:postFightHeroInfo(battleType, arkFormation)
|
||||||
|
if not arkFormation then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local heroInfo = {}
|
||||||
|
for matchType, heroEntity in pairs(arkFormation) do
|
||||||
|
if heroEntity then
|
||||||
|
local unit = {
|
||||||
|
id = heroEntity:getCfgId(),
|
||||||
|
level = heroEntity:getLv(),
|
||||||
|
atk = heroEntity:getAtk(),
|
||||||
|
hp = heroEntity:getHp(),
|
||||||
|
}
|
||||||
|
table.insert(heroInfo, unit)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local args = {
|
||||||
|
battle_type = BIReport.BATTLE_TYPE[battleType],
|
||||||
|
event_type = BIReport.FIGHT_OPT_TYPE.HERO_INFO,
|
||||||
|
hero_info = json.encode(heroInfo)
|
||||||
|
}
|
||||||
|
if EDITOR_MODE then
|
||||||
|
if not args.battle_type then
|
||||||
|
Logger.logFatal("============report postFightSkillSelect 没有battle_type 请检查===========")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
|
end
|
||||||
|
|
||||||
|
function BIReport:postFightHeroReport(battleType, atkReport)
|
||||||
|
if not atkReport then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local args = {
|
||||||
|
battle_type = BIReport.BATTLE_TYPE[battleType],
|
||||||
|
event_type = BIReport.FIGHT_OPT_TYPE.HERO_REPORT,
|
||||||
|
atk_report = json.encode(atkReport)
|
||||||
|
}
|
||||||
|
if EDITOR_MODE then
|
||||||
|
if not args.battle_type then
|
||||||
|
Logger.logFatal("============report postFightSkillSelect 没有battle_type 请检查===========")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
self:report(EVENT_NAME_FIGHT, args)
|
||||||
|
end
|
||||||
|
|
||||||
-- 首页按钮点击
|
-- 首页按钮点击
|
||||||
function BIReport:postHomeBtnCilck(clickType)
|
function BIReport:postHomeBtnCilck(clickType)
|
||||||
local args = {
|
local args = {
|
||||||
|
|||||||
@ -145,6 +145,8 @@ function BattleManager:_play(battleType, params, snapshot)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
-- 上报英雄数据,方便检查是否作弊
|
||||||
|
BIReport:postFightHeroInfo(battleType, params.atkFormation)
|
||||||
local controllerPath = BATTLE_CONTROLLER[battleType] or BATTLE_CONTROLLER_BASE
|
local controllerPath = BATTLE_CONTROLLER[battleType] or BATTLE_CONTROLLER_BASE
|
||||||
self.battleController = require(controllerPath):create()
|
self.battleController = require(controllerPath):create()
|
||||||
self.battleController:init(params, snapshot)
|
self.battleController:init(params, snapshot)
|
||||||
|
|||||||
@ -103,6 +103,7 @@ function BattleControllerActpvp:controllBattleEnd()
|
|||||||
end
|
end
|
||||||
self.combatReport.defReport = defReport
|
self.combatReport.defReport = defReport
|
||||||
local win = self.victory
|
local win = self.victory
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.ActPvpManager:reqFightEnd(win, self.combatReport, self.taskProgress)
|
ModuleManager.ActPvpManager:reqFightEnd(win, self.combatReport, self.taskProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -80,6 +80,7 @@ function BattleControllerArena:controllBattleEnd()
|
|||||||
end
|
end
|
||||||
self.combatReport.defReport = defReport
|
self.combatReport.defReport = defReport
|
||||||
local win = self.victory
|
local win = self.victory
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.ArenaManager:reqSettlement(win, self.combatReport, self.taskProgress)
|
ModuleManager.ArenaManager:reqSettlement(win, self.combatReport, self.taskProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -181,6 +181,7 @@ function BattleControllerBossRush:controllBattleEnd()
|
|||||||
if not self.victory then
|
if not self.victory then
|
||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.ActBossRushManager:reqEndBattle(self.chapterId, self.combatReport, self.taskProgress)
|
ModuleManager.ActBossRushManager:reqEndBattle(self.chapterId, self.combatReport, self.taskProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -108,6 +108,7 @@ function BattleControllerDailyChallenge:controllBattleEnd()
|
|||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
local taskCurProgress = ModuleManager.DailyChallengeManager:getCurTaskProgress(self)
|
local taskCurProgress = ModuleManager.DailyChallengeManager:getCurTaskProgress(self)
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.DailyChallengeManager:endChallenge(self.chapterId, self.combatReport, self.taskProgress, heroInfo, taskCurProgress)
|
ModuleManager.DailyChallengeManager:endChallenge(self.chapterId, self.combatReport, self.taskProgress, heroInfo, taskCurProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,7 @@ function BattleControllerDungeonArmor:controllBattleEnd()
|
|||||||
if not self.victory then
|
if not self.victory then
|
||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.DungeonArmorManager:reqEndChallenge(self.chapterId, self.combatReport, self.taskProgress)
|
ModuleManager.DungeonArmorManager:reqEndChallenge(self.chapterId, self.combatReport, self.taskProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -67,6 +67,7 @@ function BattleControllerDungeonGold:controllBattleEnd()
|
|||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
local remainingHp = self.defTeam:getMainUnit().unitEntity:getHp()
|
local remainingHp = self.defTeam:getMainUnit().unitEntity:getHp()
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.DungeonManager:reqEndChallengeGold(self.chapterId, self.combatReport, self.taskProgress, totalDamage, remainingHp)
|
ModuleManager.DungeonManager:reqEndChallengeGold(self.chapterId, self.combatReport, self.taskProgress, totalDamage, remainingHp)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -382,6 +382,7 @@ function BattleControllerDungeonRune:controllBattleEnd()
|
|||||||
if not self.victory then
|
if not self.victory then
|
||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.DungeonRuneManager:reqFightSettlement(self.chapterId, self.combatReport, self.taskProgress, self.dungeonRuneRemainRoundCount)
|
ModuleManager.DungeonRuneManager:reqFightSettlement(self.chapterId, self.combatReport, self.taskProgress, self.dungeonRuneRemainRoundCount)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,7 @@ function BattleControllerDungeonShards:controllBattleEnd()
|
|||||||
if not self.victory then
|
if not self.victory then
|
||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.DungeonManager:reqEndChallengeShards(self.chapterId, self.combatReport, self.taskProgress, totalDamage)
|
ModuleManager.DungeonManager:reqEndChallengeShards(self.chapterId, self.combatReport, self.taskProgress, totalDamage)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,7 @@ function BattleControllerDungeonWeapon:controllBattleEnd()
|
|||||||
if not self.victory then
|
if not self.victory then
|
||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.DungeonWeaponManager:reqEndChallenge(self.chapterId, self.combatReport, self.taskProgress)
|
ModuleManager.DungeonWeaponManager:reqEndChallenge(self.chapterId, self.combatReport, self.taskProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,7 @@ function BattleControllerFullMoonSkin:controllBattleEnd()
|
|||||||
table.insert(atkReport, report)
|
table.insert(atkReport, report)
|
||||||
end
|
end
|
||||||
self.combatReport.atkReport = atkReport
|
self.combatReport.atkReport = atkReport
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.FullMoonManager:reqChapterSkinClaim(self.chapterId, self.combatReport)
|
ModuleManager.FullMoonManager:reqChapterSkinClaim(self.chapterId, self.combatReport)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -74,6 +74,7 @@ function BattleControllerStage:controllBattleEnd()
|
|||||||
if not self.victory then
|
if not self.victory then
|
||||||
self.combatReport.wave = self.combatReport.wave - 1
|
self.combatReport.wave = self.combatReport.wave - 1
|
||||||
end
|
end
|
||||||
|
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
|
||||||
ModuleManager.ChapterManager:endFight(self.chapterId, self.combatReport, self.gotMysteryBoxIndexs, self.taskProgress)
|
ModuleManager.ChapterManager:endFight(self.chapterId, self.combatReport, self.gotMysteryBoxIndexs, self.taskProgress)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -229,7 +229,7 @@ function BattleRuneResultUI:refreshTaskNode()
|
|||||||
objs.descUnDone:setText(GConst.EMPTY_STRING)
|
objs.descUnDone:setText(GConst.EMPTY_STRING)
|
||||||
objs.check:setVisible(true)
|
objs.check:setVisible(true)
|
||||||
else
|
else
|
||||||
objs.descUnDone:setText(GConst.UNFINISHED)
|
objs.descUnDone:setText(I18N:getGlobalText(I18N.GlobalConst.UNFINISHED))
|
||||||
objs.check:setVisible(false)
|
objs.check:setVisible(false)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user