… | |
… | |
573 | |
573 | |
574 | dynbuf_text buf; |
574 | dynbuf_text buf; |
575 | |
575 | |
576 | if (player *pl = op->contr) |
576 | if (player *pl = op->contr) |
577 | if (object *race = archetype::find (op->race)) |
577 | if (object *race = archetype::find (op->race)) |
578 | buf << "You are a " << (pl->gender ? "female" : "male") << " " << &race->name << ".\n"; |
578 | buf << " - You are a G<male|female> " << &race->name << ".\n"; |
579 | |
579 | |
580 | if (object *god = find_god (determine_god (op))) |
580 | if (object *god = find_god (determine_god (op))) |
581 | buf << "You worship " << &god->name << ".\n"; |
581 | buf << " - You worship " << &god->name << ".\n"; |
582 | else |
582 | else |
583 | buf << "You worship no god.\n"; |
583 | buf << " - You worship no god.\n"; |
584 | |
584 | |
585 | object *tmp = present_arch_in_ob (at, op); |
585 | object *tmp = present_arch_in_ob (at, op); |
586 | |
586 | |
587 | if (*cp == '\0' && tmp == NULL) |
587 | if (*cp == '\0' && !tmp) |
588 | buf << "You feel very mundane. "; |
588 | buf << " - You feel very mundane. "; |
589 | else |
589 | else |
590 | { |
590 | { |
591 | buf << "You have: " << cp << ".\n"; |
591 | buf << " - You have: " << cp << ".\n"; |
592 | |
592 | |
593 | if (tmp) |
593 | if (tmp) |
594 | for (int i = 0; i < NUM_STATS; i++) |
594 | for (int i = 0; i < NUM_STATS; i++) |
595 | if (tmp->stats.stat (i) < 0) |
595 | if (tmp->stats.stat (i) < 0) |
596 | buf.printf ("Your %s is depleted by %d.\n", statname[i], -tmp->stats.stat (i)); |
596 | buf.printf (" - Your %s is depleted by %d.\n", statname[i], -tmp->stats.stat (i)); |
597 | } |
597 | } |
598 | |
598 | |
599 | if (is_dragon_pl (op)) |
599 | if (is_dragon_pl (op)) |
600 | /* now grab the 'dragon_ability'-force from the player's inventory */ |
600 | /* now grab the 'dragon_ability'-force from the player's inventory */ |
601 | for (tmp = op->inv; tmp; tmp = tmp->below) |
601 | for (tmp = op->inv; tmp; tmp = tmp->below) |
602 | { |
602 | { |
603 | if (tmp->type == FORCE && tmp->arch->archname == shstr_dragon_ability_force) |
603 | if (tmp->type == FORCE && tmp->arch->archname == shstr_dragon_ability_force) |
604 | { |
604 | { |
605 | if (tmp->stats.exp == 0) |
605 | if (tmp->stats.exp == 0) |
606 | buf << "Your metabolism isn't focused on anything.\n"; |
606 | buf << " - Your metabolism isn't focused on anything.\n"; |
607 | else |
607 | else |
608 | buf << "Your metabolism is focused on " << change_resist_msg[tmp->stats.exp] << ".\n"; |
608 | buf << " - Your metabolism is focused on " << change_resist_msg[tmp->stats.exp] << ".\n"; |
609 | |
609 | |
610 | break; |
610 | break; |
611 | } |
611 | } |
612 | } |
612 | } |
613 | |
613 | |
… | |
… | |
1477 | { |
1477 | { |
1478 | identify (tmp); |
1478 | identify (tmp); |
1479 | |
1479 | |
1480 | if (op->type == PLAYER) |
1480 | if (op->type == PLAYER) |
1481 | { |
1481 | { |
1482 | buf.printf ("You identified: %s.\n\n", long_desc (tmp, op)); |
1482 | buf.printf ("You identified: %s.\r", long_desc (tmp, op)); |
1483 | |
1483 | |
1484 | if (tmp->msg) |
1484 | if (tmp->msg) |
1485 | buf << "The item has a story:\n\n" << tmp->msg << "\n\n"; |
1485 | buf << "The item has a story:\r" << tmp->msg << "\n\n"; |
1486 | } |
1486 | } |
1487 | |
1487 | |
1488 | num_ident--; |
1488 | num_ident--; |
1489 | if (!num_ident) |
1489 | if (!num_ident) |
1490 | break; |
1490 | break; |
… | |
… | |
1502 | { |
1502 | { |
1503 | identify (tmp); |
1503 | identify (tmp); |
1504 | |
1504 | |
1505 | if (object *pl = tmp->visible_to ()) |
1505 | if (object *pl = tmp->visible_to ()) |
1506 | { |
1506 | { |
1507 | buf.printf ("On the ground you identified: %s.\n\n", long_desc (tmp, op)); |
1507 | buf.printf ("On the ground you identified: %s.\r", long_desc (tmp, op)); |
1508 | |
1508 | |
1509 | if (tmp->msg) |
1509 | if (tmp->msg) |
1510 | buf << "The item has a story:\n\n" << tmp->msg << "\n\n"; |
1510 | buf << "The item has a story:\r" << tmp->msg << "\n\n"; |
1511 | } |
1511 | } |
1512 | |
1512 | |
1513 | num_ident--; |
1513 | num_ident--; |
1514 | if (!num_ident) |
1514 | if (!num_ident) |
1515 | break; |
1515 | break; |