//=============================================================================
// Lamp2.
//=============================================================================
class FDeco extends DeusExDecoration;

var _MMRPGPlayer Player;
var Class<FRClass> PackedClass;

replication
{
    reliable if(ROLE < ROLE_Authority)
	 Player;
}

function PostPostBeginPlay()
{
	Super.PostPostBeginPlay();
	SetTimer(1,False);
}

function Timer()
{
	bMovable = False;
}

Function Frob(Actor Frobber, Inventory FrobWith)
{
	local KeyDummy hmm2;

	if(_MMRPGPlayer(Frobber) == Player)
	{
		foreach AllActors(class'KeyDummy', hmm2)
		{
			if (Player.HandleItemPickup(hmm2, True) == True)
			{
				_MMRPGPlayer(Frobber).SpawnItemz(PackedClass);
				Destroy();
				if(Role == ROLE_Authority)
				{
					Destroy();
				}
			}
		}
	}
	Super.Frob(Frobber, FrobWith);
}


defaultproperties
{
}
