//On Use Function for item foodForRest
//For use in the Food System
//Created by: Cody Houston 12/20/2007 with the use of the ItemActivate Template
// Modified by Shazbotian for magic meal summoned by "Create Food and Water"
//===================================================================================

//Main Function DO NOT TOUCH!!!!!!!!!
void main()
{
    object oReceiver	= GetModuleItemAcquiredBy();
    object oItem    	= GetModuleItemAcquired();
    //object oTarget 		= GetItemActivatedTarget();
    //location lTarget	= GetItemActivatedTargetLocation();
	effect eEffect;
	
	//object oPC = GetFirstPC();
	//SendMessageToPC(oPC, "Someone got foodForRest");

	//SendMessageToPC(oReceiver, "You got some food!");
	DestroyObject(oItem, HoursToSeconds(8));
	// we could check if the item still exists and give the player a message if it does, but... later ;-)
	//DelayCommand(HoursToSeconds(8), SendMessageToPC(oReceiver, "Your food decays away!"));
}