From 96d392e6edb6f9502713dfc79996f600c9c63f75 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 1 May 2016 11:32:16 -0400 Subject: Fixed production from copper furnace, added sulpher and iron resources --- gamemode/craftablesystem/furnaces/copperfurnace.lua | 6 +++--- gamemode/itemsystem/items/iron.lua | 10 ++++++++++ gamemode/itemsystem/items/sulpher.lua | 10 ++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 gamemode/itemsystem/items/iron.lua create mode 100644 gamemode/itemsystem/items/sulpher.lua (limited to 'gamemode') diff --git a/gamemode/craftablesystem/furnaces/copperfurnace.lua b/gamemode/craftablesystem/furnaces/copperfurnace.lua index 2d8c066..e11d2d7 100644 --- a/gamemode/craftablesystem/furnaces/copperfurnace.lua +++ b/gamemode/craftablesystem/furnaces/copperfurnace.lua @@ -21,7 +21,7 @@ COMBI.Description = "Iron can be used to create more advanced buildings and tool COMBI.Entity = "gms_copperfurnace" COMBI.Req = {} -COMBI.Req["Iron_Ore"] = 1 +COMBI.Req["Iron Ore"] = 1 COMBI.Results = {} COMBI.Results["Iron"] = 1 @@ -37,7 +37,7 @@ for v,k in pairs(SmeltMultiples) do COMBI.Entity = "gms_copperfurnace" COMBI.Req = {} - COMBI.Req["Iron_Ore"] = k + COMBI.Req["Iron Ore"] = k COMBI.Results = {} COMBI.Results["Iron"] = k @@ -53,7 +53,7 @@ COMBI.Description = "Iron can be used to create more advanced buildings and tool COMBI.Entity = "gms_copperfurnace" COMBI.Req = {} -COMBI.Req["Iron_Ore"] = 1 +COMBI.Req["Iron Ore"] = 1 COMBI.Results = {} COMBI.Results["Iron"] = 1 diff --git a/gamemode/itemsystem/items/iron.lua b/gamemode/itemsystem/items/iron.lua new file mode 100644 index 0000000..0cf2e5d --- /dev/null +++ b/gamemode/itemsystem/items/iron.lua @@ -0,0 +1,10 @@ +ITEM = {} + +ITEM.Name = "Iron" +ITEM.Description = "Something you can craft with!" +ITEM.Icon = "test.png" +ITEM.UniqueData = false + +genericMakeDroppable(ITEM) + +GMS.RegisterResource(ITEM) diff --git a/gamemode/itemsystem/items/sulpher.lua b/gamemode/itemsystem/items/sulpher.lua new file mode 100644 index 0000000..f4fcc63 --- /dev/null +++ b/gamemode/itemsystem/items/sulpher.lua @@ -0,0 +1,10 @@ +ITEM = {} + +ITEM.Name = "Sulpher" +ITEM.Description = "Watch out, it's explosive!" +ITEM.Icon = "test.png" +ITEM.UniqueData = false + +genericMakeDroppable(ITEM) + +GMS.RegisterResource(ITEM) -- cgit v1.2.3-70-g09d2