summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/melonseeds.lua
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-20 18:59:36 -0400
committerScott <scotth0828@gmail.com>2016-05-20 18:59:36 -0400
commit127ae80dd100b348b95f6850e3854f6ab0de8323 (patch)
treeefaa6c7d35b55c27103f330ea58031b445827660 /gamemode/itemsystem/items/melonseeds.lua
parentbff19ab32709fe1c19500d6ac72cfa805f023f98 (diff)
downloadgmstranded-127ae80dd100b348b95f6850e3854f6ab0de8323.tar.gz
gmstranded-127ae80dd100b348b95f6850e3854f6ab0de8323.tar.bz2
gmstranded-127ae80dd100b348b95f6850e3854f6ab0de8323.zip
1-3 minute growtime for seeds, seeds removed from inventory on spawn, limit to distance seeds can be planted
Diffstat (limited to 'gamemode/itemsystem/items/melonseeds.lua')
-rw-r--r--gamemode/itemsystem/items/melonseeds.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/itemsystem/items/melonseeds.lua b/gamemode/itemsystem/items/melonseeds.lua
index e66b087..9a69205 100644
--- a/gamemode/itemsystem/items/melonseeds.lua
+++ b/gamemode/itemsystem/items/melonseeds.lua
@@ -7,7 +7,7 @@ ITEM.Description = "Something you can plant!"
ITEM.Icon = "items/seed_melon.png"
ITEM.UniqueData = false
-ITEM.GrowTime = 1
+ITEM.GrowTime = math.random( 60, 180 )
ITEM.OnGrow = function(self, aor, owner)
local plant = GAMEMODE.MakeGenericPlant( owner, self:GetPos() + Vector( 0, 0, 13 ), "models/props/CS_militia/fern01.mdl" )
plant.Children = 0