tfe-1.0/area/
tfe-1.0/files/
tfe-1.0/logs/
tfe-1.0/logs/immortal/
tfe-1.0/logs/mob/
tfe-1.0/logs/object/
tfe-1.0/logs/player/
tfe-1.0/logs/room/
tfe-1.0/notes/clans/
tfe-1.0/player/
tfe-1.0/prev/
tfe-1.0/prev/area/
tfe-1.0/prev/player/
tfe-1.0/prev/rooms/
tfe-1.0/rooms/
tfe-1.0/src-gc/
tfe-1.0/src-msvc/
tfe-1.0/src-unix/
tfe-1.0/www/
tfe-1.0/www/html/
#include "define.h"
#include "struct.h"


bool is_worn_armor       ( obj_data *obj );


bool is_worn_armor( obj_data* obj )
{
  switch( obj->position ) {
    case WEAR_BODY :
    case WEAR_HEAD :  
    case WEAR_LEGS :
    case WEAR_ARMS :
    case WEAR_SHIELD :
    case WEAR_ABOUT : 
    case WEAR_WAIST :
      return TRUE;
    }

  return FALSE;
}


int armor_class( obj_data* obj )
{ 
  int armor;

  armor = obj->value[1]*(5-obj->rust)/5+obj->value[0];

  return armor;
}