body.c
skylib_mudos_v1/mudlib/std/living/body.c · 686 B
From the archive skylib_mudos_v1.tar.gz
Download the archive « Back to the archive contents
/**
* This contains all the code that deals with bodyparts etc. of creatures.
* @author Sandoz, 2002.
*/
/**
* This method returns a mapping of areas that this creature has in the
* form of ([ area_name : ({ bodypart1, bodypart2 }) ]).
* @return a mapping of attackable body areas
*/
mapping query_attackable_areas() {
string my_race;
// When we're going to have code to support bodyparts that are cut off,
// etc., then this should also be made to remove the missing bits from
// the mapping.
if( my_race = TO->query_race_ob() )
return my_race->query_attackable_areas();
error("Invalid guild object set.\n");
} /* query_attackable_areas() */