@ -11,7 +11,6 @@ package engine.powers.poweractions;
				@@ -11,7 +11,6 @@ package engine.powers.poweractions;
					 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					import  engine.math.Vector3fImmutable ;  
			
		
	
		
			
				
					import  engine.mbEnums ;  
			
		
	
		
			
				
					import  engine.mbEnums.BuildingGroup ;  
			
		
	
		
			
				
					import  engine.mbEnums.GameObjectType ;  
			
		
	
		
			
				
					import  engine.mbEnums.PortalType ;  
			
		
	
		
			
				
					import  engine.objects.AbstractCharacter ;  
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -54,15 +53,17 @@ public class OpenGatePowerAction extends AbstractPowerAction {
				@@ -54,15 +53,17 @@ public class OpenGatePowerAction extends AbstractPowerAction {
					 
			
		
	
		
			
				
					            return ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        // Make sure target building is a runegate
   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        if  ( targetBuilding . meshUUID  ! =  24500 )  // runegate
   
			
		
	
		
			
				
					            return ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        // Which runegate was clicked on?
   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        Runegate  runeGate  =  Runegate . _runegates . get ( targetBuilding . getObjectUUID ( ) ) ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        if ( runeGate  = =  null ) {   
			
		
	
		
			
				
					        if   ( runeGate  = =  null )   
			
		
	
		
			
				
					            return ;  // mob camp prop runegate cannot be opened
   
			
		
	
		
			
				
					        }   
			
		
	
		
			
				
					
  
			
		
	
		
			
				
					        // Which portal was opened?
   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        token  =  pb . getToken ( ) ;   
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -72,41 +73,31 @@ public class OpenGatePowerAction extends AbstractPowerAction {
				@@ -72,41 +73,31 @@ public class OpenGatePowerAction extends AbstractPowerAction {
					 
			
		
	
		
			
				
					            case  428937084 :  //Death Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . OBLIV ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429756284 :  //Chaos Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . CHAOS ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429723516 :  //Khar Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . MERCHANT ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429559676 :  //Spirit Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . SPIRIT ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429592444 :  //Water Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . WATER ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429428604 :  //Fire Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . FIRE ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429526908 :  //Air Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . AIR ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            case  429625212 :  //Earth Gate
   
			
		
	
		
			
				
					                portalType  =  PortalType . EARTH ;   
			
		
	
		
			
				
					                break ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					            default :   
			
		
	
		
			
				
					        }   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					        runeGate . activatePortal ( portalType ) ;   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    }   
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    @Override