@ -44,9 +44,13 @@ function Quantum.Server.Crafting.MakeItem( pl, itemid )
for k, reqItem in pairs( recipe.recipe ) do
print( "##", k, reqItem.item )
Quantum.Server.Inventory.RemoveSlotItem( pl, char, k, reqItem.amount )
end
-- create item
Quantum.Server.Inventory.GiveItem( pl, recipe.creates, recipe.amount )
end)
else
@ -22,6 +22,7 @@ function Quantum.Recipe.Add( itemid, station, tbl )
}
Quantum.Recipes[ itemid ] = returnTbl
Quantum.Recipes[ itemid ].delay = math.Clamp( Quantum.Recipes[ itemid ].delay, Quantum.MinCraftDelay, Quantum.MaxCraftDelay )
return returnTbl
@ -6,7 +6,7 @@
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
Quantum.Recipe.Add( "potatoe", nil, {
Quantum.Recipe.Add( "potatoe", nil, { --Quantum.Server.Crafting.MakeItem( Entity(1), "potatoe" )
name = "Legendary Potatoe Recipe",
amount = 1,
recipe = {
@ -23,6 +23,9 @@ Quantum.ItemPickupTime = 0.5 -- seconds
Quantum.HolsterTime = 1 -- seconds
Quantum.MinCraftDelay = 2
Quantum.MaxCraftDelay = 60
Quantum.Money = {
Prefix = "$",
Surfix = ""