# ----------------------------------------------------------------------------- #
.headerstart
IsId          	111
Type          	24
Init          	FactoryInit
Death         	FactoryDeath
GndAttkInit   	[NONE]
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	[NONE]
AirAttkRpt    	[NONE]
CastSpell     	[NONE]
GndAttkToIdle 	[NONE]
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	FactoryWalking
WalkingToIdle 	FactoryWalking
SpecialState1 	FactorySpecialState1
SpecialState2 	[NONE]
AlmostBuilt   	FactoryAlmostBuilt
Built         	FactoryBuilt
Landing       	FactoryLanding
LiftOff       	FactoryLiftOff
IsWorking     	FactoryIsWorking
WorkingToIdle 	FactoryBuilt
WarpIn        	[NONE]
Unused3       	[NONE]
StarEditInit  	[NONE]
Disable       	FactoryWalking
Burrow        	[NONE]
.headerend
# ----------------------------------------------------------------------------- #

FactoryInit:
	playfram          	0x00
	imgul             	287 0 0
FactoryWalking:
	wait              	125
	goto              	FactoryWalking

FactoryDeath:
	playsnd           	7
	imgol             	334 0 0
	wait              	3
	liftoffcondjmp    	FactoryLocal00
	lowsprul          	274 0 0
FactoryLocal00:
	wait              	1
	end

FactorySpecialState1:
	playfram          	0x05
	goto              	FactoryWalking

FactoryAlmostBuilt:
	playfram          	0x01
	goto              	FactoryWalking

FactoryBuilt:
	playfram          	0x00
	goto              	FactoryWalking

FactoryLanding:
	nobrkcodestart
	wait              	15
	playsnd           	472
	playfram          	0x05
	wait              	5
	playfram          	0x04
	wait              	5
	playfram          	0x03
	wait              	5
	playfram          	0x02
	wait              	5
	playfram          	0x06
	wait              	5
	playfram          	0x00
	sigorder          	16
	nobrkcodeend
	goto              	FactoryWalking

FactoryLiftOff:
	nobrkcodestart
	playsnd           	471
	playfram          	0x06
	wait              	5
	playfram          	0x02
	wait              	5
	playfram          	0x03
	wait              	5
	playfram          	0x04
	wait              	5
	playfram          	0x05
	sigorder          	16
	nobrkcodeend
	goto              	FactoryWalking

FactoryIsWorking:
	imgol             	286 0 0
	goto              	FactoryWalking