SCFC 1 год назад
Родитель
Сommit
f3ad6eada9
2 измененных файлов с 8 добавлено и 2 удалено
  1. 2 0
      docs/开服流程.txt
  2. 6 2
      script/module/xianzhi/XianzhiLogic.lua

+ 2 - 0
docs/开服流程.txt

@@ -39,6 +39,8 @@ sh timed_task.sh   --核心开服脚本 svr_install.sh
 at -l
 at 10:00 11/12/2024  -- 再11月12号早上十点启动 
 81 是早上9点
+cd /server && sh timed_task.sh
+ctrl + d保存退出
 at -r 删除定时任务
 
 step1 修改服务状态

+ 6 - 2
script/module/xianzhi/XianzhiLogic.lua

@@ -25,6 +25,9 @@ local YunYingLogic = require("yunying.YunYingLogic")
 
 
 local xianzhiOutPutId = 126
+local xianzhiDelitem_Normal = 100
+local xianzhiDelitem_Special = 300
+
 
 local function makeShopElem(human,config)
 
@@ -170,11 +173,11 @@ function zhihuanQuery(human, heroID, heroIndex)
 	local star = heroConfig.star
     if heroConfig.grade ~= 4 or star ~= 5 then return end
 
+	local needItemCnt = xianzhiDelitem_Normal
 	if camp == 4 or camp == 5 then 
-		return 
+		needItemCnt = xianzhiDelitem_Special
 	end
 	
-	local needItemCnt = 100
 	-- 判断消耗
 	local needItemID = ItemDefine.ITEM_XIANZHI_ZHUFU_ID
 	local nowItemCnt = BagLogic.getItemCnt(human, needItemID)
@@ -189,6 +192,7 @@ function zhihuanQuery(human, heroID, heroIndex)
 	local nextHero = zhihuanHero(star, camp,heroGrid.id)
 	if not nextHero then 
 		-- 没有置换目标
+		print("[zhihuanQuery] 没有获取到置换目标 star = "..star.." camp = "..camp.." id = "..heroGrid.id)
 		return 
 	end
 	-- 新ID不等于旧ID