diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-12-28 18:46:17 -0600 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-12-28 18:46:17 -0600 |
| commit | 0ceb38e8a1f26716fe4756c1cfbdbbedd1fae5f1 (patch) | |
| tree | 6f9d24d0785a913e2baa38fec3a24d5dfb4d1d1b /gamemode/itemsystem/items/recipe_diamondhammer.lua | |
| parent | 52fb13ef163bcea7f1409e17fd62509703de9f69 (diff) | |
| download | wintersurvival2-0ceb38e8a1f26716fe4756c1cfbdbbedd1fae5f1.tar.gz wintersurvival2-0ceb38e8a1f26716fe4756c1cfbdbbedd1fae5f1.tar.bz2 wintersurvival2-0ceb38e8a1f26716fe4756c1cfbdbbedd1fae5f1.zip | |
Fixed some stuff
Diffstat (limited to 'gamemode/itemsystem/items/recipe_diamondhammer.lua')
| -rw-r--r-- | gamemode/itemsystem/items/recipe_diamondhammer.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gamemode/itemsystem/items/recipe_diamondhammer.lua b/gamemode/itemsystem/items/recipe_diamondhammer.lua index aab1a74..d73703b 100644 --- a/gamemode/itemsystem/items/recipe_diamondhammer.lua +++ b/gamemode/itemsystem/items/recipe_diamondhammer.lua @@ -1,4 +1,4 @@ -
+local ITEM = {}
ITEM.Name = "Recipe: Diamond Hammer"
ITEM.Class = "account"
ITEM.Desc = "A recipe. 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("Diamond Hammer")
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)
|
