shell.c

ds2.1.1/lib/lib/shell.c · 826 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include "include/shell.h"
#include <vendor_types.h>
inherit LIB_ITEM;
private int caliber,millimeter;
private string pistoltype,ammotype;
void create(){
    ::create();
    SetKeyName("shell");
    SetId(({"shell","casing","shell casing"}));
    SetShort("a spent pistol shell");
    SetLong("This is the empty shell casing of a bullet that has been fired.");
    SetMass(1);
    SetValue(0);
    SetVendorType(VT_TREASURE);
}
int SetPistolType(string str) {pistoltype=str; return 1; }
int SetAmmoType(string str) {ammotype=str; return 1; }
int SetCaliber(int x) { caliber=x; return 1; }
int SetMillimeter(int x){ millimeter=x; return 1; }
int GetMillimeter() { return millimeter; }
int GetCaliber() { return caliber; }
string GetPistolType() { return pistoltype; }
string GetAmmoType() { return ammotype; }

Site Stats

Snippets: 1791
Codebases: 571