summaryrefslogtreecommitdiff
path: root/gamemode/processes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/processes.lua')
-rw-r--r--gamemode/processes.lua42
1 files changed, 21 insertions, 21 deletions
diff --git a/gamemode/processes.lua b/gamemode/processes.lua
index 4b7fc15..58a2b48 100644
--- a/gamemode/processes.lua
+++ b/gamemode/processes.lua
@@ -93,11 +93,11 @@ function PROCESS:OnStart()
if ( plant ) then owner = plant:GetNWEntity( "plantowner" ) end
if ( self.Data.Entity:GetModel() == "models/props_junk/watermelon01.mdl" ) then
- self.SideGain = "Melon_Seeds"
+ self.SideGain = "Melon Seeds"
elseif ( self.Data.Entity:GetModel() == "models/props/cs_italy/orange.mdl" ) then
- self.SideGain = "Orange_Seeds"
+ self.SideGain = "Orange Seeds"
elseif ( self.Data.Entity:GetModel() == "models/props/cs_italy/bananna_bunch.mdl" ) then
- self.SideGain = "Banana_Seeds"
+ self.SideGain = "Banana Seeds"
end
if ( plant ) then
@@ -122,7 +122,7 @@ function PROCESS:OnStop()
local num = math.random( numstart, numto )
if ( num ~= 0 ) then
self.Owner:IncResource( self.SideGain, num )
- self.Owner:SendMessage( string.gsub( self.SideGain, "_", " " ) .. " ( " .. num .. "x )", 3, Color( 10, 200, 10, 255 ) )
+ self.Owner:SendMessage( self.SideGain .. " ( " .. num .. "x )", 3, Color( 10, 200, 10, 255 ) )
self.Owner:EmitSound( Sound( "items/ammo_pickup.wav" ) )
end
end
@@ -407,7 +407,7 @@ function PROCESS:OnStop()
if ( num > 50 - self.Owner:GetSkill( "Harvesting" ) - add ) then
local amount = math.random( 1, 2 )
- self.Owner:IncResource( "Grain_Seeds", amount )
+ self.Owner:IncResource( "Grain Seeds", amount )
self.Owner:IncXP( "Harvesting", math.Clamp( math.Round( 50 / self.Owner:GetSkill( "Harvesting" ) ), 1, 1000 ) )
self.Owner:SendMessage( "Grain Seeds ( " .. amount .. "x )", 3, Color( 10, 200, 10, 255 ) )
self.Owner:EmitSound( Sound( "items/ammo_pickup.wav" ) )
@@ -615,34 +615,34 @@ function PROCESS:OnStop()
self.Owner:IncResource( "Stone", num3 )
self.Owner:SendMessage( "Stone ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 2 ) then
- self.Owner:IncResource( "Copper_Ore", num3 )
+ self.Owner:IncResource( "Copper Ore", num3 )
self.Owner:SendMessage( "Copper Ore ( "..num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 3 ) then
- self.Owner:IncResource( "Iron_Ore", num3 )
+ self.Owner:IncResource( "Iron Ore", num3 )
self.Owner:SendMessage( "Iron Ore ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 4 ) then
- self.Owner:IncResource( "Tech_Ore", num3 )
+ self.Owner:IncResource( "Tech Ore", num3 )
self.Owner:SendMessage( "Tech Ore ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 5 ) then
- self.Owner:IncResource( "Silver_Ore", num3 )
+ self.Owner:IncResource( "Silver Ore", num3 )
self.Owner:SendMessage( "Silver Ore ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 6 ) then
- self.Owner:IncResource( "Gold_Ore", num3 )
+ self.Owner:IncResource( "Gold Ore", num3 )
self.Owner:SendMessage( "Gold Ore ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 7 ) then
- self.Owner:IncResource( "Steel_Ore", num3 )
+ self.Owner:IncResource( "Steel Ore", num3 )
self.Owner:SendMessage( "Steel Ore ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 8 ) then
- self.Owner:IncResource( "Platinum_Ore", num3 )
+ self.Owner:IncResource( "Platinum Ore", num3 )
self.Owner:SendMessage( "Platinum Ore ( " .. num3 .. "x )", 3, Color( 10, 200, 10, 255 ) )
elseif ( num2 == 85 ) then
- self.Owner:IncResource( "Strange_Stone", num3 )
+ self.Owner:IncResource( "Strange Stone", num3 )
self.Owner:SendMessage( "Strange Stone ( " .. num3 .. "x ) ", 3, Color( 0, 247, 255, 255) )
elseif ( num2 == 9 ) then
- self.Owner:IncResource( "Mithril_Ore", num3 )
+ self.Owner:IncResource( "Mithril Ore", num3 )
self.Owner:SendMessage( "Mithril Ore ( " .. num3 .. "x ) ", 3, Color(10, 200, 10, 255) )
elseif ( num2 == 10) then
- self.Owner:IncResource( "Adamantine_Ore", num3 )
+ self.Owner:IncResource( "Adamantine Ore", num3 )
self.Owner:SendMessage( "Adamantine Ore( " .. num3 .. "x ) ", 3, Color(255,0, 111, 255) )
end
@@ -698,10 +698,10 @@ GMS.RegisterProcess( "SproutCollect", PROCESS )
---------------------------------------------------------*/
/*Alright, let's refactor this planting code*/
local plant_generic = {
- {"Watermelon","Melon_Seeds","melon","PlantMelon"},
- {"Banana","Banana_Seeds","banana","PlantBanana"},
- {"Orange","Orange_Seeds","orange","PlantOrange"},
- {"Grain","Grain_Seeds","grain","PlantGrain"},
+ {"Watermelon","Melon Seeds","melon","PlantMelon"},
+ {"Banana","Banana Seeds","banana","PlantBanana"},
+ {"Orange","Orange Seeds","orange","PlantOrange"},
+ {"Grain","Grain Seeds","grain","PlantGrain"},
{"Berry Bush","Berries","berry","PlantBush"},
{"Tree","Sprouts","tree","PlantTree"},
}
@@ -844,11 +844,11 @@ end
function PROCESS:OnStop()
if (self.Owner:GetActiveWeapon():GetClass() == "gms_bucket") then
- self.Owner:IncResource( "Water_Bottles", 10 )
+ self.Owner:IncResource( "Water Bottles", 10 )
self.Owner:SendMessage( "Water Bottle ( 10x )", 3, Color( 10, 200, 10, 255 ) )
self.Owner:EmitSound( Sound( "ambient/water/water_spray" .. math.random( 1, 3 ) .. ".wav" ) )
else
- self.Owner:IncResource( "Water_Bottles", 1 )
+ self.Owner:IncResource( "Water Bottles", 1 )
self.Owner:SendMessage( "Water Bottle ( 1x )", 3, Color( 10, 200, 10, 255 ) )
self.Owner:EmitSound( Sound( "ambient/water/water_spray" .. math.random( 1, 3 ) .. ".wav" ) )
end