/* * Implementation of food. Nothing really here yet. */ #include "obj.h" #include "util.h" #include "format.h" #include "structs.h" static int identical_food(OBJ *o1, OBJ *o2) { return(o1->type==o2->type); } static int collapsible_food(OBJ *o1, OBJ *o2) { return(identical_food(o1,o2)); } #define new_food noop_new #define old_food noop_old #define format_food std_format #define fmt_cond_food panic_fmt_cond #define fmt_spec_food panic_fmt_spec #define split_food std_split #define identified_food always_identified #define identify_food already_identify #define moved_food noop_moved #define cursable_food 0 #define setcursed_food setcursed_uncursable OBJOPS objops_food = OBJOPS_INIT(food);