Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 3ddd4ba

Browse files
committed
Remove setsetting override
This is still Lucas' shit though
1 parent eae364e commit 3ddd4ba

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

src/Bootstrap.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ table.unpack = table.unpack or unpack
66
unpack = unpack or table.unpack
77

88
-- Handle overwrriten functions
9-
_SETSETTING = _SETSETTING or setsetting
109
_TOSTRING = _TOSTRING or tostring
1110
_TYPE = _TYPE or type
1211
math._CEIL = math._CEIL or math.ceil

src/General.lua

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -488,33 +488,6 @@ function calltable(t, ...)
488488
return f(table.unpack(args))
489489
end
490490

491-
--[[
492-
* This is basically an improvement of setsetting(). It handles using the first
493-
* parameter as a userdata for lootingdata and supplydata.
494-
*
495-
* @since 1.1.0
496-
* @updated 1.2.0
497-
* @overrides
498-
*
499-
* @param {table} t - The table with the function to be
500-
* called and its arguments
501-
* @param {any} [...] - Extra arguments
502-
*
503-
* @returns {string} - The converted value
504-
--]]
505-
function setsetting(...)
506-
local args = {...}
507-
if type(args[1]) == 'userdata' then
508-
if args[1].objtype == 'lootingdata' then
509-
args[1] = 'Looting/LootList/' .. args[1].name .. '/' .. table.remove(args, 2)
510-
elseif args[1].objtype == 'supplydata' then
511-
args[1] = 'Supplies/Items/' .. obj.name .. '/' .. table.remove(args, 2)
512-
end
513-
end
514-
515-
return _SETSETTING(table.unpack(args))
516-
end
517-
518491
--[[
519492
* Waits until a condition is satisfied for a maximum time of `time`. Condition
520493
* must be passed as the `f` argument and any extra parameters and be passed as

0 commit comments

Comments
 (0)