chainmail02.c

lima-1.0b5/lib/domains/std/school/R/chainmail02.c · 660 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

#include "../school.h";
inherit ROOM;

void setup(){
    set_brief("Extras for basic armor");
    set_long(@MAY

Starting with chainmail, as in previous room:

#include <bodyslots.h>, so you use abbreviations (eg TORSO for "torso")

Within setup(), add custom wear messages
Use set_resist() for strength adjustment against different damage types.

#include <bodyslots.h>

    set_resist("blade", 2); // a little better against blades
    set_wearmsg( "$N $vput on a $o." );
    set_slot(TORSO);
}

MAY
    );
    set_exits( ([
	"finish" : R "armory",
	"backward" : "chainmail02",
      ]) );
    set_objects( ([
    "/domains/std/chainmail" : 1,
      ]) );
}

Site Stats

Snippets: 1791
Codebases: 571