diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-02 13:42:47 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-02 13:42:47 -0400 |
commit | 4bbc29f47b2cce0cc308b0856e8936941f6cb290 (patch) | |
tree | 35d2fa41c03c248dab7c673f7edede9319433300 /crawl-ref/source/spl-goditem.cc | |
parent | 7a836a13e1b6226ab600538932f7a3de3568c7ac (diff) | |
download | crawl-ref-4bbc29f47b2cce0cc308b0856e8936941f6cb290.tar.gz crawl-ref-4bbc29f47b2cce0cc308b0856e8936941f6cb290.zip |
Remove an unused argument from identify().
Diffstat (limited to 'crawl-ref/source/spl-goditem.cc')
-rw-r--r-- | crawl-ref/source/spl-goditem.cc | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/crawl-ref/source/spl-goditem.cc b/crawl-ref/source/spl-goditem.cc index 304f6af5f6..52dae47dc4 100644 --- a/crawl-ref/source/spl-goditem.cc +++ b/crawl-ref/source/spl-goditem.cc @@ -45,13 +45,13 @@ #include "traps.h" #include "view.h" -int identify(int power, int item_slot, bool alreadyknown, string *pre_msg) +int identify(int item_slot, bool alreadyknown, string *pre_msg) { int id_used = 1; int identified = 0; // Scrolls of identify *may* produce "extra" identifications. - if (power == -1 && one_chance_in(5)) + if (one_chance_in(5)) id_used += (coinflip()? 1 : 2); do @@ -108,21 +108,6 @@ int identify(int power, int item_slot, bool alreadyknown, string *pre_msg) if (is_deck(item) && !top_card_is_known(item)) deck_identify_first(item_slot); - // For scrolls, now id the scroll, unless already known. - if (power == -1 - && get_ident_type(OBJ_SCROLLS, SCR_IDENTIFY) != ID_KNOWN_TYPE) - { - set_ident_type(OBJ_SCROLLS, SCR_IDENTIFY, ID_KNOWN_TYPE); - - const int wpn = you.equip[EQ_WEAPON]; - if (wpn != -1 - && you.inv[wpn].base_type == OBJ_SCROLLS - && you.inv[wpn].sub_type == SCR_IDENTIFY) - { - you.wield_change = true; - } - } - // Output identified item. mprf_nocap("%s", item.name(DESC_INVENTORY_EQUIP).c_str()); if (item_slot == you.equip[EQ_WEAPON]) |