【优化】主城假人改为NPC或者排行榜角色 3
parent
122ccb94e2
commit
ad451253cb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue