-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.lua
More file actions
21 lines (15 loc) · 769 Bytes
/
constants.lua
File metadata and controls
21 lines (15 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const = {}
const.pathseparator = cFile:GetPathSeparator()
const.pluginpath = cPluginManager:GetPluginsPath().. const.pathseparator.."SlimeRite"..const.pathseparator
const.guide = cItem(E_ITEM_BOOK,1,0,"","SlimeRite Guide")
const.emptyitem = cItem(160,1,15,"","-")
const.plrdatatemplate = cFile:ReadWholeFile(const.pluginpath.."PdataTemplate.json")
const.Catfolder = const.pluginpath.."Categories"..const.pathseparator
const.Itemfolder = const.pluginpath.."Items"..const.pathseparator
const.Machinefolder = const.pluginpath.."Machines"..const.pathseparator
const.pdata = sqlite3.open(const.pluginpath.."playerdata.db")
function const.CustomItems()
local toret cFile:GetFolderContents(const.ItemFolder)
table.remove(toret,"ItemRecipeTemplate.json")
return toret
end