summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/craftablesystem')
-rw-r--r--gamemode/craftablesystem/loadcraftables.lua28
-rw-r--r--gamemode/craftablesystem/playermade/concrete.lua14
-rw-r--r--gamemode/craftablesystem/playermade/dough.lua29
-rw-r--r--gamemode/craftablesystem/playermade/flour.lua14
-rw-r--r--gamemode/craftablesystem/playermade/medicine.lua13
-rw-r--r--gamemode/craftablesystem/playermade/rope.lua15
-rw-r--r--gamemode/craftablesystem/playermade/spice.lua15
-rw-r--r--gamemode/craftablesystem/playermade/urine.lua27
-rw-r--r--gamemode/craftablesystem/playermade/welder.lua15
9 files changed, 170 insertions, 0 deletions
diff --git a/gamemode/craftablesystem/loadcraftables.lua b/gamemode/craftablesystem/loadcraftables.lua
new file mode 100644
index 0000000..724401f
--- /dev/null
+++ b/gamemode/craftablesystem/loadcraftables.lua
@@ -0,0 +1,28 @@
+//Loads all the craftable things in the game! to make a new craftable, create a new file in any of playermade/ craftingtables/ workbenches/ or misc/, they will get automatically included
+
+GMS.Combinations = {}
+function GMS.RegisterCombi( tbl, group )
+ if ( !GMS.Combinations[ group ] ) then GMS.Combinations[ group ] = {} end
+ GMS.Combinations[ group ][ string.Replace( tbl.Name, " ", "_" ) ] = tbl
+end
+
+/*
+local folderpath = "gamemodes/" .. GM.GAMEMODE_FOLDER_NAME .. "/gamemode/craftablesystem/playermade/"
+print("Attempting to load folderpath " .. folderpath)
+local files, directories = file.Find(folderpath .. "*", "MOD")
+print("Files:")
+PrintTable(files)
+print("Directories:")
+PrintTable(directories)
+if(recursive) then
+ for k,v in pairs(directories) do
+ addResourceFolder(folderstring..v,recursive)
+ end
+end
+for k,v in pairs(files) do
+ include(folderstring .. "/".. v)
+end
+*/
+--include("craftablesystem/playermade/concrete.lua")
+--include("playermade/concrete.lua")
+--includeFolder("craftablesystem/playermade",false)
diff --git a/gamemode/craftablesystem/playermade/concrete.lua b/gamemode/craftablesystem/playermade/concrete.lua
new file mode 100644
index 0000000..383c04d
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/concrete.lua
@@ -0,0 +1,14 @@
+/* Concrete */
+local COMBI = {}
+
+COMBI.Name = "Concrete"
+COMBI.Description = "Concrete can be used for spawning concrete props."
+
+COMBI.Req = {}
+COMBI.Req["Sand"] = 5
+COMBI.Req["Water_Bottles"] = 2
+
+COMBI.Results = {}
+COMBI.Results["Concrete"] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/dough.lua b/gamemode/craftablesystem/playermade/dough.lua
new file mode 100644
index 0000000..94e33cf
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/dough.lua
@@ -0,0 +1,29 @@
+/* Dough */
+local COMBI = {}
+
+COMBI.Name = "Dough"
+COMBI.Description = "Dough is used for baking."
+
+COMBI.Req = {}
+COMBI.Req["Water_Bottles"] = 1
+COMBI.Req["Flour"] = 2
+
+COMBI.Results = {}
+COMBI.Results["Dough"] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )
+
+/* Dough x10 */
+local COMBI = {}
+
+COMBI.Name = "Dough 10x"
+COMBI.Description = "Dough is used for baking."
+
+COMBI.Req = {}
+COMBI.Req["Water_Bottles"] = 7
+COMBI.Req["Flour"] = 15
+
+COMBI.Results = {}
+COMBI.Results["Dough"] = 10
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/flour.lua b/gamemode/craftablesystem/playermade/flour.lua
new file mode 100644
index 0000000..f72deca
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/flour.lua
@@ -0,0 +1,14 @@
+local COMBI = {}
+
+COMBI.Name = "Flour"
+COMBI.Description = "Flour can be used for making dough."
+
+COMBI.Req = {}
+COMBI.Req["Stone"] = 1
+COMBI.Req["Grain_Seeds"] = 2
+
+COMBI.Results = {}
+COMBI.Results["Flour"] = 1
+COMBI.Results["Stone"] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/medicine.lua b/gamemode/craftablesystem/playermade/medicine.lua
new file mode 100644
index 0000000..4ad245c
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/medicine.lua
@@ -0,0 +1,13 @@
+local COMBI = {}
+
+COMBI.Name = "Medicine"
+COMBI.Description = "To restore your health."
+
+COMBI.Req = {}
+COMBI.Req["Herbs"] = 7
+COMBI.Req["Urine_Bottles"] = 2
+
+COMBI.Results = {}
+COMBI.Results["Medicine"] = 5
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/rope.lua b/gamemode/craftablesystem/playermade/rope.lua
new file mode 100644
index 0000000..f07db29
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/rope.lua
@@ -0,0 +1,15 @@
+/* Rope */
+local COMBI = {}
+
+COMBI.Name = "Rope"
+COMBI.Description = "Allows you to use Rope tool ( Using Rope Tool will consume the Rope ) and used in fishing rod crafting."
+
+COMBI.Req = {}
+COMBI.Req["Herbs"] = 5
+COMBI.Req["Wood"] = 2
+COMBI.Req["Water_Bottles"] = 1
+
+COMBI.Results = {}
+COMBI.Results["Rope"] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/spice.lua b/gamemode/craftablesystem/playermade/spice.lua
new file mode 100644
index 0000000..3172ed5
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/spice.lua
@@ -0,0 +1,15 @@
+/* Spice */
+local COMBI = {}
+
+COMBI.Name = "Spices"
+COMBI.Description = "Spice can be used for various meals."
+
+COMBI.Req = {}
+COMBI.Req["Stone"] = 1
+COMBI.Req["Herbs"] = 2
+
+COMBI.Results = {}
+COMBI.Results["Spices"] = 1
+COMBI.Results["Stone"] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/urine.lua b/gamemode/craftablesystem/playermade/urine.lua
new file mode 100644
index 0000000..9c5761c
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/urine.lua
@@ -0,0 +1,27 @@
+/* Urine */
+local COMBI = {}
+
+COMBI.Name = "Urine"
+COMBI.Description = "Drink some water and wait, used in gunpowder production."
+
+COMBI.Req = {}
+COMBI.Req["Water_Bottles"] = 2
+
+COMBI.Results = {}
+COMBI.Results["Urine_Bottles"] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )
+
+/* Urine 10x */
+local COMBI = {}
+
+COMBI.Name = "Urine 10x"
+COMBI.Description = "Drink loads of water and wait, messy, but used in gunpowder production."
+
+COMBI.Req = {}
+COMBI.Req["Water_Bottles"] = 20
+
+COMBI.Results = {}
+COMBI.Results["Urine_Bottles"] = 10
+
+GMS.RegisterCombi( COMBI, "Combinations" )
diff --git a/gamemode/craftablesystem/playermade/welder.lua b/gamemode/craftablesystem/playermade/welder.lua
new file mode 100644
index 0000000..cedcb97
--- /dev/null
+++ b/gamemode/craftablesystem/playermade/welder.lua
@@ -0,0 +1,15 @@
+/* Welder */
+local COMBI = {}
+
+COMBI.Name = "Welder"
+COMBI.Description = "Allows you to use Weld Tool. You still need the Tool Gun though."
+
+COMBI.Req = {}
+COMBI.Req[ "Wood" ] = 10
+COMBI.Req[ "Stone" ] = 10
+COMBI.Req[ "Water_Bottles" ] = 1
+
+COMBI.Results = {}
+COMBI.Results[ "Welder" ] = 1
+
+GMS.RegisterCombi( COMBI, "Combinations" )