class ModifyStaminaHandlerEffector extends Effector
{
	private var m_opSymbol : CName;

	protected export override function Initialize( record : TweakDBID, game : GameInstance, parentRecord : TweakDBID )
	{
		m_opSymbol = TweakDBInterface.GetCName( record + T".opSymbol", '' );
	}

	protected export override function Uninitialize( game : GameInstance )
	{
		var player : PlayerPuppet;
		var handler : PlayerWeaponHandlingModifiers;
		player = GetPlayer( game );
		if( player )
		{
			handler = player.GetPlayerWeaponHandler();
			handler.ModifyOpSymbol( 'none' );
		}
	}

	protected export override function ActionOn( owner : GameObject )
	{
		var player : PlayerPuppet;
		var handler : PlayerWeaponHandlingModifiers;
		player = ( ( PlayerPuppet )( owner ) );
		if( player )
		{
			handler = player.GetPlayerWeaponHandler();
			handler.ModifyOpSymbol( m_opSymbol );
		}
	}

	protected export override function ActionOff( owner : GameObject )
	{
		var player : PlayerPuppet;
		var handler : PlayerWeaponHandlingModifiers;
		player = ( ( PlayerPuppet )( owner ) );
		if( player )
		{
			handler = player.GetPlayerWeaponHandler();
			handler.ModifyOpSymbol( 'none' );
		}
	}

}

