
#pragma strict_types

inherit "/std/armour";
#include "../mafia.h"



void
create_armour()
{
    ustaw_nazwe(({"sygnet","sygnetu","sygnetowi","sygnet","sygnetem","sygnecie"}),
                ({"sygnety","sygnetow","sygnetom","sygnety","sygnetami","sygnetach"}),
                PL_MESKI_NOS_NZYW);
    dodaj_przym("mosiezny","mosiezni");

    add_name("sygnet_mafiozo");

    add_prop(OBJ_M_NO_SELL, "Nie mozesz sprzedac stalowego sygnetu.\n");
    add_prop(OBJ_M_NO_DROP, "Nie mozesz pozbyc sie stalowego sygnetu.\n");
    add_prop(OBJ_M_NO_GIVE, "Nie mozesz oddac stalowego sygnetu.\n");
    
    set_long("@@sygnetdesc");
    set_ac(A_ANY_FINGER,0,0,0);
    this_object()->set_af(this_object());	/* Aby byly wywolywane wear(), remove(). */
    
    add_prop(OBJ_I_VALUE, 10);
    add_prop(OBJ_I_WEIGHT, 2);
    add_prop(OBJ_I_VOLUME, 2);
    TP->add_prop("mafiozo_alderazzi",1);
    TP->add_prop("alderazzi",1);

}


void
leave_env(object from, object to)
{
    this_player()->remove_subloc(SYGNET_SUBLOC);

    ::leave_env(from, to);
}

string
show_subloc(string subloc, object on_obj, object for_obj)
{
    if (subloc == SYGNET_SUBLOC)
    {
        if (for_obj == on_obj)
        return "Nosisz sygnet swiadzcacy o byciu czlonkiem Rodu Alderazzi.\n";
        return "Nosi sygnet, ktory swiadzcy o nazwisku tej persony - Alderazzi.\n";
    }
}

mixed
wear()
{
    this_player()->add_subloc(SYGNET_SUBLOC, this_object());

    return 0;
}

mixed
remove()
{
    this_player()->remove_subloc(SYGNET_SUBLOC);

    return 0;
}


string
query_recover()
{
    return 0;
}

string
query_auto_load()
{
    return MASTER;
}

string
sygnetdesc()
{
    return "Sygnet.\n";
} 

