OSDN Git Service

When select weapon at broken weapon repairing service, display its name on screen.
authoriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 9 Feb 2013 04:24:49 +0000 (04:24 +0000)
committeriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 9 Feb 2013 04:24:49 +0000 (04:24 +0000)
src/bldg.c

index 3b73d1a..0952fa5 100644 (file)
@@ -4217,9 +4217,14 @@ static int repair_broken_weapon_aux(int bcost)
        int i, k_idx, tr_idx, dd_bonus, ds_bonus;
        char basenm[MAX_NLEN];
        cptr q, s; /* For get_item prompt */
+       int row = 7;
 
-       prt(_("½¤Éü¤Ë¤ÏºàÎÁ¤È¤Ê¤ë¤â¤¦1¤Ä¤ÎÉð´ï¤¬É¬ÍפǤ¹¡£", "Hand one material weapon to repair a broken weapon."), 4, 2);
-       prt(_("ºàÎÁ¤Ë»ÈÍѤ·¤¿Éð´ï¤Ï¤Ê¤¯¤Ê¤ê¤Þ¤¹¡ª", "The material weapon will disappear after repairing!!"), 5, 2);
+       /* Clear screen */
+       clear_bldg(0, 22);
+
+       /* Notice */
+       prt(_("½¤Éü¤Ë¤ÏºàÎÁ¤È¤Ê¤ë¤â¤¦1¤Ä¤ÎÉð´ï¤¬É¬ÍפǤ¹¡£", "Hand one material weapon to repair a broken weapon."), row, 2);
+       prt(_("ºàÎÁ¤Ë»ÈÍѤ·¤¿Éð´ï¤Ï¤Ê¤¯¤Ê¤ê¤Þ¤¹¡ª", "The material weapon will disappear after repairing!!"), row+1, 2);
 
        /* Get an item */
        q = _("¤É¤ÎÀޤ줿Éð´ï¤ò½¤Éü¤·¤Þ¤¹¤«¡©", "Repair which broken weapon? ");
@@ -4247,6 +4252,10 @@ static int repair_broken_weapon_aux(int bcost)
                return (0);
        }
 
+       /* Display item name */
+       object_desc(basenm, o_ptr, OD_NAME_ONLY);
+       prt(format(_("½¤Éü¤¹¤ëÉð´ï¡¡¡§ %s", "Repairing: %s"), basenm), row+3, 2);
+
        /* Get an item */
        q = _("ºàÎÁ¤È¤Ê¤ëÉð´ï¤Ï¡©", "Which weapon for material? ");
        s = _("ºàÎÁ¤È¤Ê¤ëÉð´ï¤¬¤¢¤ê¤Þ¤»¤ó¡£", "You have no material to repair.");
@@ -4264,6 +4273,10 @@ static int repair_broken_weapon_aux(int bcost)
        /* Get the item (in the pack) */
        mo_ptr = &inventory[mater];
 
+       /* Display item name */
+       object_desc(basenm, mo_ptr, OD_NAME_ONLY);
+       prt(format(_("ºàÎÁ¤È¤¹¤ëÉð´ï¡§ %s", "Material : %s"), basenm), row+4, 2);
+
        /* Get the value of one of the items (except curses) */
        cost = bcost + object_value_real(o_ptr) * 2;