scroll of identify fix (trunk only)

My recent patch included a typo in a pline() call which broke compile,
and much worse, was accessing scroll of identify after using it up.  Cache
scroll->otyp, scroll->blessed, and scroll->cursed instead of re-re-ordering
the identify scroll/spell code.
This commit is contained in:
nethack.rankin
2006-02-19 05:47:57 +00:00
parent ff553c6995
commit e6ba74027d
2 changed files with 71 additions and 72 deletions

View File

@@ -1535,7 +1535,7 @@ boolean learning_id; /* true if we just read unknown identify scroll */
if (not_fully_identified(obj)) ++unid_cnt, the_obj = obj;
if (!unid_cnt) {
You("have already identified all %sof your possessions."
You("have already identified all %sof your possessions.",
learning_id ? "the rest " : "");
} else if (!id_limit) {
/* identify everything */