toad.c

teeny/mud/toad.c · 484 B

From the archive TeenyMUD-1.3.tar.gz

Download the archive   « Back to the archive contents

void
autotoadcheck(player)
  int		player;
{
  char 	       *desc;
  register int  i;
  register int  total = 0;

  /* Does the player have a desc? */

  if (get_str_elt(player, DESC, &desc) == -1)
    goto autotoadbomb;
  if (desc != NULL)
    return;

  /* Does the player own any property? (@stat > 1) */

  for (i = 0; i < total_objects; i++)
  {
    if (main_index[i] == NULL)
      continue;
    if (DSC_OWNER(main_index[i]) == player)
      total++;
  } 

} /* autotoadcheck */

Site Stats

Snippets: 1791
Codebases: 571