From 697b8b533a72db128661cf1abf78ac48867c6b91 Mon Sep 17 00:00:00 2001 From: iks Date: Sat, 9 Feb 2013 03:16:38 +0000 Subject: [PATCH] Apply auto-destroy to items from which weaponsmith takes essences out. --- src/object2.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/object2.c b/src/object2.c index 298342014..94aeec183 100644 --- a/src/object2.c +++ b/src/object2.c @@ -7606,19 +7606,12 @@ static void drain_essence(void) } if (!observe) { -#ifdef JP - msg_print("¥¨¥Ã¥»¥ó¥¹¤ÏÃê½Ð¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£"); -#else - msg_print("You were not able to extract any essence."); -#endif + msg_print(_("¥¨¥Ã¥»¥ó¥¹¤ÏÃê½Ð¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£", "You were not able to extract any essence.")); } else { -#ifdef JP - msg_print("Ãê½Ð¤·¤¿¥¨¥Ã¥»¥ó¥¹:"); -#else - msg_print("Extracted essences:"); -#endif + msg_print(_("Ãê½Ð¤·¤¿¥¨¥Ã¥»¥ó¥¹:", "Extracted essences:")); + for (i = 0; essence_name[i]; i++) { if (!essence_name[i][0]) continue; @@ -7627,10 +7620,13 @@ static void drain_essence(void) p_ptr->magic_num1[i] += drain_value[i]; p_ptr->magic_num1[i] = MIN(20000, p_ptr->magic_num1[i]); msg_print(NULL); - msg_format("%s...%d", essence_name[i], drain_value[i]); + msg_format("%s...%d%s", essence_name[i], drain_value[i], _("¡£", ". ")); } } + /* Apply autodestroy/inscription to the drained item */ + autopick_alter_item(item, TRUE); + /* Combine the pack */ p_ptr->notice |= (PN_COMBINE | PN_REORDER); -- 2.11.0