Home | History | Annotate | Download | only in hack

Lines Matching refs:t1

330 	struct toptenentry *t0, *t1, *tprev;
375 t1 = tt_head = newttentry();
380 t1->date, &t1->uid,
381 &t1->level, &t1->maxlvl,
382 &t1->hp, &t1->maxhp, &t1->points,
383 &t1->plchar, &t1->sex, t1->name, t1->death) != 11
384 || t1->points < POINTSMIN)
385 t1->points = 0;
386 if (rank0 < 0 && t1->points < t0->points) {
392 t0->tt_next = t1;
396 tprev = t1;
397 if (t1->points == 0)
401 t1->uid == t0->uid &&
403 strncmp(t1->name, t0->name, NAMSZ) == 0 &&
405 t1->plchar == t0->plchar && --occ_cnt <= 0) {
410 t1->points);
418 t1 = t1->tt_next = newttentry();
422 t1->points = 0;
447 t1 = tt_head;
448 for (rank = 1; t1->points != 0; rank++, t1 = t1->tt_next) {
451 t1->date, t1->uid,
452 t1->level, t1->maxlvl,
453 t1->hp, t1->maxhp, t1->points,
454 t1->plchar, t1->sex, t1->name, t1->death);
461 t1->uid != t0->uid))
463 strncmp(t1->name, t0->name, NAMSZ)))
471 (void) outentry(rank, t1, 0);
473 (void) outentry(rank, t1, 1);
476 int t1lth = outentry(rank, t1, t0lth);
506 outentry(int rank, struct toptenentry *t1, int so)
522 t1->points, t1->name);
525 if (t1->plchar == 'X')
528 Snprintf(linebuf+pos, sizeof(linebuf)-pos, "-%c ", t1->plchar);
531 if (!strncmp("escaped", t1->death, 7)) {
532 if (!strcmp(" (with amulet)", t1->death + 7))
538 t1->maxlvl);
541 if (!strncmp(t1->death, "quit", 4)) {
543 if (t1->maxhp < 3 * t1->hp && t1->maxlvl < 4)
549 } else if (!strcmp(t1->death, "choked")) {
552 (t1->sex == 'F') ? "her" : "his");
553 } else if (!strncmp(t1->death, "starv", 5)) {
565 (gotkilled || starv) ? "" : " dungeon", t1->level);
568 if (t1->maxlvl != t1->level)
570 " [max %d]", t1->maxlvl);
573 if (quit && t1->death[4])
575 "%s", t1->death + 4);
580 (!strncmp(t1->death, "trick", 5) || !strncmp(t1->death, "the ", 4))
582 strchr(vowels, *t1->death) ? "an " : "a ",
583 t1->death);
588 if (t1->maxhp) {
592 strlcpy(hpbuf, (t1->hp > 0) ? itoa(t1->hp) : "-", sizeof(hpbuf));
600 " [%d]", t1->maxhp);
688 struct toptenentry *t1, *t2;
737 t1 = tt_head = newttentry();
740 t1->date, &t1->uid,
741 &t1->level, &t1->maxlvl,
742 &t1->hp, &t1->maxhp, &t1->points,
743 &t1->plchar, &t1->sex, t1->name, t1->death) != 11)
744 t1->points = 0;
745 if (t1->points == 0)
748 if (!playerct && t1->uid == uid)
754 strncmp(t1->name, players[i], NAMSZ) == 0 ||
756 players[i][1] == t1->plchar &&
761 t1 = t1->tt_next = newttentry();
781 t1 = tt_head;
782 for (rank = 1; t1->points != 0; rank++, t1 = t2) {
783 t2 = t1->tt_next;
785 if (!playerct && t1->uid == uid)
791 strncmp(t1->name, players[i], NAMSZ) == 0 ||
793 players[i][1] == t1->plchar &&
798 (void) outentry(rank, t1, 0);
800 total_score += t1->points;
802 totchars[totcharct++] = t1->plchar;
807 free(t1);