mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Update all code styles
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
local Color = require("modules/exp_util/include/color")
|
||||
local Game = {}
|
||||
|
||||
@@ -27,9 +26,9 @@ always true: game.players[name].name == name; game.players[index].index == index
|
||||
-- obj <number|string|LuaPlayer>
|
||||
function Game.get_player_from_any(obj)
|
||||
local o_type, p = type(obj)
|
||||
if o_type == 'table' then
|
||||
if o_type == "table" then
|
||||
p = obj
|
||||
elseif o_type == 'string' or o_type == 'number' then
|
||||
elseif o_type == "string" or o_type == "number" then
|
||||
p = game.players[obj]
|
||||
end
|
||||
|
||||
@@ -38,4 +37,4 @@ function Game.get_player_from_any(obj)
|
||||
end
|
||||
end
|
||||
|
||||
return Game
|
||||
return Game
|
||||
|
||||
Reference in New Issue
Block a user