战斗背景修改

tcx_xiyou_solider
PC-202302260912\Administrator 2024-04-25 19:51:33 +08:00
parent 4f8b3f1286
commit 2aaf4d32a1
1 changed files with 25 additions and 25 deletions

View File

@ -1165,31 +1165,31 @@ end
-- 获取战斗背景
function this.GetBattleBg(fightType)
local index = 1
if fightType == BATTLE_TYPE.STORY_FIGHT then
local curChapter = FightPointPassManager.GetCurChapterIndex()
index = math.floor((curChapter - 1) % 5 + 1)
elseif fightType == BATTLE_TYPE.BACK or fightType == BATTLE_TYPE.ARENA then
index = 1001
elseif fightType == BATTLE_TYPE.EXECUTE_FIGHT then
index = 1002
elseif fightType == BATTLE_TYPE.XuanYuan then
index = 1003
elseif fightType == BATTLE_TYPE.DEATH_POS
or fightType == BATTLE_TYPE.MONSTER_CAMP
then
index = 1004
elseif fightType == BATTLE_TYPE.TASUILINGXIAO then
index = 1006
elseif fightType == BATTLE_TYPE.EndlessMpaFight then -- 无尽副本
index = 5
elseif fightType == BATTLE_TYPE.DAILY_CHALLENGE -- 日常副本
or fightType == BATTLE_TYPE.FIGHTLEVEL -- 山河社稷图
or fightType == BATTLE_TYPE.FIGHT_ASSISTANT_LEVEL
then
index = 2
end
return "r_zhandou_changjing_"..tostring(index)
-- local index = 1
-- if fightType == BATTLE_TYPE.STORY_FIGHT then
-- local curChapter = FightPointPassManager.GetCurChapterIndex()
-- index = math.floor((curChapter - 1) % 5 + 1)
-- elseif fightType == BATTLE_TYPE.BACK or fightType == BATTLE_TYPE.ARENA then
-- index = 1001
-- elseif fightType == BATTLE_TYPE.EXECUTE_FIGHT then
-- index = 1002
-- elseif fightType == BATTLE_TYPE.XuanYuan then
-- index = 1003
-- elseif fightType == BATTLE_TYPE.DEATH_POS
-- or fightType == BATTLE_TYPE.MONSTER_CAMP
-- then
-- index = 1004
-- elseif fightType == BATTLE_TYPE.TASUILINGXIAO then
-- index = 1006
-- elseif fightType == BATTLE_TYPE.EndlessMpaFight then -- 无尽副本
-- index = 5
-- elseif fightType == BATTLE_TYPE.DAILY_CHALLENGE -- 日常副本
-- or fightType == BATTLE_TYPE.FIGHTLEVEL -- 山河社稷图
-- or fightType == BATTLE_TYPE.FIGHT_ASSISTANT_LEVEL
-- then
-- index = 2
--end
return "r_zhandou_changjing_1001" --"r_zhandou_changjing_"..tostring(index)
end
-- 引导战斗暂停控制