chainmail.c

tmi2_fluffos_v2/lib/obj/chainmail.c · 891 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// chainmail.c
// A standard piece of armor, heavily commented to explain what all the
// properties are.
// Created by Mobydick@TMI-2, 9-30-92

#include <mudlib.h>

inherit ARMOR ;

void create() {
	set ("id", ({ "chain", "chainmail" }) ) ;
	set ("short", "a suit of chainmail") ;
	set ("long", "The mail mesh would cover your torso and upper arms.\n") ;
	set ("bulk", 100) ;
	set ("mass", 1200) ;
	set ("value", ({ 30, "gold" }) ) ;
// All armor objects need to set a "type", ie suit, shield, helmet, boots,
// whatever. The player can wear only one of each type of armor.
	set ("type", "suit") ;
// "armor" is the armor Class of the armor. Anything with "armor" 0 is not
// a piece of armor and cannot be equipped. Things with positive values of
// "armor" are armor; higher numbers are better protection against attacks
// (which is the reverse of the D&D method.)
	set ("armor", 6) ;
}

Site Stats

Snippets: 1791
Codebases: 571