Update all code styles

This commit is contained in:
Cooldude2606
2024-09-28 01:56:54 +01:00
parent 5e2a62ab27
commit 292c1a1b68
194 changed files with 9817 additions and 9703 deletions

View File

@@ -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