cur_col = 3;
if (show_item_graph)
{
- byte a = object_attr(o_ptr);
- char c = object_char(o_ptr);
+ TERM_COLOR a = object_attr(o_ptr);
+ SYMBOL_CODE c = object_char(o_ptr);
Term_queue_bigchar(cur_col, i + 6, a, c, 0, 0);
if (use_bigtile) cur_col++;
if (cur_store_num == STORE_HOME)
{
/* Put the owner name */
-#ifdef JP
- put_str("我が家", 3, 31);
-#else
- put_str("Your Home", 3, 30);
-#endif
-
+ put_str(_("我が家", "Your Home"), 3, 31);
/* Label the item descriptions */
-#ifdef JP
- put_str("アイテムの一覧", 5, 4);
-#else
- put_str("Item Description", 5, 3);
-#endif
-
+ put_str(_("アイテムの一覧", "Item Description"), 5, 4);
/* If showing weights, show label */
if (show_weights)
{
-#ifdef JP
- put_str("重さ", 5, 72);
-#else
- put_str("Weight", 5, 70);
-#endif
-
+ put_str(_(" 重さ", "Weight"), 5, 70);
}
}
else if (cur_store_num == STORE_MUSEUM)
{
/* Put the owner name */
-#ifdef JP
- put_str("博物館", 3, 31);
-#else
- put_str("Museum", 3, 30);
-#endif
-
+ put_str(_("博物館", "Museum"), 3, 31);
/* Label the item descriptions */
-#ifdef JP
- put_str("アイテムの一覧", 5, 4);
-#else
- put_str("Item Description", 5, 3);
-#endif
-
+ put_str(_("アイテムの一覧", "Item Description"), 5, 4);
/* If showing weights, show label */
if (show_weights)
{
-#ifdef JP
- put_str("重さ", 5, 72);
-#else
- put_str("Weight", 5, 70);
-#endif
-
+ put_str(_(" 重さ", "Weight"), 5, 70);
}
}
prt(buf, 3, 50);
/* Label the item descriptions */
-#ifdef JP
- put_str("商品の一覧", 5, 7);
-#else
- put_str("Item Description", 5, 3);
-#endif
+ put_str(_("商品の一覧", "Item Description"), 5, 5);
/* If showing weights, show label */
if (show_weights)
{
-#ifdef JP
- put_str("重さ", 5, 62);
-#else
- put_str("Weight", 5, 60);
-#endif
-
+ put_str(_(" 重さ", "Weight"), 5, 60);
}
/* Label the asking price (in stores) */
-#ifdef JP
- put_str("価格", 5, 73);
-#else
- put_str("Price", 5, 72);
-#endif
-
+ put_str(_(" 価格", "Price"), 5, 72);
}
/* Display the current gold */
*/
static int get_stock(COMMAND_CODE *com_val, cptr pmt, int i, int j)
{
- char command;
- char out_val[160];
- char lo, hi;
+ char command;
+ char out_val[160];
+ char lo, hi;
/* Get the item index */
if (repeat_pull(com_val))
/* Paranoia */
msg_print(NULL);
-
/* Assume failure */
*com_val = (-1);
/* Clear the prompt */
prt("", 0, 0);
- /* Cancel */
if (command == ESCAPE) return (FALSE);
repeat_push(*com_val);
}
}
- /* Cancel */
if (cancel) return (TRUE);
- /* Update bargaining info */
updatebargain(*price, final_ask, o_ptr->number);
/* Do not cancel */
}
}
- /* Cancel */
if (cancel) return (TRUE);
- /* Update bargaining info */
updatebargain(*price, final_ask, o_ptr->number);
/* Do not cancel */
/* Hack -- Cannot remove cursed items */
if ((item >= INVEN_RARM) && object_is_cursed(o_ptr))
{
-#ifdef JP
- msg_print("ふーむ、どうやらそれは呪われているようだね。");
-#else
- msg_print("Hmmm, it seems to be cursed.");
-#endif
-
-
+ msg_print(_("ふーむ、どうやらそれは呪われているようだね。", "Hmmm, it seems to be cursed."));
return;
}
/* Get the "apparent" value */
dummy = object_value(q_ptr) * q_ptr->number;
- /* Identify it */
identify_item(o_ptr);
q_ptr = &forge;
if (!get_check(format(_("本当に%sを寄贈しますか?", "Really give %s to the Museum? "), o2_name))) return;
- /* Identify it */
identify_item(q_ptr);
q_ptr->ident |= IDENT_MENTAL;
int i;
cave_type *c_ptr;
bool need_redraw_store_inv; /* To redraw missiles damage and prices in store */
- int w, h;
+ TERM_LEN w, h;
- /* Get term size */
+ if(p_ptr->wild_mode) return;
Term_get_size(&w, &h);
/* Calculate stocks per 1 page */
/* Clear */
clear_from(20 + xtra_stock);
-
/* Basic commands */
prt(_(" ESC) 建物から出る", " ESC) Exit from Building."), 21 + xtra_stock, 0);
}
/* 基本的なコマンドの追加表示 */
-
prt(_("i/e) 持ち物/装備の一覧", "i/e) Inventry/Equipment list"), 21 + xtra_stock, 56);
if (rogue_like_commands)
/* Prompt */
prt(_("コマンド:", "You may: "), 20 + xtra_stock, 0);
- /* Get a command */
request_command(TRUE);
/* Process the command */
*/
void store_init(int town_num, int store_num)
{
- int k;
-
+ int k;
cur_store_num = store_num;
/* Activate that store */