hhg
This commit is contained in:
commit
46a079708b
|
@ -618,7 +618,7 @@ function SetInteractionDataOfSkill(skill_name, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ChangeSelf(pid)
|
function ChangeSelf(pid)
|
||||||
ClientInstance.client:changeSelf(pid) -- for qml
|
ClientInstance.client:changeSelf(pid) -- for qml
|
||||||
Self = ClientInstance:getPlayerById(pid)
|
Self = ClientInstance:getPlayerById(pid)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -636,7 +636,7 @@ function ResetClientLua()
|
||||||
local _data = ClientInstance.enter_room_data;
|
local _data = ClientInstance.enter_room_data;
|
||||||
local data = ClientInstance.room_settings
|
local data = ClientInstance.room_settings
|
||||||
Self = ClientPlayer:new(fk.Self)
|
Self = ClientPlayer:new(fk.Self)
|
||||||
ClientInstance = Client:new() -- clear old client data
|
ClientInstance = Client:new() -- clear old client data
|
||||||
ClientInstance.players = { Self }
|
ClientInstance.players = { Self }
|
||||||
ClientInstance.alive_players = { Self }
|
ClientInstance.alive_players = { Self }
|
||||||
ClientInstance.discard_pile = {}
|
ClientInstance.discard_pile = {}
|
||||||
|
@ -691,8 +691,7 @@ function CheckSurrenderAvailable(playedTime)
|
||||||
end
|
end
|
||||||
|
|
||||||
function SaveRecord()
|
function SaveRecord()
|
||||||
local c = ClientInstance
|
ClientInstance.client:saveRecord(json.encode(ClientInstance.record), ClientInstance.record[2])
|
||||||
c.client:saveRecord(json.encode(c.record), c.record[2])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function GetCardProhibitReason(cid, method, pattern)
|
function GetCardProhibitReason(cid, method, pattern)
|
||||||
|
|
Loading…
Reference in New Issue