mirror of
				git://repo.or.cz/minetest_hbhunger.git
				synced 2025-11-04 01:05:50 +01:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			1.0.1
			...
			235a8652eb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 235a8652eb | |||
| 
						 | 
					91d6d3de5d | ||
| 
						 | 
					ebf40debc6 | ||
| 9989c26c65 | |||
| 
						 | 
					53df2c500b | 
@@ -79,7 +79,13 @@ function hbhunger.item_eat(hunger_change, replace_with_item, poisen, heal, sound
 | 
				
			|||||||
			if h == nil or hp == nil then
 | 
								if h == nil or hp == nil then
 | 
				
			||||||
				return
 | 
									return
 | 
				
			||||||
			end
 | 
								end
 | 
				
			||||||
			minetest.sound_play({name = sound or "hbhunger_eat_generic", gain = 1}, {pos=user:getpos(), max_hear_distance = 16})
 | 
								minetest.sound_play(
 | 
				
			||||||
 | 
									{name = sound or "hbhunger_eat_generic",
 | 
				
			||||||
 | 
									gain = 1},
 | 
				
			||||||
 | 
									{object=user,
 | 
				
			||||||
 | 
									max_hear_distance = 16,
 | 
				
			||||||
 | 
									pitch = 1 + math.random(-10, 10)*0.005,}
 | 
				
			||||||
 | 
								)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			-- Saturation
 | 
								-- Saturation
 | 
				
			||||||
			if h < 30 and hunger_change then
 | 
								if h < 30 and hunger_change then
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							@@ -148,3 +148,5 @@ minetest.register_globalstep(function(dtime)
 | 
				
			|||||||
end)
 | 
					end)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.log("action", "[hbhunger] loaded.")
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								locale/hbhunger.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								locale/hbhunger.ru.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					# textdomain:hbhunger
 | 
				
			||||||
 | 
					Satiation=голод
 | 
				
			||||||
		Reference in New Issue
	
	Block a user