diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-29 20:30:52 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-29 20:30:52 -0400 |
| commit | 6f6cce0561c19e7af14bcc6e6b1c7de2d5efc530 (patch) | |
| tree | a0a9e142b4741ed109a00059e3b98efc86b25b4d /gamemode/itemsystem/items/grainseeds.lua | |
| parent | 534ce8e8612da3ba6d610a782eeaf10c9135b947 (diff) | |
| download | gmstranded-6f6cce0561c19e7af14bcc6e6b1c7de2d5efc530.tar.gz gmstranded-6f6cce0561c19e7af14bcc6e6b1c7de2d5efc530.tar.bz2 gmstranded-6f6cce0561c19e7af14bcc6e6b1c7de2d5efc530.zip | |
a halfway commit to show scott
Diffstat (limited to 'gamemode/itemsystem/items/grainseeds.lua')
| -rw-r--r-- | gamemode/itemsystem/items/grainseeds.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gamemode/itemsystem/items/grainseeds.lua b/gamemode/itemsystem/items/grainseeds.lua new file mode 100644 index 0000000..9b22a0b --- /dev/null +++ b/gamemode/itemsystem/items/grainseeds.lua @@ -0,0 +1,26 @@ +ITEM = {} + +ITEM.Name = "Grain Seeds" +ITEM.Description = "Something you can plant, or mash up into flour" +ITEM.Icon = "test.png" +ITEM.UniqueData = false + +local drop1 = function(player) + print("Drop 1 called") +end + +local dropall = function(player) + print("Drop all called") +end + +local dropx = function(player) + print("Drop x called") +end + +ITEM.Actions = {} +ITEM.Actions["Drop"] = {} +ITEM.Actions["Drop"]["Drop 1"] = drop1 +ITEM.Actions["Drop"]["Drop all"] = dropall +ITEM.Actions["Drop"]["Drop X"] = dropx + +GMS.RegisterResource(ITEM) |
