From 6f6cce0561c19e7af14bcc6e6b1c7de2d5efc530 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 29 Apr 2016 20:30:52 -0400 Subject: a halfway commit to show scott --- gamemode/processes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/processes.lua') diff --git a/gamemode/processes.lua b/gamemode/processes.lua index b75db3b..4b7fc15 100644 --- a/gamemode/processes.lua +++ b/gamemode/processes.lua @@ -218,7 +218,7 @@ function PROCESS:OnStop() local res = self.Results[math.random( 1, #self.Results )] local amount = math.random( 1, 3 ) - self.Owner:IncResource( string.gsub( res, " ", "_" ), amount ) + self.Owner:IncResource( res , amount ) self.Owner:IncXP( "Harvesting", math.Clamp( math.Round( 50 / self.Owner:GetSkill( "Harvesting" ) ), 1, 1000 ) ) self.Owner:SendMessage( res .. " ( " .. amount .. "x )", 3, Color( 10, 200, 10, 255 ) ) self.Owner:EmitSound( Sound( "items/ammo_pickup.wav" ) ) -- cgit v1.2.3-70-g09d2