summaryrefslogtreecommitdiff
path: root/gamemode/cl_inventory.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-30 21:01:18 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-30 21:01:18 -0400
commitd62058fcdea5fc6736a2a373f47dc6c14c70c319 (patch)
tree79a1325190e3f1f1b6d6a2dbcdfc1ba3fa866ac9 /gamemode/cl_inventory.lua
parentc38f00182ba6c282806eecb39a42e64d5feafa37 (diff)
downloadredead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.gz
redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.bz2
redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.zip
Removed exessive whitespace so future commits will be cleaner
Diffstat (limited to 'gamemode/cl_inventory.lua')
-rw-r--r--gamemode/cl_inventory.lua38
1 files changed, 19 insertions, 19 deletions
diff --git a/gamemode/cl_inventory.lua b/gamemode/cl_inventory.lua
index f8df461..33bad6b 100644
--- a/gamemode/cl_inventory.lua
+++ b/gamemode/cl_inventory.lua
@@ -8,15 +8,15 @@ PreviewPriceScale = 1
function Inv_HasItem( id )
for k,v in pairs( LocalInventory ) do
-
+
local tbl = item.GetByID( v )
-
+
if ( type( id ) == "number" and tbl.ID == id ) or ( type( id ) == "string" and tbl.Model == id ) then
-
+
return tbl
-
+
end
-
+
end
end
@@ -24,17 +24,17 @@ end
function Inv_ItemCount( id )
local count = 0
-
+
for k,v in pairs( LocalInventory ) do
-
+
if v == id then
-
+
count = count + 1
-
+
end
-
+
end
-
+
return count
end
@@ -48,17 +48,17 @@ end
function Inv_UniqueItems()
local ids = {}
-
+
for k,v in pairs( LocalInventory ) do
-
+
if not table.HasValue( ids, v ) then
-
+
table.insert( ids, v )
-
+
end
-
+
end
-
+
return ids
end
@@ -72,11 +72,11 @@ end
function Inv_GetStashCash()
return LocalStashCash
-
+
end
function Inv_SetStashCash( amt )
LocalStashCash = amt
-end \ No newline at end of file
+end