… | |
… | |
1314 | if (sign->sound) |
1314 | if (sign->sound) |
1315 | ns->play_sound (sign->sound); |
1315 | ns->play_sound (sign->sound); |
1316 | else if (autoapply) |
1316 | else if (autoapply) |
1317 | ns->play_sound (sound_find ("msg_voice")); |
1317 | ns->play_sound (sound_find ("msg_voice")); |
1318 | |
1318 | |
1319 | if (ns->can_msg) |
|
|
1320 | op->contr->infobox (MSG_CHANNEL ("examine"), format ("T<%s>\n\n%s", &sign->name, &sign->msg)); |
1319 | op->contr->infobox (MSG_CHANNEL ("examine"), format ("T<%s>\n\n%s", &sign->name, &sign->msg)); |
1321 | else |
|
|
1322 | { |
|
|
1323 | readable_message_type *msgType = get_readable_message_type (sign); |
|
|
1324 | const char *somemsg = format ("%u %s", autoapply ? 1 : 0, &sign->msg); |
|
|
1325 | draw_ext_info (NDI_UNIQUE | NDI_NAVY, 0, op, msgType->message_type, msgType->message_subtype, somemsg, &sign->msg); |
|
|
1326 | } |
|
|
1327 | } |
1320 | } |
1328 | } |
1321 | } |
1329 | |
1322 | |
1330 | static void |
1323 | static void |
1331 | move_apply_hole (object *trap, object *victim) |
1324 | move_apply_hole (object *trap, object *victim) |
… | |
… | |
1635 | |
1628 | |
1636 | readable_message_type *msgType = get_readable_message_type (tmp); |
1629 | readable_message_type *msgType = get_readable_message_type (tmp); |
1637 | |
1630 | |
1638 | if (player *pl = op->contr) |
1631 | if (player *pl = op->contr) |
1639 | if (client *ns = pl->ns) |
1632 | if (client *ns = pl->ns) |
1640 | if (ns->can_msg) |
|
|
1641 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1633 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1642 | else |
|
|
1643 | draw_ext_info_format (NDI_UNIQUE | NDI_NAVY, 0, op, |
|
|
1644 | msgType->message_type, msgType->message_subtype, |
|
|
1645 | "You open the %s and start reading.\n%s", (char *)"%s\n%s", |
|
|
1646 | long_desc (tmp, op), &tmp->msg); |
|
|
1647 | |
1634 | |
1648 | /* gain xp from reading */ |
1635 | /* gain xp from reading */ |
1649 | if (!QUERY_FLAG (tmp, FLAG_NO_SKILL_IDENT)) |
1636 | if (!QUERY_FLAG (tmp, FLAG_NO_SKILL_IDENT)) |
1650 | { /* only if not read before */ |
1637 | { /* only if not read before */ |
1651 | int exp_gain = calc_skill_exp (op, tmp, skill_ob); |
1638 | int exp_gain = calc_skill_exp (op, tmp, skill_ob); |