add support for bit32 (or bit on cc)
This commit is contained in:
12
.vscode/settings.json
vendored
Normal file
12
.vscode/settings.json
vendored
Normal 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
15
data.db
@@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -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,"%.")
|
||||||
|
|||||||
Reference in New Issue
Block a user