Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions talisman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,18 @@ if Talisman.config_file.break_infinity then
return obj
end

debug.setmetatable(0, {
__index = function(self, index)
if index == "array" then
return {self}
elseif index == "sign" then
return self >= 0 and 1 or -1
else
return assert(Big[index], "Attempt to index a number value")
end
end,
})

local override_non_bigs = true

local nf = number_format
Expand Down