runic_sword.c

ds2.9a10/lib/domains/town/weap/runic_sword.c · 949 B

From the archive ds2.9a10.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <damage_types.h>
#include <vendor_types.h>

inherit LIB_ITEM;

int CheckOrc(){
    string ret = "The runes' meaning is undecipherable to you.";
    if(this_player()->GetRace() == "orc"){
        write("You get an uneasy feeling.");
    }
    return write(ret);
}

static void create() {
    item::create();
    SetKeyName("sword");
    SetId( ({ "short sword", "shortsword"}));
    SetAdjectives( ({ "crafted","finely crafted","short","sharp","fine","runic"}));
    SetShort("a finely crafted short sword");
    SetLong("This is a very fine blade, covered with ancient runes.");
    SetMass(300);
    SetBaseCost("silver",500);
    SetVendorType(VT_WEAPON);
    SetClass(35);
    SetDamageType(BLADE);
    SetWeaponType("blade");
    SetItems( ([
        ({"rune","runes"}) : (: CheckOrc :),
      ]) );
    SetRead( ([
        ({"rune","runes"}) : "You do not understand them."
      ]) );
}

void init(){
    ::init();
}

Site Stats

Snippets: 1791
Codebases: 571