From f53052a063b73e92c4e92b214e439b446600fe8a Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 5 Nov 2017 00:23:32 -0400 Subject: Minor update --- gamemode/inventorysystem/shapedinventory/sh_shaped.lua | 2 +- gamemode/inventorysystem/skills/cl_skills.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gamemode/inventorysystem') diff --git a/gamemode/inventorysystem/shapedinventory/sh_shaped.lua b/gamemode/inventorysystem/shapedinventory/sh_shaped.lua index 69e18ca..1b53d43 100644 --- a/gamemode/inventorysystem/shapedinventory/sh_shaped.lua +++ b/gamemode/inventorysystem/shapedinventory/sh_shaped.lua @@ -11,7 +11,7 @@ if CLIENT then inv = nrequire("cl_shaped.lua") end inv.Name = "Shaped Inventory" inv.tracker = {} inv.width = 5 -inv.height = 10 +inv.height = 5 local function calcposition(width,height,row,col) return ((row-1) * width) + col diff --git a/gamemode/inventorysystem/skills/cl_skills.lua b/gamemode/inventorysystem/skills/cl_skills.lua index d4dbf65..fed0f46 100644 --- a/gamemode/inventorysystem/skills/cl_skills.lua +++ b/gamemode/inventorysystem/skills/cl_skills.lua @@ -62,12 +62,12 @@ inv.DrawOnDPanel = function(self,panel) print("Calling inventory's put") print("At time of call, skill was") PrintTable(self) - set_xp_of(position[1],self.skills[position[1]]) + set_xp_of(position[1],self.skills[position[1]] or item.ammt)--Observer might be called before our put() end prox.Remove = function(s,position) print("Calling inventory's remove") - set_xp_of(position[1],self.skills[position[1]]) + set_xp_of(position[1],self.skills[position[1]] or itm.ammt) end return prox -- cgit v1.2.3-70-g09d2