object_type *o_ptr;
s32b x;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
char out_val[160];
int maxwid = 75;
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(show_weights)
{
/* Only show the weight of an individual item */
- int wgt = o_ptr->weight;
+ WEIGHT wgt = o_ptr->weight;
#ifdef JP
sprintf(out_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt));
put_str(out_val, i+6, 67);
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 */
object_type *o_ptr;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
char out_val[160];
cptr q, s;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
/* Prepare a prompt */
s = _("欲しい物がないですねえ。", "You have nothing that I want.");
}
- if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT))) return;
-
- /* Get the item (in the pack) */
- if (item >= 0)
- {
- o_ptr = &inventory[item];
- }
-
- /* Get the item (on the floor) */
- else
- {
- o_ptr = &o_list[0 - item];
- }
-
+ o_ptr = choose_object(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT));
+ if (!o_ptr) return;
/* 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;
}
-
/* Assume one item */
amt = 1;
/* 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;
COMMAND_CODE item;
object_type *o_ptr;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
char out_val[160];
/* Empty? */
int i;
COMMAND_CODE item;
object_type *o_ptr;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
char out_val[160];
/* Empty? */
*/
void do_cmd_store(void)
{
- int which;
- int maintain_num;
- int i;
- cave_type *c_ptr;
- bool need_redraw_store_inv; /* To redraw missiles damage and prices in store */
- int w, h;
+ int which;
+ int maintain_num;
+ int i;
+ cave_type *c_ptr;
+ bool need_redraw_store_inv; /* To redraw missiles damage and prices in store */
+ TERM_LEN w, h;
- /* Get term size */
+ if(p_ptr->wild_mode) return;
Term_get_size(&w, &h);
/* Calculate stocks per 1 page */
town[p_ptr->town_num].store[which].last_visit = turn;
}
- /* Forget the lite */
forget_lite();
-
- /* Forget the view */
forget_view();
-
/* Hack -- Character is in "icky" mode */
character_icky = TRUE;
-
- /* No command argument */
+ /* command reset */
command_arg = 0;
-
- /* No repeated command */
command_rep = 0;
-
- /* No automatic command */
command_new = 0;
/* Do not expand macros */
st_ptr = &town[p_ptr->town_num].store[cur_store_num];
ot_ptr = &owners[cur_store_num][st_ptr->owner];
-
/* Start at the beginning */
store_top = 0;
play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_BUILD);
- /* Display the store */
display_store();
/* Do not leave */
/* 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 */
object_type forge;
object_type *q_ptr;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
/* Give a message */
msg_print(_("ザックからアイテムがあふれてしまった!", "Your pack overflows!"));
*/
void store_init(int town_num, int store_num)
{
- int k;
-
+ int k;
cur_store_num = store_num;
/* Activate that store */