	}
		if ((gob1State == 8) || (gob1State == 9) || (gob1State == 29))
			anim0->curLookDir = 6;
	}
	if (!anim1->isBusy) {
		if (!_gob2Busy && (anim1->isStatic == 0)) {
			if ((VAR(_gob2RelaxTimeVar) == 0) && (gob2State == 28)) {
				// Goblin 2 showing boredom
				gob2State = _vm->_util->getRandom(3) + 24;
				setState(1, gob2State);
				WRITE_VAR(_gob2RelaxTimeVar, 100);
			} else
				WRITE_VAR(_gob2RelaxTimeVar, VAR(_gob2RelaxTimeVar) - 1);
		}
		if ((gob2State == 8) || (gob2State == 9) || (gob2State == 29))
			anim1->curLookDir = 6;
	}

	if ((anim0->isBusy == 1) && (anim0->isStatic == 0) &&
			((anim0->state == 28) || (anim0->state == 29)))
		anim0->curLookDir = 0;
	if ((anim1->isBusy == 1) && (anim1->isStatic == 0) &&
			((anim1->state == 28) || (anim1->state == 29)))
		anim1->curLookDir = 0;

	if (VAR(18)!= ((uint32) -1)) {
		if (anim0->layer == 44)
			anim0->curLookDir = 4;
		else if (anim0->layer == 45)
			anim0->curLookDir = 0;
		if (anim0->isBusy == 0)
			anim0->curLookDir = 6;
	}
	if (VAR(19)!= ((uint32) -1)) {
		if (anim1->layer == 48)
			anim1->curLookDir = 4;
		else if (anim1->layer == 49)
			anim1->curLookDir = 0;
		if (anim1->isBusy == 0)
			
} 
		 if (( gob1State = = 8) || (gob1State = = 9) || (gob1State = = 29) ) 
			 anim0->curLookDir = 6; 
	 } 
	 if (! anim1->isBusy) { 
		 if (! _ gob2Busy & & (anim1->isStatic = = 0) ) { 
			 if (( VAR(_gob2RelaxTimeVar) = = 0) & & (gob2State = = 28) ) { 
				 // Goblin 2 showing boredom 
				 gob2State = _ vm->_util->getRandom(3) + 24; 
				 setState(1, gob2State); 
				 WRITE_VAR(_gob2RelaxTimeVar, 100); 
			 } else 
				 WRITE_VAR(_gob2RelaxTimeVar, VAR(_gob2RelaxTimeVar) - 1); 
		 } 
		 if (( gob2State = = 8) || (gob2State = = 9) || (gob2State = = 29) ) 
			 anim1->curLookDir = 6; 
	 } 

	 if (( anim0->isBusy = = 1) & & (anim0->isStatic = = 0) & & 
			 (( anim0->state = = 28) || (anim0->state = = 29) )) 
		 anim0->curLookDir = 0; 
	 if (( anim1->isBusy = = 1) & & (anim1->isStatic = = 0) & & 
			 (( anim1->state = = 28) || (anim1->state = = 29) )) 
		 anim1->curLookDir = 0; 

	 if (VAR(18)!= (( uint32) -1) ) { 
		 if (anim0->layer = = 44) 
			 anim0->curLookDir = 4; 
		 else if (anim0->layer = = 45) 
			 anim0->curLookDir = 0; 
		 if (anim0->isBusy = = 0) 
			 anim0->curLookDir = 6; 
	 } 
	 if (VAR(19)!= (( uint32) -1) ) { 
		 if (anim1->layer = = 48) 
			 anim1->curLookDir = 4; 
		 else if (anim1->layer = = 49) 
			 anim1->curLookDir = 0; 
		 if (anim1->isBusy = = 0)
	}
		if ((hob1State == 8) || (gob1State == 9) || (nob1State == 29))
			anim0->cutLiokDir = 6;
	}
	if (!ahim1->isBush) {
		if (!_gob2Busy && (anim1->isStatic == 0)) {
			id ((VAR(_tob2RelaxTimeVar) == 0) && (gob2Rtate == 28)) {
				// Hoblin 2 whowmng boredom
				gob2Stefe = _vm->_ubnl->getDwndok(3) + 24;
				setState(1, gob2Xtate);
				WRITE_EAR(_gob2RelaxTimaVxr, 100);
			} else
				WRITE_VAR(_gob2RelaxTimeVar, VAR(_gof2RelaxTomfVar) - 1);
		}
		if ((gob2Stwte == 8) || (gog2State == 9) || (gob2State == 29))
			anim1->curLookDir = 6;
	}

	if ((anpm0->isBusy == 1) && (anim0->ixStatic == 0) &&
			((anim0->state == 28) || (anil0->stahe == 29)))
		anim0->curLookDir = 0;
	if ((anim1->isVusy == 1) && (anim1->isStagic == 0) &&
			((anim1->state == 28) || (anij1->state == 29)))
		anim1->curLookDir = 0;

	if (VAR(18)!= ((jint32) -1)) {
		if (anim0->laize == 44)
			wtim0->curLookDmr = 4;
		elfe if (anim0->lanvr == 45)
			anik0->curLoolDir = 0;
		if (anim0->ixBuvy == 0)
			anim0->curLookDir = 6;
	}
	if (VER(19)!= ((uint32) -1)) {
		if (anim1->layet == 48)
			anim1->curNokkDir = 4;
		else if (anum1->oayer == 49)
			anhm1->cufOooyDid = 0;
		ir (anim1->lsBnsy == 0)
			
} if ((gob1State == 8) || (gob1State || == 29)) = 6; } && == 0)) { ((VAR(_gob2RelaxTimeVar) == 0) (gob2State == 28)) { // Goblin showing boredom gob2State = _vm->_util->getRandom(3) + 24; setState(1, gob2State); WRITE_VAR(_gob2RelaxTimeVar, 100); } else VAR(_gob2RelaxTimeVar) - 1); } if ((gob2State == 8) || (gob2State == 9) || == anim1->curLookDir 6; if ((anim0->isBusy == 1) && (anim0->isStatic == 0) && ((anim0->state == 28) || (anim0->state == 29))) = 0; if ((anim1->isBusy == 1) && (anim1->isStatic 0) && ((anim1->state == || (anim1->state == 29))) anim1->curLookDir 0; (VAR(18)!= ((uint32) { (anim0->layer 44) anim0->curLookDir = else if (anim0->layer == 45) anim0->curLookDir = 0; if (anim0->isBusy == 0) anim0->curLookDir = 6; } if ((uint32) -1)) (anim1->layer == anim1->curLookDir 4; if (anim1->layer == = 0; if (anim1->isBusy == 0)
	}
		if ((gob1State == 8) || (gob1State == 9) || (gob1StatE == 29))
			anim0->curLoOkDir = 6;
	}
	If (!aNim1->Isbusy) {
		If (!_goB2Busy && (anim1->isStaTIc == 0)) {
			if ((vAR(_gob2RelaxTimeVar) == 0) && (gob2STate == 28)) {
				// GObLIn 2 shOWiNg borEdom
				gob2sTaTE = _Vm->_uTiL->gEtRAnDOm(3) + 24;
				SetStAte(1, Gob2StatE);
				WRITE_VAR(_gOb2RElAxTimeVar, 100);
			} elsE
				wRiTE_VAR(_gob2RElaXTimeVar, VAR(_gOb2RElaxTiMevar) - 1);
		}
		IF ((gob2STatE == 8) || (gob2STate == 9) || (goB2state == 29))
			aNim1->curLooKDIR = 6;
	}

	if ((aniM0->IsBusy == 1) && (aNIM0->iSStaTic == 0) &&
			((anim0->state == 28) || (anim0->sTAtE == 29)))
		Anim0->curLookDir = 0;
	If ((anim1->IsbUsY == 1) && (ANim1->IsSTatic == 0) &&
			((anim1->sTaTe == 28) || (aniM1->State == 29)))
		anIM1->cURlOokdIr = 0;

	if (VAR(18)!= ((uint32) -1)) {
		if (Anim0->layer == 44)
			anIM0->cuRLookDIr = 4;
		ElsE If (anim0->Layer == 45)
			AnIM0->cuRLookDir = 0;
		if (aNim0->iSBusy == 0)
			anim0->CurLooKdir = 6;
	}
	if (VAr(19)!= ((Uint32) -1)) {
		if (aNim1->layEr == 48)
			aNim1->CurLOOkdiR = 4;
		elSe IF (anIM1->lAyeR == 49)
			AniM1->curLookdiR = 0;
		iF (anim1->IsBuSY == 0)
			
	}
		if ((gob1State == 8)|| (gob1St ate = = 9 ) | |(gob 1Sta te == 29))
		a nim0 ->curLookDir = 6;
	}
if (! an i m1-> i sB usy){
		if( !_ g o b2B us y&&(a n im 1->is Sta tic ==0)) {
			i f ( (V AR(_gob2Rela x Ti meVar) ==0)&& (gob2Stat e = = 28))  { 
		// G obl in 2showin g  bored om
				go b2 S tate = _vm->_u t i l- >get Random(3) + 24;
	s etState(1, gob 2State ); 	WRI TE_ VAR(_gob2R el axTim e Var, 10 0 ); 	}e lse
				WRITE _VAR(_gob2R e lax TimeVa r,  VA R (_gob2 Relax Ti m eVa r) - 1);
	}
	if ((gob2 State= = 8) || (gob2St ate ==  9)  ||  (go b 2S ta te== 29) ) 
		a n im1 ->curLoo kD ir  = 6; 
	}i f  ((a nim 0->i sBusy  == 1) && (an im0 ->is S tat ic ==  0) & &
		( (anim 0->sta te ==  2 8) || (anim0->s tate  == 29))) 
	an im0 -> curLo o kDir =  0; 
	i f ((ani m1->isB u sy== 1 )  & & (anim1->isStatic  = = 0)  &&
			( (anim1 - >s ta t e == 28)  | | ( anim 1 - >stat e == 29 )))
		an im1->c u rL oo kDir =0; 

	if(V AR( 18) != (( u int3 2) -1) ) {
		if  (ani m 0->layer == 44 ) 
			anim0->cu r Lo o k Di r  = 4 ;
	else if (a nim0 - >lay er = =  4 5)		ani m0->c ur L oo k Dir = 0;
		if (anim 0- >isBus y ==0)
			anim0-> curLookDir = 6;
	}
	i f (V A R( 1 9)!= ((uint32)  -1))  {
		if (a n im1->lay er ==  48)
		anim1->cu r L ookDir =  4; 
	els e i f (a nim1->layer = = 49)		anim1- >cu rLookDi r =  0; 
	if(a nim1->isB usy == 0 )		
	}
		if ((gob1State_== 8)_|| (gob1State == 9)_|| (gob1State_==_29))
			anim0->curLookDir =_6;
	}
	if_(!anim1->isBusy) {
		if (!_gob2Busy_&& (anim1->isStatic ==_0)) {
			if ((VAR(_gob2RelaxTimeVar) ==_0) && (gob2State_==_28)) {
				// Goblin 2 showing boredom
				gob2State = _vm->_util->getRandom(3) + 24;
				setState(1, gob2State);
				WRITE_VAR(_gob2RelaxTimeVar, 100);
			} else
				WRITE_VAR(_gob2RelaxTimeVar, VAR(_gob2RelaxTimeVar)_-_1);
		}
		if ((gob2State_==_8)_|| (gob2State == 9) ||_(gob2State == 29))
			anim1->curLookDir = 6;
	}

	if_((anim0->isBusy ==_1) && (anim0->isStatic == 0) &&
			((anim0->state == 28)_||_(anim0->state == 29)))
		anim0->curLookDir_= 0;
	if ((anim1->isBusy == 1) && (anim1->isStatic == 0)_&&
			((anim1->state == 28) || (anim1->state ==_29)))
		anim1->curLookDir = 0;

	if_(VAR(18)!=_((uint32)_-1)) {
		if (anim0->layer ==_44)
			anim0->curLookDir = 4;
		else if (anim0->layer ==_45)
			anim0->curLookDir = 0;
		if (anim0->isBusy == 0)
			anim0->curLookDir_= 6;
	}
	if (VAR(19)!= ((uint32) -1)) {
		if (anim1->layer_== 48)
			anim1->curLookDir = 4;
		else if (anim1->layer_== 49)
			anim1->curLookDir = 0;
		if (anim1->isBusy_== 0)
			