diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-04-03 19:49:24 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-04-03 19:49:24 -0400 |
| commit | 593989991307675d43e08d9df69c7fb2dd7658b5 (patch) | |
| tree | f24fb64188c99e8bbef28a89b23cd0e42dce220b /gamemode/inventorysystem | |
| parent | 025ef8554016a2647f31244cf6413d80dba91847 (diff) | |
| download | artery-593989991307675d43e08d9df69c7fb2dd7658b5.tar.gz artery-593989991307675d43e08d9df69c7fb2dd7658b5.tar.bz2 artery-593989991307675d43e08d9df69c7fb2dd7658b5.zip | |
Fixes #4
Moves the skill item to the new item system that uses metatables.
Diffstat (limited to 'gamemode/inventorysystem')
| -rw-r--r-- | gamemode/inventorysystem/skills/sh_skillcommon.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gamemode/inventorysystem/skills/sh_skillcommon.lua b/gamemode/inventorysystem/skills/sh_skillcommon.lua index 3247fc5..15c1b51 100644 --- a/gamemode/inventorysystem/skills/sh_skillcommon.lua +++ b/gamemode/inventorysystem/skills/sh_skillcommon.lua @@ -20,8 +20,9 @@ end item.DeSerialize = function(self,data) local tbl = util.JSONToTable(data) - tbl.isskill = true - return tbl + self.name = tbl.name + self.ammt = tbl.ammt + return self end itm.RegisterItem(item) |
