Add debug logging for stinky changes and simplify stinky handling
This commit is contained in:
		@@ -171,19 +171,9 @@ function shared.StinkyTracker.Init()
 | 
			
		||||
				print(string.format("[%s] Found stinkies in SEE message", ModuleName))
 | 
			
		||||
			end
 | 
			
		||||
			for name, stinky in pairs(seeStinkies) do
 | 
			
		||||
				if stinky.hostile then
 | 
			
		||||
					shared.stinkyTracker.stinkies[name] = stinky
 | 
			
		||||
					if Heimdall_Data.config.stinkyTracker.debug then
 | 
			
		||||
						print(
 | 
			
		||||
							string.format("[%s] Added hostile stinky from SEE: %s (%s)", ModuleName, name, stinky.class)
 | 
			
		||||
						)
 | 
			
		||||
					end
 | 
			
		||||
				end
 | 
			
		||||
				if not stinky.hostile then
 | 
			
		||||
					shared.stinkyTracker.stinkies[name] = nil
 | 
			
		||||
					if Heimdall_Data.config.stinkyTracker.debug then
 | 
			
		||||
						print(string.format("[%s] Removed non-hostile stinky from SEE: %s", ModuleName, name))
 | 
			
		||||
					end
 | 
			
		||||
				shared.stinkyTracker.stinkies[name] = stinky
 | 
			
		||||
				if Heimdall_Data.config.stinkyTracker.debug then
 | 
			
		||||
					print(string.format("[%s] Added hostile stinky from SEE: %s (%s)", ModuleName, name, stinky.class))
 | 
			
		||||
				end
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user