X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fmap_object_actions.h;h=eec0087672a0eb90136b26bb78bd951677de4925;hb=65d60eba28c8e3128e1603e577c1436a2182f6bd;hp=983f1aabc35efaa9af04ac3705f17abc204620c8;hpb=6052be616897d692fc57ab15b56266b4b3f4668b;p=plomrogue diff --git a/src/server/map_object_actions.h b/src/server/map_object_actions.h index 983f1aa..eec0087 100644 --- a/src/server/map_object_actions.h +++ b/src/server/map_object_actions.h @@ -17,9 +17,9 @@ struct MapObjAct { struct MapObjAct * next; void (* func) (struct MapObj *); /* function called after .effort turns */ - char * name; /* human-readable identifier */ - uint8_t id; /* unique id of map object action */ - uint8_t effort; /* how many turns the action takes */ + char * name; /* human-readable identifier */ + uint8_t id; /* unique id of map object action; must be >0 */ + uint8_t effort; /* how many turns the action takes */ }; @@ -37,7 +37,7 @@ extern uint8_t get_moa_id_by_name(char * name); extern void actor_wait(struct MapObj * mo); /* Actor "mo" tries to move one step in direction described by char mo->arg - * (where east is 'E', north 'N') etc. Move either succeeds, or another actor is + * (where east is '6', north '8') etc. Move either succeeds, or another actor is * encountered and hit (which leads ot its lifepoint decreasing by one and * eventually death), or the move fails due to an impassable target square. */ @@ -46,7 +46,7 @@ extern void actor_move(struct MapObj * mo); /* Actor "mo" tries to drop from inventory object indexed by number mo->args. */ extern void actor_drop(struct MapObj * mo); -/* Actor "mo" tries to pick up object from ground into its inventory. */ +/* Actor "mo" tries to pick up topmost object from ground into its inventory. */ extern void actor_pick(struct MapObj * mo); /* Actor "mo" tries to use inventory object indexed by number mo->args.