body.c

skylib_fluffos_v3/mudlib/std/living/body.c · 685 B

From the archive skylib_fluffos_v3.zip

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 race object set.\n");

} /* query_attackable_areas() */

Site Stats

Snippets: 1791
Codebases: 571