From c85f763a3cbadf5a21e585733949744dbf0b1024 Mon Sep 17 00:00:00 2001 From: mogami Date: Fri, 24 Oct 2003 05:12:47 +0000 Subject: [PATCH] =?utf8?q?=E8=87=AA=E5=8B=95=E7=A0=B4=E5=A3=8A=E3=81=AE?= =?utf8?q?=E8=87=AA=E5=8B=95=E7=99=BB=E9=8C=B2=E3=81=A7=E3=80=81=E3=82=A2?= =?utf8?q?=E3=83=BC=E3=83=86=E3=82=A3=E3=83=95=E3=82=A1=E3=82=AF=E3=83=88?= =?utf8?q?=E3=81=A8=E3=82=8F=E3=81=8B=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B?= =?utf8?q?=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E3=81=BE=E3=81=A7=E3=82=82?= =?utf8?q?=E7=99=BB=E9=8C=B2=E3=81=97=E3=81=A6=E3=81=97=E3=81=BE=E3=81=A3?= =?utf8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/autopick.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/autopick.c b/src/autopick.c index 9a358c245..559102bb8 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -1854,6 +1854,28 @@ bool add_auto_register(object_type *o_ptr) return FALSE; } + /* Known to be an artifact? */ + if ((object_known_p(o_ptr) && + (artifact_p(o_ptr) || o_ptr->art_name)) || + ((o_ptr->ident & IDENT_SENSE) && + (o_ptr->feeling == FEEL_TERRIBLE || o_ptr->feeling == FEEL_SPECIAL))) + { + char o_name[MAX_NLEN]; + + /* Describe the object (with {terrible/special}) */ + object_desc(o_name, o_ptr, TRUE, 3); + + /* Message */ +#ifdef JP + msg_format("%s¤ÏÇ˲õÉÔǽ¤À¡£", o_name); +#else + msg_format("You cannot auto-destroy %s.", o_name); +#endif + + /* Done */ + return FALSE; + } + if (!p_ptr->autopick_autoregister) { -- 2.11.0