From 64b6d5a88a38f6ed50b835b27b2c9f98ed15f9a4 Mon Sep 17 00:00:00 2001 From: mogami Date: Mon, 24 Nov 2003 10:02:32 +0000 Subject: [PATCH] =?utf8?q?=E8=A3=85=E5=82=99=E5=93=81=E3=81=AE=E8=AA=AC?= =?utf8?q?=E6=98=8E=E6=96=87=E3=81=8C*=E9=91=91=E5=AE=9A*=E6=99=82?= =?utf8?q?=E3=81=AB=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=82=8B=E3=81=8C?= =?utf8?q?=E3=80=81=20=E5=89=A3=E8=A1=93=E5=AE=B6=E3=81=AE=E3=80=8C?= =?utf8?q?=E5=88=80=E5=8C=A0=E3=81=AE=E7=9B=AE=E5=88=A9=E3=81=8D=E3=80=8D?= =?utf8?q?=E3=81=A7=E5=B8=B8=E3=81=AB*=E9=91=91=E5=AE=9A*=E3=81=99?= =?utf8?q?=E3=82=8B=E3=83=AC=E3=83=99=E3=83=AB=E3=81=AB=E9=81=94=E3=81=A3?= =?utf8?q?=E3=81=97=E3=81=9F=E5=BE=8C=E3=80=81=20=E3=81=84=E3=81=A1?= =?utf8?q?=E3=81=84=E3=81=A1=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=A6?= =?utf8?q?=E9=9D=9E=E5=B8=B8=E3=81=AB=E3=82=B9=E3=83=88=E3=83=AC=E3=82=B9?= =?utf8?q?=E3=81=8C=E6=BA=9C=E3=81=BE=E3=82=8B=E7=8A=B6=E6=85=8B=E3=81=A0?= =?utf8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E3=80=81=20=E8=AA=AC?= =?utf8?q?=E6=98=8E=E6=96=87=E3=81=97=E3=81=8B=E7=84=A1=E3=81=84=20non-?= =?utf8?q?=E3=82=A8=E3=82=B4=20non-=E2=98=85=20=E3=81=AF*=E9=91=91?= =?utf8?q?=E5=AE=9A*=E5=BE=8C=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=82=92=E3=81=97?= =?utf8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit また、普通の呪いフラグと「乗馬中でも普通に使える」フラグも、 同様に重要で無い情報としていちいち表示しないようにした。 hengband yahoogroups(en) で報告された問題点の修正なので、 1.4.5 & 1.6.0 へのマージ候補。 --- src/object1.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/object1.c b/src/object1.c index 0c8884ccc..ced944f58 100644 --- a/src/object1.c +++ b/src/object1.c @@ -2357,6 +2357,8 @@ bool screen_object(object_type *o_ptr, bool real) char o_name[MAX_NLEN]; int wid, hgt; + int trivial_info = 0; + /* Extract the flags */ object_flags(o_ptr, flgs); @@ -2371,6 +2373,12 @@ bool screen_object(object_type *o_ptr, bool real) { info[i] = &temp[j]; i++;} } + if (TV_EQUIP_BEGIN <= o_ptr->tval && o_ptr->tval <= TV_EQUIP_END) + { + /* Descriptions of a basic equipment is just a flavor */ + trivial_info = i; + } + /* Mega-Hack -- describe activation */ if (have_flag(flgs, TR_ACTIVATE)) { @@ -2626,12 +2634,15 @@ info[i++] = " info[i++] = "It is made for use while riding."; #endif else + { #ifdef JP -info[i++] = "¤½¤ì¤Ï¾èÇÏÃæ¤Ç¤â»È¤¤¤ä¤¹¤¤¡£"; + info[i++] = "¤½¤ì¤Ï¾èÇÏÃæ¤Ç¤â»È¤¤¤ä¤¹¤¤¡£"; #else info[i++] = "It is suitable for use while riding."; #endif - + /* This information is not important enough */ + trivial_info++; + } } if (have_flag(flgs, TR_STR)) { @@ -3583,6 +3594,11 @@ info[i++] = " info[i++] = "It is cursed."; #endif + /* + * It's a trivial infomation since there is + * fake inscription {cursed} + */ + trivial_info++; } } @@ -3839,8 +3855,8 @@ info[i++] = " } } - /* No special effects */ - if (!i) return (FALSE); + /* No relevant informations */ + if (i <= trivial_info) return (FALSE); /* Save the screen */ screen_save(); -- 2.11.0