//::///////////////////////////////////////////////
//:: General Treasure Spawn Script
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
    Spawns in general purpose treasure, usable
    by all classes.
*/
//:://////////////////////////////////////////////
//:: Created By:   Brent
//:: Created On:   February 26 2001
//:://////////////////////////////////////////////
#include "NW_O2_CONINCLUDE"

void main()

{
    int nDay = GetCalendarDay();
    string sTag = GetTag(OBJECT_SELF);
    object oLastOpener = GetLastOpener();
    int nDayOpened = GetLocalInt(oLastOpener, "nDay"+sTag+"Opened");
    if (nDay != nDayOpened)
     {
     GenerateMediumTreasure(oLastOpener, OBJECT_SELF);
     ShoutDisturbed();
     SetLocalInt(oLastOpener, "nDay"+sTag+"Opened", nDay);
     }
    else return;
}
