From faa6d08c428ad8280f84707fa8d4586440b98631 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 22 Sep 2007 09:21:32 +0000 Subject: Added additional optional parameter to item_def::name(), ignore_flags, which will cause the name to be constructed as if those item flags had been unset. Give an auxiliary cause of death for a stat going below 1. (Death by stat loss is already pretty rare, and death by stat loss with confusion as to what caused the stat loss must be *really* rare, but still, if you were confused about what caused the stat loss that lead to death, that'd be pretty frustrating) ouch() is now called from within modify_stat() and lose_stat() right after the stat is lowered, rather than when the stat is updated on the screen. This incidentally fixes the minor annoyance of saying "no" to stat loss death in wizard mode, only to be asked if you want to die every time the screen is updated until you fix having a non-positive stat. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2179 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/delay.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/delay.cc') diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index b84c8107ac..845c0bd7f0 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -746,15 +746,15 @@ static void armour_wear_effects(const int item_slot) break; case SPARM_STRENGTH: - modify_stat(STAT_STRENGTH, 3, false); + modify_stat(STAT_STRENGTH, 3, false, arm); break; case SPARM_DEXTERITY: - modify_stat(STAT_DEXTERITY, 3, false); + modify_stat(STAT_DEXTERITY, 3, false, arm); break; case SPARM_INTELLIGENCE: - modify_stat(STAT_INTELLIGENCE, 3, false); + modify_stat(STAT_INTELLIGENCE, 3, false, arm); break; case SPARM_PONDEROUSNESS: -- cgit v1.2.3-54-g00ecf