sword01.c

lima-1.0b5/lib/domains/std/school/R/sword01.c · 606 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("How to make a basic sword");
    set_long(@MAY

Inherit the appropriate file - SWORD, M_VALUABLE.
Normal setup for adj, size and value (id not needed).
Set weapon_class - approx max hps of damage from a hit.

inherit SWORD;
inherit M_VALUABLE;

void setup() {
    set_adj("dull");
    set_weapon_class(15);
    set_size(MEDIUM);
    set_value(1000);
}

MAY
    );
    set_exits( ([
        "weaponry" : R + "weaponry",
        "forward" : R "sword02",
      ]) );
    set_objects( ([
      "/domains/std/objects/sword" : 1,
      ]) );
}

Site Stats

Snippets: 1791
Codebases: 571