整理代码习惯,常量字符串改用单引号,可能有遗漏

This commit is contained in:
MrZ626
2021-04-30 01:00:22 +08:00
parent 7676f32cf2
commit eda6c0d746
213 changed files with 2503 additions and 2499 deletions

View File

@@ -38,21 +38,21 @@ end
function LOG.print(text,T,C)--text,type/time,color
local time
local his
if T=="warn"then
if T=='warn'then
C=C or COLOR.Y
his=true
time=180
elseif T=="error"then
elseif T=='error'then
C=C or COLOR.R
his=true
time=210
elseif T=="message"then
elseif T=='message'then
C=C or COLOR.N
his=true
elseif type(T)=="number"then
elseif type(T)=='number'then
C=C or COLOR.Z
time=T
elseif type(T)=="table"then
elseif type(T)=='table'then
C=T
elseif not C then
C=COLOR.Z