add support for bit32 (or bit on cc)

This commit is contained in:
2026-04-06 19:43:58 -07:00
parent 6293ce106f
commit 324b48c7c6
3 changed files with 28 additions and 1 deletions

12
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,12 @@
{
"Lua.workspace.library": [
"/home/ruffles/.vscode/extensions/pawz.polytoria-lua-1.1.1/api",
"${addons}/cc-tweaked/module/library"
],
"Lua.runtime.version": "Lua 5.3",
"Lua.runtime.builtin": {
"io": "disable",
"os": "disable"
},
"Lua.workspace.checkThirdParty": false
}

15
data.db
View File

@@ -1,11 +1,26 @@
{ {
currency_unit = "dims", currency_unit = "dims",
orders = {
{
name = "Caden",
request = "I want a zillion dollars",
},
{
name = "Caden",
request = "I want 2 zillion dollars",
},
{
name = "Caden",
request = "I want three zillion dollars",
},
},
materials = { materials = {
Steel = 0.0625, Steel = 0.0625,
Wood = 0.00390625, Wood = 0.00390625,
}, },
currencies = { currencies = {
[ "Diamond(s)" ] = 1, [ "Diamond(s)" ] = 1,
[ "Iron Ingot(s)" ] = 0.001,
[ "Emerald(s)" ] = 0.01, [ "Emerald(s)" ] = 0.01,
}, },
} }

View File

@@ -51,7 +51,7 @@ local function split(pString, pPattern)
end end
local function generateEnviorment() local function generateEnviorment()
local env = {string=string,colors=colors,math=math,table=table,print=print,textutils=textutils,error=error,pairs=pairs,ipairs=ipairs} local env = {string=string,colors=colors,math=math,table=table,print=print,textutils=textutils,error=error,pairs=pairs,ipairs=ipairs,bit=bit}
for k,v in pairs(registeredTransforms) do for k,v in pairs(registeredTransforms) do
local focus = env local focus = env
local splits = split(k,"%.") local splits = split(k,"%.")