<?xml version="1.0" encoding="utf-8"?>
<ItemRenderer item="ITEM_ID_SPIRIT_OF_THE_EYE">
	<Data>
        <Sprite name="spiritSprite" fileName="game/susno.rttex" textureSize="256" frame="0,0"/>
		<Sprite name="homa_crack_sprite" fileName="game/particles10.rttex" textureSize="32" frame="18,1"/>
		<Sprite name="sparkle_sprite" fileName="game/tavern_particles1.rttex" textureSize="32" frame="3,0"/>

        <Animations>
			<SpriteSinPulseAnimation name="foot1_Stretch" playOnAction="IDLE|WALK|FALL|JUMP|PUNCH" sprite="spiritSprite">
				<Parameter name="scale.x">
					<Set name="offset">1</Set>
					<Set name="period">2500</Set>
					<Set name="scale">0.07</Set>
				</Parameter>
			</SpriteSinPulseAnimation>
			<SpriteSinPulseAnimation name="foot2_Stretch" playOnAction="IDLE|WALK|FALL|JUMP|PUNCH" sprite="spiritSprite">
				<Parameter name="scale.y">
					<Set name="offset">1</Set>
					<Set name="period">2750</Set>
					<Set name="scale">0.07</Set>
				</Parameter>
			</SpriteSinPulseAnimation>
        </Animations>

        <ParticleSystems>
    		<ParticleSystem name="evil_particle">
	    		<Emitter>
		    		<Random name="offset" min="-30, -30" max="30, -90"/>
			    	<Random name="emissionInterval" min="0.2" max="0.4"/>
				    <Set name="infParticles">true</Set>
				    <Set name="infLifeTime">true</Set>
				    <Set name="particlesPerEmission">1</Set>
    			</Emitter>
	    		<Particle>
		    		<Set name="sprite">sparkle_sprite</Set>
			    	<Set name="blendingMode">ADDITIVE</Set>
				    <Set name="isBackgroundParticle">false</Set>
				    <Set name="initalRGB">1, 1, 1</Set>
                    <Random name="lifeTime" min="1.5" max="2" />
				    <Random name="initialVelocity" min="-5, 20" max="5, 30"/>
				    <Set name="initialAngle">0</Set>
					<Curve name="initialScale">
						<KeyFrame>0, 0.2,0.2</KeyFrame>
						<KeyFrame>0.05, 1,1</KeyFrame>
						<KeyFrame>0.1, 0.2,0.2</KeyFrame>
						<KeyFrame>0.15, 1,1</KeyFrame>
						<KeyFrame>0.2, 0.2,0.2</KeyFrame>
						<KeyFrame>0.25, 1,1</KeyFrame>
						<KeyFrame>0.3, 0.2,0.2</KeyFrame>
						<KeyFrame>0.35, 1,1</KeyFrame>
						<KeyFrame>0.4, 0.2,0.2</KeyFrame>
						<KeyFrame>0.45, 1,1</KeyFrame>
						<KeyFrame>0.5, 0.2,0.2</KeyFrame>
						<KeyFrame>0.55, 1,1</KeyFrame>
						<KeyFrame>0.6, 0.2,0.2</KeyFrame>
						<KeyFrame>0.65, 1,1</KeyFrame>
						<KeyFrame>0.7, 0.2,0.2</KeyFrame>
						<KeyFrame>0.75, 0.75,0.75</KeyFrame>
						<KeyFrame>0.8, 0.15,0.15</KeyFrame>
						<KeyFrame>0.85, 0.5,0.5</KeyFrame>
						<KeyFrame>0.9, 0.1,0.1</KeyFrame>
						<KeyFrame>0.95, 0.25,0.25</KeyFrame>
						<KeyFrame>1, 0.05,0.05</KeyFrame>
					</Curve>
					<Curve name="initialAlpha">
						<KeyFrame>0, 1</KeyFrame>
						<KeyFrame>1, 1</KeyFrame>
					</Curve>
					<Select name="initialRotationRate" input="randomNumber">
						<Item>-720</Item>
						<Item>-360</Item>
						<Item>360</Item>
						<Item>720</Item>
					</Select>                    
			    </Particle>
		    </ParticleSystem>
        </ParticleSystems>

    	<TileStampData>
      		<Set name="FileName">game/particles10.rttex</Set>
      		<Set name="EndFrame">21,1</Set>
      		<Set name="FrameCount">4</Set>
    	</TileStampData>
    </Data>

  <RenderRules>
    <RenderInFront>
		<SpriteRender name="spiritSprite" rotateOffset="true" alignment="CENTER" offset="1,-120" scale="1.45,1.4" blend="PREMULTIPLIED_ALPHA"/>
    </RenderInFront>
    <OnPunchUpdate>
      <AvatarTransform class="Emotion">
        <Set name="emotion">ANGRY</Set>
      </AvatarTransform>
      <AvatarTransform class="ArmAngle">
        <Set name="armName">arm2Angle</Set>
        <Set name="armAngle">120</Set>
        <Set name="pulseArmScale">5</Set>
        <Set name="pulseArmRate">250</Set>
      </AvatarTransform>
      <AvatarTransform class="ArmAngle">
        <Set name="armName">arm1Angle</Set>
        <Set name="armAngle">-120</Set>
        <Set name="pulseArmScale">5</Set>
        <Set name="pulseArmRate">250</Set>
      </AvatarTransform>
    </OnPunchUpdate>
		<AddClothingParticles>
			<ParticleSystemUpdate name="evil_particle" drawShadow="false"/>
		</AddClothingParticles>
		<SwitchOffClothingParticles>
			<ParticleSystemOff name="evil_particle"/>
		</SwitchOffClothingParticles>

  </RenderRules>
</ItemRenderer>
