From 679ebce76f05e63cdee291f530247ac738dce313 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 26 Jan 2008 09:29:10 +0000 Subject: [1880145] Fixed poison susceptible monsters resisting curare. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3339 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 0f72ffe469..58c6c760fd 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2764,7 +2764,8 @@ bool safe_to_remove_or_wear(const item_def &item, bool remove) int prop_int = 0; // don't warn when putting on an unknown item - if (item.base_type == OBJ_JEWELLERY && item_ident( item, ISFLAG_KNOW_PLUSES )) + if (item.base_type == OBJ_JEWELLERY + && item_ident( item, ISFLAG_KNOW_PLUSES )) { switch (item.sub_type) { @@ -2794,10 +2795,11 @@ bool safe_to_remove_or_wear(const item_def &item, bool remove) if (remove) { - std::string prompt = item.base_type == OBJ_WEAPONS ? "Unwield" : "Remov"; - prompt += "ing this item could be fatal. "; - prompt += item.base_type == OBJ_WEAPONS ? "Unwield" : "Remove"; - prompt += " anyway? "; + std::string prompt = + item.base_type == OBJ_WEAPONS ? "Unwield" : "Remov"; + prompt += "ing this item could be fatal. "; + prompt += item.base_type == OBJ_WEAPONS ? "Unwield" : "Remove"; + prompt += " anyway? "; if ((prop_str >= you.strength || prop_int >= you.intel || prop_dex >= you.dex) @@ -2808,10 +2810,11 @@ bool safe_to_remove_or_wear(const item_def &item, bool remove) } else // put on { - std::string prompt = item.base_type == OBJ_WEAPONS ? "Wield" : "Wear"; - prompt += "ing this item could be fatal. "; - prompt += item.base_type == OBJ_WEAPONS ? "Wield" : "Put on"; - prompt += " anyway? "; + std::string prompt = + item.base_type == OBJ_WEAPONS ? "Wield" : "Wear"; + prompt += "ing this item could be fatal. "; + prompt += item.base_type == OBJ_WEAPONS ? "Wield" : "Put on"; + prompt += " anyway? "; if ((-prop_str >= you.strength || -prop_int >= you.intel || -prop_dex >= you.dex) @@ -2821,7 +2824,6 @@ bool safe_to_remove_or_wear(const item_def &item, bool remove) } } - return (true); } -- cgit v1.2.3-54-g00ecf