Spells and Pets nested now are ordered correctly

This commit is contained in:
Tercio Jose
2023-05-07 00:18:39 -03:00
parent ab7073ce3e
commit 01ee2a4ebc
5 changed files with 88 additions and 50 deletions
+12
View File
@@ -1192,4 +1192,16 @@ end
---@return any
function Details222.PlayerStats:GetStat(statName, value)
return Details.player_stats[statName]
end
---destroy a table and remove it from the object, if the key isn't passed, the object itself is destroyed
---@param object any
---@param key string|nil
function Details:Destroy(object, key)
if (key) then
table.wipe(object[key])
object[key] = nil
else
table.wipe(object)
end
end