|  |  | @ -398,9 +398,9 @@ public class WpakPowerManager { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static float getCost(Power power, int trains) { |  |  |  |     public static float getCost(Power power, int trains) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (power.curves.get("COSTAMT") != null) |  |  |  |         if (power.curves.get("COSTAMT") != null) | 
			
		
	
		
		
			
				
					
					|  |  |  |             return power.cost + (float) (power.curves.get("COSTAMT").getValue() * trains); |  |  |  |             return power.cost + (power.curves.get("COSTAMT").getValue() * trains); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         else |  |  |  |         else | 
			
		
	
		
		
			
				
					
					|  |  |  |             return power.cost * (1 + (float) (power.curves.get("COSTAMT").getValue() * trains)); |  |  |  |             return power.cost * (1 + (power.curves.get("COSTAMT").getValue() * trains)); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |