OSDN Git Service

[feature] ソースファイルをC++に対応
[hengbandforosx/hengbandosx.git] / src / cmd-building / cmd-building.c
index a41dbda..f6f1cce 100644 (file)
@@ -130,7 +130,7 @@ static void bldg_process_command(player_type *player_ptr, building_type *bldg, i
                /* Do nothing */
                break;
        case BACT_RESEARCH_ITEM:
-               paid = identify_fully(player_ptr, FALSE, 0);
+               paid = identify_fully(player_ptr, FALSE, TV_NONE);
                break;
        case BACT_TOWN_HISTORY:
                town_history(player_ptr);
@@ -173,11 +173,11 @@ static void bldg_process_command(player_type *player_ptr, building_type *bldg, i
                break;
        case BACT_ENCHANT_WEAPON:
                item_tester_hook = object_allow_enchant_melee_weapon;
-               enchant_item(player_ptr, bcost, 1, 1, 0, 0);
+               enchant_item(player_ptr, bcost, 1, 1, 0, TV_NONE);
                break;
        case BACT_ENCHANT_ARMOR:
                item_tester_hook = object_is_armour;
-               enchant_item(player_ptr, bcost, 0, 0, 1, 0);
+               enchant_item(player_ptr, bcost, 0, 0, 1, TV_NONE);
                break;
        case BACT_RECHARGE:
                building_recharge(player_ptr);
@@ -186,13 +186,13 @@ static void bldg_process_command(player_type *player_ptr, building_type *bldg, i
                building_recharge_all(player_ptr);
                break;
        case BACT_IDENTS:
-               if (!get_check(_("持ち物を全て鑑定してよろしいですか?", "Do you pay for identify all your possession? "))) break;
+               if (!get_check(_("持ち物を全て鑑定してよろしいですか?", "Do you pay to identify all your possession? "))) break;
                identify_pack(player_ptr);
                msg_print(_(" 持ち物全てが鑑定されました。", "Your possessions have been identified."));
                paid = TRUE;
                break;
        case BACT_IDENT_ONE:
-               paid = ident_spell(player_ptr, FALSE, 0);
+               paid = ident_spell(player_ptr, FALSE, TV_NONE);
                break;
        case BACT_LEARN:
                do_cmd_study(player_ptr);
@@ -205,7 +205,7 @@ static void bldg_process_command(player_type *player_ptr, building_type *bldg, i
                break;
        case BACT_ENCHANT_ARROWS:
                item_tester_hook = item_tester_hook_ammo;
-               enchant_item(player_ptr, bcost, 1, 1, 0, 0);
+               enchant_item(player_ptr, bcost, 1, 1, 0, TV_NONE);
                break;
        case BACT_ENCHANT_BOW:
                enchant_item(player_ptr, bcost, 1, 1, 0, TV_BOW);
@@ -358,7 +358,7 @@ void do_cmd_building(player_type *player_ptr)
 
        forget_lite(player_ptr->current_floor_ptr);
        forget_view(player_ptr->current_floor_ptr);
-       current_world_ptr->character_icky++;
+       current_world_ptr->character_icky_depth++;
 
        command_arg = 0;
        command_rep = 0;
@@ -408,10 +408,10 @@ void do_cmd_building(player_type *player_ptr)
 
        if (reinit_wilderness) player_ptr->leaving = TRUE;
 
-       current_world_ptr->character_icky--;
+       current_world_ptr->character_icky_depth--;
        term_clear();
 
        player_ptr->update |= (PU_VIEW | PU_MONSTERS | PU_BONUS | PU_LITE | PU_MON_LITE);
        player_ptr->redraw |= (PR_BASIC | PR_EXTRA | PR_EQUIPPY | PR_MAP);
-       player_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
+       player_ptr->window_flags |= (PW_OVERHEAD | PW_DUNGEON);
 }