#include <lib.h>
#include <rooms.h>
#include <armor_types.h>
#include <damage_types.h>
inherit LIB_ARMOR;
static void create(){
    armor::create();
    SetKeyName("visitor pass");
    SetId(({"testchar badge","badge","pass","visitor's pass"}));
    SetShort("a test character Visitor's Pass");
    SetLong("This clip-on plastic badge grants the wearer access to "+
      "some areas typically restricted to creator staff only. Abuse of this "+
      "pass is grounds for disciplinary action. A small scribble "+
      "at the bottom of the pass reads: click heels");
    SetProperties(([
	"no steal" : 1,
      ]));
    SetMass(10);
    SetBaseCost(5000);
    SetDamagePoints(100);
    SetArmorType(A_AMULET);
    SetRetainOnDeath(1);
    SetRestrictLimbs( ({ "torso" }) );
}
void init(){
    ::init();
    add_action("nplh","click");
}
int nplh(string str){
    if(str=="heels"){
	if(present(this_object()->GetKeyName(),this_player() ) ){
	    write("There's no place like home!\n"+
	      "You are transported by an awesome whirlwind somewhere "+
	      "else...\n");
	    this_player()->eventMoveLiving(ROOM_START);
	    return 1;
	}
	write("You click your heels together...but feel "+
	  "as though you're missing something.\n");
	return 1;
    }
}
string GetAffectLong(object ob) {
    if(!ob || !living(ob)) return 0;
    return ob->GetName() + " is an authorized Test Character.";
}