【优化】主城假人改为NPC或者排行榜角色 3

dev_chengFeng
zhangqiang 2021-01-27 18:20:50 +08:00
parent 122ccb94e2
commit ad451253cb
1 changed files with 3 additions and 3 deletions

View File

@ -555,9 +555,9 @@ function this.GetMainPlayerNPCData3(fun)
end
end
function this.RandomRankNPC(currankAllList)
local playerRandomNum = math.random(1, 25)
local playerRandomNum = math.random(1, #currankAllList)
if rankNPCList[playerRandomNum] then
this.RandomRankNPC()
this.RandomRankNPC(currankAllList)
else
rankNPCList[playerRandomNum] = currankAllList[playerRandomNum]
-- LogGreen("rank "..currankAllList[playerRandomNum].userName)
@ -567,7 +567,7 @@ end
function this.RandomFirendNPC(currankAllList)
local playerRandomNum = math.random(1, #currankAllList)
if friendNPCList[playerRandomNum] then
this.RandomFirendNPC()
this.RandomFirendNPC(currankAllList)
else
friendNPCList[playerRandomNum] = currankAllList[playerRandomNum]
-- LogGreen("friend "..currankAllList[playerRandomNum].userName)