+ turn_over(get_command_id("drop"));
+}
+
+
+
+extern void player_pick()
+{
+ struct MapObj * player = get_player();
+ struct MapObj * picked;
+ for (picked = world.map_objs; NULL != picked; picked = picked->next)
+ {
+ if (picked != player && yx_uint16_cmp(&picked->pos, &player->pos))
+ {
+ break;
+ }
+ }
+ if (NULL == picked)
+ {
+ update_log("\nYou try to pick up an object, but there is none.");
+ }
+ else
+ {
+ own_map_object(&player->owns, &world.map_objs, picked->id);
+ set_object_position(picked, player->pos);
+ update_log("\nYou pick up an object.");
+ }
+ turn_over(get_command_id("pick"));