From: mogami Date: Fri, 24 Oct 2003 05:12:47 +0000 (+0000) Subject: 自動破壊の自動登録で、アーティファクトとわかっているアイテムまでも登録してしまっていたのを修正。 X-Git-Tag: v2.1.2~960 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c85f763a3cbadf5a21e585733949744dbf0b1024;p=hengband%2Fhengband.git 自動破壊の自動登録で、アーティファクトとわかっているアイテムまでも登録してしまっていたのを修正。 --- 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) {