… | |
… | |
1602 | } |
1602 | } |
1603 | |
1603 | |
1604 | lev_diff = tmp->level - (skill_ob->level + 5); |
1604 | lev_diff = tmp->level - (skill_ob->level + 5); |
1605 | if (!QUERY_FLAG (op, FLAG_WIZ) && lev_diff > 0) |
1605 | if (!QUERY_FLAG (op, FLAG_WIZ) && lev_diff > 0) |
1606 | { |
1606 | { |
1607 | op->failmsg (lev_diff < 2 ? "This book is just barely beyond your comprehension." |
1607 | op->failmsg (lev_diff < 2 ? "This book is just barely beyond your comprehension." |
1608 | : lev_diff < 3 ? "This book is slightly beyond your comprehension." |
1608 | : lev_diff < 3 ? "This book is slightly beyond your comprehension." |
1609 | : lev_diff < 5 ? "This book is beyond your comprehension." |
1609 | : lev_diff < 5 ? "This book is beyond your comprehension." |
1610 | : lev_diff < 8 ? "This book is quite a bit beyond your comprehension." |
1610 | : lev_diff < 8 ? "This book is quite a bit beyond your comprehension." |
1611 | : lev_diff < 15 ? "This book is way beyond your comprehension." |
1611 | : lev_diff < 15 ? "This book is way beyond your comprehension." |
1612 | : "This book is totally beyond your comprehension."); |
1612 | : "This book is totally beyond your comprehension."); |
… | |
… | |
1616 | readable_message_type *msgType = get_readable_message_type (tmp); |
1616 | readable_message_type *msgType = get_readable_message_type (tmp); |
1617 | |
1617 | |
1618 | if (player *pl = op->contr) |
1618 | if (player *pl = op->contr) |
1619 | if (client *ns = pl->ns) |
1619 | if (client *ns = pl->ns) |
1620 | if (ns->can_msg) |
1620 | if (ns->can_msg) |
1621 | { |
1621 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1622 | dynbuf_text buf; |
|
|
1623 | buf << long_desc (tmp, op) |
|
|
1624 | << "\n\n" |
|
|
1625 | << tmp->msg |
|
|
1626 | << '\0'; |
|
|
1627 | ns->send_msg (NDI_NAVY, msgType->msgtype, buf.linearise ()); |
|
|
1628 | } |
|
|
1629 | else |
1622 | else |
1630 | draw_ext_info_format (NDI_UNIQUE | NDI_NAVY, 0, op, |
1623 | draw_ext_info_format (NDI_UNIQUE | NDI_NAVY, 0, op, |
1631 | msgType->message_type, msgType->message_subtype, |
1624 | msgType->message_type, msgType->message_subtype, |
1632 | "You open the %s and start reading.\n%s", (char *)"%s\n%s", |
1625 | "You open the %s and start reading.\n%s", (char *)"%s\n%s", |
1633 | long_desc (tmp, op), &tmp->msg); |
1626 | long_desc (tmp, op), &tmp->msg); |