home · contact · privacy
Ensure that multiple inanimate objects on a map cell are always treated as a
[plomrogue] / src / server / map_object_actions.h
index 983f1aabc35efaa9af04ac3705f17abc204620c8..1eca5917995b4c0076ee11abb814710c2d563921 100644 (file)
@@ -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 */
 };
 
 
@@ -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.