summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/itemsystem/common.lua')
-rw-r--r--gamemode/itemsystem/common.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/gamemode/itemsystem/common.lua b/gamemode/itemsystem/common.lua
index 674c0ce..5a47c24 100644
--- a/gamemode/itemsystem/common.lua
+++ b/gamemode/itemsystem/common.lua
@@ -17,6 +17,16 @@ function startProcessGeneric(player, string, time, ondone)
end)
end
-function genericMakePlantable( tbl )
+local function plant(player, planttype)
+ print("Plant method called!")
+end
+function genericMakePlantable( tbl )
+ local plant = function(player)
+ plant(player,tbl.Name)
+ end
+ if(tbl.Actions == nil) then
+ tbl.Actions = {}
+ end
+ tbl.Actions["Plant " .. tbl.Name] = plant
end