mirror of
				https://gitlab.com/rautars/weather_pack.git
				synced 2025-10-31 00:25:32 +01:00 
			
		
		
		
	added add heigth limit for weather visibility
This commit is contained in:
		| @@ -191,7 +191,7 @@ heavy_rain.in_area = function(position) | |||||||
| 		return false | 		return false | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	if position.y > -10 then | 	if position.y > -10 and position.y < 120 then | ||||||
| 		return true | 		return true | ||||||
| 	end | 	end | ||||||
| 	return false | 	return false | ||||||
|   | |||||||
| @@ -144,7 +144,7 @@ light_rain.in_area = function(position) | |||||||
| 		return false | 		return false | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	if position.y > -10 then | 	if position.y > -10 and position.y < 120 then | ||||||
| 		return true | 		return true | ||||||
| 	end | 	end | ||||||
| 	return false | 	return false | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								rain.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								rain.lua
									
									
									
									
									
								
							| @@ -147,7 +147,7 @@ rain.in_area = function(position) | |||||||
| 		return false | 		return false | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	if position.y > -10 then | 	if position.y > -10 and position.y < 120 then | ||||||
| 		return true | 		return true | ||||||
| 	end | 	end | ||||||
| 	return false | 	return false | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								snow.lua
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								snow.lua
									
									
									
									
									
								
							| @@ -117,9 +117,9 @@ end | |||||||
|  |  | ||||||
| local particles_number_per_update = 10 | local particles_number_per_update = 10 | ||||||
| snow.render = function(dtime, player) | snow.render = function(dtime, player) | ||||||
|   for i=particles_number_per_update, 1,-1 do | 	for i=particles_number_per_update, 1,-1 do | ||||||
| 	display_particles(player) | 		display_particles(player) | ||||||
|   end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
| snow.in_area = function(position) | snow.in_area = function(position) | ||||||
| @@ -127,7 +127,7 @@ snow.in_area = function(position) | |||||||
| 		return false | 		return false | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
| 	if position.y > -10 then | 	if position.y > -10 and position.y < 120 then | ||||||
| 		return true | 		return true | ||||||
| 	end | 	end | ||||||
| 	return false | 	return false | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user