X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fmap_objects.h;h=d18e3c259f4df1f422420dc77da12a34c4ee74e2;hb=4948c10c3a64bf76c977614ae735af2f8f9b2c2c;hp=52d87e1a2276101f265a92892cc834b8ef7e12b7;hpb=cc4ed0c49279f08a053a3e3a9a4acba22283a01f;p=plomrogue diff --git a/src/server/map_objects.h b/src/server/map_objects.h index 52d87e1..d18e3c2 100644 --- a/src/server/map_objects.h +++ b/src/server/map_objects.h @@ -8,9 +8,7 @@ #define MAP_OBJECTS_H #include /* uint8_t */ -//#include /* FILE */ #include "../common/yx_uint8.h" /* yx_uint8 structs */ -//struct EntrySkeleton; @@ -36,16 +34,11 @@ struct MapObjDef uint8_t corpse_id; /* type to change map object into upon destruction */ uint8_t lifepoints; /* default start value for map object's .lifepoints */ uint8_t consumable; /* can be eaten if !0, for so much hitpoint win */ + uint8_t start_n; /* how many of these does the map start with? */ }; -/* Read-in to "entry" multi-line entry from MapObjDef config "file", using - * pre-allocated "line", "linemax" and "context" as input for err_try_fgets(). - */ -//extern void read_map_object_def(char * line, uint32_t linemax, char * context, -// struct EntrySkeleton * entry, FILE * file); - /* Free map object definitions chain starting at "mod_start". */ extern void free_map_object_defs(struct MapObjDef * mod_start);