if (obj->in_obj) /* in another object */
obj_to_obj(t_obj,obj->in_obj);
else if (obj->carried_by) /* carried */
if (obj->wear_loc == WEAR_FLOAT)
if (obj->carried_by->in_room == NULL)
extract_obj(t_obj);
else
obj_to_room(t_obj,obj->carried_by->in_room);
else
obj_to_char(t_obj,obj->carried_by);
else if (obj->in_room == NULL) /* destroy it */
extract_obj(t_obj);
else /* to a room */
obj_to_room(t_obj,obj->in_room);
if (obj->in_obj) /* in another object */
obj_to_obj(t_obj,obj->in_obj);
else
if (obj->carried_by) /* carried */
if (obj->wear_loc == WEAR_FLOAT)
if (obj->carried_by->in_room == NULL)
extract_obj(t_obj);
else
obj_to_room(t_obj,obj->carried_by->in_room);
else
obj_to_char(t_obj,obj->carried_by);
else
if (obj->in_room == NULL) /* destroy it */
extract_obj(t_obj);
else /* to a room */
obj_to_room(t_obj,obj->in_room);
The progress thus far was done mostly with regex then I go over it to translate the scope. I've tried my best to keep as much of the original code as possible. I'd like to not start adding stuff until the entire thing is translated first. Anyways, if you want to contribute the https://bitbucket.org/mudbytes/pyom repository is public now. Try not to comment there as I'm terrible at reading the comments. Just ask Kelvin :D.