diff options
Diffstat (limited to 'gamemode/itemsystem/items/recipe_shack.lua')
| -rw-r--r-- | gamemode/itemsystem/items/recipe_shack.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gamemode/itemsystem/items/recipe_shack.lua b/gamemode/itemsystem/items/recipe_shack.lua index 060fccb..465b65c 100644 --- a/gamemode/itemsystem/items/recipe_shack.lua +++ b/gamemode/itemsystem/items/recipe_shack.lua @@ -1,4 +1,4 @@ -
+local ITEM = {}
ITEM.Name = "Recipe: Shack"
ITEM.Class = "account"
ITEM.Desc = "A recipe for the shack. Use it to print it on chat!"
@@ -7,21 +7,22 @@ ITEM.Icon = Material("wintersurvival2/hud/ws2_icons/icon_recipe.png") function ITEM:OnUse(user)
if (CLIENT) then return end
-
+
local rec,item = GetRecipeForItem("Shack")
local txt = "Recipe: "
-
+
txt = txt.." RESOURCES("
for a,b in pairs(rec.Resources) do
txt=txt..b.." x "..a..", "
end
txt = txt..")"
-
+
txt = txt.." TOOLS("
for a,b in pairs(rec.Tools) do
txt=txt..b.." x "..a..", "
end
txt = txt..")"
-
+
user:ChatPrint(txt)
-end
\ No newline at end of file +end
+RegisterItem(ITEM)
|
