|  |  |  | @ -166,8 +166,12 @@ public class Item extends AbstractWorldObject {@@ -166,8 +166,12 @@ public class Item extends AbstractWorldObject { | 
			
		
	
		
			
				
					|  |  |  |  |         this.dateToUpgrade = rs.getLong("dateToUpgrade"); | 
			
		
	
		
			
				
					|  |  |  |  |         this.value = rs.getInt("value"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.value == 0) | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.value == 0) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.value = this.template.item_value; | 
			
		
	
		
			
				
					|  |  |  |  |             this.magicValue = this.value + calcMagicValue(); | 
			
		
	
		
			
				
					|  |  |  |  |         } else | 
			
		
	
		
			
				
					|  |  |  |  |             this.magicValue = this.value; // Value was overridden in vendor inventory
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |