… | |
… | |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | |
20 | |
21 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
22 | */ |
22 | */ |
23 | |
23 | |
24 | |
24 | |
25 | /* This file contains code relevant to the BOOKS hack -- designed |
25 | /* This file contains code relevant to the BOOKS hack -- designed |
26 | * to allow randomly occuring messages in non-magical texts. |
26 | * to allow randomly occuring messages in non-magical texts. |
… | |
… | |
1611 | archetype *at; |
1611 | archetype *at; |
1612 | |
1612 | |
1613 | /* preamble */ |
1613 | /* preamble */ |
1614 | sprintf (retbuf, "Herein is described a project using %s: \n", formula->skill ? &formula->skill : "an unknown skill"); |
1614 | sprintf (retbuf, "Herein is described a project using %s: \n", formula->skill ? &formula->skill : "an unknown skill"); |
1615 | |
1615 | |
1616 | if ((at = find_archetype (op_name)) != (archetype *) NULL) |
1616 | if ((at = archetype::find (op_name)) != (archetype *) NULL) |
1617 | op_name = at->clone.name; |
1617 | op_name = at->clone.name; |
1618 | else |
1618 | else |
1619 | LOG (llevError, "formula_msg() can't find arch %s for formula.\n", op_name); |
1619 | LOG (llevError, "formula_msg() can't find arch %s for formula.\n", op_name); |
1620 | |
1620 | |
1621 | /* item name */ |
1621 | /* item name */ |
… | |
… | |
1650 | if (formula->ingred != NULL) |
1650 | if (formula->ingred != NULL) |
1651 | { |
1651 | { |
1652 | linked_char *next; |
1652 | linked_char *next; |
1653 | archetype *at; |
1653 | archetype *at; |
1654 | |
1654 | |
1655 | at = find_archetype (formula->cauldron); |
1655 | at = archetype::find (formula->cauldron); |
1656 | |
1656 | |
1657 | sprintf (retbuf + strlen (retbuf), |
1657 | sprintf (retbuf + strlen (retbuf), |
1658 | " may be made at %s using the following ingredients:\n", at ? query_name (&at->clone) : "an unknown place"); |
1658 | " may be made at %s using the following ingredients:\n", at ? query_name (&at->clone) : "an unknown place"); |
1659 | |
1659 | |
1660 | for (next = formula->ingred; next != NULL; next = next->next) |
1660 | for (next = formula->ingred; next != NULL; next = next->next) |