Attached Files |
0001-Fix-monster-corrosion-message-printing.patch [^] (1,127 bytes) 2010-05-07 20:26 [Show Content] [Hide Content]From f47d7526a70a72cc95fadda050a2946bc1f121d8 Mon Sep 17 00:00:00 2001
From: William Parker <thewparker@gmail.com>
Date: Fri, 7 May 2010 11:22:52 -0700
Subject: [PATCH 1/1] Fix monster corrosion message printing
---
crawl-ref/source/mon-stuff.cc | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/crawl-ref/source/mon-stuff.cc b/crawl-ref/source/mon-stuff.cc
index e6754ac..6734fe5 100644
--- a/crawl-ref/source/mon-stuff.cc
+++ b/crawl-ref/source/mon-stuff.cc
@@ -2627,9 +2627,12 @@ void corrode_monster(monsters *monster)
{
thing_chosen.plus--;
monster->ac--;
- mprf("The acid corrodes %s's %s!",
- monster->name(DESC_NOCAP_THE).c_str(),
- thing_chosen.name(DESC_PLAIN).c_str());
+ if(you.can_see(monster))
+ {
+ mprf("The acid corrodes %s's %s!",
+ monster->name(DESC_NOCAP_THE).c_str(),
+ thing_chosen.name(DESC_PLAIN).c_str());
+ }
}
}
}
--
1.7.1
|