- debug player table creation.

- fix akaari's soul.
This commit is contained in:
Tercio
2016-10-09 20:57:11 -03:00
parent 2932a9b3d9
commit 5773dc14b5
5 changed files with 185 additions and 13 deletions
+13 -1
View File
@@ -454,7 +454,7 @@
--> não achou, criar
elseif (criar) then
local novo_objeto = self.funcao_de_criacao (_, serial, nome)
novo_objeto.nome = nome
novo_objeto.flag_original = flag
@@ -606,6 +606,18 @@
novo_objeto.pvp = true
end
if (_detalhes.debug) then
if (_detalhes.debug_chr and nome:find (_detalhes.debug_chr) and self.tipo == 1) then
local logLine = ""
local when = "[" .. date ("%H:%M:%S") .. format (".%4f", GetTime()-floor (GetTime())) .. "]"
local log = "actor created - class: " .. (novo_objeto.classe or "noclass")
local from = debugstack (2, 1, 0)
logLine = logLine .. when .. " " .. log .. " " .. from .. "\n"
_detalhes_global.debug_chr_log = _detalhes_global.debug_chr_log .. logLine
end
end
return novo_objeto, dono_do_pet, nome
else
return nil, nil, nil