aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-04-03 19:49:24 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2018-04-03 19:49:24 -0400
commit593989991307675d43e08d9df69c7fb2dd7658b5 (patch)
treef24fb64188c99e8bbef28a89b23cd0e42dce220b
parent025ef8554016a2647f31244cf6413d80dba91847 (diff)
downloadartery-593989991307675d43e08d9df69c7fb2dd7658b5.tar.gz
artery-593989991307675d43e08d9df69c7fb2dd7658b5.tar.bz2
artery-593989991307675d43e08d9df69c7fb2dd7658b5.zip
Fixes #4
Moves the skill item to the new item system that uses metatables.
-rw-r--r--gamemode/inventorysystem/skills/sh_skillcommon.lua5
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)