#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; }