再整理cc相关代码
This commit is contained in:
@@ -72,10 +72,7 @@ if type(_CC)=='table'then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function CC.switch20G(P)
|
function CC.switch20G(P)
|
||||||
if not pcall(CC.destroy,P.AI_bot)then
|
P:destroyBot()
|
||||||
P:destroyBot()
|
|
||||||
return
|
|
||||||
end
|
|
||||||
P.AIdata._20G=true
|
P.AIdata._20G=true
|
||||||
P.AI_keys={}
|
P.AI_keys={}
|
||||||
local opt,wei=CC.getConf()
|
local opt,wei=CC.getConf()
|
||||||
|
|||||||
@@ -242,7 +242,10 @@ function Player:setRS(RSname)
|
|||||||
end
|
end
|
||||||
function Player:destroyBot()
|
function Player:destroyBot()
|
||||||
if self.AI_mode=='CC'then
|
if self.AI_mode=='CC'then
|
||||||
if self.AI_bot then CC.destroy(self.AI_bot)end
|
if self.AI_bot then
|
||||||
|
CC.destroy(self.AI_bot)
|
||||||
|
self.AI_bot=nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
self.AI_thread=nil
|
self.AI_thread=nil
|
||||||
end
|
end
|
||||||
@@ -1688,7 +1691,7 @@ function Player:revive()
|
|||||||
end
|
end
|
||||||
self.garbageBeneath=0
|
self.garbageBeneath=0
|
||||||
if self.AI_mode=='CC'then
|
if self.AI_mode=='CC'then
|
||||||
CC.destroy(self.AI_bot)
|
self:destroyBot()
|
||||||
TABLE.cut(self.holdQueue)
|
TABLE.cut(self.holdQueue)
|
||||||
self:loadAI(self.AIdata)
|
self:loadAI(self.AIdata)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user