|  |  | @ -32,11 +32,7 @@ public class TransferStatPowerAction extends AbstractPowerAction { | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected String effectID; |  |  |  |     protected String effectID; | 
			
		
	
		
		
			
				
					
					|  |  |  |     public PowerAction powerAction; |  |  |  |     public PowerAction powerAction; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected float transferAmount; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected float transferRamp; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected boolean transferRampAdd; |  |  |  |     protected boolean transferRampAdd; | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected float transferEfficiency; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected float transferEfficiencyRamp; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected boolean transferEfficiencyRampAdd; |  |  |  |     protected boolean transferEfficiencyRampAdd; | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected boolean targetToCaster; |  |  |  |     protected boolean targetToCaster; | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected mbEnums.DamageType damageType; |  |  |  |     protected mbEnums.DamageType damageType; | 
			
		
	
	
		
		
			
				
					|  |  | @ -48,10 +44,6 @@ public class TransferStatPowerAction extends AbstractPowerAction { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.powerAction = powerAction; |  |  |  |         this.powerAction = powerAction; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.effectID = powerAction.effects.get(0).effect_id; |  |  |  |         this.effectID = powerAction.effects.get(0).effect_id; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.transferAmount = powerAction.getFloat("transferAmount"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.transferRamp = powerAction.getFloat("transferRamp"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.transferEfficiency = powerAction.getFloat("transferEfficiency"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.transferEfficiencyRamp = powerAction.getFloat("transferEfficiencyRamp"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         int flags = powerAction.getInt("flags"); |  |  |  |         int flags = powerAction.getInt("flags"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.transferRampAdd = ((flags & 4096) != 0) ? true : false; |  |  |  |         this.transferRampAdd = ((flags & 4096) != 0) ? true : false; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.transferEfficiencyRampAdd = ((flags & 8192) != 0) ? true : false; |  |  |  |         this.transferEfficiencyRampAdd = ((flags & 8192) != 0) ? true : false; | 
			
		
	
	
		
		
			
				
					|  |  | @ -79,7 +71,7 @@ public class TransferStatPowerAction extends AbstractPowerAction { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public float getTransferAmount(float trains) { |  |  |  |     public float getTransferAmount(float trains) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         //		if (this.transferRampAdd)
 |  |  |  |         //		if (this.transferRampAdd)
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return this.transferAmount + (this.transferRamp * trains); |  |  |  |         return this.powerAction.statTransfer.fromStatValue + (this.transferRamp * trains); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         //		else
 |  |  |  |         //		else
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         //			return this.transferAmount * (1 + (this.transferRamp * trains));
 |  |  |  |         //			return this.transferAmount * (1 + (this.transferRamp * trains));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |