/* * The implementation of scarabs. */ #include "obj.h" #include "util.h" #include "vars.h" #include "pline.h" #include "format.h" #include "structs.h" #include "objtypes.h" static int identified_scarab(INVOBJ *io) { return(!!(objtypes[io->v[0]->type].flags&OTF_KNOWN)); } static INVOBJ *identify_scarab(INVOBJ *io) { objtypes[io->v[0]->type].flags |= OTF_KNOWN; return(io); } static void moved_scarab(INVOBJ *io, INVENT *from, INVENT *to) { // XXX write this (void)io; (void)from; (void)to; } #define new_scarab noop_new #define old_scarab noop_old #define format_scarab std_format #define fmt_cond_scarab panic_fmt_cond #define fmt_spec_scarab panic_fmt_spec #define collapsible_scarab never_collapsible #define identical_scarab never_identical #define split_scarab std_split OBJOPS objops_scarab = OBJOPS_INIT(scarab);