OSDN Git Service

既に忘れた何かの理由によって、長い事tabをスペース8文字にする設定で
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 8 Nov 2002 08:42:45 +0000 (08:42 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 8 Nov 2002 08:42:45 +0000 (08:42 +0000)
コードを書いていたが、スペース4文字や2文字の人がいるので、全て
まとめてtabコードに置き変えた。

67 files changed:
src/artifact.c
src/autopick.c
src/avatar.c
src/birth.c
src/bldg.c
src/cave.c
src/chuukei.c
src/cmd1.c
src/cmd2.c
src/cmd3.c
src/cmd4.c
src/cmd5.c
src/cmd6.c
src/defines.h
src/dungeon.c
src/effects.c
src/event.h
src/files.c
src/flavor.c
src/generate.c
src/grid.c
src/hissatsu.c
src/init.h
src/init1.c
src/init2.c
src/load.c
src/maid-x11.c
src/main-dos.c
src/main-gcu.c
src/main-ibm.c
src/main-mac-carbon.c
src/main-mac.c
src/main-win.c
src/main-x11.c
src/main-xaw.c
src/mane.c
src/melee1.c
src/melee2.c
src/mind.c
src/monster1.c
src/monster2.c
src/mspells1.c
src/mspells2.c
src/mspells3.c
src/mutation.c
src/object1.c
src/object2.c
src/racial.c
src/readdib.c
src/rooms.c
src/save.c
src/scores.c
src/spells1.c
src/spells2.c
src/spells3.c
src/store.c
src/streams.c
src/tables.c
src/types.h
src/util.c
src/wild.c
src/wizard1.c
src/wizard2.c
src/xtra1.c
src/xtra2.c
src/z-term.c
src/z-virt.c

index 0e9ad37..0941f98 100644 (file)
@@ -128,18 +128,18 @@ void one_dragon_ele_resistance(object_type *o_ptr)
  */
 void one_low_esp(object_type *o_ptr)
 {
-        switch (randint1(9))
-        {
-        case 1: add_flag(o_ptr->art_flags, TR_ESP_ANIMAL);   break;
-        case 2: add_flag(o_ptr->art_flags, TR_ESP_UNDEAD);   break;
-        case 3: add_flag(o_ptr->art_flags, TR_ESP_DEMON);   break;
-        case 4: add_flag(o_ptr->art_flags, TR_ESP_ORC);   break;
-        case 5: add_flag(o_ptr->art_flags, TR_ESP_TROLL);   break;
-        case 6: add_flag(o_ptr->art_flags, TR_ESP_GIANT);   break;
-        case 7: add_flag(o_ptr->art_flags, TR_ESP_DRAGON);   break;
-        case 8: add_flag(o_ptr->art_flags, TR_ESP_HUMAN);   break;
-        case 9: add_flag(o_ptr->art_flags, TR_ESP_GOOD);   break;
-        }
+       switch (randint1(9))
+       {
+       case 1: add_flag(o_ptr->art_flags, TR_ESP_ANIMAL);   break;
+       case 2: add_flag(o_ptr->art_flags, TR_ESP_UNDEAD);   break;
+       case 3: add_flag(o_ptr->art_flags, TR_ESP_DEMON);   break;
+       case 4: add_flag(o_ptr->art_flags, TR_ESP_ORC);   break;
+       case 5: add_flag(o_ptr->art_flags, TR_ESP_TROLL);   break;
+       case 6: add_flag(o_ptr->art_flags, TR_ESP_GIANT);   break;
+       case 7: add_flag(o_ptr->art_flags, TR_ESP_DRAGON);   break;
+       case 8: add_flag(o_ptr->art_flags, TR_ESP_HUMAN);   break;
+       case 9: add_flag(o_ptr->art_flags, TR_ESP_GOOD);   break;
+       }
 }
 
 
@@ -177,7 +177,7 @@ void one_ability(object_type *o_ptr)
        case 7: add_flag(o_ptr->art_flags, TR_HOLD_LIFE);   break;
        case 8:
        case 9:
-                one_low_esp(o_ptr);
+               one_low_esp(o_ptr);
                break;
        }
 }
index c49e884..a27b21e 100644 (file)
@@ -264,44 +264,44 @@ cptr autopick_line_from_entry(autopick_type *entry)
        else if (IS_FLG(FLG_GLOVES)) ADD_KEY2(KEY_GLOVES);
        else if (IS_FLG(FLG_BOOTS)) ADD_KEY2(KEY_BOOTS);
 
-        /* You don't need sepalator after adjective */
-        /* 'artifact' is not true adjective */
+       /* You don't need sepalator after adjective */
+       /* 'artifact' is not true adjective */
        else if (!IS_FLG(FLG_ARTIFACT))
                sepa_flag = FALSE;
 
        if (entry->name && entry->name[0])
        {
-                int i, j = 0;
+               int i, j = 0;
 
                if (sepa_flag) strcat(buf, ":");
 
-                i = strlen(buf);
-                while (entry->name[j] && i < MAX_LINELEN - 2 - 1)
-                {
+               i = strlen(buf);
+               while (entry->name[j] && i < MAX_LINELEN - 2 - 1)
+               {
 #ifdef JP
-                        if (iskanji(entry->name[j]))
-                                buf[i++] = entry->name[j++];
+                       if (iskanji(entry->name[j]))
+                               buf[i++] = entry->name[j++];
 #endif
-                        buf[i++] = entry->name[j++];
-                }
-                buf[i] = '\0';
+                       buf[i++] = entry->name[j++];
+               }
+               buf[i] = '\0';
        }
 
        if (entry->insc)
        {
-                int i, j = 0;
+               int i, j = 0;
                strcat(buf, "#");
-                i = strlen(buf);
+               i = strlen(buf);
 
-                while (entry->insc[j] && i < MAX_LINELEN - 2)
-                {
+               while (entry->insc[j] && i < MAX_LINELEN - 2)
+               {
 #ifdef JP
-                        if (iskanji(entry->insc[j]))
-                                buf[i++] = entry->insc[j++];
+                       if (iskanji(entry->insc[j]))
+                               buf[i++] = entry->insc[j++];
 #endif
-                        buf[i++] = entry->insc[j++];
-                }
-                buf[i] = '\0';
+                       buf[i++] = entry->insc[j++];
+               }
+               buf[i] = '\0';
        }
 
        return string_make(buf);
@@ -313,12 +313,12 @@ cptr autopick_line_from_entry(autopick_type *entry)
  */
 static cptr autopick_line_from_entry_kill(autopick_type *entry)
 {
-        cptr ptr = autopick_line_from_entry(entry);
+       cptr ptr = autopick_line_from_entry(entry);
 
-        /* Free memory for original entry */
-        autopick_free_entry(entry);
+       /* Free memory for original entry */
+       autopick_free_entry(entry);
 
-        return ptr;
+       return ptr;
 }
 
 
@@ -405,87 +405,87 @@ bool autopick_new_entry(autopick_type *entry, cptr str)
        if (*buf == 0) return FALSE;
 
        ptr = prev_ptr = buf;
-        old_ptr = NULL;
-
-        while (old_ptr != ptr)
-        {
-                /* Save current location */
-                old_ptr = ptr;
-
-                if (MATCH_KEY(KEY_ALL)) ADD_FLG(FLG_ALL);
-                if (MATCH_KEY(KEY_COLLECTING)) ADD_FLG(FLG_COLLECTING);
-                if (MATCH_KEY(KEY_UNIDENTIFIED)) ADD_FLG(FLG_UNIDENTIFIED);
-                if (MATCH_KEY(KEY_IDENTIFIED)) ADD_FLG(FLG_IDENTIFIED);
-                if (MATCH_KEY(KEY_STAR_IDENTIFIED)) ADD_FLG(FLG_STAR_IDENTIFIED);
-                if (MATCH_KEY(KEY_BOOSTED)) ADD_FLG(FLG_BOOSTED);
-
-                /*** Weapons whose dd*ds is more than nn ***/
-                if (MATCH_KEY2(KEY_MORE_THAN))
-                {
-                        int k = 0;
-                        entry->dice = 0;
-
-                        /* Drop leading spaces */
-                        while (' ' == *ptr) ptr++;
-
-                        /* Read number */
-                        while ('0' <= *ptr && *ptr <= '9')
-                        {
-                                entry->dice = 10 * entry->dice + (*ptr - '0');
-                                ptr++;
-                                k++;
-                        }
-
-                        if (k > 0 && k <= 2)
-                        {
-                                (void)MATCH_KEY(KEY_DICE);
-                                ADD_FLG(FLG_MORE_THAN);
-                        }
-                        else
-                                ptr = prev_ptr;
-                }
-
-                /*** Items whose magical bonus is more than n ***/
-                if (MATCH_KEY2(KEY_MORE_BONUS))
-                {
-                        int k = 0;
-                        entry->bonus = 0;
-
-                        /* Drop leading spaces */
-                        while (' ' == *ptr) ptr++;
-
-                        /* Read number */
-                        while ('0' <= *ptr && *ptr <= '9')
-                        {
-                                entry->bonus = 10 * entry->bonus + (*ptr - '0');
-                                ptr++;
-                                k++;
-                        }
-
-                        if (k > 0 && k <= 2)
-                        {
-                                (void)MATCH_KEY(KEY_MORE_BONUS2);
-                                ADD_FLG(FLG_MORE_BONUS);
-                        }
-                        else
-                                ptr = prev_ptr;
-                }
-
-                if (MATCH_KEY(KEY_WORTHLESS)) ADD_FLG(FLG_WORTHLESS);
-                if (MATCH_KEY(KEY_EGO)) ADD_FLG(FLG_EGO);
-                if (MATCH_KEY(KEY_NAMELESS)) ADD_FLG(FLG_NAMELESS);
-                if (MATCH_KEY(KEY_UNAWARE)) ADD_FLG(FLG_UNAWARE);
-                if (MATCH_KEY(KEY_WANTED)) ADD_FLG(FLG_WANTED);
-                if (MATCH_KEY(KEY_UNIQUE)) ADD_FLG(FLG_UNIQUE);
-                if (MATCH_KEY(KEY_HUMAN)) ADD_FLG(FLG_HUMAN);
-                if (MATCH_KEY(KEY_UNREADABLE)) ADD_FLG(FLG_UNREADABLE);
-                if (MATCH_KEY(KEY_REALM1)) ADD_FLG(FLG_REALM1);
-                if (MATCH_KEY(KEY_REALM2)) ADD_FLG(FLG_REALM2);
-                if (MATCH_KEY(KEY_FIRST)) ADD_FLG(FLG_FIRST);
-                if (MATCH_KEY(KEY_SECOND)) ADD_FLG(FLG_SECOND);
-                if (MATCH_KEY(KEY_THIRD)) ADD_FLG(FLG_THIRD);
-                if (MATCH_KEY(KEY_FOURTH)) ADD_FLG(FLG_FOURTH);
-        }
+       old_ptr = NULL;
+
+       while (old_ptr != ptr)
+       {
+               /* Save current location */
+               old_ptr = ptr;
+
+               if (MATCH_KEY(KEY_ALL)) ADD_FLG(FLG_ALL);
+               if (MATCH_KEY(KEY_COLLECTING)) ADD_FLG(FLG_COLLECTING);
+               if (MATCH_KEY(KEY_UNIDENTIFIED)) ADD_FLG(FLG_UNIDENTIFIED);
+               if (MATCH_KEY(KEY_IDENTIFIED)) ADD_FLG(FLG_IDENTIFIED);
+               if (MATCH_KEY(KEY_STAR_IDENTIFIED)) ADD_FLG(FLG_STAR_IDENTIFIED);
+               if (MATCH_KEY(KEY_BOOSTED)) ADD_FLG(FLG_BOOSTED);
+
+               /*** Weapons whose dd*ds is more than nn ***/
+               if (MATCH_KEY2(KEY_MORE_THAN))
+               {
+                       int k = 0;
+                       entry->dice = 0;
+
+                       /* Drop leading spaces */
+                       while (' ' == *ptr) ptr++;
+
+                       /* Read number */
+                       while ('0' <= *ptr && *ptr <= '9')
+                       {
+                               entry->dice = 10 * entry->dice + (*ptr - '0');
+                               ptr++;
+                               k++;
+                       }
+
+                       if (k > 0 && k <= 2)
+                       {
+                               (void)MATCH_KEY(KEY_DICE);
+                               ADD_FLG(FLG_MORE_THAN);
+                       }
+                       else
+                               ptr = prev_ptr;
+               }
+
+               /*** Items whose magical bonus is more than n ***/
+               if (MATCH_KEY2(KEY_MORE_BONUS))
+               {
+                       int k = 0;
+                       entry->bonus = 0;
+
+                       /* Drop leading spaces */
+                       while (' ' == *ptr) ptr++;
+
+                       /* Read number */
+                       while ('0' <= *ptr && *ptr <= '9')
+                       {
+                               entry->bonus = 10 * entry->bonus + (*ptr - '0');
+                               ptr++;
+                               k++;
+                       }
+
+                       if (k > 0 && k <= 2)
+                       {
+                               (void)MATCH_KEY(KEY_MORE_BONUS2);
+                               ADD_FLG(FLG_MORE_BONUS);
+                       }
+                       else
+                               ptr = prev_ptr;
+               }
+
+               if (MATCH_KEY(KEY_WORTHLESS)) ADD_FLG(FLG_WORTHLESS);
+               if (MATCH_KEY(KEY_EGO)) ADD_FLG(FLG_EGO);
+               if (MATCH_KEY(KEY_NAMELESS)) ADD_FLG(FLG_NAMELESS);
+               if (MATCH_KEY(KEY_UNAWARE)) ADD_FLG(FLG_UNAWARE);
+               if (MATCH_KEY(KEY_WANTED)) ADD_FLG(FLG_WANTED);
+               if (MATCH_KEY(KEY_UNIQUE)) ADD_FLG(FLG_UNIQUE);
+               if (MATCH_KEY(KEY_HUMAN)) ADD_FLG(FLG_HUMAN);
+               if (MATCH_KEY(KEY_UNREADABLE)) ADD_FLG(FLG_UNREADABLE);
+               if (MATCH_KEY(KEY_REALM1)) ADD_FLG(FLG_REALM1);
+               if (MATCH_KEY(KEY_REALM2)) ADD_FLG(FLG_REALM2);
+               if (MATCH_KEY(KEY_FIRST)) ADD_FLG(FLG_FIRST);
+               if (MATCH_KEY(KEY_SECOND)) ADD_FLG(FLG_SECOND);
+               if (MATCH_KEY(KEY_THIRD)) ADD_FLG(FLG_THIRD);
+               if (MATCH_KEY(KEY_FOURTH)) ADD_FLG(FLG_FOURTH);
+       }
 
        /* Not yet found any noun */
        prev_flg = -1;
@@ -555,316 +555,316 @@ void autopick_free_entry(autopick_type *entry)
  */
 static bool is_autopick_aux(object_type *o_ptr, autopick_type *entry, cptr o_name)
 {
-        int j;
-        cptr ptr = entry->name;
-
-        /*** Unidentified ***/
-        if (IS_FLG(FLG_UNIDENTIFIED)
-            && (object_known_p(o_ptr) || (o_ptr->ident & IDENT_SENSE)))
-                return FALSE;
-
-        /*** Identified ***/
-        if (IS_FLG(FLG_IDENTIFIED) && !object_known_p(o_ptr))
-                return FALSE;
-
-        /*** *Identified* ***/
-        if (IS_FLG(FLG_STAR_IDENTIFIED) &&
-            (!object_known_p(o_ptr) || !(o_ptr->ident & IDENT_MENTAL)))
-                return FALSE;
-
-        /*** Dice boosted (weapon of slaying) ***/
-        if (IS_FLG(FLG_BOOSTED))
-        {
-                object_kind *k_ptr = &k_info[o_ptr->k_idx];
+       int j;
+       cptr ptr = entry->name;
+
+       /*** Unidentified ***/
+       if (IS_FLG(FLG_UNIDENTIFIED)
+           && (object_known_p(o_ptr) || (o_ptr->ident & IDENT_SENSE)))
+               return FALSE;
+
+       /*** Identified ***/
+       if (IS_FLG(FLG_IDENTIFIED) && !object_known_p(o_ptr))
+               return FALSE;
+
+       /*** *Identified* ***/
+       if (IS_FLG(FLG_STAR_IDENTIFIED) &&
+           (!object_known_p(o_ptr) || !(o_ptr->ident & IDENT_MENTAL)))
+               return FALSE;
+
+       /*** Dice boosted (weapon of slaying) ***/
+       if (IS_FLG(FLG_BOOSTED))
+       {
+               object_kind *k_ptr = &k_info[o_ptr->k_idx];
                        
-                switch( o_ptr->tval )
-                {
-                case TV_HAFTED:
-                case TV_POLEARM:
-                case TV_SWORD:
-                case TV_DIGGING:
-                        if ((o_ptr->dd != k_ptr->dd) || (o_ptr->ds != k_ptr->ds))
-                                break;
-                        else
-                                return FALSE;
-                default:
-                        return FALSE;
-                }
-        }
-
-        /*** Weapons which dd*ds is more than nn ***/
-        if (IS_FLG(FLG_MORE_THAN))
-        {
-                if (o_ptr->dd * o_ptr->ds < entry->dice)
-                        return FALSE;
-        }
+               switch( o_ptr->tval )
+               {
+               case TV_HAFTED:
+               case TV_POLEARM:
+               case TV_SWORD:
+               case TV_DIGGING:
+                       if ((o_ptr->dd != k_ptr->dd) || (o_ptr->ds != k_ptr->ds))
+                               break;
+                       else
+                               return FALSE;
+               default:
+                       return FALSE;
+               }
+       }
+
+       /*** Weapons which dd*ds is more than nn ***/
+       if (IS_FLG(FLG_MORE_THAN))
+       {
+               if (o_ptr->dd * o_ptr->ds < entry->dice)
+                       return FALSE;
+       }
                                
-        /*** Weapons whic dd*ds is more than nn ***/
-        if (IS_FLG(FLG_MORE_BONUS))
-        {
-                if (!object_known_p(o_ptr)) return FALSE;
-
-                if (o_ptr->pval)
-                {
-                        if (o_ptr->pval < entry->bonus) return FALSE;
-                }
-                else
-                {
-                        if (o_ptr->to_h < entry->bonus &&
-                            o_ptr->to_d < entry->bonus &&
-                            o_ptr->to_a < entry->bonus &&
-                            o_ptr->pval < entry->bonus)
-                                return FALSE;
-                }
-        }
+       /*** Weapons whic dd*ds is more than nn ***/
+       if (IS_FLG(FLG_MORE_BONUS))
+       {
+               if (!object_known_p(o_ptr)) return FALSE;
+
+               if (o_ptr->pval)
+               {
+                       if (o_ptr->pval < entry->bonus) return FALSE;
+               }
+               else
+               {
+                       if (o_ptr->to_h < entry->bonus &&
+                           o_ptr->to_d < entry->bonus &&
+                           o_ptr->to_a < entry->bonus &&
+                           o_ptr->pval < entry->bonus)
+                               return FALSE;
+               }
+       }
                                
-        /*** Worthless items ***/
-        if (IS_FLG(FLG_WORTHLESS) && object_value(o_ptr) > 0)
-                return FALSE;
-
-        /*** Artifact object ***/
-        if (IS_FLG(FLG_ARTIFACT))
-        {
-                if (!object_known_p(o_ptr) || (!o_ptr->name1 && !o_ptr->art_name))
-                        return FALSE;
-        }
-
-        /*** Ego object ***/
-        if (IS_FLG(FLG_EGO))
-        {
-                if (!object_known_p(o_ptr) || !o_ptr->name2)
-                        return FALSE;
-        }
-
-        /*** Nameless ***/
-        if (IS_FLG(FLG_NAMELESS))
-        {
-                switch (o_ptr->tval)
-                {
-                case TV_WHISTLE:
-                case TV_SHOT: case TV_ARROW: case TV_BOLT: case TV_BOW:
-                case TV_DIGGING: case TV_HAFTED: case TV_POLEARM: case TV_SWORD: 
-                case TV_BOOTS: case TV_GLOVES: case TV_HELM: case TV_CROWN:
-                case TV_SHIELD: case TV_CLOAK:
-                case TV_SOFT_ARMOR: case TV_HARD_ARMOR: case TV_DRAG_ARMOR:
-                case TV_LITE: case TV_AMULET: case TV_RING: case TV_CARD:
-                        if ((!object_known_p(o_ptr) || o_ptr->inscription
-                             || o_ptr->name1 || o_ptr->name2 || o_ptr->art_name))
-                                return FALSE;
-                        break;
-                default:
-                        /* don't match */
-                        return FALSE;
-                }
-        }
-
-        /*** Unaware items ***/
-        if (IS_FLG(FLG_UNAWARE) && object_aware_p(o_ptr))
-                return FALSE;
-
-        /*** Wanted monster's corpse/skeletons ***/
-        if (IS_FLG(FLG_WANTED) &&
-            (o_ptr->tval != TV_CORPSE || !object_is_shoukinkubi(o_ptr)))
-                return FALSE;
-
-        /*** Unique monster's corpse/skeletons/statues ***/
-        if (IS_FLG(FLG_UNIQUE) &&
-            ((o_ptr->tval != TV_CORPSE && o_ptr->tval != TV_STATUE) ||
-             !(r_info[o_ptr->pval].flags1 & RF1_UNIQUE)))
-                return FALSE;
-
-        /*** Human corpse/skeletons (for Daemon magic) ***/
-        if (IS_FLG(FLG_HUMAN) &&
-            (o_ptr->tval != TV_CORPSE ||
-             !strchr("pht", r_info[o_ptr->pval].d_char)))
-                return FALSE;
-
-        /*** Unreadable spellbooks ***/
-        if (IS_FLG(FLG_UNREADABLE) &&
-            (o_ptr->tval < TV_LIFE_BOOK ||
-             check_book_realm(o_ptr->tval, o_ptr->sval)))
-                return FALSE;
-
-        /*** First realm spellbooks ***/
-        if (IS_FLG(FLG_REALM1) && 
-            (REALM1_BOOK != o_ptr->tval ||
-             p_ptr->pclass == CLASS_SORCERER ||
-             p_ptr->pclass == CLASS_RED_MAGE))
-                return FALSE;
-
-        /*** Second realm spellbooks ***/
-        if (IS_FLG(FLG_REALM2) &&
-            (REALM2_BOOK != o_ptr->tval ||
-             p_ptr->pclass == CLASS_SORCERER ||
-             p_ptr->pclass == CLASS_RED_MAGE))
-                return FALSE;
-
-        /*** First rank spellbooks ***/
-        if (IS_FLG(FLG_FIRST) &&
-            (o_ptr->tval < TV_LIFE_BOOK || 0 != o_ptr->sval))
-                return FALSE;
-
-        /*** Second rank spellbooks ***/
-        if (IS_FLG(FLG_SECOND) &&
-            (o_ptr->tval < TV_LIFE_BOOK || 1 != o_ptr->sval))
-                return FALSE;
-
-        /*** Third rank spellbooks ***/
-        if (IS_FLG(FLG_THIRD) && 
-            (o_ptr->tval < TV_LIFE_BOOK || 2 != o_ptr->sval))
-                return FALSE;
-
-        /*** Fourth rank spellbooks ***/
-        if (IS_FLG(FLG_FOURTH) &&
-            (o_ptr->tval < TV_LIFE_BOOK || 3 != o_ptr->sval))
-                return FALSE;
-
-        /*** Items ***/
-        if (IS_FLG(FLG_WEAPONS))
-        {
-                switch(o_ptr->tval)
-                {
-                case TV_BOW: case TV_HAFTED: case TV_POLEARM:
-                case TV_SWORD: case TV_DIGGING:
-                        break;
-                default: return FALSE;
-                }
-        }
-        else if (IS_FLG(FLG_ARMORS))
-        {
-                switch(o_ptr->tval)
-                {
-                case TV_BOOTS: case TV_GLOVES: case TV_CLOAK: case TV_CROWN:
-                case TV_HELM: case TV_SHIELD: case TV_SOFT_ARMOR:
-                case TV_HARD_ARMOR: case TV_DRAG_ARMOR:
-                        break;
-                default: return FALSE;
-                }
-        }
-        else if (IS_FLG(FLG_MISSILES))
-        {
-                switch(o_ptr->tval)
-                {
-                case TV_SHOT: case TV_BOLT: case TV_ARROW:
-                        break;
-                default: return FALSE;
-                }
-        }
-        else if (IS_FLG(FLG_DEVICES))
-        {
-                switch(o_ptr->tval)
-                {
-                case TV_SCROLL: case TV_STAFF: case TV_WAND: case TV_ROD:
-                        break;
-                default: return FALSE;
-                }
-        }
-        else if (IS_FLG(FLG_LIGHTS))
-        {
-                if (!(o_ptr->tval == TV_LITE))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_JUNKS))
-        {
-                switch(o_ptr->tval)
-                {
-                case TV_SKELETON: case TV_BOTTLE:
-                case TV_JUNK: case TV_STATUE:
-                        break;
-                default: return FALSE;
-                }
-        }
-        else if (IS_FLG(FLG_SPELLBOOKS))
-        {
-                if (!(o_ptr->tval >= TV_LIFE_BOOK))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_HAFTED))
-        {
-                if (!(o_ptr->tval == TV_HAFTED))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_SHIELDS))
-        {
-                if (!(o_ptr->tval == TV_SHIELD))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_BOWS))
-        {
-                if (!(o_ptr->tval == TV_BOW))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_RINGS))
-        {
-                if (!(o_ptr->tval == TV_RING))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_AMULETS))
-        {
-                if (!(o_ptr->tval == TV_AMULET))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_SUITS))
-        {
-                if (!(o_ptr->tval == TV_DRAG_ARMOR ||
-                      o_ptr->tval == TV_HARD_ARMOR ||
-                      o_ptr->tval == TV_SOFT_ARMOR))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_CLOAKS))
-        {
-                if (!(o_ptr->tval == TV_CLOAK))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_HELMS))
-        {
-                if (!(o_ptr->tval == TV_CROWN || o_ptr->tval == TV_HELM))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_GLOVES))
-        {
-                if (!(o_ptr->tval == TV_GLOVES))
-                        return FALSE;
-        }
-        else if (IS_FLG(FLG_BOOTS))
-        {
-                if (!(o_ptr->tval == TV_BOOTS))
-                        return FALSE;
-        }
-
-        /* Keyword don't match */
-        if (*ptr == '^')
-        {
-                ptr++;
-                if (strncmp(o_name, ptr, strlen(ptr))) return FALSE;
-        }
-        else
-        {
+       /*** Worthless items ***/
+       if (IS_FLG(FLG_WORTHLESS) && object_value(o_ptr) > 0)
+               return FALSE;
+
+       /*** Artifact object ***/
+       if (IS_FLG(FLG_ARTIFACT))
+       {
+               if (!object_known_p(o_ptr) || (!o_ptr->name1 && !o_ptr->art_name))
+                       return FALSE;
+       }
+
+       /*** Ego object ***/
+       if (IS_FLG(FLG_EGO))
+       {
+               if (!object_known_p(o_ptr) || !o_ptr->name2)
+                       return FALSE;
+       }
+
+       /*** Nameless ***/
+       if (IS_FLG(FLG_NAMELESS))
+       {
+               switch (o_ptr->tval)
+               {
+               case TV_WHISTLE:
+               case TV_SHOT: case TV_ARROW: case TV_BOLT: case TV_BOW:
+               case TV_DIGGING: case TV_HAFTED: case TV_POLEARM: case TV_SWORD: 
+               case TV_BOOTS: case TV_GLOVES: case TV_HELM: case TV_CROWN:
+               case TV_SHIELD: case TV_CLOAK:
+               case TV_SOFT_ARMOR: case TV_HARD_ARMOR: case TV_DRAG_ARMOR:
+               case TV_LITE: case TV_AMULET: case TV_RING: case TV_CARD:
+                       if ((!object_known_p(o_ptr) || o_ptr->inscription
+                            || o_ptr->name1 || o_ptr->name2 || o_ptr->art_name))
+                               return FALSE;
+                       break;
+               default:
+                       /* don't match */
+                       return FALSE;
+               }
+       }
+
+       /*** Unaware items ***/
+       if (IS_FLG(FLG_UNAWARE) && object_aware_p(o_ptr))
+               return FALSE;
+
+       /*** Wanted monster's corpse/skeletons ***/
+       if (IS_FLG(FLG_WANTED) &&
+           (o_ptr->tval != TV_CORPSE || !object_is_shoukinkubi(o_ptr)))
+               return FALSE;
+
+       /*** Unique monster's corpse/skeletons/statues ***/
+       if (IS_FLG(FLG_UNIQUE) &&
+           ((o_ptr->tval != TV_CORPSE && o_ptr->tval != TV_STATUE) ||
+            !(r_info[o_ptr->pval].flags1 & RF1_UNIQUE)))
+               return FALSE;
+
+       /*** Human corpse/skeletons (for Daemon magic) ***/
+       if (IS_FLG(FLG_HUMAN) &&
+           (o_ptr->tval != TV_CORPSE ||
+            !strchr("pht", r_info[o_ptr->pval].d_char)))
+               return FALSE;
+
+       /*** Unreadable spellbooks ***/
+       if (IS_FLG(FLG_UNREADABLE) &&
+           (o_ptr->tval < TV_LIFE_BOOK ||
+            check_book_realm(o_ptr->tval, o_ptr->sval)))
+               return FALSE;
+
+       /*** First realm spellbooks ***/
+       if (IS_FLG(FLG_REALM1) && 
+           (REALM1_BOOK != o_ptr->tval ||
+            p_ptr->pclass == CLASS_SORCERER ||
+            p_ptr->pclass == CLASS_RED_MAGE))
+               return FALSE;
+
+       /*** Second realm spellbooks ***/
+       if (IS_FLG(FLG_REALM2) &&
+           (REALM2_BOOK != o_ptr->tval ||
+            p_ptr->pclass == CLASS_SORCERER ||
+            p_ptr->pclass == CLASS_RED_MAGE))
+               return FALSE;
+
+       /*** First rank spellbooks ***/
+       if (IS_FLG(FLG_FIRST) &&
+           (o_ptr->tval < TV_LIFE_BOOK || 0 != o_ptr->sval))
+               return FALSE;
+
+       /*** Second rank spellbooks ***/
+       if (IS_FLG(FLG_SECOND) &&
+           (o_ptr->tval < TV_LIFE_BOOK || 1 != o_ptr->sval))
+               return FALSE;
+
+       /*** Third rank spellbooks ***/
+       if (IS_FLG(FLG_THIRD) && 
+           (o_ptr->tval < TV_LIFE_BOOK || 2 != o_ptr->sval))
+               return FALSE;
+
+       /*** Fourth rank spellbooks ***/
+       if (IS_FLG(FLG_FOURTH) &&
+           (o_ptr->tval < TV_LIFE_BOOK || 3 != o_ptr->sval))
+               return FALSE;
+
+       /*** Items ***/
+       if (IS_FLG(FLG_WEAPONS))
+       {
+               switch(o_ptr->tval)
+               {
+               case TV_BOW: case TV_HAFTED: case TV_POLEARM:
+               case TV_SWORD: case TV_DIGGING:
+                       break;
+               default: return FALSE;
+               }
+       }
+       else if (IS_FLG(FLG_ARMORS))
+       {
+               switch(o_ptr->tval)
+               {
+               case TV_BOOTS: case TV_GLOVES: case TV_CLOAK: case TV_CROWN:
+               case TV_HELM: case TV_SHIELD: case TV_SOFT_ARMOR:
+               case TV_HARD_ARMOR: case TV_DRAG_ARMOR:
+                       break;
+               default: return FALSE;
+               }
+       }
+       else if (IS_FLG(FLG_MISSILES))
+       {
+               switch(o_ptr->tval)
+               {
+               case TV_SHOT: case TV_BOLT: case TV_ARROW:
+                       break;
+               default: return FALSE;
+               }
+       }
+       else if (IS_FLG(FLG_DEVICES))
+       {
+               switch(o_ptr->tval)
+               {
+               case TV_SCROLL: case TV_STAFF: case TV_WAND: case TV_ROD:
+                       break;
+               default: return FALSE;
+               }
+       }
+       else if (IS_FLG(FLG_LIGHTS))
+       {
+               if (!(o_ptr->tval == TV_LITE))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_JUNKS))
+       {
+               switch(o_ptr->tval)
+               {
+               case TV_SKELETON: case TV_BOTTLE:
+               case TV_JUNK: case TV_STATUE:
+                       break;
+               default: return FALSE;
+               }
+       }
+       else if (IS_FLG(FLG_SPELLBOOKS))
+       {
+               if (!(o_ptr->tval >= TV_LIFE_BOOK))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_HAFTED))
+       {
+               if (!(o_ptr->tval == TV_HAFTED))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_SHIELDS))
+       {
+               if (!(o_ptr->tval == TV_SHIELD))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_BOWS))
+       {
+               if (!(o_ptr->tval == TV_BOW))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_RINGS))
+       {
+               if (!(o_ptr->tval == TV_RING))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_AMULETS))
+       {
+               if (!(o_ptr->tval == TV_AMULET))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_SUITS))
+       {
+               if (!(o_ptr->tval == TV_DRAG_ARMOR ||
+                     o_ptr->tval == TV_HARD_ARMOR ||
+                     o_ptr->tval == TV_SOFT_ARMOR))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_CLOAKS))
+       {
+               if (!(o_ptr->tval == TV_CLOAK))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_HELMS))
+       {
+               if (!(o_ptr->tval == TV_CROWN || o_ptr->tval == TV_HELM))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_GLOVES))
+       {
+               if (!(o_ptr->tval == TV_GLOVES))
+                       return FALSE;
+       }
+       else if (IS_FLG(FLG_BOOTS))
+       {
+               if (!(o_ptr->tval == TV_BOOTS))
+                       return FALSE;
+       }
+
+       /* Keyword don't match */
+       if (*ptr == '^')
+       {
+               ptr++;
+               if (strncmp(o_name, ptr, strlen(ptr))) return FALSE;
+       }
+       else
+       {
 #ifdef JP
-                if (!strstr_j(o_name, ptr)) return FALSE;
+               if (!strstr_j(o_name, ptr)) return FALSE;
 #else
-                if (!strstr(o_name, ptr)) return FALSE;
+               if (!strstr(o_name, ptr)) return FALSE;
 #endif
-        }
-
-        /* TRUE when it need not to be 'collecting' */
-        if (!IS_FLG(FLG_COLLECTING)) return TRUE;
-
-        /* Check if there is a same item */
-        for (j = 0; j < INVEN_PACK; j++)
-        {
-                /*
-                 * 'Collecting' means the item must be absorbed 
-                 * into an inventory slot.
-                 * But an item can not be absorbed into itself!
-                 */
-                if ((&inventory[j] != o_ptr) &&
-                    object_similar(&inventory[j], o_ptr))
-                        return TRUE;
-        }
-
-        /* Not collecting */
-        return FALSE;
+       }
+
+       /* TRUE when it need not to be 'collecting' */
+       if (!IS_FLG(FLG_COLLECTING)) return TRUE;
+
+       /* Check if there is a same item */
+       for (j = 0; j < INVEN_PACK; j++)
+       {
+               /*
+                * 'Collecting' means the item must be absorbed 
+                * into an inventory slot.
+                * But an item can not be absorbed into itself!
+                */
+               if ((&inventory[j] != o_ptr) &&
+                   object_similar(&inventory[j], o_ptr))
+                       return TRUE;
+       }
+
+       /* Not collecting */
+       return FALSE;
 }
 
 
@@ -897,10 +897,10 @@ int is_autopick(object_type *o_ptr)
        {
                autopick_type *entry = &autopick_list[i];
 
-                if (is_autopick_aux(o_ptr, entry, o_name)) return i;
+               if (is_autopick_aux(o_ptr, entry, o_name)) return i;
        }
 
-        /* No matching entry */
+       /* No matching entry */
        return -1;
 }
 
@@ -1019,10 +1019,10 @@ bool auto_destroy_item(int item, int autopick_idx)
        /* Artifact? */
        if (!can_player_destroy_object(o_ptr))
        {
-                char o_name[MAX_NLEN];
+               char o_name[MAX_NLEN];
 
-                /* Describe the object (with {terrible/special}) */
-                object_desc(o_name, o_ptr, TRUE, 3);
+               /* Describe the object (with {terrible/special}) */
+               object_desc(o_name, o_ptr, TRUE, 3);
 
                /* Message */
 #ifdef JP
@@ -1036,11 +1036,11 @@ bool auto_destroy_item(int item, int autopick_idx)
        }
 
        /* Record name of destroyed item */
-        COPY(&autopick_last_destroyed_object, o_ptr, object_type);
+       COPY(&autopick_last_destroyed_object, o_ptr, object_type);
 
-        /* Destroy Later */
-        o_ptr->marked |= OM_AUTODESTROY;
-        p_ptr->notice |= PN_AUTODESTROY;
+       /* Destroy Later */
+       o_ptr->marked |= OM_AUTODESTROY;
+       p_ptr->notice |= PN_AUTODESTROY;
 
        return TRUE;
 }
@@ -1051,7 +1051,7 @@ bool auto_destroy_item(int item, int autopick_idx)
  */
 static void delayed_auto_destroy_aux(int item)
 {
-        object_type *o_ptr;
+       object_type *o_ptr;
 
        /* Get the item (in the pack) */
        if (item >= 0) o_ptr = &inventory[item];
@@ -1059,33 +1059,33 @@ static void delayed_auto_destroy_aux(int item)
        /* Get the item (on the floor) */
        else o_ptr = &o_list[0 - item];
 
-        if (o_ptr->k_idx && o_ptr->marked & OM_AUTODESTROY)
-        {
-                char o_name[MAX_NLEN];
+       if (o_ptr->k_idx && o_ptr->marked & OM_AUTODESTROY)
+       {
+               char o_name[MAX_NLEN];
 
-                /* Describe the object (with {terrible/special}) */
-                object_desc(o_name, o_ptr, TRUE, 3);
+               /* Describe the object (with {terrible/special}) */
+               object_desc(o_name, o_ptr, TRUE, 3);
 
-                /* Eliminate the item (from the pack) */
-                if (item >= 0)
-                {
-                        inven_item_increase(item, -(o_ptr->number));
-                        inven_item_optimize(item);
-                }
+               /* Eliminate the item (from the pack) */
+               if (item >= 0)
+               {
+                       inven_item_increase(item, -(o_ptr->number));
+                       inven_item_optimize(item);
+               }
 
-                /* Eliminate the item (from the floor) */
-                else
-                {
-                        delete_object_idx(0 - item);
-                }
+               /* Eliminate the item (from the floor) */
+               else
+               {
+                       delete_object_idx(0 - item);
+               }
 
-                /* Print a message */
+               /* Print a message */
 #ifdef JP
-                msg_format("%s¤ò¼«Æ°Ç˲õ¤·¤Þ¤¹¡£", o_name);
+               msg_format("%s¤ò¼«Æ°Ç˲õ¤·¤Þ¤¹¡£", o_name);
 #else
-                msg_format("Auto-destroying %s.", o_name);
+               msg_format("Auto-destroying %s.", o_name);
 #endif
-        }
+       }
 }
 
 
@@ -1097,20 +1097,20 @@ void delayed_auto_destroy(void)
        int item;
 
        /* 
-         * Scan inventry in reverse order to prevent
-         * skipping after inven_item_optimize()
-         */
+        * Scan inventry in reverse order to prevent
+        * skipping after inven_item_optimize()
+        */
        for (item = INVEN_TOTAL - 1; item >= 0 ; item--)
-                delayed_auto_destroy_aux(item);
+               delayed_auto_destroy_aux(item);
 
        /* Scan the pile of objects */
-        item = cave[py][px].o_idx;
-        while (item)
-        {
-                int next = o_list[item].next_o_idx;
-                delayed_auto_destroy_aux(-item);
-                item = next;
-        }
+       item = cave[py][px].o_idx;
+       while (item)
+       {
+               int next = o_list[item].next_o_idx;
+               delayed_auto_destroy_aux(-item);
+               item = next;
+       }
 }
 
 
@@ -1165,19 +1165,19 @@ void auto_pickup_items(cave_type *c_ptr)
                                char out_val[MAX_NLEN+20];
                                char o_name[MAX_NLEN];
 
-                                if (o_ptr->marked & OM_NO_QUERY)
-                                {
-                                        /* Already answered as 'No' */
-                                        continue;
-                                }
+                               if (o_ptr->marked & OM_NO_QUERY)
+                               {
+                                       /* Already answered as 'No' */
+                                       continue;
+                               }
 
                                /* Describe the object */
                                object_desc(o_name, o_ptr, TRUE, 3);
 
 #ifdef JP
-                                sprintf(out_val, "%s¤ò½¦¤¤¤Þ¤¹¤«? ", o_name);
+                               sprintf(out_val, "%s¤ò½¦¤¤¤Þ¤¹¤«? ", o_name);
 #else
-                                sprintf(out_val, "Pick up %s? ", o_name);
+                               sprintf(out_val, "Pick up %s? ", o_name);
 #endif
 
                                if (!get_check(out_val))
@@ -1435,20 +1435,20 @@ static void describe_autopick(char *buff, autopick_type *entry)
        }
 
        if (insc)
-        {
+       {
                strncat(buff, format("¤Ë¡Ö%s¡×", insc), 80);
 
-                if (strstr(insc, "%%all"))
-                        strcat(buff, "(%%all¤ÏÁ´Ç½ÎϤòɽ¤¹±Ñ»ú¤Îµ­¹æ¤ÇÃÖ´¹)");
-                else if (strstr(insc, "%all"))
-                        strcat(buff, "(%all¤ÏÁ´Ç½ÎϤòɽ¤¹µ­¹æ¤ÇÃÖ´¹)");
-                else if (strstr(insc, "%%"))
-                        strcat(buff, "(%%¤ÏÄɲÃǽÎϤòɽ¤¹±Ñ»ú¤Îµ­¹æ¤ÇÃÖ´¹)");
-                else if (strstr(insc, "%"))
-                        strcat(buff, "(%¤ÏÄɲÃǽÎϤòɽ¤¹µ­¹æ¤ÇÃÖ´¹)");
+               if (strstr(insc, "%%all"))
+                       strcat(buff, "(%%all¤ÏÁ´Ç½ÎϤòɽ¤¹±Ñ»ú¤Îµ­¹æ¤ÇÃÖ´¹)");
+               else if (strstr(insc, "%all"))
+                       strcat(buff, "(%all¤ÏÁ´Ç½ÎϤòɽ¤¹µ­¹æ¤ÇÃÖ´¹)");
+               else if (strstr(insc, "%%"))
+                       strcat(buff, "(%%¤ÏÄɲÃǽÎϤòɽ¤¹±Ñ»ú¤Îµ­¹æ¤ÇÃÖ´¹)");
+               else if (strstr(insc, "%"))
+                       strcat(buff, "(%¤ÏÄɲÃǽÎϤòɽ¤¹µ­¹æ¤ÇÃÖ´¹)");
 
                strcat(buff, "¤È¹ï¤ó¤Ç");
-        }
+       }
        else
                strcat(buff, "¤ò");
 
@@ -1695,16 +1695,16 @@ static void describe_autopick(char *buff, autopick_type *entry)
 
        /* Auto-insctiption */
        if (insc)
-        {
+       {
                strncat(buff, format("and inscribe \"%s\"", insc), 80);
 
-                if (strstr(insc, "%all"))
-                        strcat(buff, ", replacing %all with code string representing all abilities,");
-                else if (strstr(insc, "%"))
-                        strcat(buff, ", replacing % with code string representing extra random abilities,");
+               if (strstr(insc, "%all"))
+                       strcat(buff, ", replacing %all with code string representing all abilities,");
+               else if (strstr(insc, "%"))
+                       strcat(buff, ", replacing % with code string representing extra random abilities,");
 
                strcat(buff, " on ");
-        }
+       }
 
        /* Adjective */
        if (!before_n) 
@@ -1857,7 +1857,7 @@ static cptr *read_pickpref_text_lines(int *filename_mode_p)
 #else
                lines_list = read_text_lines("pickpref.prf", TRUE);
 #endif
-                *filename_mode_p = PT_DEFAULT;
+               *filename_mode_p = PT_DEFAULT;
        }
 
        if (!lines_list)
@@ -1867,7 +1867,7 @@ static cptr *read_pickpref_text_lines(int *filename_mode_p)
 #else
                lines_list = read_text_lines("pickpref.prf", FALSE);
 #endif
-                *filename_mode_p = PT_WITH_PNAME;
+               *filename_mode_p = PT_WITH_PNAME;
        }
 
        if (!lines_list)
@@ -1875,7 +1875,7 @@ static cptr *read_pickpref_text_lines(int *filename_mode_p)
                /* Allocate list of pointers */
                C_MAKE(lines_list, MAX_LINES, cptr);
                lines_list[0] = string_make("");
-                *filename_mode_p = PT_WITH_PNAME;
+               *filename_mode_p = PT_WITH_PNAME;
        }
        return lines_list;
 }
@@ -2136,7 +2136,7 @@ static bool entry_from_choosed_object(autopick_type *entry)
        q = "Entry which item? ";
        s = "You have nothing to entry.";
 #endif
-        o_ptr = choose_object(q, s);
+       o_ptr = choose_object(q, s);
        if (!o_ptr) return FALSE;
 
        autopick_entry_from_object(entry, o_ptr);
@@ -2149,35 +2149,35 @@ static bool entry_from_choosed_object(autopick_type *entry)
  */
 static bool get_string_for_search(object_type **o_handle, cptr *search_strp)
 {
-        int pos = 0;
+       int pos = 0;
        cptr q, s;
-        char buf[MAX_NLEN+20];
+       char buf[MAX_NLEN+20];
 
 #ifdef JP
-        int k_flag[MAX_NLEN+20];
-        char prompt[] = "¸¡º÷(^I:»ý¤Áʪ ^L:Ç˲õ¤µ¤ì¤¿Êª): ";
+       int k_flag[MAX_NLEN+20];
+       char prompt[] = "¸¡º÷(^I:»ý¤Áʪ ^L:Ç˲õ¤µ¤ì¤¿Êª): ";
 #else
-        char prompt[] = "Search key(^I:inven ^L:destroyed): ";
+       char prompt[] = "Search key(^I:inven ^L:destroyed): ";
 #endif
-        int col = sizeof(prompt) - 1;
+       int col = sizeof(prompt) - 1;
 
-        if (*search_strp) strcpy(buf, *search_strp);
-        else buf[0] = '\0';
+       if (*search_strp) strcpy(buf, *search_strp);
+       else buf[0] = '\0';
 
        /* Display prompt */
        prt(prompt, 0, 0);
 
        /* Display the default answer */
-        Term_erase(col, 0, 255);
+       Term_erase(col, 0, 255);
        Term_putstr(col, 0, -1, TERM_YELLOW, buf);
 
        /* Process input */
        while (1)
        {
-                object_type *o_ptr;
-                int i;
+               object_type *o_ptr;
+               int i;
 
-                /* Place cursor */
+               /* Place cursor */
                Term_gotoxy(col + pos, 0);
 
                /* Do not process macros except special keys */
@@ -2195,48 +2195,48 @@ static bool get_string_for_search(object_type **o_handle, cptr *search_strp)
 
                case '\n':
                case '\r':
-                        if (!pos && *o_handle) return TRUE;
-                        string_free(*search_strp);
-                        *search_strp = string_make(buf);
-                        *o_handle = NULL;
-                        return TRUE;
-
-                case KTRL('i'):
-                        /* Get an item */
+                       if (!pos && *o_handle) return TRUE;
+                       string_free(*search_strp);
+                       *search_strp = string_make(buf);
+                       *o_handle = NULL;
+                       return TRUE;
+
+               case KTRL('i'):
+                       /* Get an item */
 #ifdef JP
-                        q = "¤É¤Î¥¢¥¤¥Æ¥à¤ò¸¡º÷¤·¤Þ¤¹¤«? ";
-                        s = "¥¢¥¤¥Æ¥à¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£";
+                       q = "¤É¤Î¥¢¥¤¥Æ¥à¤ò¸¡º÷¤·¤Þ¤¹¤«? ";
+                       s = "¥¢¥¤¥Æ¥à¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£";
 #else
-                        q = "Entry which item? ";
-                        s = "You have nothing to entry.";
+                       q = "Entry which item? ";
+                       s = "You have nothing to entry.";
 #endif
-                        o_ptr = choose_object(q, s);
-                        if (!o_ptr) return FALSE;
+                       o_ptr = choose_object(q, s);
+                       if (!o_ptr) return FALSE;
 
-                        *o_handle = o_ptr;
+                       *o_handle = o_ptr;
 
-                        string_free(*search_strp);
-                        object_desc(buf, *o_handle, FALSE, 3);
-                        *search_strp = string_make(format("<%s>", buf));
-                        return TRUE;
+                       string_free(*search_strp);
+                       object_desc(buf, *o_handle, FALSE, 3);
+                       *search_strp = string_make(format("<%s>", buf));
+                       return TRUE;
 
-                case KTRL('l'):
-                        if (!autopick_last_destroyed_object.k_idx) break;
-                        *o_handle = &autopick_last_destroyed_object;
+               case KTRL('l'):
+                       if (!autopick_last_destroyed_object.k_idx) break;
+                       *o_handle = &autopick_last_destroyed_object;
 
-                        string_free(*search_strp);
-                        object_desc(buf, *o_handle, FALSE, 3);
-                        *search_strp = string_make(format("<%s>", buf));
-                        return TRUE;
+                       string_free(*search_strp);
+                       object_desc(buf, *o_handle, FALSE, 3);
+                       *search_strp = string_make(format("<%s>", buf));
+                       return TRUE;
 
                case 0x7F:
                case '\010':
 #ifdef JP
-                        if (pos > 0)
-                        {
-                                pos--;
-                                if (k_flag[pos]) pos--;
-                        }
+                       if (pos > 0)
+                       {
+                               pos--;
+                               if (k_flag[pos]) pos--;
+                       }
 #else
                        if (pos > 0) pos--;
 #endif
@@ -2244,26 +2244,26 @@ static bool get_string_for_search(object_type **o_handle, cptr *search_strp)
 
                default:
 #ifdef JP
-                        if (iskanji(i))
-                        {
-                                int next;
-
-                                inkey_base = TRUE;
-                                next = inkey ();
-                                if (pos + 1 < MAX_NLEN)
-                                {
-                                        buf[pos++] = i;
-                                        buf[pos] = next;
-                                        k_flag[pos++] = 1;
-                                }
-                                else bell();
-                        }
-                        else if (pos < MAX_NLEN && isprint(i))
-                        {
-                                buf[pos] = i;
-                                k_flag[pos++] = 0;
-                        }
-                        else bell();
+                       if (iskanji(i))
+                       {
+                               int next;
+
+                               inkey_base = TRUE;
+                               next = inkey ();
+                               if (pos + 1 < MAX_NLEN)
+                               {
+                                       buf[pos++] = i;
+                                       buf[pos] = next;
+                                       k_flag[pos++] = 1;
+                               }
+                               else bell();
+                       }
+                       else if (pos < MAX_NLEN && isprint(i))
+                       {
+                               buf[pos] = i;
+                               k_flag[pos++] = 0;
+                       }
+                       else bell();
 #else
                        if (pos < MAX_NLEN && isprint(i)) buf[pos++] = i;
                        else bell();
@@ -2271,15 +2271,15 @@ static bool get_string_for_search(object_type **o_handle, cptr *search_strp)
                        break;
                }
 
-                /* Terminate */
-                buf[pos] = '\0';
+               /* Terminate */
+               buf[pos] = '\0';
 
-                /* Update the entry */
-                Term_erase(col, 0, 255);
-                Term_putstr(col, 0, -1, TERM_WHITE, buf);
+               /* Update the entry */
+               Term_erase(col, 0, 255);
+               Term_putstr(col, 0, -1, TERM_WHITE, buf);
        }
 
-        /* Never reached */
+       /* Never reached */
 }
 
 
@@ -2288,7 +2288,7 @@ static bool get_string_for_search(object_type **o_handle, cptr *search_strp)
  */
 static bool search_for_object(cptr *lines_list, object_type *o_ptr, int *cxp, int *cyp, bool forward)
 {
-        int i;
+       int i;
        autopick_type an_entry, *entry = &an_entry;
        char o_name[MAX_NLEN];
 
@@ -2306,30 +2306,30 @@ static bool search_for_object(cptr *lines_list, object_type *o_ptr, int *cxp, in
                        o_name[i] = tolower(o_name[i]);
        }
        
-        i = *cyp;
-
-        while (1)
-        {
-                if (forward)
-                {
-                        if (!lines_list[++i]) break;
-                }
-                else
-                {
-                        if (--i < 0) break;
-                }
-
-                if (!autopick_new_entry(entry, lines_list[i])) continue;
-
-                if (is_autopick_aux(o_ptr, entry, o_name))
-                {
-                        *cxp = 0;
-                        *cyp = i;
-                        return TRUE;
-                }
-        }
-
-        return FALSE;
+       i = *cyp;
+
+       while (1)
+       {
+               if (forward)
+               {
+                       if (!lines_list[++i]) break;
+               }
+               else
+               {
+                       if (--i < 0) break;
+               }
+
+               if (!autopick_new_entry(entry, lines_list[i])) continue;
+
+               if (is_autopick_aux(o_ptr, entry, o_name))
+               {
+                       *cxp = 0;
+                       *cyp = i;
+                       return TRUE;
+               }
+       }
+
+       return FALSE;
 }
 
 
@@ -2338,34 +2338,34 @@ static bool search_for_object(cptr *lines_list, object_type *o_ptr, int *cxp, in
  */
 static bool search_for_string(cptr *lines_list, cptr search_str, int *cxp, int *cyp, bool forward)
 {
-        int i = *cyp;
-
-        while (1)
-        {
-                cptr pos;
-
-                if (forward)
-                {
-                        if (!lines_list[++i]) break;
-                }
-                else
-                {
-                        if (--i < 0) break;
-                }
+       int i = *cyp;
+
+       while (1)
+       {
+               cptr pos;
+
+               if (forward)
+               {
+                       if (!lines_list[++i]) break;
+               }
+               else
+               {
+                       if (--i < 0) break;
+               }
 #ifdef JP
-                pos = strstr_j(lines_list[i], search_str);
+               pos = strstr_j(lines_list[i], search_str);
 #else
                pos = strstr(lines_list[i], search_str);
 #endif
-                if (pos)
-                {
-                        *cxp = (int)(pos - lines_list[i]);
-                        *cyp = i;
-                        return TRUE;
-                }
-        }
-
-        return FALSE;
+               if (pos)
+               {
+                       *cxp = (int)(pos - lines_list[i]);
+                       *cyp = i;
+                       return TRUE;
+               }
+       }
+
+       return FALSE;
 }
 
 
@@ -2424,8 +2424,8 @@ errr process_pickpref_file_line(char *buf)
                if(!strcmp(entry.name, autopick_list[i].name)
                   && entry.flag[0] == autopick_list[i].flag[0]
                   && entry.flag[1] == autopick_list[i].flag[1]
-                   && entry.dice == autopick_list[i].dice
-                   && entry.bonus == autopick_list[i].bonus) return 0;
+                  && entry.dice == autopick_list[i].dice
+                  && entry.bonus == autopick_list[i].bonus) return 0;
 
        autopick_list[max_autopick++] = entry;
        return 0;
@@ -2557,17 +2557,17 @@ static cptr ctrl_command_desc[] =
        "^A ^E ¹Ô¤ÎÀèƬ¡¢½ªÃ¼",
        "^Q ÆþÎÏ/¥³¥Þ¥ó¥É¥â¡¼¥ÉÀÚ¤êÂؤ¨",
        "^R Êѹ¹¤òÁ´¤Æ¼è¤ê¾Ã¤·¤Æ¸µ¤ËÌ᤹",
-        "------------------------------------",
-        "^I »ý¤Áʪ/ÁõÈ÷¤«¤éÁªÂò",
+       "------------------------------------",
+       "^I »ý¤Áʪ/ÁõÈ÷¤«¤éÁªÂò",
        "^L",
        "^K ¥«¡¼¥½¥ë¤«¤é½ªÃ¼¤Þ¤Çºï½ü",
        "^Y ºï½ü(^K)¤·¤¿¹Ô¤òÁÞÆþ",
        "^C ¼ï²¡¢¿¦¶È¤Î¾ò·ï¼°¤òÁÞÆþ",
-        "------------------------------------",
+       "------------------------------------",
        "^S Êѹ¹ (!Ç˲õ/~ÊüÃÖ/½¦¤¦)",
        "^G \"(\" Á´ÂΥޥåפÇɽ¼¨¤·¤Ê¤¤",
        "^O \"#\" ¼«Æ°¹ï¤ß",
-        "------------------------------------",
+       "------------------------------------",
        "^U Ì¤´ÕÄê/̤ȽÌÀ/´ÕÄê/*´ÕÄê*",
        "^W \"̵²ÁÃͤÎ\"",
        "^X ÌµÌÃ/¥¨¥´/¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È",
@@ -2579,17 +2579,17 @@ static cptr ctrl_command_desc[] =
        "^A ^E Beginning and End of Line",
        "^Q Toggle Insert/Command mode",
        "^R Revert to Original File",
-        "------------------------------------",
-        "^I Object in Inventry/Equipment",
+       "------------------------------------",
+       "^I Object in Inventry/Equipment",
        "^L",
        "^K Kill Rest of Line",
        "^Y Insert killed(^K) text",
        "^C Insert conditional expression",
-        "------------------------------------",
+       "------------------------------------",
        "^S Toggle(!Destroy/~Leave/Pick)",
        "^G \"(\" No display in the 'M'ap",
        "^O \"#\" Auto-Inscribe",
-        "------------------------------------",
+       "------------------------------------",
        "^U Toggle 'identified' state",
        "^W \"worthless\"",
        "^X Toggle nameless/ego/artifact",
@@ -2615,23 +2615,23 @@ void do_cmd_edit_autopick(void)
        static int cx = 0, cy = 0;
        static int upper = 0, left = 0;
 
-        object_type *search_o_ptr = NULL;
-        cptr search_str = NULL;
-        cptr last_destroyed = NULL;
+       object_type *search_o_ptr = NULL;
+       cptr search_str = NULL;
+       cptr last_destroyed = NULL;
        char last_destroyed_command[WID_DESC+3];
        char yank_buf[MAX_YANK];
        char classrace[80];
        autopick_type an_entry, *entry = &an_entry;
        char buf[MAX_LINELEN];
        cptr *lines_list;
-        int filename_mode = PT_WITH_PNAME;
+       int filename_mode = PT_WITH_PNAME;
 
        int i, j, k, len;
 
        int old_upper = -1, old_left = -1;
        int old_cy = -1;
        int key = -1, old_key;
-        bool repeated_clearing = FALSE;
+       bool repeated_clearing = FALSE;
        bool edit_mode = FALSE;
 
        byte dirty_flags = DIRTY_ALL | DIRTY_COMMAND | DIRTY_MODE;
@@ -2639,26 +2639,26 @@ void do_cmd_edit_autopick(void)
 
        int wid, hgt, old_wid = -1, old_hgt = -1;
 
-        static s32b old_autosave_turn = 0L;
+       static s32b old_autosave_turn = 0L;
 
-        /* Autosave */
-        if (turn > old_autosave_turn + 100L)
-        {
-                do_cmd_save_game(TRUE);
-                old_autosave_turn = turn;
-        }
+       /* Autosave */
+       if (turn > old_autosave_turn + 100L)
+       {
+               do_cmd_save_game(TRUE);
+               old_autosave_turn = turn;
+       }
 
-        /* HACK -- Reset start_time to stop counting playtime while edit */
-        update_playtime();
+       /* HACK -- Reset start_time to stop counting playtime while edit */
+       update_playtime();
 
        /* Free old entries */
        init_autopicker();
 
        /* Command Description of the 'Last Destroyed Item' */
-        if (autopick_last_destroyed_object.k_idx)
-        {
-                autopick_entry_from_object(entry, &autopick_last_destroyed_object);
-                last_destroyed = autopick_line_from_entry_kill(entry);
+       if (autopick_last_destroyed_object.k_idx)
+       {
+               autopick_entry_from_object(entry, &autopick_last_destroyed_object);
+               last_destroyed = autopick_line_from_entry_kill(entry);
 
                my_strcpy(last_destroyed_command, format("^L \"%s\"", last_destroyed), sizeof(last_destroyed_command));
        }
@@ -2840,22 +2840,22 @@ void do_cmd_edit_autopick(void)
                        Term_erase(0, hgt - 3 + 2, wid);
 
                        /* Display information */
-                        if (dirty_flags & DIRTY_NOT_FOUND)
-                        {
+                       if (dirty_flags & DIRTY_NOT_FOUND)
+                       {
 #ifdef JP
                                prt(format("¥Ñ¥¿¡¼¥ó¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó: %s", search_str), hgt - 3 + 1, 0);
 #else
                                prt(format("Pattern not found: %s", search_str), hgt - 3 + 1, 0);
 #endif
-                        }
-                        else if (dirty_flags & DIRTY_NO_SEARCH)
-                        {
+                       }
+                       else if (dirty_flags & DIRTY_NO_SEARCH)
+                       {
 #ifdef JP
                                prt("¸¡º÷Ãæ¤Î¥Ñ¥¿¡¼¥ó¤¬¤¢¤ê¤Þ¤»¤ó('/'¤Ç¸¡º÷)¡£", hgt - 3 + 1, 0);
 #else
                                prt("No pattern to search. (Press '/' to search.)", hgt - 3 + 1, 0);
 #endif
-                        }
+                       }
                        else if (lines_list[cy][0] == '#')
                        {
 #ifdef JP
@@ -2963,25 +2963,25 @@ void do_cmd_edit_autopick(void)
 
                                /* Add a character */
 #ifdef JP
-                                if (iskanji(key))
+                               if (iskanji(key))
                                {
-                                        int next;
+                                       int next;
 
-                                        inkey_base = TRUE;
-                                        next = inkey();
-                                        if (j+2 < MAX_LINELEN)
+                                       inkey_base = TRUE;
+                                       next = inkey();
+                                       if (j+2 < MAX_LINELEN)
                                        {
-                                                buf[j++] = key;
-                                                buf[j++] = next;
+                                               buf[j++] = key;
+                                               buf[j++] = next;
                                                cx += 2;
-                                        }
+                                       }
                                        else
-                                                bell();
-                                }
+                                               bell();
+                               }
                                else
 #endif
                                {
-                                        if (j+1 < MAX_LINELEN)
+                                       if (j+1 < MAX_LINELEN)
                                                buf[j++] = key;
                                        cx++;
                                }
@@ -3018,23 +3018,23 @@ void do_cmd_edit_autopick(void)
                                break;
                        case '~':
                                if (!autopick_new_entry(entry, lines_list[cy]))
-                                {
-                                        if (old_key != key) repeated_clearing = FALSE;
+                               {
+                                       if (old_key != key) repeated_clearing = FALSE;
 
-                                        /* Next line */
-                                        if (lines_list[cy + 1]) cy++;
-                                        cx = 0;
+                                       /* Next line */
+                                       if (lines_list[cy + 1]) cy++;
+                                       cx = 0;
                                        break;
-                                }
+                               }
                                string_free(lines_list[cy]);
 
-                                if (old_key != key)
-                                {
-                                        if (entry->action & DONT_AUTOPICK)
-                                                repeated_clearing = TRUE;
-                                        else
-                                                repeated_clearing = FALSE;
-                                }
+                               if (old_key != key)
+                               {
+                                       if (entry->action & DONT_AUTOPICK)
+                                               repeated_clearing = TRUE;
+                                       else
+                                               repeated_clearing = FALSE;
+                               }
 
                                entry->action &= ~DO_AUTODESTROY;
                                entry->action &= ~DO_QUERY_AUTOPICK;
@@ -3054,29 +3054,29 @@ void do_cmd_edit_autopick(void)
                                /* Now dirty */
                                dirty_line = cy;
 
-                                /* Next line */
-                                if (lines_list[cy + 1]) cy++;
-                                cx = 0;
+                               /* Next line */
+                               if (lines_list[cy + 1]) cy++;
+                               cx = 0;
                                break;
                        case '!':
                                if (!autopick_new_entry(entry, lines_list[cy]))
-                                {
-                                        if (old_key != key) repeated_clearing = FALSE;
+                               {
+                                       if (old_key != key) repeated_clearing = FALSE;
 
-                                        /* Next line */
-                                        if (lines_list[cy + 1]) cy++;
-                                        cx = 0;
+                                       /* Next line */
+                                       if (lines_list[cy + 1]) cy++;
+                                       cx = 0;
                                        break;
-                                }
+                               }
                                string_free(lines_list[cy]);
 
-                                if (old_key != key)
-                                {
-                                        if (entry->action & DO_AUTODESTROY)
-                                                repeated_clearing = TRUE;
-                                        else
-                                                repeated_clearing = FALSE;
-                                }
+                               if (old_key != key)
+                               {
+                                       if (entry->action & DO_AUTODESTROY)
+                                               repeated_clearing = TRUE;
+                                       else
+                                               repeated_clearing = FALSE;
+                               }
 
                                entry->action &= ~DONT_AUTOPICK;
                                entry->action &= ~DO_QUERY_AUTOPICK;
@@ -3096,29 +3096,29 @@ void do_cmd_edit_autopick(void)
                                /* Now dirty */
                                dirty_line = cy;
 
-                                /* Next line */
-                                if (lines_list[cy + 1]) cy++;
-                                cx = 0;
+                               /* Next line */
+                               if (lines_list[cy + 1]) cy++;
+                               cx = 0;
                                break;
                        case ';':
                                if (!autopick_new_entry(entry, lines_list[cy]))
-                                {
-                                        if (old_key != key) repeated_clearing = FALSE;
+                               {
+                                       if (old_key != key) repeated_clearing = FALSE;
 
-                                        /* Next line */
-                                        if (lines_list[cy + 1]) cy++;
-                                        cx = 0;
+                                       /* Next line */
+                                       if (lines_list[cy + 1]) cy++;
+                                       cx = 0;
                                        break;
-                                }
+                               }
                                string_free(lines_list[cy]);
 
-                                if (old_key != key)
-                                {
-                                        if (entry->action & DO_QUERY_AUTOPICK)
-                                                repeated_clearing = TRUE;
-                                        else
-                                                repeated_clearing = FALSE;
-                                }
+                               if (old_key != key)
+                               {
+                                       if (entry->action & DO_QUERY_AUTOPICK)
+                                               repeated_clearing = TRUE;
+                                       else
+                                               repeated_clearing = FALSE;
+                               }
 
                                entry->action &= ~DO_AUTODESTROY;
                                entry->action &= ~DONT_AUTOPICK;
@@ -3138,44 +3138,44 @@ void do_cmd_edit_autopick(void)
                                /* Now dirty */
                                dirty_line = cy;
 
-                                /* Next line */
-                                if (lines_list[cy + 1]) cy++;
-                                cx = 0;
+                               /* Next line */
+                               if (lines_list[cy + 1]) cy++;
+                               cx = 0;
                                break;
                        case '(':
-                                /* Toggle display on the 'M'ap */
-                                if (!autopick_new_entry(entry, lines_list[cy]))
-                                {
-                                        if (old_key != key) repeated_clearing = FALSE;
-
-                                        /* Next line */
-                                        if (lines_list[cy + 1]) cy++;
-                                        cx = 0;
-                                        break;
-                                }
-                                string_free(lines_list[cy]);
-
-                                if (old_key != key)
-                                {
-                                        if (entry->action & DO_DISPLAY)
-                                                repeated_clearing = TRUE;
-                                        else
-                                                repeated_clearing = FALSE;
-                                }
+                               /* Toggle display on the 'M'ap */
+                               if (!autopick_new_entry(entry, lines_list[cy]))
+                               {
+                                       if (old_key != key) repeated_clearing = FALSE;
+
+                                       /* Next line */
+                                       if (lines_list[cy + 1]) cy++;
+                                       cx = 0;
+                                       break;
+                               }
+                               string_free(lines_list[cy]);
+
+                               if (old_key != key)
+                               {
+                                       if (entry->action & DO_DISPLAY)
+                                               repeated_clearing = TRUE;
+                                       else
+                                               repeated_clearing = FALSE;
+                               }
 
                                if (!repeated_clearing)
-                                        entry->action |= DO_DISPLAY;
-                                else
-                                        entry->action &= ~DO_DISPLAY;
+                                       entry->action |= DO_DISPLAY;
+                               else
+                                       entry->action &= ~DO_DISPLAY;
 
-                                lines_list[cy] = autopick_line_from_entry_kill(entry);
+                               lines_list[cy] = autopick_line_from_entry_kill(entry);
 
-                                /* Now dirty */
-                                dirty_line = cy;
+                               /* Now dirty */
+                               dirty_line = cy;
 
-                                /* Next line */
-                                if (lines_list[cy + 1]) cy++;
-                                cx = 0;
+                               /* Next line */
+                               if (lines_list[cy + 1]) cy++;
+                               cx = 0;
                                break;
                        case '#':
                        case '{':
@@ -3259,42 +3259,42 @@ void do_cmd_edit_autopick(void)
                                        dirty_flags |= DIRTY_MODE;
                                }                               
                                break;
-                        case '/':
+                       case '/':
                                /* Become dirty because of item/equip menu */
                                dirty_flags |= DIRTY_SCREEN;
 
-                                if (!get_string_for_search(&search_o_ptr, &search_str))
-                                        break;
-
-                                /* fall through */
-                        case 'n':
-                                if (search_o_ptr)
-                                {
-                                        if (!search_for_object(lines_list, search_o_ptr, &cx, &cy, TRUE)) dirty_flags |= DIRTY_NOT_FOUND;
-                                }
-                                else if (search_str)
-                                {
-                                        if (!search_for_string(lines_list, search_str, &cx, &cy, TRUE)) dirty_flags |= DIRTY_NOT_FOUND;
-                                }
-                                else
-                                {
-                                        dirty_flags |= DIRTY_NO_SEARCH;
-                                }
-                                break;
-                        case 'N':
-                                if (search_o_ptr)
-                                {
-                                        if (!search_for_object(lines_list, search_o_ptr, &cx, &cy, FALSE)) dirty_flags |= DIRTY_NOT_FOUND;
-                                }
-                                else if (search_str)
-                                {
-                                        if (!search_for_string(lines_list, search_str, &cx, &cy, FALSE)) dirty_flags |= DIRTY_NOT_FOUND;
-                                }
-                                else
-                                {
-                                        dirty_flags |= DIRTY_NO_SEARCH;
-                                }
-                                break;
+                               if (!get_string_for_search(&search_o_ptr, &search_str))
+                                       break;
+
+                               /* fall through */
+                       case 'n':
+                               if (search_o_ptr)
+                               {
+                                       if (!search_for_object(lines_list, search_o_ptr, &cx, &cy, TRUE)) dirty_flags |= DIRTY_NOT_FOUND;
+                               }
+                               else if (search_str)
+                               {
+                                       if (!search_for_string(lines_list, search_str, &cx, &cy, TRUE)) dirty_flags |= DIRTY_NOT_FOUND;
+                               }
+                               else
+                               {
+                                       dirty_flags |= DIRTY_NO_SEARCH;
+                               }
+                               break;
+                       case 'N':
+                               if (search_o_ptr)
+                               {
+                                       if (!search_for_object(lines_list, search_o_ptr, &cx, &cy, FALSE)) dirty_flags |= DIRTY_NOT_FOUND;
+                               }
+                               else if (search_str)
+                               {
+                                       if (!search_for_string(lines_list, search_str, &cx, &cy, FALSE)) dirty_flags |= DIRTY_NOT_FOUND;
+                               }
+                               else
+                               {
+                                       dirty_flags |= DIRTY_NO_SEARCH;
+                               }
+                               break;
                        }
                }
 
@@ -3385,13 +3385,13 @@ void do_cmd_edit_autopick(void)
                                break;
                        }
 
-                        insert_return_code(lines_list, 0, cy);
+                       insert_return_code(lines_list, 0, cy);
                        string_free(lines_list[cy]);
-                        lines_list[cy] = autopick_line_from_entry_kill(entry);
-                        cx = 0;
+                       lines_list[cy] = autopick_line_from_entry_kill(entry);
+                       cx = 0;
 
-                        /* Now dirty because of item/equip menu */
-                        dirty_flags |= DIRTY_SCREEN;
+                       /* Now dirty because of item/equip menu */
+                       dirty_flags |= DIRTY_SCREEN;
 
                        break;
                case KTRL('l'):
@@ -3399,7 +3399,7 @@ void do_cmd_edit_autopick(void)
                        if (last_destroyed)
                        {
                                insert_return_code(lines_list, 0, cy);
-                                string_free(lines_list[cy]);
+                               string_free(lines_list[cy]);
                                lines_list[cy] = string_make(last_destroyed);
                                cx = 0;
 
@@ -3597,15 +3597,15 @@ void do_cmd_edit_autopick(void)
                        /* Paste killed text */
                        if (strlen(yank_buf))
                        {
-                                bool ret = FALSE;
+                               bool ret = FALSE;
 
                                for (j = 0; yank_buf[j]; j += strlen(yank_buf + j) + 1)
                                {
-                                        if (ret && '\n' == yank_buf[j])
-                                        {
-                                                ret = FALSE;
-                                                continue;
-                                        }
+                                       if (ret && '\n' == yank_buf[j])
+                                       {
+                                               ret = FALSE;
+                                               continue;
+                                       }
 
                                        /* Split current line */
                                        insert_return_code(lines_list, cx, cy);
@@ -3615,13 +3615,13 @@ void do_cmd_edit_autopick(void)
                                                buf[i] = lines_list[cy][i];
 
                                        /* Paste yank buffer */
-                                        if ('\n' != yank_buf[j])
-                                        {
-                                                int k = j;
-                                                while (yank_buf[k] && i < MAX_LINELEN-1)
-                                                        buf[i++] = yank_buf[k++];
-                                                ret = TRUE;
-                                        }
+                                       if ('\n' != yank_buf[j])
+                                       {
+                                               int k = j;
+                                               while (yank_buf[k] && i < MAX_LINELEN-1)
+                                                       buf[i++] = yank_buf[k++];
+                                               ret = TRUE;
+                                       }
 
                                        buf[i] = '\0';
 
@@ -3647,53 +3647,53 @@ void do_cmd_edit_autopick(void)
                case KTRL('k'):
                        /* Kill rest of line */
                        if ((uint)cx > strlen(lines_list[cy]))
-                                cx = (int)strlen(lines_list[cy]);
+                               cx = (int)strlen(lines_list[cy]);
 
-                        /* Save preceding string */
-                        for (i = 0; lines_list[cy][i] && i < cx; i++)
-                        {
+                       /* Save preceding string */
+                       for (i = 0; lines_list[cy][i] && i < cx; i++)
+                       {
 #ifdef JP
-                                if (iskanji(lines_list[cy][i]))
-                                {
-                                        buf[i] = lines_list[cy][i];
-                                        i++;
-                                }
+                               if (iskanji(lines_list[cy][i]))
+                               {
+                                       buf[i] = lines_list[cy][i];
+                                       i++;
+                               }
 #endif
-                                buf[i] = lines_list[cy][i];
-                        }
-                        buf[i] = '\0';
-
-                        j = 0;
-                        if (old_key == key)
-                                while (yank_buf[j])
-                                        j += strlen(yank_buf + j) + 1;
-
-                        /* Copy following to yank buffer */
-                        if (lines_list[cy][i])
-                        {
-                                while (lines_list[cy][i] && j < MAX_YANK - 2)
-                                        yank_buf[j++] = lines_list[cy][i++];
-                                i = TRUE;
-                        }
-                        else
-                        {
-                                if (j < MAX_YANK - 2)
-                                        yank_buf[j++] = '\n';
-                                i = FALSE;
-                        }
-                        yank_buf[j++] = '\0';
-                        yank_buf[j] = '\0';
-
-                        /* Replace current line with 'preceding string' */
-                        string_free(lines_list[cy]);
-                        lines_list[cy] = string_make(buf);
-
-                        if (i)
-                        {
-                                /* Now dirty */
-                                dirty_line = cy;
-                                break;
-                        }
+                               buf[i] = lines_list[cy][i];
+                       }
+                       buf[i] = '\0';
+
+                       j = 0;
+                       if (old_key == key)
+                               while (yank_buf[j])
+                                       j += strlen(yank_buf + j) + 1;
+
+                       /* Copy following to yank buffer */
+                       if (lines_list[cy][i])
+                       {
+                               while (lines_list[cy][i] && j < MAX_YANK - 2)
+                                       yank_buf[j++] = lines_list[cy][i++];
+                               i = TRUE;
+                       }
+                       else
+                       {
+                               if (j < MAX_YANK - 2)
+                                       yank_buf[j++] = '\n';
+                               i = FALSE;
+                       }
+                       yank_buf[j++] = '\0';
+                       yank_buf[j] = '\0';
+
+                       /* Replace current line with 'preceding string' */
+                       string_free(lines_list[cy]);
+                       lines_list[cy] = string_make(buf);
+
+                       if (i)
+                       {
+                               /* Now dirty */
+                               dirty_line = cy;
+                               break;
+                       }
 
                        /* fall through */
                case KTRL('d'):
@@ -3773,24 +3773,24 @@ void do_cmd_edit_autopick(void)
        /* Restore the screen */
        screen_load();
 
-        switch (filename_mode)
-        {
-        case PT_DEFAULT:
+       switch (filename_mode)
+       {
+       case PT_DEFAULT:
 #ifdef JP
-                strcpy(buf, "picktype.prf");
+               strcpy(buf, "picktype.prf");
 #else
-                strcpy(buf, "pickpref.prf");
+               strcpy(buf, "pickpref.prf");
 #endif
-                break;
+               break;
 
-        case PT_WITH_PNAME:
+       case PT_WITH_PNAME:
 #ifdef JP
-                sprintf(buf, "picktype-%s.prf", player_name);
+               sprintf(buf, "picktype-%s.prf", player_name);
 #else
-                sprintf(buf, "pickpref-%s.prf", player_name);
+               sprintf(buf, "pickpref-%s.prf", player_name);
 #endif
-                break;
-        }
+               break;
+       }
 
        write_text_lines(buf, lines_list);
        free_text_lines(lines_list);
@@ -3800,6 +3800,6 @@ void do_cmd_edit_autopick(void)
        /* Reload autopick pref */
        process_pickpref_file(buf);
 
-        /* HACK -- reset start_time so that playtime is not increase while edit */
-        start_time = time(NULL);
+       /* HACK -- reset start_time so that playtime is not increase while edit */
+       start_time = time(NULL);
 }
index b150844..d7a48ad 100644 (file)
@@ -190,32 +190,32 @@ static void get_random_virtue(int which)
   {
    switch (randint1(29))
    {
-        case 1: case 2: case 3:
-              type = V_SACRIFICE;
-              break;
-        case 4: case 5: case 6:
-                type = V_COMPASSION;
-                break;
-        case 7: case 8: case 9: case 10: case 11: case 12:
-                type = V_VALOUR;
-                break;
-        case 13: case 14: case 15: case 16: case 17:
-                type = V_HONOUR;
-                break;
-        case 18: case 19: case 20: case 21:
-                type = V_JUSTICE;
-                break;
-        case 22: case 23:
-                type = V_TEMPERANCE;
-                break;
-        case 24: case 25:
-                type = V_HARMONY;
-                break;
-        case 26: case 27: case 28:
-                type = V_PATIENCE;
-                break;
-        default:
-                type = V_DILIGENCE;
+       case 1: case 2: case 3:
+             type = V_SACRIFICE;
+             break;
+       case 4: case 5: case 6:
+               type = V_COMPASSION;
+               break;
+       case 7: case 8: case 9: case 10: case 11: case 12:
+               type = V_VALOUR;
+               break;
+       case 13: case 14: case 15: case 16: case 17:
+               type = V_HONOUR;
+               break;
+       case 18: case 19: case 20: case 21:
+               type = V_JUSTICE;
+               break;
+       case 22: case 23:
+               type = V_TEMPERANCE;
+               break;
+       case 24: case 25:
+               type = V_HARMONY;
+               break;
+       case 26: case 27: case 28:
+               type = V_PATIENCE;
+               break;
+       default:
+               type = V_DILIGENCE;
    }
   }
 
@@ -407,49 +407,49 @@ void get_virtues(void)
    {
     switch(p_ptr->realm1)
     {
-        case REALM_LIFE:
-         if (virtue_number(V_VITALITY))
-          p_ptr->vir_types[i++] = V_TEMPERANCE;
-         else p_ptr->vir_types[i++] = V_VITALITY;
-        break;
-        case REALM_SORCERY:
-         if (virtue_number(V_KNOWLEDGE))
-          p_ptr->vir_types[i++] = V_ENCHANT;
-         else p_ptr->vir_types[i++] = V_KNOWLEDGE;
-        break;
-        case REALM_NATURE:
-         if (virtue_number(V_NATURE))
-          p_ptr->vir_types[i++] = V_HARMONY;
-         else p_ptr->vir_types[i++] = V_NATURE;
-        break;
-        case REALM_CHAOS:
-         if (virtue_number(V_CHANCE))
-          p_ptr->vir_types[i++] = V_INDIVIDUALISM;
-         else p_ptr->vir_types[i++] = V_CHANCE;
-        break;
-        case REALM_DEATH:
-         p_ptr->vir_types[i++] = V_UNLIFE;
-        break;
-        case REALM_TRUMP:
-         p_ptr->vir_types[i++] = V_KNOWLEDGE;
-        break;
-        case REALM_ARCANE:
-        break;
-        case REALM_ENCHANT:
-         if (virtue_number(V_ENCHANT))
-          p_ptr->vir_types[i++] = V_INDIVIDUALISM;
-         else p_ptr->vir_types[i++] = V_ENCHANT;
-        break;
-        case REALM_DAEMON:
-         if (virtue_number(V_JUSTICE))
-          p_ptr->vir_types[i++] = V_FAITH;
-         else p_ptr->vir_types[i++] = V_JUSTICE;
-        break;
-        case REALM_CRUSADE:
-         if (virtue_number(V_JUSTICE))
-          p_ptr->vir_types[i++] = V_HONOUR;
-         else p_ptr->vir_types[i++] = V_JUSTICE;
-        break;
+       case REALM_LIFE:
+        if (virtue_number(V_VITALITY))
+         p_ptr->vir_types[i++] = V_TEMPERANCE;
+        else p_ptr->vir_types[i++] = V_VITALITY;
+       break;
+       case REALM_SORCERY:
+        if (virtue_number(V_KNOWLEDGE))
+         p_ptr->vir_types[i++] = V_ENCHANT;
+        else p_ptr->vir_types[i++] = V_KNOWLEDGE;
+       break;
+       case REALM_NATURE:
+        if (virtue_number(V_NATURE))
+         p_ptr->vir_types[i++] = V_HARMONY;
+        else p_ptr->vir_types[i++] = V_NATURE;
+       break;
+       case REALM_CHAOS:
+        if (virtue_number(V_CHANCE))
+         p_ptr->vir_types[i++] = V_INDIVIDUALISM;
+        else p_ptr->vir_types[i++] = V_CHANCE;
+       break;
+       case REALM_DEATH:
+        p_ptr->vir_types[i++] = V_UNLIFE;
+       break;
+       case REALM_TRUMP:
+        p_ptr->vir_types[i++] = V_KNOWLEDGE;
+       break;
+       case REALM_ARCANE:
+       break;
+       case REALM_ENCHANT:
+        if (virtue_number(V_ENCHANT))
+         p_ptr->vir_types[i++] = V_INDIVIDUALISM;
+        else p_ptr->vir_types[i++] = V_ENCHANT;
+       break;
+       case REALM_DAEMON:
+        if (virtue_number(V_JUSTICE))
+         p_ptr->vir_types[i++] = V_FAITH;
+        else p_ptr->vir_types[i++] = V_JUSTICE;
+       break;
+       case REALM_CRUSADE:
+        if (virtue_number(V_JUSTICE))
+         p_ptr->vir_types[i++] = V_HONOUR;
+        else p_ptr->vir_types[i++] = V_JUSTICE;
+       break;
      };
     }
 
@@ -459,49 +459,49 @@ void get_virtues(void)
    {
     switch(p_ptr->realm2)
     {
-        case REALM_LIFE:
-         if (virtue_number(V_VITALITY))
-          p_ptr->vir_types[i++] = V_TEMPERANCE;
-         else p_ptr->vir_types[i++] = V_VITALITY;
-        break;
-        case REALM_SORCERY:
-         if (virtue_number(V_ENCHANT))
-          p_ptr->vir_types[i++] = V_KNOWLEDGE;
-         else p_ptr->vir_types[i++] = V_ENCHANT;
-        break;
-        case REALM_NATURE:
-         if (virtue_number(V_NATURE))
-          p_ptr->vir_types[i++] = V_HARMONY;
-         else p_ptr->vir_types[i++] = V_NATURE;
-        break;
-        case REALM_CHAOS:
-         if (virtue_number(V_CHANCE))
-          p_ptr->vir_types[i++] = V_INDIVIDUALISM;
-         else p_ptr->vir_types[i++] = V_CHANCE;
-        break;
-        case REALM_DEATH:
-         p_ptr->vir_types[i++] = V_UNLIFE;
-        break;
-        case REALM_TRUMP:
-         p_ptr->vir_types[i++] = V_KNOWLEDGE;
-        break;
-        case REALM_ARCANE:
-        break;
-        case REALM_ENCHANT:
-         if (virtue_number(V_ENCHANT))
+       case REALM_LIFE:
+        if (virtue_number(V_VITALITY))
+         p_ptr->vir_types[i++] = V_TEMPERANCE;
+        else p_ptr->vir_types[i++] = V_VITALITY;
+       break;
+       case REALM_SORCERY:
+        if (virtue_number(V_ENCHANT))
+         p_ptr->vir_types[i++] = V_KNOWLEDGE;
+        else p_ptr->vir_types[i++] = V_ENCHANT;
+       break;
+       case REALM_NATURE:
+        if (virtue_number(V_NATURE))
+         p_ptr->vir_types[i++] = V_HARMONY;
+        else p_ptr->vir_types[i++] = V_NATURE;
+       break;
+       case REALM_CHAOS:
+        if (virtue_number(V_CHANCE))
+         p_ptr->vir_types[i++] = V_INDIVIDUALISM;
+        else p_ptr->vir_types[i++] = V_CHANCE;
+       break;
+       case REALM_DEATH:
+        p_ptr->vir_types[i++] = V_UNLIFE;
+       break;
+       case REALM_TRUMP:
+        p_ptr->vir_types[i++] = V_KNOWLEDGE;
+       break;
+       case REALM_ARCANE:
+       break;
+       case REALM_ENCHANT:
+        if (virtue_number(V_ENCHANT))
          p_ptr->vir_types[i++] = V_INDIVIDUALISM;
-         else p_ptr->vir_types[i++] = V_ENCHANT;
-        break;
-        case REALM_DAEMON:
-         if (virtue_number(V_JUSTICE))
-          p_ptr->vir_types[i++] = V_FAITH;
-         else p_ptr->vir_types[i++] = V_JUSTICE;
-        break;
-        case REALM_CRUSADE:
-         if (virtue_number(V_JUSTICE))
-          p_ptr->vir_types[i++] = V_HONOUR;
-         else p_ptr->vir_types[i++] = V_JUSTICE;
-        break;
+        else p_ptr->vir_types[i++] = V_ENCHANT;
+       break;
+       case REALM_DAEMON:
+        if (virtue_number(V_JUSTICE))
+         p_ptr->vir_types[i++] = V_FAITH;
+        else p_ptr->vir_types[i++] = V_JUSTICE;
+       break;
+       case REALM_CRUSADE:
+        if (virtue_number(V_JUSTICE))
+         p_ptr->vir_types[i++] = V_HONOUR;
+        else p_ptr->vir_types[i++] = V_JUSTICE;
+       break;
      };
     }
 
@@ -530,55 +530,55 @@ void chg_virtue(int virtue, int amount)
 
     for (i = 0; i < 8; i++)
     {
-        if (p_ptr->vir_types[i] == virtue)
-        {
-            if (amount > 0)
-            {
-                if ((amount + p_ptr->virtues[i] > 50) && one_in_(2))
+       if (p_ptr->vir_types[i] == virtue)
+       {
+           if (amount > 0)
+           {
+               if ((amount + p_ptr->virtues[i] > 50) && one_in_(2))
                {
                    p_ptr->virtues[i] = MAX(p_ptr->virtues[i], 50);
                    return;
                }
-                if ((amount + p_ptr->virtues[i] > 80) && one_in_(2))
+               if ((amount + p_ptr->virtues[i] > 80) && one_in_(2))
                {
                    p_ptr->virtues[i] = MAX(p_ptr->virtues[i], 80);
                    return;
                }
-                if ((amount + p_ptr->virtues[i] > 100) && one_in_(2))
+               if ((amount + p_ptr->virtues[i] > 100) && one_in_(2))
                {
                    p_ptr->virtues[i] = MAX(p_ptr->virtues[i], 100);
                    return;
                }
-                if (amount + p_ptr->virtues[i] > 125)
-                 p_ptr->virtues[i] = 125;
-                else
-                 p_ptr->virtues[i] = p_ptr->virtues[i] + amount;
-            }
-            else
-            {
-                if ((amount + p_ptr->virtues[i] < -50) && one_in_(2))
+               if (amount + p_ptr->virtues[i] > 125)
+                p_ptr->virtues[i] = 125;
+               else
+                p_ptr->virtues[i] = p_ptr->virtues[i] + amount;
+           }
+           else
+           {
+               if ((amount + p_ptr->virtues[i] < -50) && one_in_(2))
                {
                    p_ptr->virtues[i] = MIN(p_ptr->virtues[i], -50);
                    return;
                }
-                if ((amount + p_ptr->virtues[i] < -80) && one_in_(2))
+               if ((amount + p_ptr->virtues[i] < -80) && one_in_(2))
                {
                    p_ptr->virtues[i] = MIN(p_ptr->virtues[i], -80);
                    return;
                }
-                if ((amount + p_ptr->virtues[i] < -100) && one_in_(2))
+               if ((amount + p_ptr->virtues[i] < -100) && one_in_(2))
                {
                    p_ptr->virtues[i] = MIN(p_ptr->virtues[i], -100);
                    return;
                }
-                if (amount + p_ptr->virtues[i] < -125)
-                 p_ptr->virtues[i] = -125;
-                else
-                 p_ptr->virtues[i] = p_ptr->virtues[i] + amount;
-            }
+               if (amount + p_ptr->virtues[i] < -125)
+                p_ptr->virtues[i] = -125;
+               else
+                p_ptr->virtues[i] = p_ptr->virtues[i] + amount;
+           }
            p_ptr->update |= (PU_BONUS);
-            return;
-        }
+           return;
+       }
     }
 
 }
@@ -589,8 +589,8 @@ void set_virtue(int virtue, int amount)
 
     for (i = 0; i < 8; i++)
     {
-        if (p_ptr->vir_types[i] == virtue)
-        {
+       if (p_ptr->vir_types[i] == virtue)
+       {
            p_ptr->virtues[i] = amount;
            return;
        }
@@ -603,129 +603,129 @@ void dump_virtues(FILE * OutFile)
 
     if (!OutFile) return;
 
-        for (v_nr = 0; v_nr < 8; v_nr++)
-        {
-                char v_name [20];
+       for (v_nr = 0; v_nr < 8; v_nr++)
+       {
+               char v_name [20];
 
-                int tester = p_ptr->virtues[v_nr];
+               int tester = p_ptr->virtues[v_nr];
 
-                strcpy(v_name, virtue[(p_ptr->vir_types[v_nr])-1]);
+               strcpy(v_name, virtue[(p_ptr->vir_types[v_nr])-1]);
 
-                if (p_ptr->vir_types[v_nr] == 0 || p_ptr->vir_types[v_nr] >
-                    MAX_VIRTUE)
+               if (p_ptr->vir_types[v_nr] == 0 || p_ptr->vir_types[v_nr] >
+                   MAX_VIRTUE)
 #ifdef JP
-                 fprintf(OutFile, "¤ª¤Ã¤È¡£%s¤Î¾ðÊó¤Ê¤·¡£", v_name);
+                fprintf(OutFile, "¤ª¤Ã¤È¡£%s¤Î¾ðÊó¤Ê¤·¡£", v_name);
 #else
-                 fprintf(OutFile, "Oops. No info about %s.", v_name);
+                fprintf(OutFile, "Oops. No info about %s.", v_name);
 #endif
 
-                else if (tester < -100)
+               else if (tester < -100)
 #ifdef JP
-                  fprintf(OutFile, "[%s]¤ÎÂжË",
+                 fprintf(OutFile, "[%s]¤ÎÂжË",
 #else
-                  fprintf(OutFile, "You are the polar opposite of %s.",
+                 fprintf(OutFile, "You are the polar opposite of %s.",
 #endif
 
-                   v_name);
-                else if (tester < -80)
+                  v_name);
+               else if (tester < -80)
 #ifdef JP
-                  fprintf(OutFile, "[%s]¤ÎÂçŨ",
+                 fprintf(OutFile, "[%s]¤ÎÂçŨ",
 #else
-                  fprintf(OutFile, "You are an arch-enemy of %s.",
+                 fprintf(OutFile, "You are an arch-enemy of %s.",
 #endif
 
-                   v_name);
-                else if (tester < -60)
+                  v_name);
+               else if (tester < -60)
 #ifdef JP
-                  fprintf(OutFile, "[%s]¤Î¶¯Å¨",
+                 fprintf(OutFile, "[%s]¤Î¶¯Å¨",
 #else
-                  fprintf(OutFile, "You are a bitter enemy of %s.",
+                 fprintf(OutFile, "You are a bitter enemy of %s.",
 #endif
 
-                   v_name);
-                else if (tester < -40)
+                  v_name);
+               else if (tester < -40)
 #ifdef JP
-                  fprintf(OutFile, "[%s]¤ÎŨ",
+                 fprintf(OutFile, "[%s]¤ÎŨ",
 #else
-                  fprintf(OutFile, "You are an enemy of %s.",
+                 fprintf(OutFile, "You are an enemy of %s.",
 #endif
 
-                   v_name);
-                else if (tester < -20)
+                  v_name);
+               else if (tester < -20)
 #ifdef JP
-                  fprintf(OutFile, "[%s]¤Îºá¼Ô",
+                 fprintf(OutFile, "[%s]¤Îºá¼Ô",
 #else
-                  fprintf(OutFile, "You have sinned against %s.",
+                 fprintf(OutFile, "You have sinned against %s.",
 #endif
 
-                   v_name);
-                else if (tester < 0)
+                  v_name);
+               else if (tester < 0)
 #ifdef JP
-                  fprintf(OutFile, "[%s]¤ÎÌÂÆ»¼Ô",
+                 fprintf(OutFile, "[%s]¤ÎÌÂÆ»¼Ô",
 #else
-                  fprintf(OutFile, "You have strayed from the path of %s.",
+                 fprintf(OutFile, "You have strayed from the path of %s.",
 #endif
 
-                   v_name);
-                else if (tester == 0)                   
+                  v_name);
+               else if (tester == 0)                   
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤ÎÃæΩ¼Ô",
+                 fprintf(OutFile,"[%s]¤ÎÃæΩ¼Ô",
 #else
-                  fprintf(OutFile,"You are neutral to %s.",
+                 fprintf(OutFile,"You are neutral to %s.",
 #endif
 
-                   v_name);
-                else if (tester < 20)
+                  v_name);
+               else if (tester < 20)
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤Î¾®ÆÁ¼Ô",
+                 fprintf(OutFile,"[%s]¤Î¾®ÆÁ¼Ô",
 #else
-                  fprintf(OutFile,"You are somewhat virtuous in %s.",
+                 fprintf(OutFile,"You are somewhat virtuous in %s.",
 #endif
 
-                   v_name);
-                else if (tester < 40)
+                  v_name);
+               else if (tester < 40)
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤ÎÃæÆÁ¼Ô",
+                 fprintf(OutFile,"[%s]¤ÎÃæÆÁ¼Ô",
 #else
-                  fprintf(OutFile,"You are virtuous in %s.",
+                 fprintf(OutFile,"You are virtuous in %s.",
 #endif
 
-                   v_name);
-                else if (tester < 60)
+                  v_name);
+               else if (tester < 60)
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤Î¹âÆÁ¼Ô",
+                 fprintf(OutFile,"[%s]¤Î¹âÆÁ¼Ô",
 #else
-                  fprintf(OutFile,"You are very virtuous in %s.",
+                 fprintf(OutFile,"You are very virtuous in %s.",
 #endif
 
-                   v_name);
-                else if (tester < 80)
+                  v_name);
+               else if (tester < 80)
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤ÎÇƼÔ",
+                 fprintf(OutFile,"[%s]¤ÎÇƼÔ",
 #else
-                  fprintf(OutFile,"You are a champion of %s.",
+                 fprintf(OutFile,"You are a champion of %s.",
 #endif
 
-                   v_name);
-                else if (tester < 100)
+                  v_name);
+               else if (tester < 100)
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤Î°ÎÂç¤ÊÇƼÔ",
+                 fprintf(OutFile,"[%s]¤Î°ÎÂç¤ÊÇƼÔ",
 #else
-                  fprintf(OutFile,"You are a great champion of %s.",
+                 fprintf(OutFile,"You are a great champion of %s.",
 #endif
 
-                   v_name);
-                else
+                  v_name);
+               else
 #ifdef JP
-                  fprintf(OutFile,"[%s]¤Î¶ñ¸½¼Ô",
+                 fprintf(OutFile,"[%s]¤Î¶ñ¸½¼Ô",
 #else
-                  fprintf(OutFile,"You are the living embodiment of %s.",
+                 fprintf(OutFile,"You are the living embodiment of %s.",
 #endif
 
-                   v_name);
+                  v_name);
 
-            fprintf(OutFile, "\n");
-        }
+           fprintf(OutFile, "\n");
+       }
 
 
 }
index 961109c..0caae50 100644 (file)
@@ -1246,15 +1246,15 @@ static hist_type bg[] =
 
 
 #ifdef JP
-        {"»³ÍÓ¤ÎÄý¤¬¤¢¤ê¤Þ¤¹¡£",      50, 133, 0, 50 },
-        {"¿Í´Ö¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",  75, 133, 0, 50 },
-        {"Ä»¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",    85, 133, 0, 50 },
-        {"à¨ÃîÎà¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",90, 133, 0, 50 },
-        {"µí¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",    95, 133, 0, 50 },
-        {"Ç­¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",    97, 133, 0, 50 },
-        {"¸¤¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",   100, 133, 0, 50 },
+       {"»³ÍÓ¤ÎÄý¤¬¤¢¤ê¤Þ¤¹¡£",      50, 133, 0, 50 },
+       {"¿Í´Ö¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",  75, 133, 0, 50 },
+       {"Ä»¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",    85, 133, 0, 50 },
+       {"à¨ÃîÎà¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",90, 133, 0, 50 },
+       {"µí¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",    95, 133, 0, 50 },
+       {"Ç­¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",    97, 133, 0, 50 },
+       {"¸¤¤Î­¤¬À¸¤¨¤Æ¤¤¤Þ¤¹¡£",   100, 133, 0, 50 },
 
-        {"¤¢¤Ê¤¿¤Ï", 100, 134, 120, 50 },
+       {"¤¢¤Ê¤¿¤Ï", 100, 134, 120, 50 },
 #else
        {"and the hooves of a goat.",      50, 133, 0, 50 },
        {"and human feet.",        75, 133, 0, 50 },
@@ -2059,7 +2059,7 @@ static void show_help(cptr helpfile)
        screen_save();
 
        /* Peruse the help file */
-        (void)show_file(TRUE, helpfile, NULL, 0, 0);
+       (void)show_file(TRUE, helpfile, NULL, 0, 0);
 
        /* Load screen */
        screen_load();
@@ -2296,13 +2296,13 @@ static byte choose_realm(s32b choices, int *count)
                }
                else k = -1;
                if (c == '?')
-                {
+               {
 #ifdef JP                 
-                        show_help("jmagic.txt#MagicRealms");
+                       show_help("jmagic.txt#MagicRealms");
 #else
-                        show_help("magic.txt#MagicRealms");
+                       show_help("magic.txt#MagicRealms");
 #endif
-                }
+               }
                else if (c == '=')
                {
                        screen_save();
@@ -2329,7 +2329,7 @@ static byte choose_realm(s32b choices, int *count)
  */
 static bool get_player_realms(void)
 {
-        int i, count;
+       int i, count;
 
        /* Clean up infomation of modifications */
        put_str("                                   ", 3, 40);
@@ -2378,12 +2378,12 @@ static bool get_player_realms(void)
                        (void)inkey();
                        prt("", 0, 0);
                        break;
-                }
+               }
 else
 #ifdef JP
-                if (get_check("¤è¤í¤·¤¤¤Ç¤¹¤«¡©")) break;
+               if (get_check("¤è¤í¤·¤¤¤Ç¤¹¤«¡©")) break;
 #else
-                if (get_check("Are you sure? ")) break;
+               if (get_check("Are you sure? ")) break;
 #endif
        }
 
@@ -2445,7 +2445,7 @@ else
 #ifdef JP
                        else if (get_check("¤è¤í¤·¤¤¤Ç¤¹¤«¡©")) break;
 #else
-                        else if (get_check("Are you sure? ")) break;
+                       else if (get_check("Are you sure? ")) break;
 #endif
                }
                if (p_ptr->realm2)
@@ -3061,13 +3061,13 @@ static void get_history(void)
        while ((n > 0) && (s[n-1] == ' ')) s[--n] = '\0';
 
        {
-        char temp[64*4];
-        roff_to_buf(s, 60, temp);
-        t = temp;
-        for(i=0 ; i<4 ; i++){
-             if(t[0]==0)break; 
-             else {strcpy(p_ptr->history[i], t);t += strlen(t)+1;}
-             }
+       char temp[64*4];
+       roff_to_buf(s, 60, temp);
+       t = temp;
+       for(i=0 ; i<4 ; i++){
+            if(t[0]==0)break; 
+            else {strcpy(p_ptr->history[i], t);t += strlen(t)+1;}
+            }
        }
 }
 
@@ -3319,7 +3319,7 @@ static void player_wipe(void)
 
        /* Assume no cheating */
        p_ptr->noscore = 0;
-        p_ptr->wizard = FALSE;
+       p_ptr->wizard = FALSE;
 
        /* Not waiting to report score */
        p_ptr->wait_report_score = FALSE;
@@ -3328,16 +3328,16 @@ static void player_wipe(void)
        p_ptr->pet_follow_distance = PET_FOLLOW_DIST;
        p_ptr->pet_extra_flags = (PF_TELEPORT | PF_ATTACK_SPELL | PF_SUMMON_SPELL);
 
-        /* Wipe the recall depths */
-        for (i = 0; i < max_d_idx; i++)
-        {
+       /* Wipe the recall depths */
+       for (i = 0; i < max_d_idx; i++)
+       {
                max_dlv[i] = 0;
-        }
+       }
 
        p_ptr->visit = 1;
 
-        /* Reset wild_mode to FALSE */
-        p_ptr->wild_mode = FALSE;
+       /* Reset wild_mode to FALSE */
+       p_ptr->wild_mode = FALSE;
 
        for (i = 0; i < 108; i++)
        {
@@ -4109,13 +4109,13 @@ static bool get_player_race(void)
                }
                else k = -1;
                if (c == '?')
-                {
+               {
 #ifdef JP                 
-                        show_help("jraceclas.txt#TheRaces");
+                       show_help("jraceclas.txt#TheRaces");
 #else
-                        show_help("raceclas.txt#TheRaces");
+                       show_help("raceclas.txt#TheRaces");
 #endif
-                }
+               }
                else if (c == '=')
                {
                        screen_save();
@@ -4324,13 +4324,13 @@ static bool get_player_class(void)
                }
                else k = -1;
                if (c == '?')
-                {
+               {
 #ifdef JP                 
-                        show_help("jraceclas.txt#TheClasses");
+                       show_help("jraceclas.txt#TheClasses");
 #else
-                        show_help("raceclas.txt#TheClasses");
+                       show_help("raceclas.txt#TheClasses");
 #endif
-                }
+               }
                else if (c == '=')
                {
                        screen_save();
@@ -4566,13 +4566,13 @@ static bool get_player_seikaku(void)
                }
                else k = -1;
                if (c == '?')
-                {
+               {
 #ifdef JP                 
-                        show_help("jraceclas.txt#ThePersonalities");
+                       show_help("jraceclas.txt#ThePersonalities");
 #else
-                        show_help("raceclas.txt#ThePersonalities");
+                       show_help("raceclas.txt#ThePersonalities");
 #endif
-                }
+               }
                else if (c == '=')
                {
                        screen_save();
@@ -4770,13 +4770,13 @@ static bool get_stat_limits(void)
                c = inkey();
                switch ( c ){
                case 'Q':
-                       birth_quit();
+                       birth_quit();
                        break;
                case 'S':
-                       return (FALSE); 
+                       return (FALSE); 
                        break;
                case ESCAPE:
-                       break;
+                       break;
                case ' ':
                case '\r':
                case '\n':
@@ -4841,13 +4841,13 @@ static bool get_stat_limits(void)
                        }
                        break;
                case '?':
-                {
+               {
 #ifdef JP                 
-                        show_help("jbirth.txt#AutoRoller");
+                       show_help("jbirth.txt#AutoRoller");
 #else
-                        show_help("birth.txt#AutoRoller");
+                       show_help("birth.txt#AutoRoller");
 #endif
-                }
+               }
                        break;
                case '=':
                        screen_save();
@@ -4860,7 +4860,7 @@ static bool get_stat_limits(void)
                        screen_load();
                        break;
                default:
-                       bell();
+                       bell();
                        break;
                }
                if(c == ESCAPE || ((c == ' ' || c == '\r' || c == '\n') && cs == 6))break;
@@ -5138,9 +5138,9 @@ static bool get_chara_limits(void)
                        break;
                case '?':
 #ifdef JP                 
-                        show_help("jbirth.txt#AutoRoller");
+                       show_help("jbirth.txt#AutoRoller");
 #else
-                        show_help("birth.txt#AutoRoller");
+                       show_help("birth.txt#AutoRoller");
 #endif
                        break;
                case '=':
@@ -5175,17 +5175,17 @@ static bool get_chara_limits(void)
  */
 static void edit_history(void)
 {
-        char old_history[4][60];
+       char old_history[4][60];
        char c;
        int y = 0, x = 0;
        int i, j;
 
-        /* Edit character background */
-        for (i = 0; i < 4; i++)
-        {
-                sprintf(old_history[i], "%s", p_ptr->history[i]);
-        }
-        /* Turn 0 to space */
+       /* Edit character background */
+       for (i = 0; i < 4; i++)
+       {
+               sprintf(old_history[i], "%s", p_ptr->history[i]);
+       }
+       /* Turn 0 to space */
        for (i = 0; i < 4; i++)
        {
                for (j = 0; p_ptr->history[i][j]; j++) /* loop */;
@@ -5193,62 +5193,62 @@ static void edit_history(void)
                for (; j < 59; j++) p_ptr->history[i][j] = ' ';
                p_ptr->history[i][59] = '\0';
        }
-        display_player(1);
+       display_player(1);
 #ifdef JP
-        c_put_str(TERM_L_GREEN, "(¥­¥ã¥é¥¯¥¿¡¼¤ÎÀ¸¤¤Î©¤Á - ÊÔ½¸¥â¡¼¥É)", 11, 20);
+       c_put_str(TERM_L_GREEN, "(¥­¥ã¥é¥¯¥¿¡¼¤ÎÀ¸¤¤Î©¤Á - ÊÔ½¸¥â¡¼¥É)", 11, 20);
 #else
-        c_put_str(TERM_L_GREEN, "(Character Background - Edit Mode)", 11, 20);
+       c_put_str(TERM_L_GREEN, "(Character Background - Edit Mode)", 11, 20);
 #endif
 
-        while (TRUE)
-        {
-                for (i = 0; i < 4; i++)
-                {
-                        put_str(p_ptr->history[i], i + 12, 10);
-                }
+       while (TRUE)
+       {
+               for (i = 0; i < 4; i++)
+               {
+                       put_str(p_ptr->history[i], i + 12, 10);
+               }
 #ifdef JP
                if (iskanji2(p_ptr->history[y], x))
                        c_put_str(TERM_L_BLUE, format("%c%c", p_ptr->history[y][x],p_ptr->history[y][x+1]), y + 12, x + 10);
                else
 #endif
-                c_put_str(TERM_L_BLUE, format("%c", p_ptr->history[y][x]), y + 12, x + 10);
+               c_put_str(TERM_L_BLUE, format("%c", p_ptr->history[y][x]), y + 12, x + 10);
 
                /* Place cursor just after cost of current stat */
-                Term_gotoxy(x + 10, y + 12);
+               Term_gotoxy(x + 10, y + 12);
 
-                c = inkey();
+               c = inkey();
 
-                if (c == '8')
-                {
-                        y--;
-                        if (y < 0) y = 3;
+               if (c == '8')
+               {
+                       y--;
+                       if (y < 0) y = 3;
 #ifdef JP
                        if ((x > 0) && (iskanji2(p_ptr->history[y], x-1))) x--;
 #endif
-                }
-                else if (c == '2')
-                {
-                        y++;
-                        if (y > 3) y = 0;
+               }
+               else if (c == '2')
+               {
+                       y++;
+                       if (y > 3) y = 0;
 #ifdef JP
                        if ((x > 0) && (iskanji2(p_ptr->history[y], x-1))) x--;
 #endif
-                }
-                else if (c == '6')
-                {
+               }
+               else if (c == '6')
+               {
 #ifdef JP
                        if (iskanji2(p_ptr->history[y], x)) x++;
 #endif
-                        x++;
-                        if (x > 58)
+                       x++;
+                       if (x > 58)
                        {
                                x = 0;
                                if (y < 3) y++;
                        }
-                }
-                else if (c == '4')
-                {
-                        x--;
+               }
+               else if (c == '4')
+               {
+                       x--;
                        if (x < 0)
                        {
                                if (y)
@@ -5262,20 +5262,20 @@ static void edit_history(void)
 #ifdef JP
                        if ((x > 0) && (iskanji2(p_ptr->history[y], x-1))) x--;
 #endif
-                }
-                else if (c == '\r')
-                {
-                        break;
-                }
-                else if (c == ESCAPE)
-                {
-                        for (i = 0; i < 4; i++)
-                        {
-                                sprintf(p_ptr->history[i], "%s", old_history[i]);
-                                put_str(p_ptr->history[i], i + 12, 10);
-                        }
-                        break;
-                }
+               }
+               else if (c == '\r')
+               {
+                       break;
+               }
+               else if (c == ESCAPE)
+               {
+                       for (i = 0; i < 4; i++)
+                       {
+                               sprintf(p_ptr->history[i], "%s", old_history[i]);
+                               put_str(p_ptr->history[i], i + 12, 10);
+                       }
+                       break;
+               }
                else if (c == '\010')
                {
                        x--;
@@ -5289,7 +5289,7 @@ static void edit_history(void)
                                else x = 0;
                        }
 
-                        p_ptr->history[y][x] = ' ';
+                       p_ptr->history[y][x] = ' ';
 #ifdef JP
                        if ((x > 0) && (iskanji2(p_ptr->history[y], x - 1)))
                        {
@@ -5301,9 +5301,9 @@ static void edit_history(void)
 #ifdef JP
                else if (iskanji(c) || isprint(c))
 #else
-                else if (isprint(c)) /* BUGFIX */
+               else if (isprint(c)) /* BUGFIX */
 #endif
-                {
+               {
 #ifdef JP
                        if (iskanji2(p_ptr->history[y], x))
                        {
@@ -5329,15 +5329,15 @@ static void edit_history(void)
                                c = inkey();
                        }
 #endif
-                        p_ptr->history[y][x++] = c;
+                       p_ptr->history[y][x++] = c;
                        if (x > 58)
                        {
                                x = 0;
                                y++;
                                if (y > 3) y = 0;
                        }
-                }
-        } /* while (TRUE) */
+               }
+       } /* while (TRUE) */
 
 }
 
@@ -5744,15 +5744,15 @@ static bool player_birth_aux(void)
                                /* 0 to 10 random quests */
                                number_of_quests = randint0(11);
                        }
-                        else if (inp[0] == '?')
-                        {
+                       else if (inp[0] == '?')
+                       {
 #ifdef JP                 
-                                show_help("jbirth.txt#RandomQuests");
+                               show_help("jbirth.txt#RandomQuests");
 #else
-                                show_help("birth.txt#RandomQuests");
+                               show_help("birth.txt#RandomQuests");
 #endif
-                                continue;
-                        }
+                               continue;
+                       }
                        else
                        {
                                number_of_quests = atoi(inp);
@@ -5952,7 +5952,7 @@ static bool player_birth_aux(void)
                                        /* Roll for age/height/weight */
                                        get_ahw();
 
-                                       /* Roll for social class */
+                                       /* Roll for social class */
                                        get_history();
 
                                        break;
@@ -6066,9 +6066,9 @@ static bool player_birth_aux(void)
                        if (c == '?')
                        {
 #ifdef JP                 
-                                show_help("jbirth.txt#AutoRoller");
+                               show_help("jbirth.txt#AutoRoller");
 #else
-                                show_help("birth.txt#AutoRoller");
+                               show_help("birth.txt#AutoRoller");
 #endif
                                continue;
                        }
@@ -6156,83 +6156,83 @@ static bool player_birth_aux(void)
  */
 static bool ask_quick_start(void)
 {
-        /* Doesn't have previous data */
+       /* Doesn't have previous data */
        if (!previous_char.quick_ok) return FALSE;
 
 
        /* Clear screen */
        Term_clear();
 
-        /* Extra info */
+       /* Extra info */
 #ifdef JP
-        put_str("¥¯¥¤¥Ã¥¯¡¦¥¹¥¿¡¼¥È¤ò»È¤¦¤È°ÊÁ°¤ÈÁ´¤¯Æ±¤¸¥­¥ã¥é¥¯¥¿¡¼¤Ç»Ï¤á¤é¤ì¤Þ¤¹¡£", 11, 5);
+       put_str("¥¯¥¤¥Ã¥¯¡¦¥¹¥¿¡¼¥È¤ò»È¤¦¤È°ÊÁ°¤ÈÁ´¤¯Æ±¤¸¥­¥ã¥é¥¯¥¿¡¼¤Ç»Ï¤á¤é¤ì¤Þ¤¹¡£", 11, 5);
 #else
-        put_str("Do you want to use the quick start function(same character as your last one).", 11, 2);
+       put_str("Do you want to use the quick start function(same character as your last one).", 11, 2);
 #endif
 
-        /* Choose */
-        while (1)
-        {
-                char c;
+       /* Choose */
+       while (1)
+       {
+               char c;
 
 #ifdef JP
-                put_str("¥¯¥¤¥Ã¥¯¡¦¥¹¥¿¡¼¥È¤ò»È¤¤¤Þ¤¹¤«¡©[y/n]", 14, 10);
+               put_str("¥¯¥¤¥Ã¥¯¡¦¥¹¥¿¡¼¥È¤ò»È¤¤¤Þ¤¹¤«¡©[y/n]", 14, 10);
 #else
-                put_str("Use quick start? [y/n]", 14, 10);
+               put_str("Use quick start? [y/n]", 14, 10);
 #endif
-                c = inkey();
+               c = inkey();
 
-                if (c == 'Q') quit(NULL);
-                else if (c == 'S') return (FALSE);
-                else if (c == '?')
-                {
+               if (c == 'Q') quit(NULL);
+               else if (c == 'S') return (FALSE);
+               else if (c == '?')
+               {
 #ifdef JP                 
-                        show_help("jbirth.txt#QuickStart");
+                       show_help("jbirth.txt#QuickStart");
 #else
-                        show_help("birth.txt#QuickStart");
+                       show_help("birth.txt#QuickStart");
 #endif
-                }
-                else if ((c == 'y') || (c == 'Y'))
-                {
-                        /* Yes */
-                        break;
-                }
-                else
-                {
-                        /* No */
-                        return FALSE;
-                }
-        }
+               }
+               else if ((c == 'y') || (c == 'Y'))
+               {
+                       /* Yes */
+                       break;
+               }
+               else
+               {
+                       /* No */
+                       return FALSE;
+               }
+       }
 
-        load_prev_data(FALSE);
-        init_dungeon_quests(previous_char.quests);
-        init_turn();
+       load_prev_data(FALSE);
+       init_dungeon_quests(previous_char.quests);
+       init_turn();
 
-        sp_ptr = &sex_info[p_ptr->psex];
-        rp_ptr = &race_info[p_ptr->prace];
-        cp_ptr = &class_info[p_ptr->pclass];
-        mp_ptr = &m_info[p_ptr->pclass];
-        ap_ptr = &seikaku_info[p_ptr->pseikaku];
+       sp_ptr = &sex_info[p_ptr->psex];
+       rp_ptr = &race_info[p_ptr->prace];
+       cp_ptr = &class_info[p_ptr->pclass];
+       mp_ptr = &m_info[p_ptr->pclass];
+       ap_ptr = &seikaku_info[p_ptr->pseikaku];
 
-        /* Calc hitdie, but don't roll */
-        get_extra(FALSE);
+       /* Calc hitdie, but don't roll */
+       get_extra(FALSE);
 
-        /* Calculate the bonuses and hitpoints */
-        p_ptr->update |= (PU_BONUS | PU_HP);
+       /* Calculate the bonuses and hitpoints */
+       p_ptr->update |= (PU_BONUS | PU_HP);
 
-        /* Update stuff */
-        update_stuff();
+       /* Update stuff */
+       update_stuff();
 
-        /* Fully healed */
-        p_ptr->chp = p_ptr->mhp;
+       /* Fully healed */
+       p_ptr->chp = p_ptr->mhp;
 
-        /* Fully rested */
-        p_ptr->csp = p_ptr->msp;
+       /* Fully rested */
+       p_ptr->csp = p_ptr->msp;
 
-        /* Process the player name */
-        process_player_name(FALSE);
+       /* Process the player name */
+       process_player_name(FALSE);
 
-        return TRUE;
+       return TRUE;
 }
 
 
@@ -6247,7 +6247,7 @@ void player_birth(void)
        int i, j;
        char buf[80];
 
-        playtime = 0;
+       playtime = 0;
 
        /* 
         * Wipe monsters in old dungeon
@@ -6255,24 +6255,24 @@ void player_birth(void)
         */
        wipe_m_list();
 
-        /* Wipe the player */
-        player_wipe();
+       /* Wipe the player */
+       player_wipe();
 
        /* Create a new character */
 
-        /* Quick start? */
-        if (!ask_quick_start())
-        {
-                /* No, normal start */
-                while (1)
-                {
-                        /* Roll up a new character */
-                        if (player_birth_aux()) break;
-
-                        /* Wipe the player */
-                        player_wipe();
-                }
-        }
+       /* Quick start? */
+       if (!ask_quick_start())
+       {
+               /* No, normal start */
+               while (1)
+               {
+                       /* Roll up a new character */
+                       if (player_birth_aux()) break;
+
+                       /* Wipe the player */
+                       player_wipe();
+               }
+       }
 
        /* Note player birth in the message recall */
        message_add(" ");
index 7ff0ac6..26776b7 100644 (file)
@@ -644,7 +644,7 @@ static int yaku_check_straight(void)
        joker_is_used = FALSE;
        for (i = 0; i < 5; i++)
        {
-               if (!find_card_num(lowest + i)){
+               if (!find_card_num(lowest + i)){
                  if( have_joker() && !joker_is_used )
                    joker_is_used = TRUE;
                  else
@@ -2393,7 +2393,7 @@ void have_nightmare(int r_idx)
        power = r_ptr->level + 10;
 
 #ifdef JP
-        if (0)
+       if (0)
 #else
        if (!(r_ptr->flags1 & RF1_UNIQUE))
 #endif
@@ -2418,9 +2418,9 @@ void have_nightmare(int r_idx)
        if (saving_throw(p_ptr->skill_sav * 100 / power))
        {
 #ifdef JP
-       msg_format("Ì´¤ÎÃæ¤Ç%s¤ËÄɤ¤¤«¤±¤é¤ì¤¿¡£", m_name);
+       msg_format("Ì´¤ÎÃæ¤Ç%s¤ËÄɤ¤¤«¤±¤é¤ì¤¿¡£", m_name);
 #else
-       msg_format("%^s chases you through your dreams.", m_name);
+       msg_format("%^s chases you through your dreams.", m_name);
 #endif
 
 
@@ -3032,7 +3032,7 @@ static void town_history(void)
  * the current +dam of the player.
  */
 static void compare_weapon_aux2(object_type *o_ptr, int numblows,
-                                int r, int c, int mult, cptr attr,
+                               int r, int c, int mult, cptr attr,
                                byte color)
 {
        char tmp_str[80];
@@ -3398,99 +3398,99 @@ msg_print("
 static bool eval_ac(int iAC)
 {
 #ifdef JP
-        const char memo[] =
-                "¥À¥á¡¼¥¸·Ú¸ºÎ¨¤È¤Ï¡¢Å¨¤Î¹¶·â¤¬Åö¤¿¤Ã¤¿»þ¤½¤Î¥À¥á¡¼¥¸¤ò\n"
-                "²¿¥Ñ¡¼¥»¥ó¥È·Ú¸º¤¹¤ë¤«¤ò¼¨¤·¤Þ¤¹¡£\n"
-                "¥À¥á¡¼¥¸·Ú¸º¤ÏÄ̾ï¤ÎľÀܹ¶·â(¼ïÎब¡Ö¹¶·â¤¹¤ë¡×¤È¡ÖÊ´ºÕ¤¹¤ë¡×¤Îʪ)\n"
-                "¤ËÂФ·¤Æ¤Î¤ß¸ú²Ì¤¬¤¢¤ê¤Þ¤¹¡£\n \n"
-                "Ũ¤Î¥ì¥Ù¥ë¤È¤Ï¡¢¤½¤ÎŨ¤¬Ä̾ﲿ³¬¤Ë¸½¤ì¤ë¤«¤ò¼¨¤·¤Þ¤¹¡£\n \n"
-                "²óÈòΨ¤ÏŨ¤ÎľÀܹ¶·â¤ò²¿¥Ñ¡¼¥»¥ó¥È¤Î³ÎΨ¤ÇÈò¤±¤ë¤«¤ò¼¨¤·¡¢\n"
-                "Ũ¤Î¥ì¥Ù¥ë¤È¤¢¤Ê¤¿¤ÎAC¤Ë¤è¤Ã¤Æ·èÄꤵ¤ì¤Þ¤¹¡£\n \n"
-                "¥À¥á¡¼¥¸´üÂÔÃͤȤϡ¢Å¨¤Î£±£°£°¥Ý¥¤¥ó¥È¤ÎÄ̾ﹶ·â¤ËÂФ·¡¢\n"
-                "²óÈòΨ¤È¥À¥á¡¼¥¸·Ú¸ºÎ¨¤ò¹Íθ¤·¤¿¥À¥á¡¼¥¸¤Î´üÂÔÃͤò¼¨¤·¤Þ¤¹¡£\n";
-#else
-        const char memo[] =
-                "'Protection Rate' means how much damage is reduced by your armor.\n"
-                "Note that the Protection rate is effective only against normal "
-                "'attack' and 'shatter' type melee attacks, "
-                "and has no effect against any other types such as 'poison'.\n \n"
-                "'Dodge Rate' indicates the success rate on dodging the "
-                "monster's melee attacks.  "
-                "It is depend on the level of the monster and your AC.\n \n"
-                "'Average Damage' indicates the expected amount of damage "
-                "when you are attacked by normal melee attacks with power=100.";
-#endif
-
-        int protection;
-        int col, row = 2;
-        int lvl, i;
-        char buf[80*20], *t;
+       const char memo[] =
+               "¥À¥á¡¼¥¸·Ú¸ºÎ¨¤È¤Ï¡¢Å¨¤Î¹¶·â¤¬Åö¤¿¤Ã¤¿»þ¤½¤Î¥À¥á¡¼¥¸¤ò\n"
+               "²¿¥Ñ¡¼¥»¥ó¥È·Ú¸º¤¹¤ë¤«¤ò¼¨¤·¤Þ¤¹¡£\n"
+               "¥À¥á¡¼¥¸·Ú¸º¤ÏÄ̾ï¤ÎľÀܹ¶·â(¼ïÎब¡Ö¹¶·â¤¹¤ë¡×¤È¡ÖÊ´ºÕ¤¹¤ë¡×¤Îʪ)\n"
+               "¤ËÂФ·¤Æ¤Î¤ß¸ú²Ì¤¬¤¢¤ê¤Þ¤¹¡£\n \n"
+               "Ũ¤Î¥ì¥Ù¥ë¤È¤Ï¡¢¤½¤ÎŨ¤¬Ä̾ﲿ³¬¤Ë¸½¤ì¤ë¤«¤ò¼¨¤·¤Þ¤¹¡£\n \n"
+               "²óÈòΨ¤ÏŨ¤ÎľÀܹ¶·â¤ò²¿¥Ñ¡¼¥»¥ó¥È¤Î³ÎΨ¤ÇÈò¤±¤ë¤«¤ò¼¨¤·¡¢\n"
+               "Ũ¤Î¥ì¥Ù¥ë¤È¤¢¤Ê¤¿¤ÎAC¤Ë¤è¤Ã¤Æ·èÄꤵ¤ì¤Þ¤¹¡£\n \n"
+               "¥À¥á¡¼¥¸´üÂÔÃͤȤϡ¢Å¨¤Î£±£°£°¥Ý¥¤¥ó¥È¤ÎÄ̾ﹶ·â¤ËÂФ·¡¢\n"
+               "²óÈòΨ¤È¥À¥á¡¼¥¸·Ú¸ºÎ¨¤ò¹Íθ¤·¤¿¥À¥á¡¼¥¸¤Î´üÂÔÃͤò¼¨¤·¤Þ¤¹¡£\n";
+#else
+       const char memo[] =
+               "'Protection Rate' means how much damage is reduced by your armor.\n"
+               "Note that the Protection rate is effective only against normal "
+               "'attack' and 'shatter' type melee attacks, "
+               "and has no effect against any other types such as 'poison'.\n \n"
+               "'Dodge Rate' indicates the success rate on dodging the "
+               "monster's melee attacks.  "
+               "It is depend on the level of the monster and your AC.\n \n"
+               "'Average Damage' indicates the expected amount of damage "
+               "when you are attacked by normal melee attacks with power=100.";
+#endif
+
+       int protection;
+       int col, row = 2;
+       int lvl, i;
+       char buf[80*20], *t;
+
+       /* AC lower than zero has no effect */
+       if (iAC < 0) iAC = 0;
+
+       /* ¥À¥á¡¼¥¸·Ú¸ºÎ¨¤ò·×»» */
+       protection = 100 * MIN(iAC, 150) / 250;
 
-        /* AC lower than zero has no effect */
-        if (iAC < 0) iAC = 0;
-
-        /* ¥À¥á¡¼¥¸·Ú¸ºÎ¨¤ò·×»» */
-        protection = 100 * MIN(iAC, 150) / 250;
-
-        screen_save();
-        clear_bldg(0, 22);
+       screen_save();
+       clear_bldg(0, 22);
 
 #ifdef JP
-        put_str(format("¤¢¤Ê¤¿¤Î¸½ºß¤ÎAC: %3d", iAC), row++, 0);
-        put_str(format("¥À¥á¡¼¥¸·Ú¸ºÎ¨  : %3d%%", protection), row++, 0);
-        row++;
+       put_str(format("¤¢¤Ê¤¿¤Î¸½ºß¤ÎAC: %3d", iAC), row++, 0);
+       put_str(format("¥À¥á¡¼¥¸·Ú¸ºÎ¨  : %3d%%", protection), row++, 0);
+       row++;
 
-        put_str("Ũ¤Î¥ì¥Ù¥ë      :", row + 0, 0);
-        put_str("²óÈòΨ          :", row + 1, 0);
-        put_str("¥À¥á¡¼¥¸´üÂÔÃÍ  :", row + 2, 0);
+       put_str("Ũ¤Î¥ì¥Ù¥ë      :", row + 0, 0);
+       put_str("²óÈòΨ          :", row + 1, 0);
+       put_str("¥À¥á¡¼¥¸´üÂÔÃÍ  :", row + 2, 0);
 #else
-        put_str(format("Your current AC : %3d", iAC), row++, 0);
-        put_str(format("Protection rate : %3d%%", protection), row++, 0);
-        row++;
+       put_str(format("Your current AC : %3d", iAC), row++, 0);
+       put_str(format("Protection rate : %3d%%", protection), row++, 0);
+       row++;
 
-        put_str("Level of Monster:", row + 0, 0);
-        put_str("Dodge Rate      :", row + 1, 0);
-        put_str("Average Damage  :", row + 2, 0);
+       put_str("Level of Monster:", row + 0, 0);
+       put_str("Dodge Rate      :", row + 1, 0);
+       put_str("Average Damage  :", row + 2, 0);
 #endif
     
-        for (col = 17 + 1, lvl = 0; lvl <= 100; lvl += 10, col += 5)
-        {
-                int quality = 60 + lvl * 3; /* attack quality with power 60 */
-                int dodge;   /* ²óÈòΨ(%) */
-                int average; /* ¥À¥á¡¼¥¸´üÂÔÃÍ */
-                float rateA,rateR=0.0;
-                float damage;
-                char tmp_str[100];
-
-                put_str(format("%3d", lvl), row + 0, col);
-
-                /* ²óÈòΨ¤ò·×»» */
-                dodge = 5 + (MIN(100, 100 * (iAC * 3 / 4) / quality) * 9 + 5) / 10;
-                put_str(format("%3d%%", dodge), row + 1, col);
-
-                /* 100ÅÀ¤Î¹¶·â¤ËÂФ·¤Æ¤Î¥À¥á¡¼¥¸´üÂÔÃͤò·×»» */
-                average = (100 - dodge) * (100 - protection) / 100;
-                put_str(format("%3d", average), row + 2, col);
-        }
+       for (col = 17 + 1, lvl = 0; lvl <= 100; lvl += 10, col += 5)
+       {
+               int quality = 60 + lvl * 3; /* attack quality with power 60 */
+               int dodge;   /* ²óÈòΨ(%) */
+               int average; /* ¥À¥á¡¼¥¸´üÂÔÃÍ */
+               float rateA,rateR=0.0;
+               float damage;
+               char tmp_str[100];
+
+               put_str(format("%3d", lvl), row + 0, col);
+
+               /* ²óÈòΨ¤ò·×»» */
+               dodge = 5 + (MIN(100, 100 * (iAC * 3 / 4) / quality) * 9 + 5) / 10;
+               put_str(format("%3d%%", dodge), row + 1, col);
+
+               /* 100ÅÀ¤Î¹¶·â¤ËÂФ·¤Æ¤Î¥À¥á¡¼¥¸´üÂÔÃͤò·×»» */
+               average = (100 - dodge) * (100 - protection) / 100;
+               put_str(format("%3d", average), row + 2, col);
+       }
 
-        /* Display note */
-        roff_to_buf(memo, 70, buf);
-        for (t = buf; t[0]; t += strlen(t) + 1)
-                put_str(t, (row++) + 4, 4);
+       /* Display note */
+       roff_to_buf(memo, 70, buf);
+       for (t = buf; t[0]; t += strlen(t) + 1)
+               put_str(t, (row++) + 4, 4);
 
 #ifdef JP
-        prt("¸½ºß¤Î¤¢¤Ê¤¿¤ÎÁõÈ÷¤«¤é¤¹¤ë¤È¡¢¤¢¤Ê¤¿¤ÎËɸæÎϤÏ"
-                   "¤³¤ì¤¯¤é¤¤¤Ç¤¹:", 0, 0);
+       prt("¸½ºß¤Î¤¢¤Ê¤¿¤ÎÁõÈ÷¤«¤é¤¹¤ë¤È¡¢¤¢¤Ê¤¿¤ÎËɸæÎϤÏ"
+                  "¤³¤ì¤¯¤é¤¤¤Ç¤¹:", 0, 0);
 #else
-        prt("Defense abilities from your current Armor Class are evaluated below.", 0, 0);
+       prt("Defense abilities from your current Armor Class are evaluated below.", 0, 0);
 #endif
   
-        flush();
-        (void)inkey();
-        screen_load();
+       flush();
+       (void)inkey();
+       screen_load();
 
-        /* Done */
-        return (TRUE);
+       /* Done */
+       return (TRUE);
 }
 
 
@@ -3858,7 +3858,7 @@ charges = get_quantity(format("
                charges = get_quantity(format("Add how many charges for %d gold? ",
 #endif
 
-                             price), MIN(p_ptr->au / price, max_charges));
+                             price), MIN(p_ptr->au / price, max_charges));
 
                /* Do nothing */
                if (charges < 1) return;
@@ -3916,7 +3916,7 @@ static void building_recharge_all(void)
 
 
        /* Display some info */
-        msg_flag = FALSE;
+       msg_flag = FALSE;
        clear_bldg(4, 18);
 #ifdef JP
        prt("  ºÆ½¼Å¶¤ÎÈñÍѤϥ¢¥¤¥Æ¥à¤Î¼ïÎà¤Ë¤è¤ê¤Þ¤¹¡£", 6, 0);
@@ -4737,26 +4737,26 @@ void quest_discovery(int q_idx)
        {
                /* Unique */
 
-                /* Hack -- "unique" monsters must be "unique" */
-                if ((r_ptr->flags1 & RF1_UNIQUE) &&
-                    (0 == r_ptr->max_num))
-                {
+               /* Hack -- "unique" monsters must be "unique" */
+               if ((r_ptr->flags1 & RF1_UNIQUE) &&
+                   (0 == r_ptr->max_num))
+               {
 #ifdef JP
-                        msg_print("¤³¤Î³¬¤Ï°ÊÁ°¤Ï狼¤Ë¤è¤Ã¤Æ¼é¤é¤ì¤Æ¤¤¤¿¤è¤¦¤À¡Ä¡£");
+                       msg_print("¤³¤Î³¬¤Ï°ÊÁ°¤Ï狼¤Ë¤è¤Ã¤Æ¼é¤é¤ì¤Æ¤¤¤¿¤è¤¦¤À¡Ä¡£");
 #else
-                        msg_print("It seems that this level was protected by someone before...");
+                       msg_print("It seems that this level was protected by someone before...");
 #endif
-                        /* The unique is already dead */
-                        quest[q_idx].status = QUEST_STATUS_FINISHED;
-                }
-                else
-                {
+                       /* The unique is already dead */
+                       quest[q_idx].status = QUEST_STATUS_FINISHED;
+               }
+               else
+               {
 #ifdef JP
-                        msg_format("Ãí°Õ¤»¤è¡ª¤³¤Î³¬¤Ï%s¤Ë¤è¤Ã¤Æ¼é¤é¤ì¤Æ¤¤¤ë¡ª", name);
+                       msg_format("Ãí°Õ¤»¤è¡ª¤³¤Î³¬¤Ï%s¤Ë¤è¤Ã¤Æ¼é¤é¤ì¤Æ¤¤¤ë¡ª", name);
 #else
-                        msg_format("Beware, this level is protected by %s!", name);
+                       msg_format("Beware, this level is protected by %s!", name);
 #endif
-                }
+               }
        }
        else
        {
index 9d494cf..5db387e 100644 (file)
@@ -76,9 +76,9 @@ bool is_trap(int feat)
                case FEAT_TRAP_SLEEP:
                case FEAT_TRAP_TRAPS:
                case FEAT_TRAP_ALARM:
-                case FEAT_TRAP_OPEN:
-                case FEAT_TRAP_ARMAGEDDON:
-                case FEAT_TRAP_PIRANHA:
+               case FEAT_TRAP_OPEN:
+               case FEAT_TRAP_ARMAGEDDON:
+               case FEAT_TRAP_PIRANHA:
                {
                        /* A trap */
                        return (TRUE);
@@ -97,8 +97,8 @@ bool is_trap(int feat)
  */
 bool is_known_trap(cave_type *c_ptr)
 {
-        if (!c_ptr->mimic && is_trap(c_ptr->feat)) return TRUE;
-        else return FALSE;
+       if (!c_ptr->mimic && is_trap(c_ptr->feat)) return TRUE;
+       else return FALSE;
 }
 
 
@@ -107,7 +107,7 @@ bool is_known_trap(cave_type *c_ptr)
  */
 bool is_closed_door(int feat)
 {
-        return (feat >= FEAT_DOOR_HEAD && feat <= FEAT_DOOR_TAIL);
+       return (feat >= FEAT_DOOR_HEAD && feat <= FEAT_DOOR_TAIL);
 }
 
 
@@ -116,11 +116,11 @@ bool is_closed_door(int feat)
  */
 bool is_hidden_door(cave_type *c_ptr)
 {
-        if (c_ptr->mimic &&
-            is_closed_door(c_ptr->feat))
-                return TRUE;
-        else 
-                return FALSE;
+       if (c_ptr->mimic &&
+           is_closed_door(c_ptr->feat))
+               return TRUE;
+       else 
+               return FALSE;
 }
 
 
@@ -953,14 +953,14 @@ void map_info(int y, int x, byte *ap, char *cp)
                                                /* Use "dark gray" */
                                                a = TERM_L_DARK;
                                        }
-                                }
+                               }
 
                                /* Handle "torch-lit" grids */
                                else if (c_ptr->info & (CAVE_LITE | CAVE_MNLT))
                                {
-                                        /* Torch lite */
-                                        if (view_yellow_lite && !p_ptr->wild_mode)
-                                        {
+                                       /* Torch lite */
+                                       if (view_yellow_lite && !p_ptr->wild_mode)
+                                       {
                                                if (use_graphics)
                                                {
                                                        /*
@@ -979,9 +979,9 @@ void map_info(int y, int x, byte *ap, char *cp)
                                        }
                                }
 
-                                /* Handle "dark" grids */
-                                else if (!(c_ptr->info & CAVE_GLOW))
-                                {
+                               /* Handle "dark" grids */
+                               else if (!(c_ptr->info & CAVE_GLOW))
+                               {
                                        if (use_graphics)
                                        {
                                                /*
@@ -997,7 +997,7 @@ void map_info(int y, int x, byte *ap, char *cp)
                                                /* Use "dark gray" */
                                                a = TERM_L_DARK;
                                        }
-                                }
+                               }
 
                                /* Handle "out-of-sight" grids */
                                else if (!(c_ptr->info & CAVE_VIEW))
@@ -1224,29 +1224,29 @@ void map_info(int y, int x, byte *ap, char *cp)
                        }
                }
 
-                /* "Simple Lighting" */
-                else
-                {
-                        /* Handle "blind" */
-                        if (!(c_ptr->info & CAVE_MARK))
-                        {
+               /* "Simple Lighting" */
+               else
+               {
+                       /* Handle "blind" */
+                       if (!(c_ptr->info & CAVE_MARK))
+                       {
                                /* Unsafe cave grid -- idea borrowed from Unangband */
                                if (view_unsafe_grids && (c_ptr->info & (CAVE_UNSAFE)))
                                        feat = FEAT_UNDETECTD;
                                else
                                        feat = FEAT_NONE;
-                        }
+                       }
 
-                        /* Access feature */
-                        f_ptr = &f_info[feat];
+                       /* Access feature */
+                       f_ptr = &f_info[feat];
 
-                        /* Normal attr */
-                        a = f_ptr->x_attr;
+                       /* Normal attr */
+                       a = f_ptr->x_attr;
 
-                        /* Normal char */
-                        c = f_ptr->x_char;
-                }
-        }
+                       /* Normal char */
+                       c = f_ptr->x_char;
+               }
+       }
 
        if (feat_priority == -1)
        {
@@ -2461,7 +2461,7 @@ void display_map(int *cy, int *cx)
 
        int hgt, wid, yrat, xrat;
 
-        int **match_autopick_yx;
+       int **match_autopick_yx;
        object_type ***object_autopick_yx;
 
        /* Get size */
@@ -2655,7 +2655,7 @@ void display_map(int *cy, int *cx)
        }
 
 
-        for (y = 1; y < hgt + 1; ++y)
+       for (y = 1; y < hgt + 1; ++y)
        {
          match_autopick = -1;
          for (x = 1; x <= wid; x++){
@@ -2722,7 +2722,7 @@ void display_map(int *cy, int *cx)
                C_FREE(bigmp[y], (cur_wid + 2), byte);
        }
 
-       /* Free each line map */
+       /* Free each line map */
        C_FREE(bigma, (cur_hgt + 2), byte_ptr);
        C_FREE(bigmc, (cur_hgt + 2), char_ptr);
        C_FREE(bigmp, (cur_hgt + 2), byte_ptr);
@@ -2755,13 +2755,13 @@ prt("
        /* Clear the screen */
        Term_clear();
 
-        display_autopick = 0;
+       display_autopick = 0;
 
        /* Display the map */
        display_map(&cy, &cx);
 
        /* Wait for it */
-        if(max_autopick && !p_ptr->wild_mode)
+       if(max_autopick && !p_ptr->wild_mode)
        {
                display_autopick = ITEM_DISPLAY;
 
@@ -4621,8 +4621,8 @@ void map_area(int range)
 
                        c_ptr = &cave[y][x];
 
-                        /* Feature code (applying "mimic" field) */
-                        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+                       /* Feature code (applying "mimic" field) */
+                       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                        /* All non-walls are "checked" */
                        if ((feat <= FEAT_DOOR_TAIL) ||
@@ -4643,8 +4643,8 @@ void map_area(int range)
                                {
                                        c_ptr = &cave[y + ddy_ddd[i]][x + ddx_ddd[i]];
 
-                                        /* Feature code (applying "mimic" field) */
-                                        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+                                       /* Feature code (applying "mimic" field) */
+                                       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                                        /* Memorize walls (etc) */
                                        if ((feat >= FEAT_RUBBLE) && (feat != FEAT_DIRT) && (feat != FEAT_GRASS))
@@ -4716,8 +4716,8 @@ void wiz_lite(bool wizard, bool ninja)
                {
                        cave_type *c_ptr = &cave[y][x];
 
-                        /* Feature code (applying "mimic" field) */
-                        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+                       /* Feature code (applying "mimic" field) */
+                       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                        /* Process all non-walls */
                        if (cave_floor_bold(y, x) || (feat == FEAT_RUBBLE) || (feat == FEAT_TREES) || (feat == FEAT_MOUNTAIN))
@@ -4731,8 +4731,8 @@ void wiz_lite(bool wizard, bool ninja)
                                        /* Get the grid */
                                        c_ptr = &cave[yy][xx];
 
-                                        /* Feature code (applying "mimic" field) */
-                                        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+                                       /* Feature code (applying "mimic" field) */
+                                       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                                        /* Memorize normal features */
                                        if (ninja)
@@ -4839,10 +4839,10 @@ void cave_set_feat(int y, int x, int feat)
 {
        cave_type *c_ptr = &cave[y][x];
 
-        /* Clear mimic type */
-        c_ptr->mimic = 0;
+       /* Clear mimic type */
+       c_ptr->mimic = 0;
 
-        /* Remove flag for mirror/glyph */
+       /* Remove flag for mirror/glyph */
        c_ptr->info &= ~(CAVE_OBJECT);
 
        /* Change the feature */
@@ -4860,7 +4860,7 @@ void remove_mirror(int y, int x)
 {
        /* Remove the mirror */
        cave[y][x].info &= ~(CAVE_OBJECT);
-        cave[y][x].mimic = 0;
+       cave[y][x].mimic = 0;
 
        if (d_info[dungeon_type].flags1 & DF1_DARKNESS)
        {
@@ -4880,10 +4880,10 @@ void remove_mirror(int y, int x)
  */
 bool is_mirror_grid(cave_type *c_ptr)
 {
-        if ((c_ptr->info & CAVE_OBJECT) && c_ptr->mimic == FEAT_MIRROR)
-                return TRUE;
-        else
-                return FALSE;
+       if ((c_ptr->info & CAVE_OBJECT) && c_ptr->mimic == FEAT_MIRROR)
+               return TRUE;
+       else
+               return FALSE;
 }
 
 
@@ -4892,10 +4892,10 @@ bool is_mirror_grid(cave_type *c_ptr)
  */
 bool is_glyph_grid(cave_type *c_ptr)
 {
-        if ((c_ptr->info & CAVE_OBJECT) && c_ptr->mimic == FEAT_GLYPH)
-                return TRUE;
-        else
-                return FALSE;
+       if ((c_ptr->info & CAVE_OBJECT) && c_ptr->mimic == FEAT_GLYPH)
+               return TRUE;
+       else
+               return FALSE;
 }
 
 
@@ -4904,10 +4904,10 @@ bool is_glyph_grid(cave_type *c_ptr)
  */
 bool is_explosive_rune_grid(cave_type *c_ptr)
 {
-        if ((c_ptr->info & CAVE_OBJECT) && c_ptr->mimic == FEAT_MINOR_GLYPH)
-                return TRUE;
-        else
-                return FALSE;
+       if ((c_ptr->info & CAVE_OBJECT) && c_ptr->mimic == FEAT_MINOR_GLYPH)
+               return TRUE;
+       else
+               return FALSE;
 }
 
 
index 0312308..106bda7 100644 (file)
@@ -414,7 +414,7 @@ int connect_chuukei_server(char *prf_name)
                        bind = (err == noErr);
            }
            if (err == noErr){
-               OTInitInetAddress(&inAddr, server_port, host_addr);
+               OTInitInetAddress(&inAddr, server_port, host_addr);
                        
                        sndCall.addr.len        = sizeof(InetAddress);                          
                        sndCall.addr.buf        = (unsigned char*) &inAddr;
index b91d38d..cdb06eb 100644 (file)
@@ -685,7 +685,7 @@ void search(void)
                                c_ptr = &cave[y][x];
 
                                /* Invisible trap */
-                                if (c_ptr->mimic && is_trap(c_ptr->feat))
+                               if (c_ptr->mimic && is_trap(c_ptr->feat))
                                {
                                        /* Pick a trap */
                                        disclose_grid(y, x);
@@ -703,7 +703,7 @@ void search(void)
                                }
 
                                /* Secret door */
-                                if (is_hidden_door(c_ptr))
+                               if (is_hidden_door(c_ptr))
                                {
                                        /* Message */
 #ifdef JP
@@ -946,7 +946,7 @@ void carry(int pickup)
                        /* Message */
 #ifdef JP
                msg_format(" $%ld ¤Î²ÁÃͤ¬¤¢¤ë%s¤ò¸«¤Ä¤±¤¿¡£",
-                          (long)value, o_name);
+                          (long)value, o_name);
 #else
                        msg_format("You collect %ld gold pieces worth of %s.",
                                   (long)value, o_name);
@@ -1608,79 +1608,79 @@ msg_print("
                        break;
                }
 
-                case FEAT_TRAP_OPEN:
-                {
+               case FEAT_TRAP_OPEN:
+               {
 #ifdef JP
-                        msg_print("Âç²»¶Á¤È¶¦¤Ë¤Þ¤ï¤ê¤ÎÊɤ¬Êø¤ì¤¿¡ª");
+                       msg_print("Âç²»¶Á¤È¶¦¤Ë¤Þ¤ï¤ê¤ÎÊɤ¬Êø¤ì¤¿¡ª");
 #else
-                        msg_print("Suddenly, surrounding walls are opened!");
+                       msg_print("Suddenly, surrounding walls are opened!");
 #endif
-                        (void)project(0, 3, y, x, 0, GF_DISINTEGRATE, PROJECT_GRID | PROJECT_HIDE, -1);
-                        (void)project(0, 3, y, x - 4, 0, GF_DISINTEGRATE, PROJECT_GRID | PROJECT_HIDE, -1);
-                        (void)project(0, 3, y, x + 4, 0, GF_DISINTEGRATE, PROJECT_GRID | PROJECT_HIDE, -1);
-                        aggravate_monsters(0);
+                       (void)project(0, 3, y, x, 0, GF_DISINTEGRATE, PROJECT_GRID | PROJECT_HIDE, -1);
+                       (void)project(0, 3, y, x - 4, 0, GF_DISINTEGRATE, PROJECT_GRID | PROJECT_HIDE, -1);
+                       (void)project(0, 3, y, x + 4, 0, GF_DISINTEGRATE, PROJECT_GRID | PROJECT_HIDE, -1);
+                       aggravate_monsters(0);
 
-                        break;
-                }
+                       break;
+               }
 
-                case FEAT_TRAP_ARMAGEDDON:
-                {
-                        static int levs[10] = {0, 0, 20, 10, 5, 3, 2, 1, 1, 1};
+               case FEAT_TRAP_ARMAGEDDON:
+               {
+                       static int levs[10] = {0, 0, 20, 10, 5, 3, 2, 1, 1, 1};
 
-                        int lev;
+                       int lev;
 #ifdef JP
-                        msg_print("ÆÍÁ³Å·³¦¤ÎÀïÁè¤Ë´¬¤­¹þ¤Þ¤ì¤¿¡ª");
+                       msg_print("ÆÍÁ³Å·³¦¤ÎÀïÁè¤Ë´¬¤­¹þ¤Þ¤ì¤¿¡ª");
 #else
-                        msg_print("Suddenly, you are surrounded by immotal beings!");
+                       msg_print("Suddenly, you are surrounded by immotal beings!");
 #endif
 
                        /* Destroy this trap */
                        cave_set_feat(y, x, floor_type[randint0(100)]);
 
-                        /* Summon Demons and Angels */
-                        for (lev = dun_level; lev >= 20; lev -= 1 + lev/16)
-                        {
-                                num = levs[MIN(lev/10, 9)];
-                                for (i = 0; i < num; i++)
-                                {
-                                        int x1 = rand_spread(x, 7);
-                                        int y1 = rand_spread(y, 5);
+                       /* Summon Demons and Angels */
+                       for (lev = dun_level; lev >= 20; lev -= 1 + lev/16)
+                       {
+                               num = levs[MIN(lev/10, 9)];
+                               for (i = 0; i < num; i++)
+                               {
+                                       int x1 = rand_spread(x, 7);
+                                       int y1 = rand_spread(y, 5);
 
-                                        /* Skip illegal grids */
-                                        if (!in_bounds(y1, x1)) continue;
+                                       /* Skip illegal grids */
+                                       if (!in_bounds(y1, x1)) continue;
 
-                                        /* Require line of sight */
-                                        if (!player_has_los_bold(y1, x1)) continue;
+                                       /* Require line of sight */
+                                       if (!player_has_los_bold(y1, x1)) continue;
 
-                                        (void)summon_specific(0, y1, x1, lev, SUMMON_DEMON, (PM_NO_PET));
-                                        (void)summon_specific(0, y1, x1, lev, SUMMON_ANGEL, (PM_NO_PET));
-                                }
-                        }
-                        break;
-                }
+                                       (void)summon_specific(0, y1, x1, lev, SUMMON_DEMON, (PM_NO_PET));
+                                       (void)summon_specific(0, y1, x1, lev, SUMMON_ANGEL, (PM_NO_PET));
+                               }
+                       }
+                       break;
+               }
 
-                case FEAT_TRAP_PIRANHA:
-                {
+               case FEAT_TRAP_PIRANHA:
+               {
 #ifdef JP
-                        msg_print("ÆÍÁ³Êɤ«¤é¿å¤¬°î¤ì½Ð¤·¤¿¡ª¥Ô¥é¥Ë¥¢¤¬¤¤¤ë¡ª");
+                       msg_print("ÆÍÁ³Êɤ«¤é¿å¤¬°î¤ì½Ð¤·¤¿¡ª¥Ô¥é¥Ë¥¢¤¬¤¤¤ë¡ª");
 #else
-                        msg_print("Suddenly, the room is filled with water with piranhas!");
+                       msg_print("Suddenly, the room is filled with water with piranhas!");
 #endif
 
                        /* Destroy this trap */
                        cave_set_feat(y, x, floor_type[randint0(100)]);
 
                        /* Water fills room */
-                        fire_ball_hide(GF_WATER_FLOW, 0, 1, 10);
+                       fire_ball_hide(GF_WATER_FLOW, 0, 1, 10);
 
-                        /* Summon Piranhas */
+                       /* Summon Piranhas */
                        num = 1 + dun_level/20;
                        for (i = 0; i < num; i++)
                        {
                                (void)summon_specific(0, y, x, dun_level, SUMMON_PIRANHAS, (PM_ALLOW_GROUP | PM_NO_PET));
                        }
-                        break;
-                }
+                       break;
+               }
        }
        if (break_trap && is_trap(c_ptr->feat))
        {
@@ -2658,7 +2658,7 @@ msg_format("
                        if (k <= 0) can_drain = FALSE;
 
                        if (drain_result > m_ptr->hp)
-                               drain_result = m_ptr->hp;
+                               drain_result = m_ptr->hp;
 
                        /* Damage, check for fear and death */
                        if (mon_take_hit(c_ptr->m_idx, k, fear, NULL))
@@ -2838,7 +2838,7 @@ msg_format("
                                        {
                                                if (m_ptr->ml) r_ptr->r_flags3 |= RF3_RES_TELE;
 #ifdef JP
-                                               msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", m_name);
+                                               msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", m_name);
 #else
                                                msg_format("%^s is unaffected!", m_name);
 #endif
@@ -2873,7 +2873,7 @@ msg_format("
                        }
 
                        else if ((chaos_effect == 5) && cave_floor_bold(y, x) &&
-                                (randint1(90) > r_ptr->level))
+                                (randint1(90) > r_ptr->level))
                        {
                                if (!(r_ptr->flags1 & RF1_UNIQUE) &&
                                    !(r_ptr->flags4 & RF4_BR_CHAO) &&
@@ -3046,7 +3046,7 @@ msg_format("
                                }
                                k += (p_ptr->to_d[hand] + o_ptr->to_d);
 
-                                if (k < 0) k = 0;
+                               if (k < 0) k = 0;
 
 #ifdef JP
                                take_hit(DAMAGE_FORCE, k, "»à¤ÎÂç³ù", -1);
@@ -3319,8 +3319,8 @@ static bool pattern_seq(int c_y, int c_x, int n_y, int n_x)
                        return TRUE;
        }
        else if ((cave[n_y][n_x].feat == FEAT_PATTERN_OLD) ||
-                (cave[n_y][n_x].feat == FEAT_PATTERN_END) ||
-                (cave[n_y][n_x].feat == FEAT_PATTERN_XTRA2))
+                (cave[n_y][n_x].feat == FEAT_PATTERN_END) ||
+                (cave[n_y][n_x].feat == FEAT_PATTERN_XTRA2))
        {
                if (pattern_tile(c_y, c_x))
                {
@@ -3338,7 +3338,7 @@ static bool pattern_seq(int c_y, int c_x, int n_y, int n_x)
                }
        }
        else if ((cave[n_y][n_x].feat == FEAT_PATTERN_XTRA1) ||
-                (cave[c_y][c_x].feat == FEAT_PATTERN_XTRA1))
+                (cave[c_y][c_x].feat == FEAT_PATTERN_XTRA1))
        {
                return TRUE;
        }
@@ -3358,8 +3358,8 @@ static bool pattern_seq(int c_y, int c_x, int n_y, int n_x)
                }
        }
        else if ((cave[c_y][c_x].feat == FEAT_PATTERN_OLD) ||
-                (cave[c_y][c_x].feat == FEAT_PATTERN_END) ||
-                (cave[c_y][c_x].feat == FEAT_PATTERN_XTRA2))
+                (cave[c_y][c_x].feat == FEAT_PATTERN_END) ||
+                (cave[c_y][c_x].feat == FEAT_PATTERN_XTRA2))
        {
                if (!pattern_tile(n_y, n_x))
                {
@@ -3497,15 +3497,15 @@ bool player_can_enter(byte feature)
                case FEAT_PERM_INNER:
                case FEAT_PERM_OUTER:
                case FEAT_PERM_SOLID:
-                case FEAT_PATTERN_START:
-                case FEAT_PATTERN_1:
-                case FEAT_PATTERN_2:
-                case FEAT_PATTERN_3:
-                case FEAT_PATTERN_4:
-                case FEAT_PATTERN_END:
-                case FEAT_PATTERN_OLD:
-                case FEAT_PATTERN_XTRA1:
-                case FEAT_PATTERN_XTRA2:
+               case FEAT_PATTERN_START:
+               case FEAT_PATTERN_1:
+               case FEAT_PATTERN_2:
+               case FEAT_PATTERN_3:
+               case FEAT_PATTERN_4:
+               case FEAT_PATTERN_END:
+               case FEAT_PATTERN_OLD:
+               case FEAT_PATTERN_XTRA1:
+               case FEAT_PATTERN_XTRA2:
                {
                        return (FALSE);
                }
@@ -3561,7 +3561,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_x--;
                                p_ptr->oldpy = cur_hgt - 2;
                                p_ptr->oldpx = cur_wid - 2;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if ((y == 0) && (x == MAX_WID - 1))
@@ -3570,7 +3570,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_x++;
                                p_ptr->oldpy = cur_hgt - 2;
                                p_ptr->oldpx = 1;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if ((y == MAX_HGT - 1) && (x == 0))
@@ -3579,7 +3579,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_x--;
                                p_ptr->oldpy = 1;
                                p_ptr->oldpx = cur_wid - 2;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if ((y == MAX_HGT - 1) && (x == MAX_WID - 1))
@@ -3588,7 +3588,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_x++;
                                p_ptr->oldpy = 1;
                                p_ptr->oldpx = 1;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if (y == 0)
@@ -3596,7 +3596,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_y--;
                                p_ptr->oldpy = cur_hgt - 2;
                                p_ptr->oldpx = x;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if (y == MAX_HGT - 1)
@@ -3604,7 +3604,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_y++;
                                p_ptr->oldpy = 1;
                                p_ptr->oldpx = x;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if (x == 0)
@@ -3612,7 +3612,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_x--;
                                p_ptr->oldpx = cur_wid - 2;
                                p_ptr->oldpy = y;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        else if (x == MAX_WID - 1)
@@ -3620,7 +3620,7 @@ void move_player(int dir, int do_pickup, bool break_trap)
                                p_ptr->wilderness_x++;
                                p_ptr->oldpx = 1;
                                p_ptr->oldpy = y;
-                                ambush_flag = FALSE;
+                               ambush_flag = FALSE;
                        }
 
                        p_ptr->leftbldg = TRUE;
@@ -3905,12 +3905,12 @@ msg_format("%s
        else if ((!cave_floor_bold(y, x)) &&
                (!p_can_pass_walls))
        {
-                byte feat;
+               byte feat;
 
                oktomove = FALSE;
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Disturb the player */
                disturb(0, 0);
@@ -3923,7 +3923,7 @@ msg_format("%s
                        if (feat == FEAT_RUBBLE)
                        {
 #ifdef JP
-                                msg_print("´äÀФ¬¹Ô¤¯¼ê¤ò¤Ï¤Ð¤ó¤Ç¤¤¤ë¤è¤¦¤À¡£");
+                               msg_print("´äÀФ¬¹Ô¤¯¼ê¤ò¤Ï¤Ð¤ó¤Ç¤¤¤ë¤è¤¦¤À¡£");
 #else
                                msg_print("You feel some rubble blocking your way.");
 #endif
@@ -3936,7 +3936,7 @@ msg_format("%s
                        else if (is_closed_door(feat))
                        {
 #ifdef JP
-                                msg_print("¥É¥¢¤¬¹Ô¤¯¼ê¤ò¤Ï¤Ð¤ó¤Ç¤¤¤ë¤è¤¦¤À¡£");
+                               msg_print("¥É¥¢¤¬¹Ô¤¯¼ê¤ò¤Ï¤Ð¤ó¤Ç¤¤¤ë¤è¤¦¤À¡£");
 #else
                                msg_print("You feel a closed door blocking your way.");
 #endif
@@ -4127,11 +4127,11 @@ msg_format("%s
                /* Check for new panel (redraw map) */
                verify_panel();
 
-                /* For get everything when requested hehe I'm *NASTY* */
-                if (dun_level && (d_info[dungeon_type].flags1 & DF1_FORGET))
-                {
-                        wiz_dark();
-                }
+               /* For get everything when requested hehe I'm *NASTY* */
+               if (dun_level && (d_info[dungeon_type].flags1 & DF1_FORGET))
+               {
+                       wiz_dark();
+               }
 
                if ((p_ptr->pclass == CLASS_NINJA))
                {
@@ -4249,19 +4249,19 @@ msg_format("%s
                        /* Disturb */
                        disturb(0, 0);
 
-                        /* Hidden trap */
-                        if (c_ptr->mimic)
-                        {
-                                /* Message */
+                       /* Hidden trap */
+                       if (c_ptr->mimic)
+                       {
+                               /* Message */
 #ifdef JP
-                                msg_print("¥È¥é¥Ã¥×¤À¡ª");
+                               msg_print("¥È¥é¥Ã¥×¤À¡ª");
 #else
-                                msg_print("You found a trap!");
+                               msg_print("You found a trap!");
 #endif
 
-                                /* Pick a trap */
-                                disclose_grid(py, px);
-                        }
+                               /* Pick a trap */
+                               disclose_grid(py, px);
+                       }
 
                        /* Hit the trap */
                        hit_trap(break_trap);
@@ -4310,8 +4310,8 @@ msg_format("%s
  */
 static int see_wall(int dir, int y, int x)
 {
-        cave_type   *c_ptr;
-        byte feat;
+       cave_type   *c_ptr;
+       byte feat;
 
        /* Get the new location */
        y += ddy[dir];
@@ -4320,26 +4320,26 @@ static int see_wall(int dir, int y, int x)
        /* Illegal grids are not known walls */
        if (!in_bounds2(y, x)) return (FALSE);
 
-        /* Access grid */
-        c_ptr = &cave[y][x];
+       /* Access grid */
+       c_ptr = &cave[y][x];
 
-        /* Feature code (applying "mimic" field) */
-        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+       /* Feature code (applying "mimic" field) */
+       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
        /* Must be known to the player */
        if (c_ptr->info & (CAVE_MARK))
-        {
-                /* Rubble, Magma, Quartz, Wall, Perm wall */
-                if (feat >= FEAT_RUBBLE && feat <= FEAT_PERM_SOLID) return TRUE;
+       {
+               /* Rubble, Magma, Quartz, Wall, Perm wall */
+               if (feat >= FEAT_RUBBLE && feat <= FEAT_PERM_SOLID) return TRUE;
 
-                /* Tree */
-                if (feat == FEAT_TREES) return TRUE;
+               /* Tree */
+               if (feat == FEAT_TREES) return TRUE;
 
-                /* Mountain */
-                if (feat == FEAT_MOUNTAIN) return TRUE;
-        }
+               /* Mountain */
+               if (feat == FEAT_MOUNTAIN) return TRUE;
+       }
 
-        return FALSE;
+       return FALSE;
 }
 
 
@@ -4708,8 +4708,8 @@ static bool run_test(void)
                /* Access grid */
                c_ptr = &cave[row][col];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Visible monsters abort running */
                if (c_ptr->m_idx)
@@ -4935,16 +4935,16 @@ static bool run_test(void)
                        /* Access grid */
                        c_ptr = &cave[row][col];
 
-                        /* Feature code (applying "mimic" field) */
-                        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+                       /* Feature code (applying "mimic" field) */
+                       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                        /* Unknown grid or non-wall XXX XXX XXX cave_floor_grid(c_ptr)) */
                        if (!(c_ptr->info & (CAVE_MARK)) ||
                            ((feat <= FEAT_DOOR_TAIL) ||
                             (feat == FEAT_FLOWER) ||
                             (feat == FEAT_DEEP_GRASS) ||
-                             ((feat >= FEAT_DEEP_WATER) &&
-                              (feat <= FEAT_GRASS))))
+                            ((feat >= FEAT_DEEP_WATER) &&
+                             (feat <= FEAT_GRASS))))
 
                        {
                                /* Looking to break right */
@@ -4976,16 +4976,16 @@ static bool run_test(void)
                        /* Access grid */
                        c_ptr = &cave[row][col];
 
-                        /* Feature code (applying "mimic" field) */
-                        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+                       /* Feature code (applying "mimic" field) */
+                       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                        /* Unknown grid or non-wall XXX XXX XXX cave_floor_grid(c_ptr)) */
                        if (!(c_ptr->info & (CAVE_MARK)) ||
                            ((feat <= FEAT_DOOR_TAIL) ||
                             (feat == FEAT_FLOWER) ||
                             (feat == FEAT_DEEP_GRASS) ||
-                             ((feat >= FEAT_DEEP_WATER) &&
-                              (feat <= FEAT_GRASS))))
+                            ((feat >= FEAT_DEEP_WATER) &&
+                             (feat <= FEAT_GRASS))))
 
                        {
                                /* Looking to break left */
@@ -5105,14 +5105,14 @@ void run_step(int dir)
        /* Start running */
        if (dir)
        {
-                cave_type   *c_ptr;
-                byte feat;
-        
-                /* Access grid */
-                c_ptr = &cave[py+ddy[dir]][px+ddx[dir]];
-
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               cave_type   *c_ptr;
+               byte feat;
+       
+               /* Access grid */
+               c_ptr = &cave[py+ddy[dir]][px+ddx[dir]];
+
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Hack -- do not start silly run */
                if (see_wall(dir, py, px) &&
index 3102f97..da064dc 100644 (file)
@@ -149,13 +149,13 @@ if (get_check("
                                msg_print("¤Ê¤ó¤À¤³¤Î³¬Ãʤϡª");
                        else if (0 == dun_level)
                                msg_print("ÃϾå¤ËÌá¤Ã¤¿¡£");
-                        else
+                       else
                                msg_print("³¬Ãʤò¾å¤Ã¤Æ¿·¤¿¤Ê¤ë̵ܤؤÈ­¤òƧ¤ßÆþ¤ì¤¿¡£");
 #else
-                        if (0 == dun_level)
+                       if (0 == dun_level)
                                msg_print("You go back to the surface.");
-                        else
-                                msg_print("You enter a maze of up staircases.");
+                       else
+                               msg_print("You enter a maze of up staircases.");
 #endif
 
 
@@ -964,25 +964,25 @@ static int count_dt(int *y, int *x, bool (*test)(int feat), bool under)
        /* Check around (and under) the character */
        for (d = 0; d < 9; d++)
        {
-                cave_type *c_ptr;
-                byte feat;
+               cave_type *c_ptr;
+               byte feat;
 
-                /* if not searching under player continue */
-                if ((d == 8) && !under) continue;
+               /* if not searching under player continue */
+               if ((d == 8) && !under) continue;
 
                /* Extract adjacent (legal) location */
                yy = py + ddy_ddd[d];
                xx = px + ddx_ddd[d];
 
-                /* Get the cave */
-                c_ptr = &cave[yy][xx];
+               /* Get the cave */
+               c_ptr = &cave[yy][xx];
 
                /* Must have knowledge */
                if (!(c_ptr->info & (CAVE_MARK))) continue;
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
-                
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               
                /* Not looking for this feature */
                if (!((*test)(feat))) continue;
 
@@ -1089,8 +1089,8 @@ static bool do_cmd_open_aux(int y, int x)
        /* Get requested grid */
        c_ptr = &cave[y][x];
 
-        /* Seeing true feature code (ignore mimic) */
-                
+       /* Seeing true feature code (ignore mimic) */
+               
        /* Jammed door */
        if (c_ptr->feat >= FEAT_DOOR_HEAD + 0x08)
        {
@@ -1242,8 +1242,8 @@ void do_cmd_open(void)
        /* Get a "repeated" direction */
        if (get_rep_dir(&dir, TRUE))
        {
-                byte feat;
-                cave_type *c_ptr;
+               byte feat;
+               cave_type *c_ptr;
 
                /* Get requested location */
                y = py + ddy[dir];
@@ -1252,9 +1252,9 @@ void do_cmd_open(void)
                /* Get requested grid */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
-                
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               
                /* Check for chest */
                o_idx = chest_check(y, x);
 
@@ -1329,8 +1329,8 @@ static bool do_cmd_close_aux(int y, int x)
        /* Get grid and contents */
        c_ptr = &cave[y][x];
 
-        /* Seeing true feature code (ignore mimic) */
-                
+       /* Seeing true feature code (ignore mimic) */
+               
        /* Broken door */
        if (c_ptr->feat == FEAT_BROKEN)
        {
@@ -1405,8 +1405,8 @@ void do_cmd_close(void)
        /* Get a "repeated" direction */
        if (get_rep_dir(&dir,FALSE))
        {
-                cave_type *c_ptr;
-                byte feat;
+               cave_type *c_ptr;
+               byte feat;
 
                /* Get requested location */
                y = py + ddy[dir];
@@ -1415,15 +1415,15 @@ void do_cmd_close(void)
                /* Get grid and contents */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
-                
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               
                /* Require open/broken door */
                if ((feat != FEAT_OPEN) && (feat != FEAT_BROKEN))
                {
                        /* Message */
 #ifdef JP
-                        msg_print("¤½¤³¤Ë¤ÏÊĤ¸¤ë¤â¤Î¤¬¸«Åö¤¿¤é¤Ê¤¤¡£");
+                       msg_print("¤½¤³¤Ë¤ÏÊĤ¸¤ë¤â¤Î¤¬¸«Åö¤¿¤é¤Ê¤¤¡£");
 #else
                        msg_print("You see nothing there to close.");
 #endif
@@ -1559,8 +1559,8 @@ static bool do_cmd_tunnel_aux(int y, int x)
        /* Get grid */
        c_ptr = &cave[y][x];
 
-        /* Feature code (applying "mimic" field) */
-        feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+       /* Feature code (applying "mimic" field) */
+       feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
        /* Sound */
        sound(SOUND_DIG);
@@ -1590,8 +1590,8 @@ static bool do_cmd_tunnel_aux(int y, int x)
 
        /* Map border (mimiccing Permanent wall) */
        else if ((c_ptr->feat >= FEAT_PERM_EXTRA &&
-                  c_ptr->feat <= FEAT_PERM_SOLID) ||
-                 c_ptr->feat == FEAT_MOUNTAIN)
+                 c_ptr->feat <= FEAT_PERM_SOLID) ||
+                c_ptr->feat == FEAT_MOUNTAIN)
        {
 #ifdef JP
                msg_print("¤½¤³¤Ï·¡¤ì¤Ê¤¤!");
@@ -1635,7 +1635,7 @@ static bool do_cmd_tunnel_aux(int y, int x)
 
        /* Granite */
        else if ((feat >= FEAT_WALL_EXTRA) &&
-                (feat <= FEAT_WALL_SOLID))
+                (feat <= FEAT_WALL_SOLID))
        {
                /* Tunnel */
                if ((p_ptr->skill_dig > 40 + randint0(1600)) && twall(y, x, floor_type[randint0(100)]))
@@ -1674,7 +1674,7 @@ static bool do_cmd_tunnel_aux(int y, int x)
 
                /* Found gold (ignore mimic; maybe a hidden treasure) */
                if (c_ptr->feat >= FEAT_MAGMA_H &&
-                    c_ptr->feat <= FEAT_QUARTZ_K) gold = TRUE;
+                   c_ptr->feat <= FEAT_QUARTZ_K) gold = TRUE;
 
                /* Extract "quartz" flag XXX XXX XXX */
                if ((feat - FEAT_MAGMA) & 0x01) hard = TRUE;
@@ -1823,11 +1823,11 @@ static bool do_cmd_tunnel_aux(int y, int x)
                }
        }
 
-        if (is_hidden_door(c_ptr))
-        {
-                /* Occasional Search XXX XXX */
-                if (randint0(100) < 25) search();
-        }
+       if (is_hidden_door(c_ptr))
+       {
+               /* Occasional Search XXX XXX */
+               if (randint0(100) < 25) search();
+       }
 
        /* Result */
        return (more);
@@ -1881,8 +1881,8 @@ void do_cmd_tunnel(void)
                /* Get grid */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* No tunnelling through doors */
                if (((feat >= FEAT_DOOR_HEAD) && (feat <= FEAT_DOOR_TAIL)) ||
@@ -2016,7 +2016,7 @@ bool easy_open_door(int y, int x)
                {
                        /* Message */
 #ifdef JP
-                        msg_print("¸°¤ò¤Ï¤º¤·¤¿¡£");
+                       msg_print("¸°¤ò¤Ï¤º¤·¤¿¡£");
 #else
                        msg_print("You have picked the lock.");
 #endif
@@ -2043,7 +2043,7 @@ bool easy_open_door(int y, int x)
 
                        /* Message */
 #ifdef JP
-                        msg_print("¸°¤ò¤Ï¤º¤»¤Ê¤«¤Ã¤¿¡£");
+                       msg_print("¸°¤ò¤Ï¤º¤»¤Ê¤«¤Ã¤¿¡£");
 #else
                        msg_print("You failed to pick the lock.");
 #endif
@@ -2230,18 +2230,18 @@ static bool do_cmd_disarm_aux(int y, int x, int dir)
        /* Variable power! */
 
        /* Extract trap "power" */
-        switch (c_ptr->feat)
-        {
-        case FEAT_TRAP_OPEN:
-        case FEAT_TRAP_ARMAGEDDON:
-        case FEAT_TRAP_PIRANHA:
-                /* Special traps are very difficult to disarm */
-                power = 100;
-                break;
-        default:
-                power = 5;
-                break;
-        }
+       switch (c_ptr->feat)
+       {
+       case FEAT_TRAP_OPEN:
+       case FEAT_TRAP_ARMAGEDDON:
+       case FEAT_TRAP_PIRANHA:
+               /* Special traps are very difficult to disarm */
+               power = 100;
+               break;
+       default:
+               power = 5;
+               break;
+       }
 
        /* Extract the difficulty */
        j = i - power;
@@ -2267,7 +2267,7 @@ static bool do_cmd_disarm_aux(int y, int x, int dir)
                c_ptr->info &= ~(CAVE_MARK);
 
                /* Remove the trap */
-                cave_set_feat(y, x, floor_type[randint0(100)]);
+               cave_set_feat(y, x, floor_type[randint0(100)]);
 
 #ifdef ALLOW_EASY_DISARM /* TNB */
 
@@ -2385,8 +2385,8 @@ void do_cmd_disarm(void)
        /* Get a direction (or abort) */
        if (get_rep_dir(&dir,TRUE))
        {
-                cave_type *c_ptr;
-                byte feat;
+               cave_type *c_ptr;
+               byte feat;
 
                /* Get location */
                y = py + ddy[dir];
@@ -2395,8 +2395,8 @@ void do_cmd_disarm(void)
                /* Get grid and contents */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Check for chests */
                o_idx = chest_check(y, x);
@@ -2406,7 +2406,7 @@ void do_cmd_disarm(void)
                {
                        /* Message */
 #ifdef JP
-                        msg_print("¤½¤³¤Ë¤Ï²ò½ü¤¹¤ë¤â¤Î¤¬¸«Åö¤¿¤é¤Ê¤¤¡£");
+                       msg_print("¤½¤³¤Ë¤Ï²ò½ü¤¹¤ë¤â¤Î¤¬¸«Åö¤¿¤é¤Ê¤¤¡£");
 #else
                        msg_print("You see nothing there to disarm.");
 #endif
@@ -2531,7 +2531,7 @@ static bool do_cmd_bash_aux(int y, int x, int dir)
 
        /* Saving throw against stun */
        else if (randint0(100) < adj_dex_safe[p_ptr->stat_ind[A_DEX]] +
-                p_ptr->lev)
+                p_ptr->lev)
        {
                /* Message */
 #ifdef JP
@@ -2609,7 +2609,7 @@ void do_cmd_bash(void)
        /* Get a "repeated" direction */
        if (get_rep_dir(&dir,FALSE))
        {
-                byte feat;
+               byte feat;
 
                /* Bash location */
                y = py + ddy[dir];
@@ -2618,8 +2618,8 @@ void do_cmd_bash(void)
                /* Get grid */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Nothing useful */
                if (!((feat >= FEAT_DOOR_HEAD) &&
@@ -2705,7 +2705,7 @@ void do_cmd_alter(void)
        /* Get a direction */
        if (get_rep_dir(&dir,TRUE))
        {
-                byte feat;
+               byte feat;
 
                /* Get location */
                y = py + ddy[dir];
@@ -2714,8 +2714,8 @@ void do_cmd_alter(void)
                /* Get grid */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Take a turn */
                energy_use = 100;
@@ -2729,31 +2729,31 @@ void do_cmd_alter(void)
 
                /* Tunnel through walls */
                else if (((feat >= FEAT_RUBBLE) &&
-                         (feat < FEAT_MINOR_GLYPH)) ||
-                        ((feat == FEAT_TREES) ||
-                         (feat == FEAT_MOUNTAIN)))
+                         (feat < FEAT_MINOR_GLYPH)) ||
+                        ((feat == FEAT_TREES) ||
+                         (feat == FEAT_MOUNTAIN)))
                {
                        more = do_cmd_tunnel_aux(y, x);
                }
 
-                else if (is_closed_door(feat))
-                {
-                        /* Bash jammed doors */
-                        if (feat >= FEAT_DOOR_HEAD + 0x08)
-                        {
-                                more = do_cmd_bash_aux(y, x, dir);
-                        }
-
-                        /* Locked doors */
-                        else
-                        {
-                                more = do_cmd_open_aux(y, x);
-                        }
-                }
+               else if (is_closed_door(feat))
+               {
+                       /* Bash jammed doors */
+                       if (feat >= FEAT_DOOR_HEAD + 0x08)
+                       {
+                               more = do_cmd_bash_aux(y, x, dir);
+                       }
+
+                       /* Locked doors */
+                       else
+                       {
+                               more = do_cmd_open_aux(y, x);
+                       }
+               }
 
                /* Close open doors */
                else if ((feat == FEAT_OPEN) ||
-                        (feat == FEAT_BROKEN))
+                        (feat == FEAT_BROKEN))
                {
                        more = do_cmd_close_aux(y, x);
                }
@@ -2832,9 +2832,9 @@ void do_cmd_spike(void)
        /* Get a "repeated" direction */
        if (get_rep_dir(&dir,FALSE))
        {
-                int y, x, item;
-                cave_type *c_ptr;
-                byte feat;
+               int y, x, item;
+               cave_type *c_ptr;
+               byte feat;
 
                /* Get location */
                y = py + ddy[dir];
@@ -2843,8 +2843,8 @@ void do_cmd_spike(void)
                /* Get grid and contents */
                c_ptr = &cave[y][x];
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Require closed door */
                if (!((feat >= FEAT_DOOR_HEAD) &&
@@ -2964,9 +2964,9 @@ void do_cmd_walk(int pickup)
                more = TRUE;
        }
 
-        /* Hack again -- Is there a special encounter ??? */
+       /* Hack again -- Is there a special encounter ??? */
        if(p_ptr->wild_mode && (cave[py][px].feat != FEAT_TOWN))
-        {
+       {
                int tmp = 120 + p_ptr->lev*10 - wilderness[py][px].level + 5;
                if (tmp < 1) 
                        tmp = 1;
@@ -2974,9 +2974,9 @@ void do_cmd_walk(int pickup)
                {
                        /* Inform the player of his horrible fate :=) */
 #ifdef JP
-                       msg_print("½±·â¤À¡ª");
+                       msg_print("½±·â¤À¡ª");
 #else
-                       msg_print("You are ambushed !");
+                       msg_print("You are ambushed !");
 #endif
 
                        /* Go into large wilderness view */
@@ -3959,10 +3959,10 @@ note_dies = "
                                {
 #ifdef JP
                                        msg_format("%d/%d ¤Î¥À¥á¡¼¥¸¤òÍ¿¤¨¤¿¡£",
-                                                  tdam, m_ptr->hp);
+                                                  tdam, m_ptr->hp);
 #else
                                        msg_format("You do %d (out of %d) damage.",
-                                                  tdam, m_ptr->hp);
+                                                  tdam, m_ptr->hp);
 #endif
 
                                }
@@ -4564,10 +4564,10 @@ note_dies = "
                                {
 #ifdef JP
                                        msg_format("%d/%d¤Î¥À¥á¡¼¥¸¤òÍ¿¤¨¤¿¡£",
-                                                  tdam, m_ptr->hp);
+                                                  tdam, m_ptr->hp);
 #else
                                        msg_format("You do %d (out of %d) damage.",
-                                                  tdam, m_ptr->hp);
+                                                  tdam, m_ptr->hp);
 #endif
 
                                }
index f86c1c0..12ff4b9 100644 (file)
@@ -45,9 +45,9 @@ void do_cmd_inven(void)
        item_tester_full = FALSE;
 
 #ifdef JP
-        sprintf(out_val, "»ý¤Áʪ¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
-            lbtokg1(p_ptr->total_weight) , lbtokg2(p_ptr->total_weight) ,
-            (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100)) 
+       sprintf(out_val, "»ý¤Áʪ¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
+           lbtokg1(p_ptr->total_weight) , lbtokg2(p_ptr->total_weight) ,
+           (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100)) 
 / 2));
 #else
        sprintf(out_val, "Inventory: carrying %d.%d pounds (%ld%% of capacity). Command: ",
@@ -120,9 +120,9 @@ void do_cmd_equip(void)
 
        /* Build a prompt */
 #ifdef JP
-        sprintf(out_val, "ÁõÈ÷¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
-            lbtokg1(p_ptr->total_weight) , lbtokg2(p_ptr->total_weight) ,
-            (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100)) 
+       sprintf(out_val, "ÁõÈ÷¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
+           lbtokg1(p_ptr->total_weight) , lbtokg2(p_ptr->total_weight) ,
+           (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100)) 
 / 2));
 #else
        sprintf(out_val, "Equipment: carrying %d.%d pounds (%ld%% of capacity). Command: ",
@@ -373,11 +373,11 @@ s = "
 
                /* Message */
 #ifdef JP
-                msg_format("%s%s¤Ï¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£",
-                           describe_use(slot) , o_name );
+               msg_format("%s%s¤Ï¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£",
+                          describe_use(slot) , o_name );
 #else
                msg_format("The %s you are %s appears to be cursed.",
-                          o_name, describe_use(slot));
+                          o_name, describe_use(slot));
 #endif
 
 
@@ -549,7 +549,7 @@ msg_print("
 
        /* Message */
 #ifdef JP
-        msg_format("%s(%c)%s¡£", o_name, index_to_label(slot), act );
+       msg_format("%s(%c)%s¡£", o_name, index_to_label(slot), act );
 #else
        msg_format("%s %s (%c).", act, o_name, index_to_label(slot));
 #endif
@@ -697,9 +697,9 @@ void kamaenaoshi(int item)
                inven_item_optimize(INVEN_RARM);
                object_desc(o_name, o_ptr, TRUE, 3);
 #ifdef JP
-                msg_format("%s¤ò»ý¤ÁÂؤ¨¤¿¡£", o_name );
+               msg_format("%s¤ò»ý¤ÁÂؤ¨¤¿¡£", o_name );
 #else
-                msg_format("You switched hand of %s.", o_name );
+               msg_format("You switched hand of %s.", o_name );
 #endif
        }
 }
@@ -862,7 +862,7 @@ void do_cmd_drop(void)
        {
                /* Oops */
 #ifdef JP
-                msg_print("¤Õ¡¼¤à¡¢¤É¤¦¤ä¤é¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£");
+               msg_print("¤Õ¡¼¤à¡¢¤É¤¦¤ä¤é¼ö¤ï¤ì¤Æ¤¤¤ë¤è¤¦¤À¡£");
 #else
                msg_print("Hmmm, it seems to be cursed.");
 #endif
@@ -1328,7 +1328,7 @@ void do_cmd_inscribe(void)
 
        /* Get a new inscription (possibly empty) */
 #ifdef JP
-        if (get_string("ÌÃ: ", out_val, 80))
+       if (get_string("ÌÃ: ", out_val, 80))
 #else
        if (get_string("Inscription: ", out_val, 80))
 #endif
@@ -1735,7 +1735,7 @@ void do_cmd_locate(void)
                if ((y2 == y1) && (x2 == x1))
                {
 #ifdef JP
-                        strcpy(tmp_val, "¿¿¾å");
+                       strcpy(tmp_val, "¿¿¾å");
 #else
                        tmp_val[0] = '\0';
 #endif
@@ -1745,12 +1745,12 @@ void do_cmd_locate(void)
                {
 #ifdef JP
                        sprintf(tmp_val, "%s%s",
-                               ((y2 < y1) ? "ËÌ" : (y2 > y1) ? "Æî" : ""),
-                               ((x2 < x1) ? "À¾" : (x2 > x1) ? "Åì" : ""));
+                               ((y2 < y1) ? "ËÌ" : (y2 > y1) ? "Æî" : ""),
+                               ((x2 < x1) ? "À¾" : (x2 > x1) ? "Åì" : ""));
 #else
                        sprintf(tmp_val, "%s%s of",
-                               ((y2 < y1) ? " North" : (y2 > y1) ? " South" : ""),
-                               ((x2 < x1) ? " West" : (x2 > x1) ? " East" : ""));
+                               ((y2 < y1) ? " North" : (y2 > y1) ? " South" : ""),
+                               ((x2 < x1) ? " West" : (x2 > x1) ? " East" : ""));
 #endif
 
                }
@@ -1758,13 +1758,13 @@ void do_cmd_locate(void)
                /* Prepare to ask which way to look */
                sprintf(out_val,
 #ifdef JP
-                        "¥Þ¥Ã¥×°ÌÃÖ [%d(%02d),%d(%02d)] (¥×¥ì¥¤¥ä¡¼¤Î%s)  Êý¸þ?",
+                       "¥Þ¥Ã¥×°ÌÃÖ [%d(%02d),%d(%02d)] (¥×¥ì¥¤¥ä¡¼¤Î%s)  Êý¸þ?",
 #else
-                       "Map sector [%d(%02d),%d(%02d)], which is%s your sector.  Direction?",
+                       "Map sector [%d(%02d),%d(%02d)], which is%s your sector.  Direction?",
 #endif
 
-                       y2 / (hgt / 2), y2 % (hgt / 2),
-                       x2 / (wid / 2), x2 % (wid / 2), tmp_val);
+                       y2 / (hgt / 2), y2 % (hgt / 2),
+                       x2 / (wid / 2), x2 % (wid / 2), tmp_val);
 
                /* Assume no direction */
                dir = 0;
@@ -2507,7 +2507,7 @@ if (!get_com("
                strcpy(buf, "Non-unique monster list.");
 #endif
        }
-        else if (sym == KTRL('M'))
+       else if (sym == KTRL('M'))
        {
                all = TRUE;
 #ifdef JP
@@ -2518,8 +2518,8 @@ if (!get_com("
                {
                        temp[0]=0;
 
-                        /* Restore */
-                        screen_load();
+                       /* Restore */
+                       screen_load();
 
                        return FALSE;
                }
@@ -2533,8 +2533,8 @@ if (!get_com("
        {
                sprintf(buf, "%c - %s.", sym, ident_info[i] + 2);
        }
-       else
-       {
+       else
+       {
 #ifdef JP
 sprintf(buf, "%c - %s", sym, "̵¸ú¤Êʸ»ú");
 #else
index 0da0a74..b595073 100644 (file)
@@ -96,7 +96,7 @@ static void remove_auto_dump(cptr orig_file, cptr mark)
                        {
                                int tmp;
 
-                               if (!sscanf(buf + mark_len, " (%d)", &tmp)
+                               if (!sscanf(buf + mark_len, " (%d)", &tmp)
                                    || tmp != line_num)
                                {
                                        fseek(orig_fff, header_location, SEEK_SET);
@@ -1127,8 +1127,8 @@ void do_cmd_change_name(void)
                {
                        get_name();
 
-                        /* Process the player name */
-                        process_player_name(FALSE);
+                       /* Process the player name */
+                       process_player_name(FALSE);
                }
 
                /* File dump */
@@ -1272,7 +1272,7 @@ void do_cmd_messages(int num_now)
 #ifdef JP
                /* translation */
                prt(format("°ÊÁ°¤Î¥á¥Ã¥»¡¼¥¸ %d-%d Á´Éô¤Ç(%d) ¥ª¥Õ¥»¥Ã¥È(%d)",
-                          i, i+j-1, n, q), 0, 0);
+                          i, i+j-1, n, q), 0, 0);
 #else
                prt(format("Message Recall (%d-%d of %d), Offset %d",
                    i, i+j-1, n, q), 0, 0);
@@ -1438,7 +1438,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_peek",           "Peek into object creation"
 #endif
-        },
+       },
 
        { &cheat_hear,          FALSE,  255,    0x02, 0x00,
 #ifdef JP
@@ -1446,7 +1446,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_hear",           "Peek into monster creation"
 #endif
-        },
+       },
 
        { &cheat_room,          FALSE,  255,    0x04, 0x00,
 #ifdef JP
@@ -1454,7 +1454,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_room",           "Peek into dungeon creation"
 #endif
-        },
+       },
 
        { &cheat_xtra,          FALSE,  255,    0x08, 0x00,
 #ifdef JP
@@ -1462,7 +1462,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_xtra",           "Peek into something else"
 #endif
-        },
+       },
 
        { &cheat_know,          FALSE,  255,    0x10, 0x00,
 #ifdef JP
@@ -1470,7 +1470,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_know",           "Know complete monster info"
 #endif
-        },
+       },
 
        { &cheat_live,          FALSE,  255,    0x20, 0x00,
 #ifdef JP
@@ -1478,7 +1478,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_live",           "Allow player to avoid death"
 #endif
-        },
+       },
 
        { &cheat_save,          FALSE,  255,    0x40, 0x00,
 #ifdef JP
@@ -1486,7 +1486,7 @@ static option_type cheat_info[CHEAT_MAX] =
 #else
        "cheat_save",           "Ask for saving death"
 #endif
-        }
+       }
 };
 
 /*
@@ -1507,7 +1507,7 @@ static void do_cmd_options_cheat(cptr info)
        /* Interact with the player */
        while (TRUE)
        {
-                int dir;
+               int dir;
 
                /* Prompt XXX XXX XXX */
 #ifdef JP
@@ -1609,19 +1609,19 @@ static void do_cmd_options_cheat(cptr info)
                                break;
                        }
 
-                        case '?':
-                        {
+                       case '?':
+                       {
 #ifdef JP
-                                strnfmt(buf, sizeof(buf), "joption.txt#%s", cheat_info[k].o_text);
+                               strnfmt(buf, sizeof(buf), "joption.txt#%s", cheat_info[k].o_text);
 #else
-                                strnfmt(buf, sizeof(buf), "option.txt#%s", cheat_info[k].o_text);
+                               strnfmt(buf, sizeof(buf), "option.txt#%s", cheat_info[k].o_text);
 #endif
-                                /* Peruse the help file */
-                                (void)show_file(TRUE, buf, NULL, 0, 0);
+                               /* Peruse the help file */
+                               (void)show_file(TRUE, buf, NULL, 0, 0);
 
                                Term_clear(); 
-                                break;
-                        }
+                               break;
+                       }
 
                        default:
                        {
@@ -1780,26 +1780,26 @@ static void do_cmd_options_autosave(cptr info)
                                autosave_freq = toggle_frequency(autosave_freq);
 #ifdef JP
                                prt(format("¼«Æ°¥»¡¼¥Ö¤ÎÉÑÅÙ¡§ %d ¥¿¡¼¥óËè", 
-                                           autosave_freq), 5, 0);
+                                          autosave_freq), 5, 0);
 #else
                                prt(format("Timed autosave frequency: every %d turns",
-                                           autosave_freq), 5, 0);
+                                          autosave_freq), 5, 0);
 #endif
-                                break;
+                               break;
                        }
 
-                        case '?':
-                        {
+                       case '?':
+                       {
 #ifdef JP
-                                (void)show_file(TRUE, "joption.txt#Autosave", NULL, 0, 0);
+                               (void)show_file(TRUE, "joption.txt#Autosave", NULL, 0, 0);
 #else
-                                (void)show_file(TRUE, "option.txt#Autosave", NULL, 0, 0);
+                               (void)show_file(TRUE, "option.txt#Autosave", NULL, 0, 0);
 #endif
 
 
                                Term_clear(); 
-                                break;
-                        }
+                               break;
+                       }
 
                        default:
                        {
@@ -1841,7 +1841,7 @@ void do_cmd_options_aux(int page, cptr info)
        /* Interact with the player */
        while (TRUE)
        {
-                int dir;
+               int dir;
 
                /* Prompt XXX XXX XXX */
 #ifdef JP
@@ -1853,11 +1853,11 @@ void do_cmd_options_aux(int page, cptr info)
                prt(buf, 0, 0);
 
 
-                /* HACK -- description for easy-auto-destroy options */
+               /* HACK -- description for easy-auto-destroy options */
 #ifdef JP
-                if (page == PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ê°×¼«Æ°Ç˲õ¤ò»ÈÍѤ¹¤ë¤È¤­¤Î¤ßÍ­¸ú", 6, 6);
+               if (page == PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ê°×¼«Æ°Ç˲õ¤ò»ÈÍѤ¹¤ë¤È¤­¤Î¤ßÍ­¸ú", 6, 6);
 #else
-                if (page == PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "Following options will protect items from easy auto-destroyer.", 6, 3);
+               if (page == PAGE_AUTODESTROY) c_prt(TERM_YELLOW, "Following options will protect items from easy auto-destroyer.", 6, 3);
 #endif
 
                /* Display the options */
@@ -1870,14 +1870,14 @@ void do_cmd_options_aux(int page, cptr info)
 
                        /* Display the option text */
                        sprintf(buf, "%-48s: %s (%.19s)",
-                               option_info[opt[i]].o_desc,
+                               option_info[opt[i]].o_desc,
 #ifdef JP
-                               (*option_info[opt[i]].o_var ? "¤Ï¤¤  " : "¤¤¤¤¤¨"),
+                               (*option_info[opt[i]].o_var ? "¤Ï¤¤  " : "¤¤¤¤¤¨"),
 #else
-                               (*option_info[opt[i]].o_var ? "yes" : "no "),
+                               (*option_info[opt[i]].o_var ? "yes" : "no "),
 #endif
 
-                               option_info[opt[i]].o_text);
+                               option_info[opt[i]].o_text);
                        if ((page == PAGE_AUTODESTROY) && i > 2) c_prt(a, buf, i + 5, 0);
                        else c_prt(a, buf, i + 2, 0);
                }
@@ -1948,19 +1948,19 @@ void do_cmd_options_aux(int page, cptr info)
                                break;
                        }
 
-                        case '?':
-                        {
+                       case '?':
+                       {
 #ifdef JP
-                                strnfmt(buf, sizeof(buf), "joption.txt#%s", option_info[opt[k]].o_text);
+                               strnfmt(buf, sizeof(buf), "joption.txt#%s", option_info[opt[k]].o_text);
 #else
-                                strnfmt(buf, sizeof(buf), "option.txt#%s", option_info[opt[k]].o_text);
+                               strnfmt(buf, sizeof(buf), "option.txt#%s", option_info[opt[k]].o_text);
 #endif
-                                /* Peruse the help file */
-                                (void)show_file(TRUE, buf, NULL, 0, 0);
+                               /* Peruse the help file */
+                               (void)show_file(TRUE, buf, NULL, 0, 0);
 
                                Term_clear(); 
-                                break;
-                        }
+                               break;
+                       }
 
                        default:
                        {
@@ -2116,18 +2116,18 @@ static void do_cmd_options_win(void)
                                break;
                        }
 
-                        case '?':
-                        {
+                       case '?':
+                       {
 #ifdef JP
-                                (void)show_file(TRUE, "joption.txt#Window", NULL, 0, 0);
+                               (void)show_file(TRUE, "joption.txt#Window", NULL, 0, 0);
 #else
-                                (void)show_file(TRUE, "option.txt#Window", NULL, 0, 0);
+                               (void)show_file(TRUE, "option.txt#Window", NULL, 0, 0);
 #endif
 
 
                                Term_clear(); 
-                                break;
-                        }
+                               break;
+                       }
 
                        default:
                        {
@@ -2186,8 +2186,8 @@ void do_cmd_options(void)
        /* Interact */
        while (1)
        {
-                /* Clear screen */
-                Term_clear();
+               /* Clear screen */
+               Term_clear();
 
                /* Why are we here */
 #ifdef JP
@@ -2231,15 +2231,15 @@ void do_cmd_options(void)
                prt("(W) Window Flags", 15, 5);
 #endif
 
-                if (p_ptr->noscore || allow_debug_opts)
-                {
-                        /* Cheating */
+               if (p_ptr->noscore || allow_debug_opts)
+               {
+                       /* Cheating */
 #ifdef JP
-                        prt("(C)       º¾µ½            ¥ª¥×¥·¥ç¥ó", 16, 5);
+                       prt("(C)       º¾µ½            ¥ª¥×¥·¥ç¥ó", 16, 5);
 #else
-                        prt("(C) Cheating Options", 16, 5);
+                       prt("(C) Cheating Options", 16, 5);
 #endif
-                }
+               }
 
 
                /* Prompt */
@@ -2324,40 +2324,40 @@ void do_cmd_options(void)
                                break;
                        }
 
-                        /* Object auto-destruction Options */
-                        case '6':
-                        {
-                                /* Spawn */
+                       /* Object auto-destruction Options */
+                       case '6':
+                       {
+                               /* Spawn */
 #ifdef JP
-                                do_cmd_options_aux(7, "´Ê°×¥¢¥¤¥Æ¥à¼«Æ°Ç˲õ¥ª¥×¥·¥ç¥ó");
+                               do_cmd_options_aux(7, "´Ê°×¥¢¥¤¥Æ¥à¼«Æ°Ç˲õ¥ª¥×¥·¥ç¥ó");
 #else
-                                do_cmd_options_aux(7, "Easy Auto-Destroyer Options");
+                               do_cmd_options_aux(7, "Easy Auto-Destroyer Options");
 #endif
-                                break;
-                        }
+                               break;
+                       }
 
-                        /* Play-record Options */
-                        case 'R':
-                        case 'r':
-                        {
-                                /* Spawn */
+                       /* Play-record Options */
+                       case 'R':
+                       case 'r':
+                       {
+                               /* Spawn */
 #ifdef JP
-                                do_cmd_options_aux(10, "¥×¥ì¥¤µ­Ï¿¥ª¥×¥·¥ç¥ó");
+                               do_cmd_options_aux(10, "¥×¥ì¥¤µ­Ï¿¥ª¥×¥·¥ç¥ó");
 #else
-                                do_cmd_options_aux(10, "Play-record Option");
+                               do_cmd_options_aux(10, "Play-record Option");
 #endif
-                                break;
-                        }
+                               break;
+                       }
 
                        /* Cheating Options */
                        case 'C':
                        {
-                                if (!p_ptr->noscore && !allow_debug_opts)
-                                {
-                                        /* Cheat options are not permitted */
-                                        bell();
-                                        break;
-                                }
+                               if (!p_ptr->noscore && !allow_debug_opts)
+                               {
+                                       /* Cheat options are not permitted */
+                                       bell();
+                                       break;
+                               }
 
                                /* Spawn */
 #ifdef JP
@@ -2388,9 +2388,9 @@ void do_cmd_options(void)
                                /* Spawn */
                                do_cmd_options_win();
                                p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_SPELL |
-                                                 PW_PLAYER | PW_MESSAGE | PW_OVERHEAD |
-                                                 PW_MONSTER | PW_OBJECT | PW_SNAPSHOT |
-                                                 PW_BORG_1 | PW_BORG_2 | PW_DUNGEON);
+                                                 PW_PLAYER | PW_MESSAGE | PW_OVERHEAD |
+                                                 PW_MONSTER | PW_OBJECT | PW_SNAPSHOT |
+                                                 PW_BORG_1 | PW_BORG_2 | PW_DUNGEON);
                                break;
                        }
 
@@ -2412,10 +2412,10 @@ void do_cmd_options(void)
                                        int msec = delay_factor * delay_factor * delay_factor;
 #ifdef JP
                                        prt(format("¸½ºß¤Î¥¦¥§¥¤¥È: %d (%d¥ß¥êÉÃ)",
-                                                  delay_factor, msec), 22, 0);
+                                                  delay_factor, msec), 22, 0);
 #else
                                        prt(format("Current base delay factor: %d (%d msec)",
-                                                  delay_factor, msec), 22, 0);
+                                                  delay_factor, msec), 22, 0);
 #endif
 
 #ifdef JP
@@ -2426,15 +2426,15 @@ void do_cmd_options(void)
 
                                        k = inkey();
                                        if (k == ESCAPE) break;
-                                        else if (k == '?')
-                                        {
+                                       else if (k == '?')
+                                       {
 #ifdef JP
-                                                (void)show_file(TRUE, "joption.txt#BaseDelay", NULL, 0, 0);
+                                               (void)show_file(TRUE, "joption.txt#BaseDelay", NULL, 0, 0);
 #else
-                                                (void)show_file(TRUE, "option.txt#BaseDelay", NULL, 0, 0);
+                                               (void)show_file(TRUE, "option.txt#BaseDelay", NULL, 0, 0);
 #endif
-                                                Term_clear(); 
-                                        }
+                                               Term_clear(); 
+                                       }
                                        else if (isdigit(k)) delay_factor = D2I(k);
                                        else bell();
                                }
@@ -2458,30 +2458,30 @@ void do_cmd_options(void)
                                while (1)
                                {
 #ifdef JP
-                                        prt(format("¸½ºß¤ÎÄã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð: %d0%%",
-                                                   hitpoint_warn), 22, 0);
+                                       prt(format("¸½ºß¤ÎÄã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð: %d0%%",
+                                                  hitpoint_warn), 22, 0);
 #else
                                        prt(format("Current hitpoint warning: %d0%%",
-                                                  hitpoint_warn), 22, 0);
+                                                  hitpoint_warn), 22, 0);
 #endif
 
 #ifdef JP
-                                        prt("Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð (0-9) ESC¤Ç·èÄê: ", 20, 0);
+                                       prt("Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð (0-9) ESC¤Ç·èÄê: ", 20, 0);
 #else
                                        prt("Hitpoint Warning (0-9 or ESC to accept): ", 20, 0);
 #endif
 
                                        k = inkey();
                                        if (k == ESCAPE) break;
-                                        else if (k == '?')
-                                        {
+                                       else if (k == '?')
+                                       {
 #ifdef JP
-                                                (void)show_file(TRUE, "joption.txt#Hitpoint", NULL, 0, 0);
+                                               (void)show_file(TRUE, "joption.txt#Hitpoint", NULL, 0, 0);
 #else
-                                                (void)show_file(TRUE, "option.txt#Hitpoint", NULL, 0, 0);
+                                               (void)show_file(TRUE, "option.txt#Hitpoint", NULL, 0, 0);
 #endif
-                                                Term_clear(); 
-                                        }
+                                               Term_clear(); 
+                                       }
                                        else if (isdigit(k)) hitpoint_warn = D2I(k);
                                        else bell();
                                }
@@ -2489,14 +2489,14 @@ void do_cmd_options(void)
                                break;
                        }
 
-                        case '?':
+                       case '?':
 #ifdef JP
-                                (void)show_file(TRUE, "joption.txt", NULL, 0, 0);
+                               (void)show_file(TRUE, "joption.txt", NULL, 0, 0);
 #else
-                                (void)show_file(TRUE, "option.txt", NULL, 0, 0);
+                               (void)show_file(TRUE, "option.txt", NULL, 0, 0);
 #endif
                                Term_clear(); 
-                                break;
+                               break;
 
                        /* Unknown option */
                        default:
@@ -2914,15 +2914,15 @@ void do_cmd_macros(void)
 
 #ifdef ALLOW_MACROS
 #ifdef JP
-                prt("(2) ¥Õ¥¡¥¤¥ë¤Ë¥Þ¥¯¥í¤òÄɲÃ", 5, 5);
-                prt("(3) ¥Þ¥¯¥í¤Î³Îǧ", 6, 5);
-                prt("(4) ¥Þ¥¯¥í¤ÎºîÀ®", 7, 5);
-                prt("(5) ¥Þ¥¯¥í¤Îºï½ü", 8, 5);
-                prt("(6) ¥Õ¥¡¥¤¥ë¤Ë¥­¡¼ÇÛÃÖ¤òÄɲÃ", 9, 5);
-                prt("(7) ¥­¡¼ÇÛÃ֤γÎǧ", 10, 5);
-                prt("(8) ¥­¡¼ÇÛÃ֤κîÀ®", 11, 5);
-                prt("(9) ¥­¡¼ÇÛÃ֤κï½ü", 12, 5);
-                prt("(0) ¥Þ¥¯¥í¹ÔÆ°¤ÎÆþÎÏ", 13, 5);
+               prt("(2) ¥Õ¥¡¥¤¥ë¤Ë¥Þ¥¯¥í¤òÄɲÃ", 5, 5);
+               prt("(3) ¥Þ¥¯¥í¤Î³Îǧ", 6, 5);
+               prt("(4) ¥Þ¥¯¥í¤ÎºîÀ®", 7, 5);
+               prt("(5) ¥Þ¥¯¥í¤Îºï½ü", 8, 5);
+               prt("(6) ¥Õ¥¡¥¤¥ë¤Ë¥­¡¼ÇÛÃÖ¤òÄɲÃ", 9, 5);
+               prt("(7) ¥­¡¼ÇÛÃ֤γÎǧ", 10, 5);
+               prt("(8) ¥­¡¼ÇÛÃ֤κîÀ®", 11, 5);
+               prt("(9) ¥­¡¼ÇÛÃ֤κï½ü", 12, 5);
+               prt("(0) ¥Þ¥¯¥í¹ÔÆ°¤ÎÆþÎÏ", 13, 5);
 #else
                prt("(2) Append macros to a file", 5, 5);
                prt("(3) Query a macro", 6, 5);
@@ -3630,7 +3630,7 @@ void do_cmd_visuals(void)
 
                                /* Dump the monster attr/char info */
                                fprintf(fff, "R:%d:0x%02X:0x%02X\n\n", i,
-                                       (byte)(r_ptr->x_attr), (byte)(r_ptr->x_char));
+                                       (byte)(r_ptr->x_attr), (byte)(r_ptr->x_char));
                                line_num += 2;
                        }
 
@@ -3703,7 +3703,7 @@ void do_cmd_visuals(void)
 
                                /* Dump the object attr/char info */
                                fprintf(fff, "K:%d:0x%02X:0x%02X\n\n", i,
-                                       (byte)(k_ptr->x_attr), (byte)(k_ptr->x_char));
+                                       (byte)(k_ptr->x_attr), (byte)(k_ptr->x_char));
                                line_num += 2;
                        }
 
@@ -3776,7 +3776,7 @@ void do_cmd_visuals(void)
 
                                /* Dump the feature attr/char info */
                                fprintf(fff, "F:%d:0x%02X:0x%02X\n\n", i,
-                                       (byte)(f_ptr->x_attr), (byte)(f_ptr->x_char));
+                                       (byte)(f_ptr->x_attr), (byte)(f_ptr->x_char));
                                line_num += 2;
                        }
 
@@ -3820,22 +3820,22 @@ void do_cmd_visuals(void)
                                /* Label the object */
 #ifdef JP
                                Term_putstr(5, 17, -1, TERM_WHITE,
-                                           format("¥â¥ó¥¹¥¿¡¼ = %d, Ì¾Á° = %-40.40s",
-                                                  r, (r_name + r_ptr->name)));
+                                           format("¥â¥ó¥¹¥¿¡¼ = %d, Ì¾Á° = %-40.40s",
+                                                  r, (r_name + r_ptr->name)));
 #else
                                Term_putstr(5, 17, -1, TERM_WHITE,
-                                           format("Monster = %d, Name = %-40.40s",
-                                                  r, (r_name + r_ptr->name)));
+                                           format("Monster = %d, Name = %-40.40s",
+                                                  r, (r_name + r_ptr->name)));
 #endif
 
 
                                /* Label the Default values */
 #ifdef JP
                                Term_putstr(10, 19, -1, TERM_WHITE,
-                                           format("½é´üÃÍ  ¿§ / Ê¸»ú = %3u / %3u", da, dc));
+                                           format("½é´üÃÍ  ¿§ / Ê¸»ú = %3u / %3u", da, dc));
 #else
                                Term_putstr(10, 19, -1, TERM_WHITE,
-                                           format("Default attr/char = %3u / %3u", da, dc));
+                                           format("Default attr/char = %3u / %3u", da, dc));
 #endif
 
                                Term_putstr(40, 19, -1, TERM_WHITE, "<< ? >>");
@@ -3851,10 +3851,10 @@ void do_cmd_visuals(void)
                                /* Label the Current values */
 #ifdef JP
                                Term_putstr(10, 20, -1, TERM_WHITE,
-                                           format("¸½ºßÃÍ  ¿§ / Ê¸»ú = %3u / %3u", ca, cc));
+                                           format("¸½ºßÃÍ  ¿§ / Ê¸»ú = %3u / %3u", ca, cc));
 #else
                                Term_putstr(10, 20, -1, TERM_WHITE,
-                                           format("Current attr/char = %3u / %3u", ca, cc));
+                                           format("Current attr/char = %3u / %3u", ca, cc));
 #endif
 
                                Term_putstr(40, 20, -1, TERM_WHITE, "<< ? >>");
@@ -3870,10 +3870,10 @@ void do_cmd_visuals(void)
                                /* Prompt */
 #ifdef JP
                                Term_putstr(0, 22, -1, TERM_WHITE,
-                                           "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C): ");
+                                           "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C): ");
 #else
                                Term_putstr(0, 22, -1, TERM_WHITE,
-                                           "Command (n/N/^N/a/A/^A/c/C/^C): ");
+                                           "Command (n/N/^N/a/A/^A/c/C/^C): ");
 #endif
 
                                /* Get a command */
@@ -3933,22 +3933,22 @@ void do_cmd_visuals(void)
                                /* Label the object */
 #ifdef JP
                                Term_putstr(5, 17, -1, TERM_WHITE,
-                                           format("¥¢¥¤¥Æ¥à = %d, Ì¾Á° = %-40.40s",
-                                                  k, (k_name + k_ptr->name)));
+                                           format("¥¢¥¤¥Æ¥à = %d, Ì¾Á° = %-40.40s",
+                                                  k, (k_name + k_ptr->name)));
 #else
                                Term_putstr(5, 17, -1, TERM_WHITE,
-                                           format("Object = %d, Name = %-40.40s",
-                                                  k, (k_name + k_ptr->name)));
+                                           format("Object = %d, Name = %-40.40s",
+                                                  k, (k_name + k_ptr->name)));
 #endif
 
 
                                /* Label the Default values */
 #ifdef JP
                                Term_putstr(10, 19, -1, TERM_WHITE,
-                                           format("½é´üÃÍ  ¿§ / Ê¸»ú = %3d / %3d", da, dc));
+                                           format("½é´üÃÍ  ¿§ / Ê¸»ú = %3d / %3d", da, dc));
 #else
                                Term_putstr(10, 19, -1, TERM_WHITE,
-                                           format("Default attr/char = %3d / %3d", da, dc));
+                                           format("Default attr/char = %3d / %3d", da, dc));
 #endif
 
                                Term_putstr(40, 19, -1, TERM_WHITE, "<< ? >>");
@@ -3964,10 +3964,10 @@ void do_cmd_visuals(void)
                                /* Label the Current values */
 #ifdef JP
                                Term_putstr(10, 20, -1, TERM_WHITE,
-                                           format("¸½ºßÃÍ  ¿§ / Ê¸»ú = %3d / %3d", ca, cc));
+                                           format("¸½ºßÃÍ  ¿§ / Ê¸»ú = %3d / %3d", ca, cc));
 #else
                                Term_putstr(10, 20, -1, TERM_WHITE,
-                                           format("Current attr/char = %3d / %3d", ca, cc));
+                                           format("Current attr/char = %3d / %3d", ca, cc));
 #endif
 
                                Term_putstr(40, 20, -1, TERM_WHITE, "<< ? >>");
@@ -3983,10 +3983,10 @@ void do_cmd_visuals(void)
                                /* Prompt */
 #ifdef JP
                                Term_putstr(0, 22, -1, TERM_WHITE,
-                                           "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C): ");
+                                           "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C): ");
 #else
                                Term_putstr(0, 22, -1, TERM_WHITE,
-                                           "Command (n/N/^N/a/A/^A/c/C/^C): ");
+                                           "Command (n/N/^N/a/A/^A/c/C/^C): ");
 #endif
 
                                /* Get a command */
@@ -4046,22 +4046,22 @@ void do_cmd_visuals(void)
                                /* Label the object */
 #ifdef JP
                                Term_putstr(5, 17, -1, TERM_WHITE,
-                                           format("ÃÏ·Á = %d, Ì¾Á° = %-40.40s",
-                                                  f, (f_name + f_ptr->name)));
+                                           format("ÃÏ·Á = %d, Ì¾Á° = %-40.40s",
+                                                  f, (f_name + f_ptr->name)));
 #else
                                Term_putstr(5, 17, -1, TERM_WHITE,
-                                           format("Terrain = %d, Name = %-40.40s",
-                                                  f, (f_name + f_ptr->name)));
+                                           format("Terrain = %d, Name = %-40.40s",
+                                                  f, (f_name + f_ptr->name)));
 #endif
 
 
                                /* Label the Default values */
 #ifdef JP
                                Term_putstr(10, 19, -1, TERM_WHITE,
-                                           format("½é´üÃÍ  ¿§ / Ê¸»ú = %3d / %3d", da, dc));
+                                           format("½é´üÃÍ  ¿§ / Ê¸»ú = %3d / %3d", da, dc));
 #else
                                Term_putstr(10, 19, -1, TERM_WHITE,
-                                           format("Default attr/char = %3d / %3d", da, dc));
+                                           format("Default attr/char = %3d / %3d", da, dc));
 #endif
 
                                Term_putstr(40, 19, -1, TERM_WHITE, "<< ? >>");
@@ -4077,10 +4077,10 @@ void do_cmd_visuals(void)
                                /* Label the Current values */
 #ifdef JP
                                Term_putstr(10, 20, -1, TERM_WHITE,
-                                           format("¸½ºßÃÍ  ¿§ / Ê¸»ú = %3d / %3d", ca, cc));
+                                           format("¸½ºßÃÍ  ¿§ / Ê¸»ú = %3d / %3d", ca, cc));
 #else
                                Term_putstr(10, 20, -1, TERM_WHITE,
-                                           format("Current attr/char = %3d / %3d", ca, cc));
+                                           format("Current attr/char = %3d / %3d", ca, cc));
 #endif
 
                                Term_putstr(40, 20, -1, TERM_WHITE, "<< ? >>");
@@ -4096,10 +4096,10 @@ void do_cmd_visuals(void)
                                /* Prompt */
 #ifdef JP
                                Term_putstr(0, 22, -1, TERM_WHITE,
-                                           "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C): ");
+                                           "¥³¥Þ¥ó¥É (n/N/^N/a/A/^A/c/C/^C): ");
 #else
                                Term_putstr(0, 22, -1, TERM_WHITE,
-                                           "Command (n/N/^N/a/A/^A/c/C/^C): ");
+                                           "Command (n/N/^N/a/A/^A/c/C/^C): ");
 #endif
 
                                /* Get a command */
@@ -4209,8 +4209,8 @@ void do_cmd_colors(void)
 
 #ifdef ALLOW_COLORS
 #ifdef JP
-                prt("(2) ¥«¥é¡¼¤ÎÀßÄê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹", 5, 5);
-                prt("(3) ¥«¥é¡¼¤ÎÀßÄê¤òÊѹ¹¤¹¤ë", 6, 5);
+               prt("(2) ¥«¥é¡¼¤ÎÀßÄê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹", 5, 5);
+               prt("(3) ¥«¥é¡¼¤ÎÀßÄê¤òÊѹ¹¤¹¤ë", 6, 5);
 #else
                prt("(2) Dump colors", 5, 5);
                prt("(3) Modify colors", 6, 5);
@@ -4343,7 +4343,7 @@ void do_cmd_colors(void)
 
                                /* Dump the monster attr/char info */
                                fprintf(fff, "V:%d:0x%02X:0x%02X:0x%02X:0x%02X\n\n",
-                                       i, kv, rv, gv, bv);
+                                       i, kv, rv, gv, bv);
                                line_num += 2;
                        }
 
@@ -4402,28 +4402,28 @@ void do_cmd_colors(void)
                                /* Describe the color */
 #ifdef JP
                                Term_putstr(5, 10, -1, TERM_WHITE,
-                                           format("¥«¥é¡¼ = %d, Ì¾Á° = %s", a, name));
+                                           format("¥«¥é¡¼ = %d, Ì¾Á° = %s", a, name));
 #else
                                Term_putstr(5, 10, -1, TERM_WHITE,
-                                           format("Color = %d, Name = %s", a, name));
+                                           format("Color = %d, Name = %s", a, name));
 #endif
 
 
                                /* Label the Current values */
                                Term_putstr(5, 12, -1, TERM_WHITE,
-                                           format("K = 0x%02x / R,G,B = 0x%02x,0x%02x,0x%02x",
-                                                  angband_color_table[a][0],
-                                                  angband_color_table[a][1],
-                                                  angband_color_table[a][2],
-                                                  angband_color_table[a][3]));
+                                           format("K = 0x%02x / R,G,B = 0x%02x,0x%02x,0x%02x",
+                                                  angband_color_table[a][0],
+                                                  angband_color_table[a][1],
+                                                  angband_color_table[a][2],
+                                                  angband_color_table[a][3]));
 
                                /* Prompt */
 #ifdef JP
                                Term_putstr(0, 14, -1, TERM_WHITE,
-                                           "¥³¥Þ¥ó¥É (n/N/k/K/r/R/g/G/b/B): ");
+                                           "¥³¥Þ¥ó¥É (n/N/k/K/r/R/g/G/b/B): ");
 #else
                                Term_putstr(0, 14, -1, TERM_WHITE,
-                                           "Command (n/N/k/K/r/R/g/G/b/B): ");
+                                           "Command (n/N/k/K/r/R/g/G/b/B): ");
 #endif
 
 
@@ -4511,10 +4511,10 @@ void do_cmd_version(void)
        /* Silly message */
 #ifdef JP
        msg_format("ÊѶòÈÚÅÜ(Hengband) %d.%d.%d",
-                   FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
+                   FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 #else
        msg_format("You are playing Hengband %d.%d.%d.",
-                   FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
+                   FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 #endif
 }
 
@@ -4756,20 +4756,20 @@ void do_cmd_feeling(void)
        }
 
        /* Display the feeling */
-        if (turn - old_turn >= (150 - dun_level)*TURNS_PER_TICK || cheat_xtra)
-        {
-                if (p_ptr->muta3 & MUT3_GOOD_LUCK) msg_print(do_cmd_feeling_text_lucky[feeling]);
-                else {
+       if (turn - old_turn >= (150 - dun_level)*TURNS_PER_TICK || cheat_xtra)
+       {
+               if (p_ptr->muta3 & MUT3_GOOD_LUCK) msg_print(do_cmd_feeling_text_lucky[feeling]);
+               else {
                                        if((p_ptr->pseikaku == SEIKAKU_COMBAT) || (inventory[INVEN_BOW].name1 == ART_CRIMSON)){
                                                msg_print(do_cmd_feeling_text_combat[feeling]);
                                        }else
                                                msg_print(do_cmd_feeling_text[feeling]);
                                }
-        }
-        else
-        {
-                msg_print(do_cmd_feeling_text[0]);
-        }
+       }
+       else
+       {
+               msg_print(do_cmd_feeling_text[0]);
+       }
 }
 
 
@@ -4994,8 +4994,8 @@ static void do_cmd_knowledge_inven_aux(FILE *fff, object_type *o_ptr,
 
        /* 
        * HACK:Ring of Lordly protection and Dragon shield/helm
-        * have random resistances.
-        */
+       * have random resistances.
+       */
   if ( ((o_ptr->tval >= TV_BOW && o_ptr->tval<= TV_DRAG_ARMOR && o_ptr->name2)
        || (o_ptr->tval == TV_RING && o_ptr->sval == SV_RING_LORDLY) 
        || (o_ptr->tval == TV_SHIELD && o_ptr->sval == SV_DRAGON_SHIELD) 
@@ -5208,7 +5208,7 @@ static void do_cmd_knowledge_inven(void)
 
        byte tval;
        int i=0;
-        int j=0;
+       int j=0;
 
        char  where[32];
 
@@ -5225,11 +5225,11 @@ static void do_cmd_knowledge_inven(void)
        }
        fprintf(fff,"%s\n",inven_res_label);
 
-        for (tval=TV_BOW; tval <= TV_RING; tval++){
+       for (tval=TV_BOW; tval <= TV_RING; tval++){
 
-          if (j!=0) {
-              for (;j<9;j++) fprintf(fff, "\n");
-              j=0;
+         if (j!=0) {
+             for (;j<9;j++) fprintf(fff, "\n");
+             j=0;
              fprintf(fff,"%s\n",inven_res_label);              
          }
          
@@ -5859,12 +5859,12 @@ static void do_cmd_knowledge_artifacts(void)
                if (okay[k]) who[n++] = k;
        }
 
-        /* Select the sort method */
-        ang_sort_comp = ang_sort_art_comp;
-        ang_sort_swap = ang_sort_art_swap;
+       /* Select the sort method */
+       ang_sort_comp = ang_sort_art_comp;
+       ang_sort_swap = ang_sort_art_swap;
 
-        /* Sort the array by dungeon depth of monsters */
-        ang_sort(who, &why, n);
+       /* Sort the array by dungeon depth of monsters */
+       ang_sort(who, &why, n);
 
        /* Scan the artifacts */
        for (k = 0; k < n; k++)
@@ -5970,12 +5970,12 @@ static void do_cmd_knowledge_uniques(void)
                if (r_ptr->name) who[n++] = i;
        }
 
-        /* Select the sort method */
-        ang_sort_comp = ang_sort_comp_hook;
-        ang_sort_swap = ang_sort_swap_hook;
+       /* Select the sort method */
+       ang_sort_comp = ang_sort_comp_hook;
+       ang_sort_swap = ang_sort_swap_hook;
 
-        /* Sort the array by dungeon depth of monsters */
-        ang_sort(who, &why, n);
+       /* Sort the array by dungeon depth of monsters */
+       ang_sort(who, &why, n);
 
        /* Scan the monster races */
        for (k = 0; k < n; k++)
@@ -5995,10 +5995,10 @@ static void do_cmd_knowledge_uniques(void)
                                /* Print a message */
 #ifdef JP
                                fprintf(fff, "     %s¤Ï¤Þ¤ÀÀ¸¤­¤Æ¤¤¤ë¡£\n",
-                                       (r_name + r_ptr->name));
+                                       (r_name + r_ptr->name));
 #else
                                fprintf(fff, "     %s is alive\n",
-                                       (r_name + r_ptr->name));
+                                       (r_name + r_ptr->name));
 #endif
 
                        }
@@ -6062,12 +6062,12 @@ static void do_cmd_knowledge_uniques_dead(void)
                if (r_ptr->name) who[n++] = i;
        }
 
-        /* Select the sort method */
-        ang_sort_comp = ang_sort_comp_hook;
-        ang_sort_swap = ang_sort_swap_hook;
+       /* Select the sort method */
+       ang_sort_comp = ang_sort_comp_hook;
+       ang_sort_swap = ang_sort_swap_hook;
 
-        /* Sort the array by dungeon depth of monsters */
-        ang_sort(who, &why, n);
+       /* Sort the array by dungeon depth of monsters */
+       ang_sort(who, &why, n);
 
        /* Scan the monster races */
        for (k = 0; k < n; k++)
@@ -6087,10 +6087,10 @@ static void do_cmd_knowledge_uniques_dead(void)
                                /* Print a message */
 #ifdef JP
                                fprintf(fff, "     %s¤Ï´û¤Ë»à¤ó¤Ç¤¤¤ë¡£\n",
-                                       (r_name + r_ptr->name));
+                                       (r_name + r_ptr->name));
 #else
                                fprintf(fff, "     %s is dead\n",
-                                       (r_name + r_ptr->name));
+                                       (r_name + r_ptr->name));
 #endif
 
                        }
@@ -6471,7 +6471,7 @@ void plural_aux(char *Name)
                strcpy(&(Name[NameLen - 2]), "lves");
        }
        else if (suffix(Name, "ch") ||
-                suffix(Name, "sh") ||
+                suffix(Name, "sh") ||
                         suffix(Name, "nx") ||
                         suffix(Name, "s") ||
                         suffix(Name, "o"))
@@ -6545,7 +6545,7 @@ static void do_cmd_knowledge_pets(void)
        fprintf(fff, " °Ý»ý¥³¥¹¥È: %d%% MP\n", show_upkeep);
 #else
        fprintf(fff, "   Total: %d pet%s.\n",
-               t_friends, (t_friends == 1 ? "" : "s"));
+               t_friends, (t_friends == 1 ? "" : "s"));
        fprintf(fff, "   Upkeep: %d%% mana.\n", show_upkeep);
 #endif
 
@@ -6663,12 +6663,12 @@ static void do_cmd_knowledge_kill_count(void)
                if (r_ptr->name) who[n++] = i;
        }
 
-        /* Select the sort method */
-        ang_sort_comp = ang_sort_comp_hook;
-        ang_sort_swap = ang_sort_swap_hook;
+       /* Select the sort method */
+       ang_sort_comp = ang_sort_comp_hook;
+       ang_sort_swap = ang_sort_swap_hook;
 
-        /* Sort the array by dungeon depth of monsters */
-        ang_sort(who, &why, n);
+       /* Sort the array by dungeon depth of monsters */
+       ang_sort(who, &why, n);
 
        /* Scan the monster races */
        for (k = 0; k < n; k++)
@@ -6731,7 +6731,7 @@ fprintf(fff, "     %3d ɤ
        fprintf(fff,"    ¹ç·×: %lu É¤¤òÅݤ·¤¿¡£\n", Total);
 #else
        fprintf(fff,"   Total: %lu creature%s killed.\n",
-               Total, (Total == 1 ? "" : "s"));
+               Total, (Total == 1 ? "" : "s"));
 #endif
 
 
@@ -7118,8 +7118,8 @@ static void do_cmd_knowledge_quests(void)
                        /* Reset the old quest number */
                        p_ptr->inside_quest = old_quest;
 
-                        /* No info from "silent" quests */
-                        if (quest[i].flags & QUEST_FLAG_SILENT) continue;
+                       /* No info from "silent" quests */
+                       if (quest[i].flags & QUEST_FLAG_SILENT) continue;
 
                        total++;
 
@@ -7214,7 +7214,7 @@ static void do_cmd_knowledge_quests(void)
                                }
                        }
                        else if ((quest[i].type == QUEST_TYPE_RANDOM) &&
-                                (quest[i].level < rand_level))
+                                (quest[i].level < rand_level))
                        {
                                /* New random */
                                rand_level = quest[i].level;
@@ -7276,7 +7276,7 @@ sprintf(rand_tmp_str,"%s (%d 
                {
                        if (i < MIN_RANDOM_QUEST)
                        {
-                                int old_quest;
+                               int old_quest;
 
                                /* Set the quest number temporary */
                                old_quest = p_ptr->inside_quest;
@@ -7290,8 +7290,8 @@ sprintf(rand_tmp_str,"%s (%d 
                                /* Reset the old quest number */
                                p_ptr->inside_quest = old_quest;
 
-                                /* No info from "silent" quests */
-                                if (quest[i].flags & QUEST_FLAG_SILENT) continue;
+                               /* No info from "silent" quests */
+                               if (quest[i].flags & QUEST_FLAG_SILENT) continue;
                        }
 
                        total++;
@@ -7300,29 +7300,29 @@ sprintf(rand_tmp_str,"%s (%d 
                        {
                                /* Print the quest info */
 
-                                if (quest[i].complev == 0)
-                                {
-                                        sprintf(tmp_str, 
+                               if (quest[i].complev == 0)
+                               {
+                                       sprintf(tmp_str, 
 #ifdef JP
-                                                "%s (%d³¬) - ÉÔÀᄀ\n",
+                                               "%s (%d³¬) - ÉÔÀᄀ\n",
 #else
-                                                "%s (Dungeon level: %d) - (Cancelled)\n",
+                                               "%s (Dungeon level: %d) - (Cancelled)\n",
 #endif
-                                                r_name+r_info[quest[i].r_idx].name,
-                                                quest[i].level);
-                                }
-                                else
-                                {
-                                        sprintf(tmp_str, 
+                                               r_name+r_info[quest[i].r_idx].name,
+                                               quest[i].level);
+                               }
+                               else
+                               {
+                                       sprintf(tmp_str, 
 #ifdef JP
-                                                "%s (%d³¬) - ¥ì¥Ù¥ë%d\n",
+                                               "%s (%d³¬) - ¥ì¥Ù¥ë%d\n",
 #else
-                                                "%s (Dungeon level: %d) - level %d\n",
+                                               "%s (Dungeon level: %d) - level %d\n",
 #endif
-                                                r_name+r_info[quest[i].r_idx].name,
-                                                quest[i].level,
-                                                quest[i].complev);
-                                }
+                                               r_name+r_info[quest[i].r_idx].name,
+                                               quest[i].level,
+                                               quest[i].complev);
+                               }
                        }
                        else
                        {
@@ -7357,7 +7357,7 @@ sprintf(rand_tmp_str,"%s (%d 
                {
                        if (i < MIN_RANDOM_QUEST)
                        {
-                                int old_quest;
+                               int old_quest;
 
                                /* Set the quest number temporary */
                                old_quest = p_ptr->inside_quest;
@@ -7371,8 +7371,8 @@ sprintf(rand_tmp_str,"%s (%d 
                                /* Reset the old quest number */
                                p_ptr->inside_quest = old_quest;
 
-                                /* No info from "silent" quests */
-                                if (quest[i].flags & QUEST_FLAG_SILENT) continue;
+                               /* No info from "silent" quests */
+                               if (quest[i].flags & QUEST_FLAG_SILENT) continue;
                        }
 
                        total++;
@@ -7507,7 +7507,7 @@ static void do_cmd_knowledge_home(void)
                        for (i = 0; i < st_ptr->stock_num; i++)
                        {
 #ifdef JP
-                               if ((i % 12) == 0) fprintf(fff, "\n ( %d ¥Ú¡¼¥¸ )\n", x++);
+                               if ((i % 12) == 0) fprintf(fff, "\n ( %d ¥Ú¡¼¥¸ )\n", x++);
                                object_desc(o_name, &st_ptr->stock[i], TRUE, 3);
                                if (strlen(o_name) <= 80-3)
                                {
index 64c7a9a..b81b591 100644 (file)
@@ -68,7 +68,7 @@ static int get_spell(int *sn, cptr prompt, int sval, bool learned, int use_realm
        char        out_val[160];
        cptr        p;
 #ifdef JP
-        char jverb_buf[128];
+       char jverb_buf[128];
 #endif
        int menu_line = (use_menu ? 1 : 0);
 
@@ -142,7 +142,7 @@ static int get_spell(int *sn, cptr prompt, int sval, bool learned, int use_realm
 #ifdef JP
        jverb1( prompt, jverb_buf );
        (void) strnfmt(out_val, 78, "(%^s:%c-%c, '*'¤Ç°ìÍ÷, ESC¤ÇÃæÃÇ) ¤É¤Î%s¤ò%^s¤Þ¤¹¤«? ",
-               p, I2A(0), I2A(num - 1), p, jverb_buf );
+               p, I2A(0), I2A(num - 1), p, jverb_buf );
 #else
        (void)strnfmt(out_val, 78, "(%^ss %c-%c, *=List, ESC=exit) %^s which %s? ",
                p, I2A(0), I2A(num - 1), prompt, p);
@@ -150,9 +150,9 @@ static int get_spell(int *sn, cptr prompt, int sval, bool learned, int use_realm
 
        /* Get a spell from the user */
 
-        choice = (always_show_list || use_menu) ? ESCAPE:1;
-        while (!flag)
-        {
+       choice = (always_show_list || use_menu) ? ESCAPE:1;
+       while (!flag)
+       {
                if( choice==ESCAPE ) choice = ' '; 
                else if( !get_com(out_val, &choice, TRUE) )break; 
 
@@ -258,7 +258,7 @@ static int get_spell(int *sn, cptr prompt, int sval, bool learned, int use_realm
                {
                        bell();
 #ifdef JP
-                        msg_format("¤½¤Î%s¤ò%s¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£", p, prompt);
+                       msg_format("¤½¤Î%s¤ò%s¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£", p, prompt);
 #else
                        msg_format("You may not %s that %s.", prompt, p);
 #endif
@@ -299,9 +299,9 @@ static int get_spell(int *sn, cptr prompt, int sval, bool learned, int use_realm
                        /* Prompt */
 #ifdef JP
                        jverb1( prompt, jverb_buf );
-                        /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½¤ËÂбþ */
-                        (void) strnfmt(tmp_val, 78, "%s(MP%d, ¼ºÇÔΨ%d%%)¤ò%s¤Þ¤¹¤«? ",
-                                spell_names[technic2magic(use_realm)-1][spell], shouhimana,
+                       /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½¤ËÂбþ */
+                       (void) strnfmt(tmp_val, 78, "%s(MP%d, ¼ºÇÔΨ%d%%)¤ò%s¤Þ¤¹¤«? ",
+                               spell_names[technic2magic(use_realm)-1][spell], shouhimana,
                                       spell_chance(spell, use_realm),jverb_buf);
 #else
                        (void)strnfmt(tmp_val, 78, "%^s %s (%d mana, %d%% fail)? ",
@@ -433,15 +433,15 @@ s = "
        s = "You have no books that you can read.";
 #endif
 
-        select_spellbook=TRUE;
+       select_spellbook=TRUE;
        if (p_ptr->pclass == CLASS_FORCETRAINER)
                select_the_force = TRUE;
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))){
-            select_spellbook = FALSE;
+           select_spellbook = FALSE;
            select_the_force = FALSE;
-            return;
-        }
-        select_spellbook = FALSE;
+           return;
+       }
+       select_spellbook = FALSE;
        select_the_force = FALSE;
 
        if (item == 1111) { /* the_force */
@@ -698,9 +698,9 @@ s = "
        s = "You have no books that you can read.";
 #endif
 
-        select_spellbook=TRUE;
+       select_spellbook=TRUE;
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return;
-        select_spellbook=FALSE;
+       select_spellbook=FALSE;
 
        /* Get the item (in the pack) */
        if (item >= 0)
@@ -740,7 +740,7 @@ s = "
        {
                /* Ask for a spell, allow cancel */
 #ifdef JP
-                if (!get_spell(&spell, "³Ø¤Ö", sval, FALSE, o_ptr->tval - TV_LIFE_BOOK + 1)
+               if (!get_spell(&spell, "³Ø¤Ö", sval, FALSE, o_ptr->tval - TV_LIFE_BOOK + 1)
                        && (spell == -1)) return;
 #else
                if (!get_spell(&spell, "study", sval, FALSE, o_ptr->tval - TV_LIFE_BOOK + 1)
@@ -873,15 +873,15 @@ msg_format("
 
                /* Mention the result */
 #ifdef JP
-               /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½¤ËÂбþ */
+               /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½¤ËÂбþ */
                if (mp_ptr->spell_book == TV_MUSIC_BOOK)
                {
-                       msg_format("%s¤ò³Ø¤ó¤À¡£",
+                       msg_format("%s¤ò³Ø¤ó¤À¡£",
                                    spell_names[technic2magic(increment ? p_ptr->realm2 : p_ptr->realm1)-1][spell % 32]);
                }
                else
                {
-                       msg_format("%s¤Î%s¤ò³Ø¤ó¤À¡£",
+                       msg_format("%s¤Î%s¤ò³Ø¤ó¤À¡£",
                                    spell_names[technic2magic(increment ? p_ptr->realm2 : p_ptr->realm1)-1][spell % 32] ,p);
                }
 #else
@@ -913,11 +913,11 @@ msg_format("
        {
                /* Message */
 #ifdef JP
-                        if( p_ptr->new_spells < 10 ){
-                                msg_format("¤¢¤È %d ¤Ä¤Î%s¤ò³Ø¤Ù¤ë¡£", p_ptr->new_spells, p);
-                        }else{
-                                msg_format("¤¢¤È %d ¸Ä¤Î%s¤ò³Ø¤Ù¤ë¡£", p_ptr->new_spells, p);
-                        }
+                       if( p_ptr->new_spells < 10 ){
+                               msg_format("¤¢¤È %d ¤Ä¤Î%s¤ò³Ø¤Ù¤ë¡£", p_ptr->new_spells, p);
+                       }else{
+                               msg_format("¤¢¤È %d ¸Ä¤Î%s¤ò³Ø¤Ù¤ë¡£", p_ptr->new_spells, p);
+                       }
 #else
                msg_format("You can learn %d more %s%s.",
                        p_ptr->new_spells, p,
@@ -931,8 +931,8 @@ msg_format("
        p_ptr->update |= (PU_SPELLS);
        update_stuff();
 
-        /* Redraw object recall */
-        p_ptr->window |= (PW_OBJECT);
+       /* Redraw object recall */
+       p_ptr->window |= (PW_OBJECT);
 }
 
 
@@ -2370,7 +2370,7 @@ msg_print("
 
                                if ((p_ptr->pclass == CLASS_ROGUE) ||
                                        (p_ptr->pclass == CLASS_HIGH_MAGE) ||
-                                       (p_ptr->pclass == CLASS_SORCERER))
+                                       (p_ptr->pclass == CLASS_SORCERER))
                                        die = (randint1(110)) + plev / 5;
                                /* Card sharks and high mages get a level bonus */
 
@@ -3989,11 +3989,11 @@ static bool cast_crusade_spell(int spell)
                if (!get_aim_dir(&dir)) return FALSE;
 
                fire_ball(GF_HOLY_FIRE, dir,
-                         (damroll(3, 6) + plev +
-                         (plev / ((p_ptr->pclass == CLASS_PRIEST ||
-                            p_ptr->pclass == CLASS_HIGH_MAGE ||
+                         (damroll(3, 6) + plev +
+                         (plev / ((p_ptr->pclass == CLASS_PRIEST ||
+                            p_ptr->pclass == CLASS_HIGH_MAGE ||
                             p_ptr->pclass == CLASS_SORCERER) ? 2 : 4))),
-                         ((plev < 30) ? 2 : 3));
+                         ((plev < 30) ? 2 : 3));
 
                break;
        case 10: /* Exorcism */
@@ -4260,18 +4260,18 @@ void stop_singing(void)
 
        set_action(ACTION_NONE);
 
-        switch(p_ptr->magic_num1[0])
-        {
-                case MUSIC_BLESS:
-                        if (!p_ptr->blessed)
+       switch(p_ptr->magic_num1[0])
+       {
+               case MUSIC_BLESS:
+                       if (!p_ptr->blessed)
 #ifdef JP
 msg_print("¹â·é¤Êµ¤Ê¬¤¬¾Ã¤¨¼º¤»¤¿¡£");
 #else
                                msg_print("The prayer has expired.");
 #endif
-                        break;
-                case MUSIC_HERO:
-                        if (!p_ptr->hero)
+                       break;
+               case MUSIC_HERO:
+                       if (!p_ptr->hero)
                        {
 #ifdef JP
 msg_print("¥Ò¡¼¥í¡¼¤Îµ¤Ê¬¤¬¾Ã¤¨¼º¤»¤¿¡£");
@@ -4281,9 +4281,9 @@ msg_print("
                                /* Recalculate hitpoints */
                                p_ptr->update |= (PU_HP);
                        }
-                        break;
-                case MUSIC_MIND:
-                        if (!p_ptr->tim_esp)
+                       break;
+               case MUSIC_MIND:
+                       if (!p_ptr->tim_esp)
                        {
 #ifdef JP
 msg_print("°Õ¼±¤Ï¸µ¤ËÌá¤Ã¤¿¡£");
@@ -4293,57 +4293,57 @@ msg_print("
                                /* Update the monsters */
                                p_ptr->update |= (PU_MONSTERS);
                        }
-                        break;
-                case MUSIC_STEALTH:
-                        if (!p_ptr->tim_stealth)
+                       break;
+               case MUSIC_STEALTH:
+                       if (!p_ptr->tim_stealth)
 #ifdef JP
 msg_print("»Ñ¤¬¤Ï¤Ã¤­¤ê¤È¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£");
 #else
                                msg_print("You are no longer hided.");
 #endif
-                        break;
-                case MUSIC_RESIST:
-                        if (!p_ptr->oppose_acid)
+                       break;
+               case MUSIC_RESIST:
+                       if (!p_ptr->oppose_acid)
 #ifdef JP
 msg_print("»À¤Ø¤ÎÂÑÀ­¤¬Çö¤ì¤¿µ¤¤¬¤¹¤ë¡£");
 #else
                                msg_print("You feel less resistant to acid.");
 #endif
-                        if (!p_ptr->oppose_elec)
+                       if (!p_ptr->oppose_elec)
 #ifdef JP
 msg_print("ÅÅ·â¤Ø¤ÎÂÑÀ­¤¬Çö¤ì¤¿µ¤¤¬¤¹¤ë¡£");
 #else
                                msg_print("You feel less resistant to elec.");
 #endif
-                        if (!p_ptr->oppose_fire)
+                       if (!p_ptr->oppose_fire)
 #ifdef JP
 msg_print("²Ð¤Ø¤ÎÂÑÀ­¤¬Çö¤ì¤¿µ¤¤¬¤¹¤ë¡£");
 #else
                                msg_print("You feel less resistant to fire.");
 #endif
-                        if (!p_ptr->oppose_cold)
+                       if (!p_ptr->oppose_cold)
 #ifdef JP
 msg_print("Î䵤¤Ø¤ÎÂÑÀ­¤¬Çö¤ì¤¿µ¤¤¬¤¹¤ë¡£");
 #else
                                msg_print("You feel less resistant to cold.");
 #endif
-                        if (!p_ptr->oppose_pois)
+                       if (!p_ptr->oppose_pois)
 #ifdef JP
 msg_print("ÆǤؤÎÂÑÀ­¤¬Çö¤ì¤¿µ¤¤¬¤¹¤ë¡£");
 #else
                                msg_print("You feel less resistant to pois.");
 #endif
-                        break;
-                case MUSIC_SPEED:
-                        if (!p_ptr->fast)
+                       break;
+               case MUSIC_SPEED:
+                       if (!p_ptr->fast)
 #ifdef JP
 msg_print("Æ°¤­¤ÎÁÇÁᤵ¤¬¤Ê¤¯¤Ê¤Ã¤¿¤è¤¦¤À¡£");
 #else
                                msg_print("You feel yourself slow down.");
 #endif
-                        break;
-                case MUSIC_SHERO:
-                        if (!p_ptr->hero)
+                       break;
+               case MUSIC_SHERO:
+                       if (!p_ptr->hero)
                        {
 #ifdef JP
 msg_print("¥Ò¡¼¥í¡¼¤Îµ¤Ê¬¤¬¾Ã¤¨¼º¤»¤¿¡£");
@@ -4354,15 +4354,15 @@ msg_print("
                                p_ptr->update |= (PU_HP);
                        }
 
-                        if (!p_ptr->fast)
+                       if (!p_ptr->fast)
 #ifdef JP
 msg_print("Æ°¤­¤ÎÁÇÁᤵ¤¬¤Ê¤¯¤Ê¤Ã¤¿¤è¤¦¤À¡£");
 #else
                                msg_print("You feel yourself slow down.");
 #endif
-                        break;
-                case MUSIC_INVULN:
-                        if (!p_ptr->invuln)
+                       break;
+               case MUSIC_INVULN:
+                       if (!p_ptr->invuln)
                        {
 #ifdef JP
 msg_print("̵Ũ¤Ç¤Ï¤Ê¤¯¤Ê¤Ã¤¿¡£");
@@ -4378,8 +4378,8 @@ msg_print("̵Ũ
                                /* Window stuff */
                                p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
                        }
-                        break;
-        }
+                       break;
+       }
        p_ptr->magic_num1[0] = MUSIC_NONE;
        p_ptr->magic_num2[0] = 0;
 
@@ -4396,12 +4396,12 @@ static bool cast_music_spell(int spell)
        int     plev = p_ptr->lev;
        int dir;
 
-        if(p_ptr->magic_num1[0])
-        {
-                stop_singing();
-        }
+       if(p_ptr->magic_num1[0])
+       {
+               stop_singing();
+       }
 
-        p_ptr->magic_num2[0] = spell;
+       p_ptr->magic_num2[0] = spell;
 
        switch (spell)
        {
@@ -4768,15 +4768,15 @@ s = "
        s = "You have no spell books!";
 #endif
 
-        select_spellbook=TRUE;
+       select_spellbook=TRUE;
        if (p_ptr->pclass == CLASS_FORCETRAINER)
                select_the_force = TRUE;
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))){
-            select_spellbook = FALSE;
+           select_spellbook = FALSE;
            select_the_force = FALSE;
-            return;
-        }
-        select_spellbook = FALSE;
+           return;
+       }
+       select_spellbook = FALSE;
        select_the_force = FALSE;
 
        if (item == 1111) { /* the_force */
@@ -4814,13 +4814,13 @@ s = "
 
        /* Ask for a spell */
 #ifdef JP
-        if (!get_spell(&spell,  
-                               ((mp_ptr->spell_book == TV_LIFE_BOOK) ? "±Ó¾§¤¹¤ë" : (mp_ptr->spell_book == TV_MUSIC_BOOK) ? "²Î¤¦" : "¾§¤¨¤ë"), 
+       if (!get_spell(&spell,  
+                               ((mp_ptr->spell_book == TV_LIFE_BOOK) ? "±Ó¾§¤¹¤ë" : (mp_ptr->spell_book == TV_MUSIC_BOOK) ? "²Î¤¦" : "¾§¤¨¤ë"), 
                       sval, TRUE, realm))
-        {
-                if (spell == -2) msg_format("¤½¤ÎËܤˤÏÃΤäƤ¤¤ë%s¤¬¤Ê¤¤¡£", prayer);
-                return;
-        }
+       {
+               if (spell == -2) msg_format("¤½¤ÎËܤˤÏÃΤäƤ¤¤ë%s¤¬¤Ê¤¤¡£", prayer);
+               return;
+       }
 #else
        if (!get_spell(&spell, ((mp_ptr->spell_book == TV_LIFE_BOOK) ? "recite" : "cast"),
                sval, TRUE, realm))
@@ -5050,8 +5050,8 @@ msg_print("An infernal sound echoed.");
                        /* Gain experience */
                        gain_exp(e * s_ptr->slevel);
 
-                        /* Redraw object recall */
-                        p_ptr->window |= (PW_OBJECT);
+                       /* Redraw object recall */
+                       p_ptr->window |= (PW_OBJECT);
 
                        if (realm == REALM_LIFE)
                        {
index 15ea390..c8bd7f4 100644 (file)
@@ -450,11 +450,11 @@ msg_print("
                }
        }
        else if ((p_ptr->prace == RACE_GOLEM) ||
-                (p_ptr->prace == RACE_ZOMBIE) ||
-                (p_ptr->prace == RACE_ENT) ||
-                (p_ptr->prace == RACE_DEMON) ||
-                (p_ptr->prace == RACE_ANDROID) ||
-                (p_ptr->prace == RACE_SPECTRE) ||
+                (p_ptr->prace == RACE_ZOMBIE) ||
+                (p_ptr->prace == RACE_ENT) ||
+                (p_ptr->prace == RACE_DEMON) ||
+                (p_ptr->prace == RACE_ANDROID) ||
+                (p_ptr->prace == RACE_SPECTRE) ||
                 (mimic_info[p_ptr->mimic_form].MIMIC_FLAGS & MIMIC_IS_NONLIVING))
        {
 #ifdef JP
@@ -561,10 +561,10 @@ static void do_cmd_quaff_potion_aux(int item)
                return;
        }
 
-        if((p_ptr->pclass == CLASS_BARD) && p_ptr->magic_num1[0])
-        {
-                stop_singing();
-        }
+       if((p_ptr->pclass == CLASS_BARD) && p_ptr->magic_num1[0])
+       {
+               stop_singing();
+       }
 
        /* Get the item (in the pack) */
        if (item >= 0)
@@ -742,9 +742,9 @@ msg_print("
                        if (!p_ptr->free_act)
                        {
 #ifdef JP
-               msg_print("¤¢¤Ê¤¿¤Ï̲¤Ã¤Æ¤·¤Þ¤Ã¤¿¡£");
+               msg_print("¤¢¤Ê¤¿¤Ï̲¤Ã¤Æ¤·¤Þ¤Ã¤¿¡£");
 #else
-               msg_print("You fall asleep.");
+               msg_print("You fall asleep.");
 #endif
 
 
@@ -1518,10 +1518,10 @@ static void do_cmd_read_scroll_aux(int item, bool known)
                return;
        }
 
-        if((p_ptr->pclass == CLASS_BARD) && p_ptr->magic_num1[0])
-        {
-                stop_singing();
-        }
+       if((p_ptr->pclass == CLASS_BARD) && p_ptr->magic_num1[0])
+       {
+               stop_singing();
+       }
 
        /* Not identified yet */
        ident = FALSE;
@@ -2055,7 +2055,7 @@ msg_print("
                msg_print(NULL);
                msg_print("°Å°Ç¤ÎÃæ¤Ë·Ò¤®¤È¤á¤ë¡£¡×");
 #else
-               msg_print("'One Ring to rule them all, ");
+               msg_print("'One Ring to rule them all, ");
                msg_print(NULL);
                msg_print("One Ring to find them, ");
                msg_print(NULL);
@@ -2328,7 +2328,7 @@ static int staff_effect(int sval, bool *use_charge, bool magic, bool known)
                        }
                        for (k = 0; k < num; k++)
                        {
-               attempts = 1000;
+               attempts = 1000;
 
                                while(attempts--)
                                {
@@ -2666,7 +2666,7 @@ static void do_cmd_use_staff_aux(int item)
 
                /* Combine / Reorder the pack (later) */
                p_ptr->notice |= (PN_COMBINE | PN_REORDER);
-                p_ptr->window |= (PW_INVEN);
+               p_ptr->window |= (PW_INVEN);
 
                return;
        }
@@ -3200,7 +3200,7 @@ static void do_cmd_aim_wand_aux(int item)
 
                /* Combine / Reorder the pack (later) */
                p_ptr->notice |= (PN_COMBINE | PN_REORDER);
-                p_ptr->window |= (PW_INVEN);
+               p_ptr->window |= (PW_INVEN);
 
                return;
        }
@@ -3527,7 +3527,7 @@ static int rod_effect(int sval, int dir, bool *use_charge, bool magic)
 static void do_cmd_zap_rod_aux(int item)
 {
        int ident, chance, lev, fail;
-        int dir = 0;
+       int dir = 0;
        object_type *o_ptr;
        bool success;
 
@@ -4275,7 +4275,7 @@ msg_print("
 
                                for (k = 0; k < num; k++)
                                {
-               attempts = 1000;
+               attempts = 1000;
 
                                        while(attempts--)
                                        {
@@ -5056,41 +5056,41 @@ msg_print("
                                o_ptr->timeout = 15;
                                break;
                        }
-                        case ART_PALANTIR:
-                        {
-                                monster_type *m_ptr;
-                                monster_race *r_ptr;
-                                int i;
+                       case ART_PALANTIR:
+                       {
+                               monster_type *m_ptr;
+                               monster_race *r_ptr;
+                               int i;
 
 #ifdef JP
-                                msg_print("´ñ̯¤Ê¾ì½ê¤¬Æ¬¤ÎÃæ¤ËÉ⤫¤ó¤À¡¥¡¥¡¥");
+                               msg_print("´ñ̯¤Ê¾ì½ê¤¬Æ¬¤ÎÃæ¤ËÉ⤫¤ó¤À¡¥¡¥¡¥");
 #else
-                                msg_print("Some strange places show up in your mind. And you see ...");
+                               msg_print("Some strange places show up in your mind. And you see ...");
 #endif
 
-                                /* Process the monsters (backwards) */
-                                for (i = m_max - 1; i >= 1; i--)
-                                {
-                                        /* Access the monster */
-                                        m_ptr = &m_list[i];
+                               /* Process the monsters (backwards) */
+                               for (i = m_max - 1; i >= 1; i--)
+                               {
+                                       /* Access the monster */
+                                       m_ptr = &m_list[i];
 
-                                        /* Ignore "dead" monsters */
-                                        if (!m_ptr->r_idx) continue;
+                                       /* Ignore "dead" monsters */
+                                       if (!m_ptr->r_idx) continue;
 
-                                        r_ptr = &r_info[m_ptr->r_idx];
+                                       r_ptr = &r_info[m_ptr->r_idx];
 
-                                        if(r_ptr->flags1 & RF1_UNIQUE)
-                                        {
+                                       if(r_ptr->flags1 & RF1_UNIQUE)
+                                       {
 #ifdef JP
                                                msg_format("%s¡¥ ",r_name + r_ptr->name);
 #else
-                                                msg_format("%s. ",r_name + r_ptr->name);
+                                               msg_format("%s. ",r_name + r_ptr->name);
 #endif
-                                        }
-                                }
-                                o_ptr->timeout = 200;
-                                break;
-                        }
+                                       }
+                               }
+                               o_ptr->timeout = 200;
+                               break;
+                       }
 
                        case ART_STONE_LORE:
                        {
@@ -5204,7 +5204,7 @@ msg_print("
                                o_ptr->timeout = randint0(120) + 120;
                                break;
                        }
-                       case ART_HURIN:
+                       case ART_HURIN:
                        {
                                (void)set_fast(randint1(50) + 50, FALSE);
                                hp_player(10);
@@ -5463,7 +5463,7 @@ msg_print("
                                (void)set_image(0);
 
                                o_ptr->timeout = 100;
-                               break;
+                               break;
                        }
 
                        case ART_BOLISHOI:
@@ -5472,7 +5472,7 @@ msg_print("
                                (void)charm_animal(dir, p_ptr->lev);
 
                                o_ptr->timeout = 200;
-                               break;
+                               break;
                        }
 
                        case ART_ARUNRUTH:
@@ -5619,40 +5619,40 @@ msg_print("
        }
 
        else if ((o_ptr->tval > TV_CAPTURE) && (o_ptr->xtra3))
-        {
-                switch (o_ptr->xtra3-1)
-                {
-                case ESSENCE_TMP_RES_ACID:
-                        (void)set_oppose_acid(randint1(20) + 20, FALSE);
-                        o_ptr->timeout = randint0(50) + 50;
-                        return;
-
-                case ESSENCE_TMP_RES_ELEC:
-                        (void)set_oppose_elec(randint1(20) + 20, FALSE);
-                        o_ptr->timeout = randint0(50) + 50;
-                        return;
-
-                case ESSENCE_TMP_RES_FIRE:
-                        (void)set_oppose_fire(randint1(20) + 20, FALSE);
-                        o_ptr->timeout = randint0(50) + 50;
-                        return;
-
-                case ESSENCE_TMP_RES_COLD:
-                        (void)set_oppose_cold(randint1(20) + 20, FALSE);
-                        o_ptr->timeout = randint0(50) + 50;
-                        return;
-
-                case TR_IMPACT:
-                        earthquake(py, px, 5);
-                        o_ptr->timeout = 100 + randint1(100);
-                        
-                        /* Window stuff */
-                        p_ptr->window |= (PW_INVEN | PW_EQUIP);
-
-                        /* Done */
-                        return;
-                }
-        }
+       {
+               switch (o_ptr->xtra3-1)
+               {
+               case ESSENCE_TMP_RES_ACID:
+                       (void)set_oppose_acid(randint1(20) + 20, FALSE);
+                       o_ptr->timeout = randint0(50) + 50;
+                       return;
+
+               case ESSENCE_TMP_RES_ELEC:
+                       (void)set_oppose_elec(randint1(20) + 20, FALSE);
+                       o_ptr->timeout = randint0(50) + 50;
+                       return;
+
+               case ESSENCE_TMP_RES_FIRE:
+                       (void)set_oppose_fire(randint1(20) + 20, FALSE);
+                       o_ptr->timeout = randint0(50) + 50;
+                       return;
+
+               case ESSENCE_TMP_RES_COLD:
+                       (void)set_oppose_cold(randint1(20) + 20, FALSE);
+                       o_ptr->timeout = randint0(50) + 50;
+                       return;
+
+               case TR_IMPACT:
+                       earthquake(py, px, 5);
+                       o_ptr->timeout = 100 + randint1(100);
+                       
+                       /* Window stuff */
+                       p_ptr->window |= (PW_INVEN | PW_EQUIP);
+
+                       /* Done */
+                       return;
+               }
+       }
 
 
        else if (o_ptr->name2 == EGO_TRUMP)
@@ -5795,23 +5795,23 @@ msg_print("
                                chance = randint0(5);
 #ifdef JP
                                msg_format("¤¢¤Ê¤¿¤Ï%s¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£",
-                                          ((chance == 1) ? "°ðºÊ" :
-                                           ((chance == 2) ? "Î䵤" :
-                                            ((chance == 3) ? "»À" :
-                                             ((chance == 4) ? "ÆÇ¥¬¥¹" : "²Ð±ê")))));
+                                          ((chance == 1) ? "°ðºÊ" :
+                                           ((chance == 2) ? "Î䵤" :
+                                            ((chance == 3) ? "»À" :
+                                             ((chance == 4) ? "ÆÇ¥¬¥¹" : "²Ð±ê")))));
 #else
                                msg_format("You breathe %s.",
-                                          ((chance == 1) ? "lightning" :
-                                           ((chance == 2) ? "frost" :
-                                            ((chance == 3) ? "acid" :
-                                             ((chance == 4) ? "poison gas" : "fire")))));
+                                          ((chance == 1) ? "lightning" :
+                                           ((chance == 2) ? "frost" :
+                                            ((chance == 3) ? "acid" :
+                                             ((chance == 4) ? "poison gas" : "fire")))));
 #endif
 
                                fire_ball(((chance == 1) ? GF_ELEC :
-                                          ((chance == 2) ? GF_COLD :
-                                           ((chance == 3) ? GF_ACID :
-                                            ((chance == 4) ? GF_POIS : GF_FIRE)))),
-                                         dir, 250, -2);
+                                          ((chance == 2) ? GF_COLD :
+                                           ((chance == 3) ? GF_ACID :
+                                            ((chance == 4) ? GF_POIS : GF_FIRE)))),
+                                         dir, 250, -2);
                                o_ptr->timeout = randint0(200) + 200;
                                break;
                        }
@@ -5847,14 +5847,14 @@ msg_print("
                                chance = randint0(2);
 #ifdef JP
                                msg_format("¤¢¤Ê¤¿¤Ï%s¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£",
-                                          ((chance == 1 ? "¥«¥ª¥¹" : "Îô²½")));
+                                          ((chance == 1 ? "¥«¥ª¥¹" : "Îô²½")));
 #else
                                msg_format("You breathe %s.",
-                                          ((chance == 1 ? "chaos" : "disenchantment")));
+                                          ((chance == 1 ? "chaos" : "disenchantment")));
 #endif
 
                                fire_ball((chance == 1 ? GF_CHAOS : GF_DISENCHANT),
-                                         dir, 220, -2);
+                                         dir, 220, -2);
                                o_ptr->timeout = randint0(200) + 200;
                                break;
                        }
@@ -5864,14 +5864,14 @@ msg_print("
                                chance = randint0(2);
 #ifdef JP
                                msg_format("¤¢¤Ê¤¿¤Ï%s¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£",
-                                          ((chance == 1 ? "¹ì²»" : "ÇËÊÒ")));
+                                          ((chance == 1 ? "¹ì²»" : "ÇËÊÒ")));
 #else
                                msg_format("You breathe %s.",
-                                          ((chance == 1 ? "sound" : "shards")));
+                                          ((chance == 1 ? "sound" : "shards")));
 #endif
 
                                fire_ball((chance == 1 ? GF_SOUND : GF_SHARDS),
-                                         dir, 230, -2);
+                                         dir, 230, -2);
                                o_ptr->timeout = randint0(200) + 200;
                                break;
                        }
@@ -5881,20 +5881,20 @@ msg_print("
                                chance = randint0(4);
 #ifdef JP
                                msg_format("¤¢¤Ê¤¿¤Ï%s¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿",
-                                          ((chance == 1) ? "¥«¥ª¥¹" :
-                                           ((chance == 2) ? "Îô²½" :
-                                            ((chance == 3) ? "¹ì²»" : "ÇËÊÒ"))));
+                                          ((chance == 1) ? "¥«¥ª¥¹" :
+                                           ((chance == 2) ? "Îô²½" :
+                                            ((chance == 3) ? "¹ì²»" : "ÇËÊÒ"))));
 #else
                                msg_format("You breathe %s.",
-                                          ((chance == 1) ? "chaos" :
-                                           ((chance == 2) ? "disenchantment" :
-                                            ((chance == 3) ? "sound" : "shards"))));
+                                          ((chance == 1) ? "chaos" :
+                                           ((chance == 2) ? "disenchantment" :
+                                            ((chance == 3) ? "sound" : "shards"))));
 #endif
 
                                fire_ball(((chance == 1) ? GF_CHAOS :
-                                          ((chance == 2) ? GF_DISENCHANT :
-                                           ((chance == 3) ? GF_SOUND : GF_SHARDS))),
-                                         dir, 250, -2);
+                                          ((chance == 2) ? GF_DISENCHANT :
+                                           ((chance == 3) ? GF_SOUND : GF_SHARDS))),
+                                         dir, 250, -2);
                                o_ptr->timeout = randint0(200) + 200;
                                break;
                        }
@@ -5904,10 +5904,10 @@ msg_print("
                                chance = randint0(2);
 #ifdef JP
                                msg_format("¤¢¤Ê¤¿¤Ï%s¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£",
-                                          ((chance == 0 ? "Á®¸÷" : "°Å¹õ")));
+                                          ((chance == 0 ? "Á®¸÷" : "°Å¹õ")));
 #else
                                msg_format("You breathe %s.",
-                                          ((chance == 0 ? "light" : "darkness")));
+                                          ((chance == 0 ? "light" : "darkness")));
 #endif
 
                                fire_ball((chance == 0 ? GF_LITE : GF_DARK), dir, 200, -2);
@@ -6740,11 +6740,11 @@ static bool select_magic_eater(bool only_browse)
        /* Save the screen */
        screen_save();
 
-        request_list = always_show_list;
+       request_list = always_show_list;
 
        /* Get a spell from the user */
-        while (!flag)
-        {
+       while (!flag)
+       {
                /* Show the list */
                if (request_list || use_menu)
                {
@@ -7146,7 +7146,7 @@ msg_print("
        }
        else
        {
-                int dir = 0;
+               int dir = 0;
 
                if (tval == TV_ROD)
                {
index 86bacb7..7b6e4ec 100644 (file)
         TRC_CALL_DEMON | TRC_CALL_DRAGON | TRC_TELEPORT)
 
 #define TRC_P_FLAG_MASK  \
-        (TRC_TELEPORT_SELF | TRC_CHAINSWORD | \
+       (TRC_TELEPORT_SELF | TRC_CHAINSWORD | \
         TRC_TY_CURSE | TRC_DRAIN_EXP | TRC_ADD_L_CURSE | TRC_ADD_H_CURSE | \
         TRC_CALL_ANIMAL | TRC_CALL_DEMON | TRC_CALL_DRAGON | TRC_COWARDICE | \
         TRC_TELEPORT | TRC_DRAIN_HP | TRC_DRAIN_MANA)
index 46a731d..17f6786 100644 (file)
@@ -127,10 +127,10 @@ static void sense_inventory_aux(int slot, bool heavy)
                        }
                        case FEEL_CURSED:
                        {
-                                if (heavy)
-                                        feel = randint0(3) ? FEEL_GOOD : FEEL_AVERAGE;
-                                else
-                                        feel = FEEL_UNCURSED;
+                               if (heavy)
+                                       feel = randint0(3) ? FEEL_GOOD : FEEL_AVERAGE;
+                               else
+                                       feel = FEEL_UNCURSED;
                                break;
                        }
                        case FEEL_AVERAGE:
@@ -140,10 +140,10 @@ static void sense_inventory_aux(int slot, bool heavy)
                        }
                        case FEEL_GOOD:
                        {
-                                if (heavy)
-                                        feel = randint0(3) ? FEEL_CURSED : FEEL_AVERAGE;
-                                else
-                                        feel = FEEL_CURSED;
+                               if (heavy)
+                                       feel = randint0(3) ? FEEL_CURSED : FEEL_AVERAGE;
+                               else
+                                       feel = FEEL_CURSED;
                                break;
                        }
                        case FEEL_EXCELLENT:
@@ -173,8 +173,8 @@ msg_format("%s%s(%c)
 describe_use(slot),o_name, index_to_label(slot),game_inscriptions[feel]);
 #else
                msg_format("You feel the %s (%c) you are %s %s %s...",
-                          o_name, index_to_label(slot), describe_use(slot),
-                          ((o_ptr->number == 1) ? "is" : "are"),
+                          o_name, index_to_label(slot), describe_use(slot),
+                          ((o_ptr->number == 1) ? "is" : "are"),
                                   game_inscriptions[feel]);
 #endif
 
@@ -188,8 +188,8 @@ msg_format("
 o_name, index_to_label(slot),game_inscriptions[feel]);
 #else
                msg_format("You feel the %s (%c) in your pack %s %s...",
-                          o_name, index_to_label(slot),
-                          ((o_ptr->number == 1) ? "is" : "are"),
+                          o_name, index_to_label(slot),
+                          ((o_ptr->number == 1) ? "is" : "are"),
                                   game_inscriptions[feel]);
 #endif
 
@@ -204,8 +204,8 @@ o_name, index_to_label(slot),game_inscriptions[feel]);
        /* Auto-inscription/destroy */
        idx = is_autopick(o_ptr);
        auto_inscribe_item(slot, idx);
-        if (destroy_feeling)
-                auto_destroy_item(slot, idx);
+       if (destroy_feeling)
+               auto_destroy_item(slot, idx);
 
        /* Combine / Reorder the pack (later) */
        p_ptr->notice |= (PN_COMBINE | PN_REORDER);
@@ -624,10 +624,10 @@ if (get_check("¾
                                max_level = 100;
                }
                else
-                {
-                        max_level = d_info[dungeon_type].maxdepth;
-                        min_level = d_info[dungeon_type].mindepth;
-                }
+               {
+                       max_level = d_info[dungeon_type].maxdepth;
+                       min_level = d_info[dungeon_type].mindepth;
+               }
 
                /* Prompt */
 #ifdef JP
@@ -1181,7 +1181,7 @@ bool psychometry(void)
        char            o_name[MAX_NLEN];
        byte            feel;
        cptr            q, s;
-        bool okay = FALSE;
+       bool okay = FALSE;
        int idx;
 
        item_tester_no_ryoute = TRUE;
@@ -1260,40 +1260,40 @@ msg_format("%s
        /* Window stuff */
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
 
-        /* Valid "tval" codes */
-        switch (o_ptr->tval)
-        {
-        case TV_SHOT:
-        case TV_ARROW:
-        case TV_BOLT:
-        case TV_BOW:
-        case TV_DIGGING:
-        case TV_HAFTED:
-        case TV_POLEARM:
-        case TV_SWORD:
-        case TV_BOOTS:
-        case TV_GLOVES:
-        case TV_HELM:
-        case TV_CROWN:
-        case TV_SHIELD:
-        case TV_CLOAK:
-        case TV_SOFT_ARMOR:
-        case TV_HARD_ARMOR:
-        case TV_DRAG_ARMOR:
-        case TV_CARD:
-        case TV_RING:
-        case TV_AMULET:
-        case TV_LITE:
-        case TV_FIGURINE:
-                okay = TRUE;
-                break;
-        }
+       /* Valid "tval" codes */
+       switch (o_ptr->tval)
+       {
+       case TV_SHOT:
+       case TV_ARROW:
+       case TV_BOLT:
+       case TV_BOW:
+       case TV_DIGGING:
+       case TV_HAFTED:
+       case TV_POLEARM:
+       case TV_SWORD:
+       case TV_BOOTS:
+       case TV_GLOVES:
+       case TV_HELM:
+       case TV_CROWN:
+       case TV_SHIELD:
+       case TV_CLOAK:
+       case TV_SOFT_ARMOR:
+       case TV_HARD_ARMOR:
+       case TV_DRAG_ARMOR:
+       case TV_CARD:
+       case TV_RING:
+       case TV_AMULET:
+       case TV_LITE:
+       case TV_FIGURINE:
+               okay = TRUE;
+               break;
+       }
 
        /* Auto-inscription/destroy */
        idx = is_autopick(o_ptr);
        auto_inscribe_item(item, idx);
        if (okay && destroy_feeling)
-                auto_destroy_item(item, idx);
+               auto_destroy_item(item, idx);
 
        /* Something happened */
        return (TRUE);
@@ -1302,97 +1302,97 @@ msg_format("%s
 
 static void gere_music(s32b music)
 {
-        switch(music)
-        {
-                case MUSIC_SLOW:
-                        slow_monsters();
-                        break;
-                case MUSIC_STUN:
-                        stun_monsters(damroll(p_ptr->lev/10,2));
-                        break;
-                case MUSIC_L_LIFE:
-                        hp_player(damroll(2,6));
-                        break;
-                case MUSIC_FEAR:
-                        project_hack(GF_TURN_ALL, p_ptr->lev);
-                        break;
-                case MUSIC_PSI:
-                        project_hack(GF_PSI, randint1(p_ptr->lev * 3 / 2));
-                        break;
-                case MUSIC_ID:
-                        project(0, 1, py, px, 0, GF_IDENTIFY, PROJECT_ITEM, -1);
-                        break;
-                case MUSIC_CONF:
-                        confuse_monsters(p_ptr->lev * 2);
-                        break;
-                case MUSIC_SOUND:
-                        project_hack(GF_SOUND, damroll(10 + p_ptr->lev/5,7));
-                        break;
-                case MUSIC_CHARM:
-                        charm_monsters(damroll(10 + p_ptr->lev/15,6));
-                        break;
-                case MUSIC_WALL:
+       switch(music)
+       {
+               case MUSIC_SLOW:
+                       slow_monsters();
+                       break;
+               case MUSIC_STUN:
+                       stun_monsters(damroll(p_ptr->lev/10,2));
+                       break;
+               case MUSIC_L_LIFE:
+                       hp_player(damroll(2,6));
+                       break;
+               case MUSIC_FEAR:
+                       project_hack(GF_TURN_ALL, p_ptr->lev);
+                       break;
+               case MUSIC_PSI:
+                       project_hack(GF_PSI, randint1(p_ptr->lev * 3 / 2));
+                       break;
+               case MUSIC_ID:
+                       project(0, 1, py, px, 0, GF_IDENTIFY, PROJECT_ITEM, -1);
+                       break;
+               case MUSIC_CONF:
+                       confuse_monsters(p_ptr->lev * 2);
+                       break;
+               case MUSIC_SOUND:
+                       project_hack(GF_SOUND, damroll(10 + p_ptr->lev/5,7));
+                       break;
+               case MUSIC_CHARM:
+                       charm_monsters(damroll(10 + p_ptr->lev/15,6));
+                       break;
+               case MUSIC_WALL:
                        project(0, 0, py, px,
                                0, GF_DISINTEGRATE, PROJECT_KILL | PROJECT_ITEM | PROJECT_HIDE, -1);
-                        break;
-                case MUSIC_DISPEL:
-                        dispel_monsters(randint1(p_ptr->lev * 3));
-                        dispel_evil(randint1(p_ptr->lev * 3));
-                        break;
-                case MUSIC_SARUMAN:
-                        slow_monsters();
-                        sleep_monsters();
-                        break;
-                case MUSIC_QUAKE:
-                        earthquake(py, px, 10);
-                        break;
-                case MUSIC_STASIS:
-                        stasis_monsters(p_ptr->lev * 4);
-                        break;
-                case MUSIC_SHERO:
-                        dispel_monsters(randint1(p_ptr->lev * 3));
-                        break;
-                case MUSIC_H_LIFE:
-                        hp_player(damroll(15,10));
+                       break;
+               case MUSIC_DISPEL:
+                       dispel_monsters(randint1(p_ptr->lev * 3));
+                       dispel_evil(randint1(p_ptr->lev * 3));
+                       break;
+               case MUSIC_SARUMAN:
+                       slow_monsters();
+                       sleep_monsters();
+                       break;
+               case MUSIC_QUAKE:
+                       earthquake(py, px, 10);
+                       break;
+               case MUSIC_STASIS:
+                       stasis_monsters(p_ptr->lev * 4);
+                       break;
+               case MUSIC_SHERO:
+                       dispel_monsters(randint1(p_ptr->lev * 3));
+                       break;
+               case MUSIC_H_LIFE:
+                       hp_player(damroll(15,10));
                        set_stun(0);
                        set_cut(0);
-                        break;
-                case MUSIC_DETECT+19:
+                       break;
+               case MUSIC_DETECT+19:
                        wiz_lite(FALSE, FALSE);
-                case MUSIC_DETECT+11:
-                case MUSIC_DETECT+12:
-                case MUSIC_DETECT+13:
-                case MUSIC_DETECT+14:
-                case MUSIC_DETECT+15:
-                case MUSIC_DETECT+16:
-                case MUSIC_DETECT+17:
-                case MUSIC_DETECT+18:
+               case MUSIC_DETECT+11:
+               case MUSIC_DETECT+12:
+               case MUSIC_DETECT+13:
+               case MUSIC_DETECT+14:
+               case MUSIC_DETECT+15:
+               case MUSIC_DETECT+16:
+               case MUSIC_DETECT+17:
+               case MUSIC_DETECT+18:
                        map_area(DETECT_RAD_MAP);
                        if ((p_ptr->lev > 39) && (music < MUSIC_DETECT+19)) p_ptr->magic_num1[0] = music+1;
-                case MUSIC_DETECT+6:
-                case MUSIC_DETECT+7:
-                case MUSIC_DETECT+8:
-                case MUSIC_DETECT+9:
-                case MUSIC_DETECT+10:
+               case MUSIC_DETECT+6:
+               case MUSIC_DETECT+7:
+               case MUSIC_DETECT+8:
+               case MUSIC_DETECT+9:
+               case MUSIC_DETECT+10:
                        detect_treasure(DETECT_RAD_DEFAULT);
                        detect_objects_gold(DETECT_RAD_DEFAULT);
                        detect_objects_normal(DETECT_RAD_DEFAULT);
                        if ((p_ptr->lev > 24) && (music < MUSIC_DETECT+11)) p_ptr->magic_num1[0] = music+1;
-                case MUSIC_DETECT+3:
-                case MUSIC_DETECT+4:
-                case MUSIC_DETECT+5:
+               case MUSIC_DETECT+3:
+               case MUSIC_DETECT+4:
+               case MUSIC_DETECT+5:
                        detect_monsters_invis(DETECT_RAD_DEFAULT);
                        detect_monsters_normal(DETECT_RAD_DEFAULT);
                        if ((p_ptr->lev > 19) && (music < MUSIC_DETECT+6)) p_ptr->magic_num1[0] = music+1;
-                case MUSIC_DETECT:
-                case MUSIC_DETECT+1:
-                case MUSIC_DETECT+2:
+               case MUSIC_DETECT:
+               case MUSIC_DETECT+1:
+               case MUSIC_DETECT+2:
                        detect_traps(DETECT_RAD_DEFAULT, TRUE);
                        detect_doors(DETECT_RAD_DEFAULT);
                        detect_stairs(DETECT_RAD_DEFAULT);
                        if ((p_ptr->lev > 14)  && (music  < MUSIC_DETECT+3)) p_ptr->magic_num1[0] = music+1;
                        break;
-        }
+       }
 }
 
 /*
@@ -1443,14 +1443,14 @@ else msg_format("%s
 
 static void check_music(void)
 {
-        magic_type *s_ptr;
+       magic_type *s_ptr;
        u32b shouhimana;
 
-        /* Music singed by player */
-        if(p_ptr->pclass != CLASS_BARD) return;
-        if(!p_ptr->magic_num1[0] && !p_ptr->magic_num1[1]) return;
+       /* Music singed by player */
+       if(p_ptr->pclass != CLASS_BARD) return;
+       if(!p_ptr->magic_num1[0] && !p_ptr->magic_num1[1]) return;
 
-        s_ptr = &technic_info[REALM_MUSIC - MIN_TECHNIC][p_ptr->magic_num2[0]];
+       s_ptr = &technic_info[REALM_MUSIC - MIN_TECHNIC][p_ptr->magic_num2[0]];
 
        shouhimana = (s_ptr->smana*(3800-p_ptr->spell_exp[p_ptr->magic_num2[0]])+2399);
        if(p_ptr->dec_mana)
@@ -1458,14 +1458,14 @@ static void check_music(void)
        else shouhimana *= 4;
        shouhimana /= 9600;
        if(shouhimana < 1) shouhimana = 1;
-        shouhimana *= 0x8000;
-        if (((u16b)(p_ptr->csp) < (shouhimana / 0x10000)) || (p_ptr->anti_magic))
-        {
-                stop_singing();
+       shouhimana *= 0x8000;
+       if (((u16b)(p_ptr->csp) < (shouhimana / 0x10000)) || (p_ptr->anti_magic))
+       {
+               stop_singing();
                return;
-        }
-        else
-        {
+       }
+       else
+       {
                        p_ptr->csp -= (u16b) (shouhimana / 0x10000);
                        shouhimana = (shouhimana & 0xffff);
                        if (p_ptr->csp_frac < shouhimana)
@@ -1478,7 +1478,7 @@ static void check_music(void)
                        p_ptr->csp_frac -= (u16b)shouhimana;
                }
 
-                p_ptr->redraw |= PR_MANA;
+               p_ptr->redraw |= PR_MANA;
                if (p_ptr->magic_num1[1])
                {
                        p_ptr->magic_num1[0] = p_ptr->magic_num1[1];
@@ -1496,7 +1496,7 @@ static void check_music(void)
                        /* Redraw status bar */
                        p_ptr->redraw |= (PR_STATUS);
                }
-        }
+       }
        if (p_ptr->spell_exp[p_ptr->magic_num2[0]] < 900)
                p_ptr->spell_exp[p_ptr->magic_num2[0]]+=5;
        else if(p_ptr->spell_exp[p_ptr->magic_num2[0]] < 1200)
@@ -1506,7 +1506,7 @@ static void check_music(void)
        else if(p_ptr->spell_exp[p_ptr->magic_num2[0]] < 1600)
                {if (one_in_(5) && ((dun_level + 5) > p_ptr->lev) && (dun_level > s_ptr->slevel)) p_ptr->spell_exp[p_ptr->magic_num2[0]]+=1;}
 
-        gere_music(p_ptr->magic_num1[0]);
+       gere_music(p_ptr->magic_num1[0]);
 }
 
 /* Choose one of items that have cursed flag */
@@ -1559,7 +1559,7 @@ static void process_world(void)
        extract_day_hour_min(&day, &hour, &min);
        prev_min = (1440 * (tick - TURNS_PER_TICK) / len) % 60;
 
-        if ((turn - old_turn == (150 - dun_level) * TURNS_PER_TICK)
+       if ((turn - old_turn == (150 - dun_level) * TURNS_PER_TICK)
            && (dun_level) &&
            !(quest_number(dun_level) && ((quest_number(dun_level) < MIN_RANDOM_QUEST) && !(quest_number(dun_level) == QUEST_OBERON || quest_number(dun_level) == QUEST_SERPENT || !(quest[quest_number(dun_level)].flags & QUEST_FLAG_PRESET)))) &&
            !(p_ptr->inside_battle))
@@ -1704,14 +1704,14 @@ msg_print("
                        do_cmd_save_game(TRUE);
        }
 
-        if (mon_fight)
-        {
+       if (mon_fight)
+       {
 #ifdef JP
-                msg_print("²¿¤«¤¬Ê¹¤³¤¨¤¿¡£");
+               msg_print("²¿¤«¤¬Ê¹¤³¤¨¤¿¡£");
 #else
-                msg_print("You hear noise.");
+               msg_print("You hear noise.");
 #endif
-        }
+       }
 
        /*** Handle the wilderness/town (sunshine) ***/
 
@@ -2266,8 +2266,8 @@ take_hit(DAMAGE_NOESCAPE, i, "
                        {
                                /* Basic digestion rate based on speed */
                                i = /* extract_energy[p_ptr->pspeed] * 2;*/
-                               ((p_ptr->pspeed > 199) ? 49 : ((p_ptr->pspeed < 0) ?
-                               1 : extract_energy[p_ptr->pspeed]));
+                               ((p_ptr->pspeed > 199) ? 49 : ((p_ptr->pspeed < 0) ?
+                               1 : extract_energy[p_ptr->pspeed]));
 
                                /* Regeneration takes more food */
                                if (p_ptr->regenerate) i += 20;
@@ -3756,7 +3756,7 @@ take_hit(DAMAGE_LOSELIFE, MIN(p_ptr->lev, 50), "
                if (!p_ptr->word_recall)
                {
                        /* Disturbing! */
-                       disturb(0, 0);
+                       disturb(0, 0);
 
                        /* Determine the level */
                        if (dun_level || p_ptr->inside_quest)
@@ -3767,7 +3767,7 @@ msg_print("
                                msg_print("You feel yourself yanked upwards!");
 #endif
 
-                                p_ptr->recall_dungeon = dungeon_type;
+                               p_ptr->recall_dungeon = dungeon_type;
                                if (record_stair)
                                        do_cmd_write_nikki(NIKKI_RECALL, dun_level, NULL);
 
@@ -3787,7 +3787,7 @@ msg_print("
                                msg_print("You feel yourself yanked downwards!");
 #endif
 
-                                dungeon_type = p_ptr->recall_dungeon;
+                               dungeon_type = p_ptr->recall_dungeon;
 
                                if (record_stair)
                                        do_cmd_write_nikki(NIKKI_RECALL, dun_level, NULL);
@@ -3861,16 +3861,16 @@ static bool enter_wizard_mode(void)
        /* Ask first time */
        if (!p_ptr->noscore)
        {
-                /* Wizard mode is not permitted */
-                if (!allow_debug_opts)
-                {
+               /* Wizard mode is not permitted */
+               if (!allow_debug_opts)
+               {
 #ifdef JP
-                        msg_print("¥¦¥£¥¶¡¼¥É¥â¡¼¥É¤Ïµö²Ä¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ");
+                       msg_print("¥¦¥£¥¶¡¼¥É¥â¡¼¥É¤Ïµö²Ä¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ");
 #else
-                        msg_print("Wizard mode is not permitted.");
+                       msg_print("Wizard mode is not permitted.");
 #endif
-                        return FALSE;
-                }
+                       return FALSE;
+               }
 
                /* Mention effects */
 #ifdef JP
@@ -3913,16 +3913,16 @@ static bool enter_debug_mode(void)
        /* Ask first time */
        if (!p_ptr->noscore)
        {
-                /* Debug mode is not permitted */
-                if (!allow_debug_opts)
-                {
+               /* Debug mode is not permitted */
+               if (!allow_debug_opts)
+               {
 #ifdef JP
-                        msg_print("¥Ç¥Ð¥Ã¥°¥³¥Þ¥ó¥É¤Ïµö²Ä¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ");
+                       msg_print("¥Ç¥Ð¥Ã¥°¥³¥Þ¥ó¥É¤Ïµö²Ä¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ");
 #else
-                        msg_print("Use of debug command is not permitted.");
+                       msg_print("Use of debug command is not permitted.");
 #endif
-                        return FALSE;
-                }
+                       return FALSE;
+               }
 
                /* Mention effects */
 #ifdef JP
@@ -4305,37 +4305,37 @@ msg_print("
                /* Go up staircase */
                case '<':
                {
-                        if(!p_ptr->wild_mode && !dun_level && !p_ptr->inside_arena && !p_ptr->inside_quest)
-                        {
-                                if (!vanilla_town)
-                                {
-                                        if(ambush_flag)
+                       if(!p_ptr->wild_mode && !dun_level && !p_ptr->inside_arena && !p_ptr->inside_quest)
+                       {
+                               if (!vanilla_town)
+                               {
+                                       if(ambush_flag)
                                        {
 #ifdef JP
-                                                msg_print("½±·â¤«¤éƨ¤²¤ë¤Ë¤Ï¥Þ¥Ã¥×¤Îü¤Þ¤Ç°ÜÆ°¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£");
+                                               msg_print("½±·â¤«¤éƨ¤²¤ë¤Ë¤Ï¥Þ¥Ã¥×¤Îü¤Þ¤Ç°ÜÆ°¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£");
 #else
-                                                msg_print("To flee the ambush you have to reach the edge of the map.");
+                                               msg_print("To flee the ambush you have to reach the edge of the map.");
 #endif
                                        }
                                        else if (p_ptr->food < PY_FOOD_WEAK)
                                        {
 #ifdef JP
-                                                msg_print("¤½¤ÎÁ°¤Ë¿©»ö¤ò¤È¤é¤Ê¤¤¤È¡£");
+                                               msg_print("¤½¤ÎÁ°¤Ë¿©»ö¤ò¤È¤é¤Ê¤¤¤È¡£");
 #else
-                                                msg_print("You must eat something here.");
+                                               msg_print("You must eat something here.");
 #endif
                                        }
-                                        else
-                                        {
+                                       else
+                                       {
                                                if (change_wild_mode())
                                                {
                                                        p_ptr->oldpx = px;
                                                        p_ptr->oldpy = py;
                                                }
-                                        }
-                                }
-                        }
-                        else
+                                       }
+                               }
+                       }
+                       else
                                do_cmd_go_up();
                        break;
                }
@@ -4343,14 +4343,14 @@ msg_print("
                /* Go down staircase */
                case '>':
                {
-                        if(!p_ptr->wild_mode) do_cmd_go_down();
-                        else
-                        {
+                       if(!p_ptr->wild_mode) do_cmd_go_down();
+                       else
+                       {
                                p_ptr->wilderness_x = px;
                                p_ptr->wilderness_y = py;
                                change_wild_mode();
-                        }
-                        break;
+                       }
+                       break;
                }
 
                /* Open a door or chest */
@@ -4974,7 +4974,7 @@ msg_print("
                                char error_m[1024];
                                sound(SOUND_ILLEGAL);
 #ifdef JP
-                                if (!get_rnd_line("error_j.txt", 0, error_m))
+                               if (!get_rnd_line("error_j.txt", 0, error_m))
 #else
                                if (!get_rnd_line("error.txt", 0, error_m))
 #endif
@@ -6085,40 +6085,40 @@ msg_print("
                        if (!is_pet(m_ptr)) continue;
                        if (i == p_ptr->riding) continue;
 
-                        if (reinit_wilderness)
-                        {
-                                /* Don't lose sight of pets when getting a Quest */
-                        }
-                        else
-                        {
-                                int dis = distance(py, px, m_ptr->fy, m_ptr->fx);
-
-                                /*
-                                 * Pets with nickname will follow even from 3 blocks away
-                                 * when you or the pet can see the other.
-                                 */
-                                if (m_ptr->nickname && 
-                                    (player_has_los_bold(m_ptr->fy, m_ptr->fx) ||
-                                     los(m_ptr->fy, m_ptr->fx, py, px)))
-                                {
-                                        if (dis > 3) continue;
-                                }
-                                else
-                                {
-                                        if (dis > 1) continue;
-                                }
-                                if (m_ptr->confused || m_ptr->stunned || m_ptr->csleep) continue;
-                        }
+                       if (reinit_wilderness)
+                       {
+                               /* Don't lose sight of pets when getting a Quest */
+                       }
+                       else
+                       {
+                               int dis = distance(py, px, m_ptr->fy, m_ptr->fx);
+
+                               /*
+                                * Pets with nickname will follow even from 3 blocks away
+                                * when you or the pet can see the other.
+                                */
+                               if (m_ptr->nickname && 
+                                   (player_has_los_bold(m_ptr->fy, m_ptr->fx) ||
+                                    los(m_ptr->fy, m_ptr->fx, py, px)))
+                               {
+                                       if (dis > 3) continue;
+                               }
+                               else
+                               {
+                                       if (dis > 1) continue;
+                               }
+                               if (m_ptr->confused || m_ptr->stunned || m_ptr->csleep) continue;
+                       }
 
                        COPY(&party_mon[num], &m_list[i], monster_type);
                        num++;
 
-                        /* Mark as followed */
+                       /* Mark as followed */
                        delete_monster_idx(i);
                }
 
-                /* Forget the flag */
-                reinit_wilderness = FALSE;
+               /* Forget the flag */
+               reinit_wilderness = FALSE;
 
                if (record_named_pet)
                {
@@ -6187,9 +6187,9 @@ static void load_all_pref_files(void)
        init_autopicker();
 
 #ifdef JP
-        sprintf(buf, "picktype-%s.prf", player_base);
+       sprintf(buf, "picktype-%s.prf", player_base);
 #else
-        sprintf(buf, "pickpref-%s.prf", player_base);
+       sprintf(buf, "pickpref-%s.prf", player_base);
 #endif
 
        err = process_pickpref_file(buf);
@@ -6552,14 +6552,14 @@ quit("
        if(p_ptr->pseikaku == SEIKAKU_SEXY)
                s_info[p_ptr->pclass].w_max[TV_HAFTED-TV_BOW][SV_WHIP] = 8000;
 
-        /* Fill the arrays of floors and walls in the good proportions */
-        for (i = 0; i < 100; i++)
-        {
-                int lim1, lim2, lim3;
+       /* Fill the arrays of floors and walls in the good proportions */
+       for (i = 0; i < 100; i++)
+       {
+               int lim1, lim2, lim3;
 
-                lim1 = d_info[dungeon_type].floor_percent1;
-                lim2 = lim1 + d_info[dungeon_type].floor_percent2;
-                lim3 = lim2 + d_info[dungeon_type].floor_percent3;
+               lim1 = d_info[dungeon_type].floor_percent1;
+               lim2 = lim1 + d_info[dungeon_type].floor_percent2;
+               lim3 = lim2 + d_info[dungeon_type].floor_percent3;
 
                if (i < lim1)
                        floor_type[i] = d_info[dungeon_type].floor1;
@@ -6577,7 +6577,7 @@ quit("
                        fill_type[i] = d_info[dungeon_type].fill_type2;
                else if (i < lim3)
                        fill_type[i] = d_info[dungeon_type].fill_type3;
-        }
+       }
 
        /* Flavor the objects */
        flavor_init();
@@ -6601,10 +6601,10 @@ prt("
 
        /* Hack -- Enter wizard mode */
        if (arg_wizard)
-        {
-                if (enter_wizard_mode()) p_ptr->wizard = TRUE;
-                else if (p_ptr->is_dead) quit("Already dead.");
-        }
+       {
+               if (enter_wizard_mode()) p_ptr->wizard = TRUE;
+               else if (p_ptr->is_dead) quit("Already dead.");
+       }
 
        /* Initialize the town-buildings if necessary */
        if (!dun_level && !p_ptr->inside_quest)
index cb9a6ff..be76cd3 100644 (file)
@@ -245,14 +245,14 @@ bool set_mimic(int v, int p, bool do_dec)
                {
                        if (p_ptr->tim_mimic > v) return FALSE;
                }
-                else if ((!p_ptr->tim_mimic) || (p_ptr->mimic_form != p))
+               else if ((!p_ptr->tim_mimic) || (p_ptr->mimic_form != p))
                {
 #ifdef JP
-                        msg_print("¼«Ê¬¤ÎÂΤ¬ÊѤï¤Ã¤Æ¤æ¤¯¤Î¤ò´¶¤¸¤¿¡£");
+                       msg_print("¼«Ê¬¤ÎÂΤ¬ÊѤï¤Ã¤Æ¤æ¤¯¤Î¤ò´¶¤¸¤¿¡£");
 #else
-                        msg_print("You feel that your body changes.");
+                       msg_print("You feel that your body changes.");
 #endif
-                        p_ptr->mimic_form=p;
+                       p_ptr->mimic_form=p;
                        notice = TRUE;
                }
        }
@@ -260,22 +260,22 @@ bool set_mimic(int v, int p, bool do_dec)
        /* Shut */
        else
        {
-                if (p_ptr->tim_mimic)
+               if (p_ptr->tim_mimic)
                {
 #ifdef JP
-                        msg_print("ÊѿȤ¬²ò¤±¤¿¡£");
+                       msg_print("ÊѿȤ¬²ò¤±¤¿¡£");
 #else
-                        msg_print("You are no longer transformed.");
+                       msg_print("You are no longer transformed.");
 #endif
                        if (p_ptr->mimic_form == MIMIC_DEMON) set_oppose_fire(0, TRUE);
-                        p_ptr->mimic_form=0;
+                       p_ptr->mimic_form=0;
                        notice = TRUE;
                        p = 0;
                }
        }
 
        /* Use the value */
-        p_ptr->tim_mimic = v;
+       p_ptr->tim_mimic = v;
 
        /* Nothing to notice */
        if (!notice)
@@ -285,11 +285,11 @@ bool set_mimic(int v, int p, bool do_dec)
        if (disturb_state)
                disturb(0, 0);
 
-        /* Redraw title */
-        p_ptr->redraw |= (PR_BASIC | PR_STATUS);
+       /* Redraw title */
+       p_ptr->redraw |= (PR_BASIC | PR_STATUS);
 
        /* Recalculate bonuses */
-        p_ptr->update |= (PU_BONUS | PU_HP);
+       p_ptr->update |= (PU_BONUS | PU_HP);
 
        handle_stuff();
 
@@ -2905,16 +2905,16 @@ bool set_ele_attack(u32b attack_type, int v)
                             ((attack_type == ATTACK_ACID) ? "»À" :
                              ((attack_type == ATTACK_ELEC) ? "ÅÅ·â" :
                               ((attack_type == ATTACK_FIRE) ? "²Ð±ê" : 
-                               ((attack_type == ATTACK_COLD) ? "Î䵤" : 
-                                ((attack_type == ATTACK_POIS) ? "ÆÇ" : 
+                               ((attack_type == ATTACK_COLD) ? "Î䵤" : 
+                                ((attack_type == ATTACK_POIS) ? "ÆÇ" : 
                                        "(¤Ê¤·)"))))));
 #else
                msg_format("For a while, the blows you deal will %s",
                             ((attack_type == ATTACK_ACID) ? "melt with acid!" :
                              ((attack_type == ATTACK_ELEC) ? "shock your foes!" :
                               ((attack_type == ATTACK_FIRE) ? "burn with fire!" : 
-                               ((attack_type == ATTACK_COLD) ? "chill to the bone!" : 
-                                ((attack_type == ATTACK_POIS) ? "poison your enemies!" : 
+                               ((attack_type == ATTACK_COLD) ? "chill to the bone!" : 
+                                ((attack_type == ATTACK_POIS) ? "poison your enemies!" : 
                                        "do nothing special."))))));
 #endif
        }
@@ -3004,16 +3004,16 @@ bool set_ele_immune(u32b immune_type, int v)
                             ((immune_type == DEFENSE_ACID) ? "»À" :
                              ((immune_type == DEFENSE_ELEC) ? "ÅÅ·â" :
                               ((immune_type == DEFENSE_FIRE) ? "²Ð±ê" : 
-                               ((immune_type == DEFENSE_COLD) ? "Î䵤" : 
-                                ((immune_type == DEFENSE_POIS) ? "ÆÇ" : 
+                               ((immune_type == DEFENSE_COLD) ? "Î䵤" : 
+                                ((immune_type == DEFENSE_POIS) ? "ÆÇ" : 
                                        "(¤Ê¤·)"))))));
 #else
                msg_format("For a while, You are immune to %s",
                             ((immune_type == DEFENSE_ACID) ? "acid!" :
                              ((immune_type == DEFENSE_ELEC) ? "electricity!" :
                               ((immune_type == DEFENSE_FIRE) ? "fire!" : 
-                               ((immune_type == DEFENSE_COLD) ? "cold!" : 
-                                ((immune_type == DEFENSE_POIS) ? "poison!" : 
+                               ((immune_type == DEFENSE_COLD) ? "cold!" : 
+                                ((immune_type == DEFENSE_POIS) ? "poison!" : 
                                        "do nothing special."))))));
 #endif
        }
@@ -4261,8 +4261,8 @@ bool dec_stat(int stat, int amount, int permanent)
                p_ptr->stat_cur[stat] = cur;
                p_ptr->stat_max[stat] = max;
 
-                /* Redisplay the stats later */
-                p_ptr->redraw |= (PR_STATS);
+               /* Redisplay the stats later */
+               p_ptr->redraw |= (PR_STATS);
 
                /* Recalculate bonuses */
                p_ptr->update |= (PU_BONUS);
@@ -4287,8 +4287,8 @@ bool res_stat(int stat)
                /* Recalculate bonuses */
                p_ptr->update |= (PU_BONUS);
 
-                /* Redisplay the stats later */
-                p_ptr->redraw |= (PR_STATS);
+               /* Redisplay the stats later */
+               p_ptr->redraw |= (PR_STATS);
 
                /* Success */
                return (TRUE);
@@ -5228,7 +5228,7 @@ get_rnd_line("death_j.txt", 0, death_message);
 #endif
                                }
 #ifdef JP
-                               while (!get_string(streq(p_ptr->died_from, "Seppuku") ? "¼­À¤¤Î¶ç: " : "ÃÇËöËâ¤Î¶«¤Ó: ", death_message, 1024)) ;
+                               while (!get_string(streq(p_ptr->died_from, "Seppuku") ? "¼­À¤¤Î¶ç: " : "ÃÇËöËâ¤Î¶«¤Ó: ", death_message, 1024)) ;
 #else
                                while (!get_string("Last word: ", death_message, 1024)) ;
 #endif
@@ -5281,16 +5281,16 @@ get_rnd_line("death_j.txt", 0, death_message);
                                    if (*str == 0) break;
                                  }
 
-                                  /* Hide cursor */
-                                  Term_putstr(w-1, h-1, 1, TERM_WHITE, " ");
+                                 /* Hide cursor */
+                                 Term_putstr(w-1, h-1, 1, TERM_WHITE, " ");
 
                                  flush();
 #ifdef WORLD_SCORE
-                                  /* Make screen dump */
-                                  screen_dump = make_screen_dump();
+                                 /* Make screen dump */
+                                 screen_dump = make_screen_dump();
 #endif
 
-                                  /* Wait a key press */
+                                 /* Wait a key press */
                                  (void)inkey();
 #else
                                        msg_print(death_message);
index 058e2be..3252031 100644 (file)
@@ -33,7 +33,7 @@ extern void create_monster_callback(int m_idx);
 extern void delete_monster_callback(int m_idx);
 extern void copy_monster_callback(int i1, int i2);
 extern char inkey_borg_callback(bool inkey_base, bool inkey_xtra,
-                                bool inkey_flag, bool inkey_scan);
+                               bool inkey_flag, bool inkey_scan);
 extern char inkey_callback(char key);
 
 /* Birth */
index 3374f78..e604c78 100644 (file)
@@ -946,10 +946,10 @@ static cptr process_pref_file_expr(char **sp, char *fp)
                                v = ANGBAND_SYS;
                        }
 
-                        else if (streq(b+1, "KEYBOARD"))
-                        {
-                                v = ANGBAND_KEYBOARD;
-                        }
+                       else if (streq(b+1, "KEYBOARD"))
+                       {
+                               v = ANGBAND_KEYBOARD;
+                       }
 
                        /* Graphics */
                        else if (streq(b+1, "GRAF"))
@@ -970,7 +970,7 @@ static cptr process_pref_file_expr(char **sp, char *fp)
                        else if (streq(b+1, "RACE"))
                        {
 #ifdef JP
-                                v = rp_ptr->E_title;
+                               v = rp_ptr->E_title;
 #else
                                v = rp_ptr->title;
 #endif
@@ -980,7 +980,7 @@ static cptr process_pref_file_expr(char **sp, char *fp)
                        else if (streq(b+1, "CLASS"))
                        {
 #ifdef JP
-                                v = cp_ptr->E_title;
+                               v = cp_ptr->E_title;
 #else
                                v = cp_ptr->title;
 #endif
@@ -998,7 +998,7 @@ static cptr process_pref_file_expr(char **sp, char *fp)
 #ifdef JP
                                v = E_realm_names[p_ptr->realm1];
 #else
-                                v = realm_names[p_ptr->realm1];
+                               v = realm_names[p_ptr->realm1];
 #endif
                        }
 
@@ -1006,7 +1006,7 @@ static cptr process_pref_file_expr(char **sp, char *fp)
                        else if (streq(b+1, "REALM2"))
                        {
 #ifdef JP
-                                v = E_realm_names[p_ptr->realm2];
+                               v = E_realm_names[p_ptr->realm2];
 #else
                                v = realm_names[p_ptr->realm2];
 #endif
@@ -1143,8 +1143,8 @@ static errr process_pref_file_aux(cptr name, bool read_pickpref)
                /* Print error message */
                /* ToDo: Add better error messages */
 #ifdef JP
-              msg_format("¥Õ¥¡¥¤¥ë'%s'¤Î%d¹Ô¤Ç¥¨¥é¡¼ÈÖ¹æ%d¤Î¥¨¥é¡¼¡£", name, line, err);
-              msg_format("('%s'¤ò²òÀÏÃæ)", old);
+             msg_format("¥Õ¥¡¥¤¥ë'%s'¤Î%d¹Ô¤Ç¥¨¥é¡¼ÈÖ¹æ%d¤Î¥¨¥é¡¼¡£", name, line, err);
+             msg_format("('%s'¤ò²òÀÏÃæ)", old);
 #else
                msg_format("Error %d in line %d of file '%s'.", err, line, name);
                msg_format("Parsing '%s'", old);
@@ -1632,11 +1632,11 @@ static void display_player_one_line(int entry, cptr val, byte attr)
  */
 static void display_player_middle(void)
 {
-        char buf[160];
+       char buf[160];
        int show_tohit, show_todam;
        object_type *o_ptr;
        int tmul = 0;
-        int e;
+       int e;
 
        if(p_ptr->migite)
        {
@@ -1824,7 +1824,7 @@ static void display_player_middle(void)
 
        /* Dump experience */
        if (p_ptr->prace == RACE_ANDROID) e = ENTRY_EXP_ANDR;
-        else e = ENTRY_CUR_EXP;
+       else e = ENTRY_CUR_EXP;
 
        if (p_ptr->exp >= p_ptr->max_exp)
                display_player_one_line(e, format("%ld", p_ptr->exp), TERM_L_GREEN);
@@ -1840,7 +1840,7 @@ static void display_player_middle(void)
        /* Dump exp to advance */
        if (p_ptr->lev >= PY_MAX_LEVEL)
                display_player_one_line(ENTRY_EXP_TO_ADV, "*****", TERM_L_GREEN);
-        else if (p_ptr->prace == RACE_ANDROID)
+       else if (p_ptr->prace == RACE_ANDROID)
                display_player_one_line(ENTRY_EXP_TO_ADV, format("%ld", (s32b)(player_exp_a[p_ptr->lev - 1] * p_ptr->expfact / 100L)), TERM_L_GREEN);
        else
                display_player_one_line(ENTRY_EXP_TO_ADV, format("%ld", (s32b)(player_exp[p_ptr->lev - 1] * p_ptr->expfact / 100L)), TERM_L_GREEN);
@@ -2772,9 +2772,9 @@ static void display_player_equippy(int y, int x, u16b mode)
 
        object_type *o_ptr;
 
-        /* Weapon flags need only two column */
-        if (mode & DP_WP) max_i = INVEN_LARM + 1;
-        else max_i = INVEN_TOTAL;
+       /* Weapon flags need only two column */
+       if (mode & DP_WP) max_i = INVEN_LARM + 1;
+       else max_i = INVEN_TOTAL;
 
        /* Dump equippy chars */
        for (i = INVEN_RARM; i < max_i; i++)
@@ -2904,12 +2904,12 @@ static void player_vuln_flags(u32b flgs[TR_FLAG_SIZE])
  * A struct for storing misc. flags
  */
 typedef struct {
-        u32b player_flags[TR_FLAG_SIZE];
-        u32b tim_player_flags[TR_FLAG_SIZE];
-        u32b player_imm[TR_FLAG_SIZE];
-        u32b tim_player_imm[TR_FLAG_SIZE];
-        u32b player_vuln[TR_FLAG_SIZE];
-        u32b known_obj_imm[TR_FLAG_SIZE];
+       u32b player_flags[TR_FLAG_SIZE];
+       u32b tim_player_flags[TR_FLAG_SIZE];
+       u32b player_imm[TR_FLAG_SIZE];
+       u32b tim_player_imm[TR_FLAG_SIZE];
+       u32b player_vuln[TR_FLAG_SIZE];
+       u32b known_obj_imm[TR_FLAG_SIZE];
 } all_player_flags;
 
 
@@ -2921,12 +2921,12 @@ static void display_flag_aux(int row, int col, cptr header,
 {
        int     i;
        bool    vuln = FALSE;
-        int max_i;
+       int max_i;
 
        if (have_flag(f->player_vuln, flag1) &&
-            !(have_flag(f->known_obj_imm, flag1) ||
-              have_flag(f->player_imm, flag1) ||
-              have_flag(f->tim_player_imm, flag1)))
+           !(have_flag(f->known_obj_imm, flag1) ||
+             have_flag(f->player_imm, flag1) ||
+             have_flag(f->tim_player_imm, flag1)))
                vuln = TRUE;
 
        /* Header */
@@ -2935,14 +2935,14 @@ static void display_flag_aux(int row, int col, cptr header,
        /* Advance */
        col += strlen(header) + 1;
 
-        /* Weapon flags need only two column */
-        if (mode & DP_WP) max_i = INVEN_LARM + 1;
-        else max_i = INVEN_TOTAL;
+       /* Weapon flags need only two column */
+       if (mode & DP_WP) max_i = INVEN_LARM + 1;
+       else max_i = INVEN_TOTAL;
 
        /* Check equipment */
        for (i = INVEN_RARM; i < max_i; i++)
        {
-                u32b flgs[TR_FLAG_SIZE];
+               u32b flgs[TR_FLAG_SIZE];
                object_type *o_ptr;
 
                /* Object */
@@ -2952,30 +2952,30 @@ static void display_flag_aux(int row, int col, cptr header,
                object_flags_known(o_ptr, flgs);
 
                /* Default */
-                if (!(mode & DP_IMM))
-                        c_put_str((byte)(vuln ? TERM_RED : TERM_SLATE), ".", row, col);
+               if (!(mode & DP_IMM))
+                       c_put_str((byte)(vuln ? TERM_RED : TERM_SLATE), ".", row, col);
 
                /* Check flags */
-                if (mode & DP_CURSE)
-                {
-                        if ((mode & DP_CURSE) && (o_ptr->curse_flags & (TRC_CURSED | TRC_HEAVY_CURSE)))
-                                c_put_str(TERM_WHITE, "+", row, col);
-                        if ((mode & DP_CURSE) && (o_ptr->curse_flags & TRC_PERMA_CURSE))
-                                c_put_str(TERM_WHITE, "*", row, col);
-                }
-                else
-                {
-                        if (have_flag(flgs, flag1))
-                                c_put_str((byte)(vuln ? TERM_L_RED : TERM_WHITE),
-                                          (mode & DP_IMM) ? "*" : "+", row, col);
-                }
+               if (mode & DP_CURSE)
+               {
+                       if ((mode & DP_CURSE) && (o_ptr->curse_flags & (TRC_CURSED | TRC_HEAVY_CURSE)))
+                               c_put_str(TERM_WHITE, "+", row, col);
+                       if ((mode & DP_CURSE) && (o_ptr->curse_flags & TRC_PERMA_CURSE))
+                               c_put_str(TERM_WHITE, "*", row, col);
+               }
+               else
+               {
+                       if (have_flag(flgs, flag1))
+                               c_put_str((byte)(vuln ? TERM_L_RED : TERM_WHITE),
+                                         (mode & DP_IMM) ? "*" : "+", row, col);
+               }
 
                /* Advance */
                col++;
        }
 
-        /* Assume that player flag is already written */
-        if (mode & DP_IMM) return;
+       /* Assume that player flag is already written */
+       if (mode & DP_IMM) return;
 
        /* Default */
        c_put_str((byte)(vuln ? TERM_RED : TERM_SLATE), ".", row, col);
@@ -3003,9 +3003,9 @@ static void display_player_flag_info(void)
        int row;
        int col;
 
-        all_player_flags f;
+       all_player_flags f;
 
-        /* Extract flags and store */
+       /* Extract flags and store */
        player_flags(f.player_flags);
        tim_player_flags(f.tim_player_flags, TRUE);
        player_immunity(f.player_imm);
@@ -3132,9 +3132,9 @@ static void display_player_other_flag_info(void)
        int row;
        int col;
 
-        all_player_flags f;
+       all_player_flags f;
 
-        /* Extract flags and store */
+       /* Extract flags and store */
        player_flags(f.player_flags);
        tim_player_flags(f.tim_player_flags, TRUE);
        player_immunity(f.player_imm);
@@ -3152,63 +3152,63 @@ static void display_player_other_flag_info(void)
        c_put_str(TERM_WHITE, "ab@", row-1, col+12);
 
 #ifdef JP
-        display_flag_aux(row+ 0, col, "¼Ù°­ ÇÜÂÇ :", TR_SLAY_EVIL, &f, DP_WP);
-        display_flag_aux(row+ 0, col, "¼Ù°­ ÇÜÂÇ :", TR_KILL_EVIL, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 1, col, "ÉÔ»à ÇÜÂÇ :", TR_SLAY_UNDEAD, &f, DP_WP);
-        display_flag_aux(row+ 1, col, "ÉÔ»à ÇÜÂÇ :", TR_KILL_UNDEAD, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 2, col, "°­Ëâ ÇÜÂÇ :", TR_SLAY_DEMON, &f, DP_WP);
-        display_flag_aux(row+ 2, col, "°­Ëâ ÇÜÂÇ :", TR_KILL_DEMON, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 3, col, "ζ ÇÜÂÇ   :", TR_SLAY_DRAGON, &f, DP_WP);
-        display_flag_aux(row+ 3, col, "ζ ÇÜÂÇ   :", TR_KILL_DRAGON, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 4, col, "¿Í´Ö ÇÜÂÇ :", TR_SLAY_HUMAN, &f, DP_WP);
-        display_flag_aux(row+ 4, col, "¿Í´Ö ÇÜÂÇ :", TR_KILL_HUMAN, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 5, col, "ưʪ ÇÜÂÇ :", TR_SLAY_ANIMAL, &f, DP_WP);
-        display_flag_aux(row+ 5, col, "ưʪ ÇÜÂÇ :", TR_KILL_ANIMAL, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 6, col, "¥ª¡¼¥¯ÇÜÂÇ:", TR_SLAY_ORC, &f, DP_WP);
-        display_flag_aux(row+ 6, col, "¥ª¡¼¥¯ÇÜÂÇ:", TR_KILL_ORC, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 7, col, "¥È¥í¥ëÇÜÂÇ:", TR_SLAY_TROLL, &f, DP_WP);
-        display_flag_aux(row+ 7, col, "¥È¥í¥ëÇÜÂÇ:", TR_KILL_TROLL, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 8, col, "µð¿Í ÇÜÂÇ :", TR_SLAY_GIANT, &f, DP_WP);
-        display_flag_aux(row+ 8, col, "µð¿Í ÇÜÂÇ :", TR_KILL_GIANT, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 9, col, "Íϲò      :", TR_BRAND_ACID, &f, DP_WP);
-        display_flag_aux(row+10, col, "ÅÅ·â      :", TR_BRAND_ELEC, &f, DP_WP);
-        display_flag_aux(row+11, col, "¾Æ´þ      :", TR_BRAND_FIRE, &f, DP_WP);
-        display_flag_aux(row+12, col, "Åà·ë      :", TR_BRAND_COLD, &f, DP_WP);
-        display_flag_aux(row+13, col, "ÆÇ»¦      :", TR_BRAND_POIS, &f, DP_WP);
-        display_flag_aux(row+14, col, "ÀÚ¤ìÌ£    :", TR_VORPAL, &f, DP_WP);
-        display_flag_aux(row+15, col, "ÃÏ¿Ì      :", TR_IMPACT, &f, DP_WP);
-        display_flag_aux(row+16, col, "µÛ·ì      :", TR_VAMPIRIC, &f, DP_WP);
-        display_flag_aux(row+17, col, "¥«¥ª¥¹¸ú²Ì:", TR_CHAOTIC, &f, DP_WP);
-        display_flag_aux(row+18, col, "ÍýÎÏ      :", TR_FORCE_WEAPON, &f, DP_WP);
-#else
-        display_flag_aux(row+ 0, col, "Slay Evil :", TR_SLAY_EVIL, &f, DP_WP);
-        display_flag_aux(row+ 0, col, "Slay Evil :", TR_KILL_EVIL, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 1, col, "Slay Und. :", TR_SLAY_UNDEAD, &f, DP_WP);
-        display_flag_aux(row+ 1, col, "Slay Und. :", TR_KILL_UNDEAD, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 2, col, "Slay Demon:", TR_SLAY_DEMON, &f, DP_WP);
-        display_flag_aux(row+ 2, col, "Slay Demon:", TR_KILL_DEMON, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 3, col, "Slay Drag.:", TR_SLAY_DRAGON, &f, DP_WP);
-        display_flag_aux(row+ 3, col, "Slay Drag.:", TR_KILL_DRAGON, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 4, col, "Slay Human:", TR_SLAY_HUMAN, &f, DP_WP);
-        display_flag_aux(row+ 4, col, "Slay Human:", TR_KILL_HUMAN, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 5, col, "Slay Anim.:", TR_SLAY_ANIMAL, &f, DP_WP);
-        display_flag_aux(row+ 5, col, "Slay Anim.:", TR_KILL_ANIMAL, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 6, col, "Slay Orc  :", TR_SLAY_ORC, &f, DP_WP);
-        display_flag_aux(row+ 6, col, "Slay Orc  :", TR_KILL_ORC, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 7, col, "Slay Troll:", TR_SLAY_TROLL, &f, DP_WP);
-        display_flag_aux(row+ 7, col, "Slay Troll:", TR_KILL_TROLL, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 8, col, "Slay Giant:", TR_SLAY_GIANT, &f, DP_WP);
-        display_flag_aux(row+ 8, col, "Slay Giant:", TR_KILL_GIANT, &f, (DP_WP|DP_IMM));
-        display_flag_aux(row+ 9, col, "Acid Brand:", TR_BRAND_ACID, &f, DP_WP);
-        display_flag_aux(row+10, col, "Elec Brand:", TR_BRAND_ELEC, &f, DP_WP);
-        display_flag_aux(row+11, col, "Fire Brand:", TR_BRAND_FIRE, &f, DP_WP);
-        display_flag_aux(row+12, col, "Cold Brand:", TR_BRAND_COLD, &f, DP_WP);
-        display_flag_aux(row+13, col, "Poison Brd:", TR_BRAND_POIS, &f, DP_WP);
-        display_flag_aux(row+14, col, "Sharpness :", TR_VORPAL, &f, DP_WP);
-        display_flag_aux(row+15, col, "Quake     :", TR_IMPACT, &f, DP_WP);
-        display_flag_aux(row+16, col, "Vampicic  :", TR_VAMPIRIC, &f, DP_WP);
-        display_flag_aux(row+17, col, "Chatic    :", TR_CHAOTIC, &f, DP_WP);
-        display_flag_aux(row+18, col, "Force Wep.:", TR_FORCE_WEAPON, &f, DP_WP);
+       display_flag_aux(row+ 0, col, "¼Ù°­ ÇÜÂÇ :", TR_SLAY_EVIL, &f, DP_WP);
+       display_flag_aux(row+ 0, col, "¼Ù°­ ÇÜÂÇ :", TR_KILL_EVIL, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 1, col, "ÉÔ»à ÇÜÂÇ :", TR_SLAY_UNDEAD, &f, DP_WP);
+       display_flag_aux(row+ 1, col, "ÉÔ»à ÇÜÂÇ :", TR_KILL_UNDEAD, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 2, col, "°­Ëâ ÇÜÂÇ :", TR_SLAY_DEMON, &f, DP_WP);
+       display_flag_aux(row+ 2, col, "°­Ëâ ÇÜÂÇ :", TR_KILL_DEMON, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 3, col, "ζ ÇÜÂÇ   :", TR_SLAY_DRAGON, &f, DP_WP);
+       display_flag_aux(row+ 3, col, "ζ ÇÜÂÇ   :", TR_KILL_DRAGON, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 4, col, "¿Í´Ö ÇÜÂÇ :", TR_SLAY_HUMAN, &f, DP_WP);
+       display_flag_aux(row+ 4, col, "¿Í´Ö ÇÜÂÇ :", TR_KILL_HUMAN, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 5, col, "ưʪ ÇÜÂÇ :", TR_SLAY_ANIMAL, &f, DP_WP);
+       display_flag_aux(row+ 5, col, "ưʪ ÇÜÂÇ :", TR_KILL_ANIMAL, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 6, col, "¥ª¡¼¥¯ÇÜÂÇ:", TR_SLAY_ORC, &f, DP_WP);
+       display_flag_aux(row+ 6, col, "¥ª¡¼¥¯ÇÜÂÇ:", TR_KILL_ORC, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 7, col, "¥È¥í¥ëÇÜÂÇ:", TR_SLAY_TROLL, &f, DP_WP);
+       display_flag_aux(row+ 7, col, "¥È¥í¥ëÇÜÂÇ:", TR_KILL_TROLL, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 8, col, "µð¿Í ÇÜÂÇ :", TR_SLAY_GIANT, &f, DP_WP);
+       display_flag_aux(row+ 8, col, "µð¿Í ÇÜÂÇ :", TR_KILL_GIANT, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 9, col, "Íϲò      :", TR_BRAND_ACID, &f, DP_WP);
+       display_flag_aux(row+10, col, "ÅÅ·â      :", TR_BRAND_ELEC, &f, DP_WP);
+       display_flag_aux(row+11, col, "¾Æ´þ      :", TR_BRAND_FIRE, &f, DP_WP);
+       display_flag_aux(row+12, col, "Åà·ë      :", TR_BRAND_COLD, &f, DP_WP);
+       display_flag_aux(row+13, col, "ÆÇ»¦      :", TR_BRAND_POIS, &f, DP_WP);
+       display_flag_aux(row+14, col, "ÀÚ¤ìÌ£    :", TR_VORPAL, &f, DP_WP);
+       display_flag_aux(row+15, col, "ÃÏ¿Ì      :", TR_IMPACT, &f, DP_WP);
+       display_flag_aux(row+16, col, "µÛ·ì      :", TR_VAMPIRIC, &f, DP_WP);
+       display_flag_aux(row+17, col, "¥«¥ª¥¹¸ú²Ì:", TR_CHAOTIC, &f, DP_WP);
+       display_flag_aux(row+18, col, "ÍýÎÏ      :", TR_FORCE_WEAPON, &f, DP_WP);
+#else
+       display_flag_aux(row+ 0, col, "Slay Evil :", TR_SLAY_EVIL, &f, DP_WP);
+       display_flag_aux(row+ 0, col, "Slay Evil :", TR_KILL_EVIL, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 1, col, "Slay Und. :", TR_SLAY_UNDEAD, &f, DP_WP);
+       display_flag_aux(row+ 1, col, "Slay Und. :", TR_KILL_UNDEAD, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 2, col, "Slay Demon:", TR_SLAY_DEMON, &f, DP_WP);
+       display_flag_aux(row+ 2, col, "Slay Demon:", TR_KILL_DEMON, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 3, col, "Slay Drag.:", TR_SLAY_DRAGON, &f, DP_WP);
+       display_flag_aux(row+ 3, col, "Slay Drag.:", TR_KILL_DRAGON, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 4, col, "Slay Human:", TR_SLAY_HUMAN, &f, DP_WP);
+       display_flag_aux(row+ 4, col, "Slay Human:", TR_KILL_HUMAN, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 5, col, "Slay Anim.:", TR_SLAY_ANIMAL, &f, DP_WP);
+       display_flag_aux(row+ 5, col, "Slay Anim.:", TR_KILL_ANIMAL, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 6, col, "Slay Orc  :", TR_SLAY_ORC, &f, DP_WP);
+       display_flag_aux(row+ 6, col, "Slay Orc  :", TR_KILL_ORC, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 7, col, "Slay Troll:", TR_SLAY_TROLL, &f, DP_WP);
+       display_flag_aux(row+ 7, col, "Slay Troll:", TR_KILL_TROLL, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 8, col, "Slay Giant:", TR_SLAY_GIANT, &f, DP_WP);
+       display_flag_aux(row+ 8, col, "Slay Giant:", TR_KILL_GIANT, &f, (DP_WP|DP_IMM));
+       display_flag_aux(row+ 9, col, "Acid Brand:", TR_BRAND_ACID, &f, DP_WP);
+       display_flag_aux(row+10, col, "Elec Brand:", TR_BRAND_ELEC, &f, DP_WP);
+       display_flag_aux(row+11, col, "Fire Brand:", TR_BRAND_FIRE, &f, DP_WP);
+       display_flag_aux(row+12, col, "Cold Brand:", TR_BRAND_COLD, &f, DP_WP);
+       display_flag_aux(row+13, col, "Poison Brd:", TR_BRAND_POIS, &f, DP_WP);
+       display_flag_aux(row+14, col, "Sharpness :", TR_VORPAL, &f, DP_WP);
+       display_flag_aux(row+15, col, "Quake     :", TR_IMPACT, &f, DP_WP);
+       display_flag_aux(row+16, col, "Vampicic  :", TR_VAMPIRIC, &f, DP_WP);
+       display_flag_aux(row+17, col, "Chatic    :", TR_CHAOTIC, &f, DP_WP);
+       display_flag_aux(row+18, col, "Force Wep.:", TR_FORCE_WEAPON, &f, DP_WP);
 #endif
 
 
@@ -3221,45 +3221,45 @@ static void display_player_other_flag_info(void)
        c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+12);
 
 #ifdef JP
-        display_flag_aux(row+ 0, col, "¥Æ¥ì¥Ñ¥·¡¼:", TR_TELEPATHY, &f, 0);
-        display_flag_aux(row+ 1, col, "¼Ù°­ESP   :", TR_ESP_EVIL, &f, 0);
-        display_flag_aux(row+ 2, col, "̵À¸ÊªESP :", TR_ESP_NONLIVING, &f, 0);
-        display_flag_aux(row+ 3, col, "Á±ÎÉESP   :", TR_ESP_GOOD, &f, 0);
-        display_flag_aux(row+ 4, col, "ÉÔ»àESP   :", TR_ESP_UNDEAD, &f, 0);
-        display_flag_aux(row+ 5, col, "°­ËâESP   :", TR_ESP_DEMON, &f, 0);
-        display_flag_aux(row+ 6, col, "ζESP     :", TR_ESP_DRAGON, &f, 0);
-        display_flag_aux(row+ 7, col, "¿Í´ÖESP   :", TR_ESP_HUMAN, &f, 0);
-        display_flag_aux(row+ 8, col, "ưʪESP   :", TR_ESP_ANIMAL, &f, 0);
-        display_flag_aux(row+ 9, col, "¥ª¡¼¥¯ESP :", TR_ESP_ORC, &f, 0);
-        display_flag_aux(row+10, col, "¥È¥í¥ëESP :", TR_ESP_TROLL, &f, 0);
-        display_flag_aux(row+11, col, "µð¿ÍESP   :", TR_ESP_GIANT, &f, 0);
-
-        display_flag_aux(row+13, col, "ÏÓÎÏ°Ý»ý  :", TR_SUST_STR, &f, 0);
-        display_flag_aux(row+14, col, "ÃÎÎÏ°Ý»ý  :", TR_SUST_INT, &f, 0);
-        display_flag_aux(row+15, col, "¸­¤µ°Ý»ý  :", TR_SUST_WIS, &f, 0);
-        display_flag_aux(row+16, col, "´ïÍÑ°Ý»ý  :", TR_SUST_DEX, &f, 0);
-        display_flag_aux(row+17, col, "Âѵװݻý  :", TR_SUST_CON, &f, 0);
-        display_flag_aux(row+18, col, "Ì¥ÎÏ°Ý»ý  :", TR_SUST_CHR, &f, 0);
-#else
-        display_flag_aux(row+ 0, col, "Telepathy :", TR_TELEPATHY, &f, 0);
-        display_flag_aux(row+ 1, col, "ESP Evil  :", TR_ESP_EVIL, &f, 0);
-        display_flag_aux(row+ 2, col, "ESP Noliv.:", TR_ESP_NONLIVING, &f, 0);
-        display_flag_aux(row+ 3, col, "ESP Good  :", TR_ESP_GOOD, &f, 0);
-        display_flag_aux(row+ 4, col, "ESP Undead:", TR_ESP_UNDEAD, &f, 0);
-        display_flag_aux(row+ 5, col, "ESP Demon :", TR_ESP_DEMON, &f, 0);
-        display_flag_aux(row+ 6, col, "ESP Dragon:", TR_ESP_DRAGON, &f, 0);
-        display_flag_aux(row+ 7, col, "ESP Human :", TR_ESP_HUMAN, &f, 0);
-        display_flag_aux(row+ 8, col, "ESP Animal:", TR_ESP_ANIMAL, &f, 0);
-        display_flag_aux(row+ 9, col, "ESP Orc   :", TR_ESP_ORC, &f, 0);
-        display_flag_aux(row+10, col, "ESP Troll :", TR_ESP_TROLL, &f, 0);
-        display_flag_aux(row+11, col, "ESP Giant :", TR_ESP_GIANT, &f, 0);
-
-        display_flag_aux(row+13, col, "Sust Str  :", TR_SUST_STR, &f, 0);
-        display_flag_aux(row+14, col, "Sust Int  :", TR_SUST_INT, &f, 0);
-        display_flag_aux(row+15, col, "Sust Wis  :", TR_SUST_WIS, &f, 0);
-        display_flag_aux(row+16, col, "Sust Dex  :", TR_SUST_DEX, &f, 0);
-        display_flag_aux(row+17, col, "Sust Con  :", TR_SUST_CON, &f, 0);
-        display_flag_aux(row+18, col, "Sust Chr  :", TR_SUST_CHR, &f, 0);
+       display_flag_aux(row+ 0, col, "¥Æ¥ì¥Ñ¥·¡¼:", TR_TELEPATHY, &f, 0);
+       display_flag_aux(row+ 1, col, "¼Ù°­ESP   :", TR_ESP_EVIL, &f, 0);
+       display_flag_aux(row+ 2, col, "̵À¸ÊªESP :", TR_ESP_NONLIVING, &f, 0);
+       display_flag_aux(row+ 3, col, "Á±ÎÉESP   :", TR_ESP_GOOD, &f, 0);
+       display_flag_aux(row+ 4, col, "ÉÔ»àESP   :", TR_ESP_UNDEAD, &f, 0);
+       display_flag_aux(row+ 5, col, "°­ËâESP   :", TR_ESP_DEMON, &f, 0);
+       display_flag_aux(row+ 6, col, "ζESP     :", TR_ESP_DRAGON, &f, 0);
+       display_flag_aux(row+ 7, col, "¿Í´ÖESP   :", TR_ESP_HUMAN, &f, 0);
+       display_flag_aux(row+ 8, col, "ưʪESP   :", TR_ESP_ANIMAL, &f, 0);
+       display_flag_aux(row+ 9, col, "¥ª¡¼¥¯ESP :", TR_ESP_ORC, &f, 0);
+       display_flag_aux(row+10, col, "¥È¥í¥ëESP :", TR_ESP_TROLL, &f, 0);
+       display_flag_aux(row+11, col, "µð¿ÍESP   :", TR_ESP_GIANT, &f, 0);
+
+       display_flag_aux(row+13, col, "ÏÓÎÏ°Ý»ý  :", TR_SUST_STR, &f, 0);
+       display_flag_aux(row+14, col, "ÃÎÎÏ°Ý»ý  :", TR_SUST_INT, &f, 0);
+       display_flag_aux(row+15, col, "¸­¤µ°Ý»ý  :", TR_SUST_WIS, &f, 0);
+       display_flag_aux(row+16, col, "´ïÍÑ°Ý»ý  :", TR_SUST_DEX, &f, 0);
+       display_flag_aux(row+17, col, "Âѵװݻý  :", TR_SUST_CON, &f, 0);
+       display_flag_aux(row+18, col, "Ì¥ÎÏ°Ý»ý  :", TR_SUST_CHR, &f, 0);
+#else
+       display_flag_aux(row+ 0, col, "Telepathy :", TR_TELEPATHY, &f, 0);
+       display_flag_aux(row+ 1, col, "ESP Evil  :", TR_ESP_EVIL, &f, 0);
+       display_flag_aux(row+ 2, col, "ESP Noliv.:", TR_ESP_NONLIVING, &f, 0);
+       display_flag_aux(row+ 3, col, "ESP Good  :", TR_ESP_GOOD, &f, 0);
+       display_flag_aux(row+ 4, col, "ESP Undead:", TR_ESP_UNDEAD, &f, 0);
+       display_flag_aux(row+ 5, col, "ESP Demon :", TR_ESP_DEMON, &f, 0);
+       display_flag_aux(row+ 6, col, "ESP Dragon:", TR_ESP_DRAGON, &f, 0);
+       display_flag_aux(row+ 7, col, "ESP Human :", TR_ESP_HUMAN, &f, 0);
+       display_flag_aux(row+ 8, col, "ESP Animal:", TR_ESP_ANIMAL, &f, 0);
+       display_flag_aux(row+ 9, col, "ESP Orc   :", TR_ESP_ORC, &f, 0);
+       display_flag_aux(row+10, col, "ESP Troll :", TR_ESP_TROLL, &f, 0);
+       display_flag_aux(row+11, col, "ESP Giant :", TR_ESP_GIANT, &f, 0);
+
+       display_flag_aux(row+13, col, "Sust Str  :", TR_SUST_STR, &f, 0);
+       display_flag_aux(row+14, col, "Sust Int  :", TR_SUST_INT, &f, 0);
+       display_flag_aux(row+15, col, "Sust Wis  :", TR_SUST_WIS, &f, 0);
+       display_flag_aux(row+16, col, "Sust Dex  :", TR_SUST_DEX, &f, 0);
+       display_flag_aux(row+17, col, "Sust Con  :", TR_SUST_CON, &f, 0);
+       display_flag_aux(row+18, col, "Sust Chr  :", TR_SUST_CHR, &f, 0);
 #endif
 
 
@@ -3273,43 +3273,43 @@ static void display_player_other_flag_info(void)
        c_put_str(TERM_WHITE, "abcdefghijkl@", row-1, col+14);
 
 #ifdef JP
-        display_flag_aux(row+ 0, col, "Äɲù¶·â    :", TR_BLOWS, &f, 0);
-        display_flag_aux(row+ 1, col, "ºÎ·¡        :", TR_TUNNEL, &f, 0);
-        display_flag_aux(row+ 2, col, "ÀÖ³°Àþ»ëÎÏ  :", TR_INFRA, &f, 0);
-        display_flag_aux(row+ 3, col, "ËâË¡Æ»¶ñ»ÙÇÛ:", TR_MAGIC_MASTERY, &f, 0);
-        display_flag_aux(row+ 4, col, "±£Ì©        :", TR_STEALTH, &f, 0);
-        display_flag_aux(row+ 5, col, "õº÷        :", TR_SEARCH, &f, 0);
-
-        display_flag_aux(row+ 7, col, "¾èÇÏ        :", TR_RIDING, &f, 0);
-        display_flag_aux(row+ 8, col, "ÅêÚ³        :", TR_THROW, &f, 0);
-        display_flag_aux(row+ 9, col, "½ËÊ¡        :", TR_BLESSED, &f, 0);
-        display_flag_aux(row+10, col, "È¿¥Æ¥ì¥Ý¡¼¥È:", TR_NO_TELE, &f, 0);
-        display_flag_aux(row+11, col, "È¿ËâË¡      :", TR_NO_MAGIC, &f, 0);
-        display_flag_aux(row+12, col, "¾ÃÈñËâÎϸº¾¯:", TR_DEC_MANA, &f, 0);
-
-        display_flag_aux(row+14, col, "·Ð¸³Ã͸º¾¯  :", TR_DRAIN_EXP, &f, 0);
-        display_flag_aux(row+15, col, "Íð¥Æ¥ì¥Ý¡¼¥È:", TR_TELEPORT, &f, 0);
-        display_flag_aux(row+16, col, "È¿´¶        :", TR_AGGRAVATE, &f, 0);
-        display_flag_aux(row+17, col, "ÂÀ¸Å¤Î±åÇ°  :", TR_TY_CURSE, &f, 0);
-#else
-        display_flag_aux(row+ 0, col, "Add Blows   :", TR_BLOWS, &f, 0);
-        display_flag_aux(row+ 1, col, "Add Tunnel  :", TR_TUNNEL, &f, 0);
-        display_flag_aux(row+ 2, col, "Add Infra   :", TR_INFRA, &f, 0);
-        display_flag_aux(row+ 3, col, "Add Device  :", TR_MAGIC_MASTERY, &f, 0);
-        display_flag_aux(row+ 4, col, "Add Stealth :", TR_STEALTH, &f, 0);
-        display_flag_aux(row+ 5, col, "Add Search  :", TR_SEARCH, &f, 0);
-
-        display_flag_aux(row+ 7, col, "Riding      :", TR_RIDING, &f, 0);
-        display_flag_aux(row+ 8, col, "Throw       :", TR_THROW, &f, 0);
-        display_flag_aux(row+ 9, col, "Blessed     :", TR_BLESSED, &f, 0);
-        display_flag_aux(row+10, col, "No Teleport :", TR_NO_TELE, &f, 0);
-        display_flag_aux(row+11, col, "Anti Magic  :", TR_NO_MAGIC, &f, 0);
-        display_flag_aux(row+12, col, "Econom. Mana:", TR_DEC_MANA, &f, 0);
-
-        display_flag_aux(row+14, col, "Drain Exp   :", TR_DRAIN_EXP, &f, 0);
-        display_flag_aux(row+15, col, "Rnd.Teleport:", TR_TELEPORT, &f, 0);
-        display_flag_aux(row+16, col, "Aggravate   :", TR_AGGRAVATE, &f, 0);
-        display_flag_aux(row+17, col, "TY Curse    :", TR_TY_CURSE, &f, 0);
+       display_flag_aux(row+ 0, col, "Äɲù¶·â    :", TR_BLOWS, &f, 0);
+       display_flag_aux(row+ 1, col, "ºÎ·¡        :", TR_TUNNEL, &f, 0);
+       display_flag_aux(row+ 2, col, "ÀÖ³°Àþ»ëÎÏ  :", TR_INFRA, &f, 0);
+       display_flag_aux(row+ 3, col, "ËâË¡Æ»¶ñ»ÙÇÛ:", TR_MAGIC_MASTERY, &f, 0);
+       display_flag_aux(row+ 4, col, "±£Ì©        :", TR_STEALTH, &f, 0);
+       display_flag_aux(row+ 5, col, "õº÷        :", TR_SEARCH, &f, 0);
+
+       display_flag_aux(row+ 7, col, "¾èÇÏ        :", TR_RIDING, &f, 0);
+       display_flag_aux(row+ 8, col, "ÅêÚ³        :", TR_THROW, &f, 0);
+       display_flag_aux(row+ 9, col, "½ËÊ¡        :", TR_BLESSED, &f, 0);
+       display_flag_aux(row+10, col, "È¿¥Æ¥ì¥Ý¡¼¥È:", TR_NO_TELE, &f, 0);
+       display_flag_aux(row+11, col, "È¿ËâË¡      :", TR_NO_MAGIC, &f, 0);
+       display_flag_aux(row+12, col, "¾ÃÈñËâÎϸº¾¯:", TR_DEC_MANA, &f, 0);
+
+       display_flag_aux(row+14, col, "·Ð¸³Ã͸º¾¯  :", TR_DRAIN_EXP, &f, 0);
+       display_flag_aux(row+15, col, "Íð¥Æ¥ì¥Ý¡¼¥È:", TR_TELEPORT, &f, 0);
+       display_flag_aux(row+16, col, "È¿´¶        :", TR_AGGRAVATE, &f, 0);
+       display_flag_aux(row+17, col, "ÂÀ¸Å¤Î±åÇ°  :", TR_TY_CURSE, &f, 0);
+#else
+       display_flag_aux(row+ 0, col, "Add Blows   :", TR_BLOWS, &f, 0);
+       display_flag_aux(row+ 1, col, "Add Tunnel  :", TR_TUNNEL, &f, 0);
+       display_flag_aux(row+ 2, col, "Add Infra   :", TR_INFRA, &f, 0);
+       display_flag_aux(row+ 3, col, "Add Device  :", TR_MAGIC_MASTERY, &f, 0);
+       display_flag_aux(row+ 4, col, "Add Stealth :", TR_STEALTH, &f, 0);
+       display_flag_aux(row+ 5, col, "Add Search  :", TR_SEARCH, &f, 0);
+
+       display_flag_aux(row+ 7, col, "Riding      :", TR_RIDING, &f, 0);
+       display_flag_aux(row+ 8, col, "Throw       :", TR_THROW, &f, 0);
+       display_flag_aux(row+ 9, col, "Blessed     :", TR_BLESSED, &f, 0);
+       display_flag_aux(row+10, col, "No Teleport :", TR_NO_TELE, &f, 0);
+       display_flag_aux(row+11, col, "Anti Magic  :", TR_NO_MAGIC, &f, 0);
+       display_flag_aux(row+12, col, "Econom. Mana:", TR_DEC_MANA, &f, 0);
+
+       display_flag_aux(row+14, col, "Drain Exp   :", TR_DRAIN_EXP, &f, 0);
+       display_flag_aux(row+15, col, "Rnd.Teleport:", TR_TELEPORT, &f, 0);
+       display_flag_aux(row+16, col, "Aggravate   :", TR_AGGRAVATE, &f, 0);
+       display_flag_aux(row+17, col, "TY Curse    :", TR_TY_CURSE, &f, 0);
 #endif
 
 }
@@ -3833,35 +3833,35 @@ void display_player(int mode)
                        else if (p_ptr->is_dead)
                        {
                                if (!dun_level)
-                                {
+                               {
 #ifdef JP
                                        sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï%s¤Ç%s¤Ë»¦¤µ¤ì¤¿¡£", map_name(), p_ptr->died_from);
 #else
                                        sprintf(statmsg, "...You were killed by %s in %s.", p_ptr->died_from, map_name());
 #endif
-                                }
-                                else if (p_ptr->inside_quest && (p_ptr->inside_quest < MIN_RANDOM_QUEST))
-                                {
-                                        /* Get the quest text */
-                                        /* Bewere that INIT_ASSIGN resets the cur_num. */
-                                        init_flags = INIT_ASSIGN;
+                               }
+                               else if (p_ptr->inside_quest && (p_ptr->inside_quest < MIN_RANDOM_QUEST))
+                               {
+                                       /* Get the quest text */
+                                       /* Bewere that INIT_ASSIGN resets the cur_num. */
+                                       init_flags = INIT_ASSIGN;
 
-                                        process_dungeon_file("q_info_j.txt", 0, 0, 0, 0);
+                                       process_dungeon_file("q_info_j.txt", 0, 0, 0, 0);
 
 #ifdef JP
-                                        sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¡¢¥¯¥¨¥¹¥È¡Ö%s¡×¤Ç%s¤Ë»¦¤µ¤ì¤¿¡£", quest[p_ptr->inside_quest].name, p_ptr->died_from);
+                                       sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¡¢¥¯¥¨¥¹¥È¡Ö%s¡×¤Ç%s¤Ë»¦¤µ¤ì¤¿¡£", quest[p_ptr->inside_quest].name, p_ptr->died_from);
 #else
-                                        sprintf(statmsg, "...You were killed by %s in the quest '%s'.", p_ptr->died_from, quest[p_ptr->inside_quest].name);
+                                       sprintf(statmsg, "...You were killed by %s in the quest '%s'.", p_ptr->died_from, quest[p_ptr->inside_quest].name);
 #endif
-                                }
-                                else
-                                {                                      
+                               }
+                               else
+                               {                                       
 #ifdef JP
-                                        sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¡¢%s¤Î%d³¬¤Ç%s¤Ë»¦¤µ¤ì¤¿¡£", map_name(), dun_level, p_ptr->died_from);
+                                       sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¡¢%s¤Î%d³¬¤Ç%s¤Ë»¦¤µ¤ì¤¿¡£", map_name(), dun_level, p_ptr->died_from);
 #else
-                                        sprintf(statmsg, "...You were killed by %s on level %d of %s.", p_ptr->died_from, dun_level, map_name());
+                                       sprintf(statmsg, "...You were killed by %s on level %d of %s.", p_ptr->died_from, dun_level, map_name());
 #endif
-                                }
+                               }
                        }
                        else if (character_dungeon)
                        {
@@ -3870,38 +3870,38 @@ void display_player(int mode)
 #ifdef JP
                                        sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¸½ºß¡¢ %s ¤Ë¤¤¤ë¡£", map_name());
 #else
-                                       sprintf(statmsg, "...Now, you are in %s.", map_name());
+                                       sprintf(statmsg, "...Now, you are in %s.", map_name());
 #endif
-                                }
-                                else if (p_ptr->inside_quest && (p_ptr->inside_quest < MIN_RANDOM_QUEST))
-                                {
-                                        /* Clear the text */
-                                        /* Must be done before doing INIT_SHOW_TEXT */
-                                        for (i = 0; i < 10; i++)
-                                        {
-                                                quest_text[i][0] = '\0';
-                                        }
-                                        quest_text_line = 0;
+                               }
+                               else if (p_ptr->inside_quest && (p_ptr->inside_quest < MIN_RANDOM_QUEST))
+                               {
+                                       /* Clear the text */
+                                       /* Must be done before doing INIT_SHOW_TEXT */
+                                       for (i = 0; i < 10; i++)
+                                       {
+                                               quest_text[i][0] = '\0';
+                                       }
+                                       quest_text_line = 0;
 
-                                        /* Get the quest text */
-                                        init_flags = INIT_SHOW_TEXT;
+                                       /* Get the quest text */
+                                       init_flags = INIT_SHOW_TEXT;
 
-                                        process_dungeon_file("q_info_j.txt", 0, 0, 0, 0);
+                                       process_dungeon_file("q_info_j.txt", 0, 0, 0, 0);
 
 #ifdef JP
-                                        sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¸½ºß¡¢ ¥¯¥¨¥¹¥È¡Ö%s¡×¤ò¿ë¹ÔÃæ¤À¡£", quest[p_ptr->inside_quest].name);
+                                       sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¸½ºß¡¢ ¥¯¥¨¥¹¥È¡Ö%s¡×¤ò¿ë¹ÔÃæ¤À¡£", quest[p_ptr->inside_quest].name);
 #else
-                                        sprintf(statmsg, "...Now, you are in the quest '%s'.", quest[p_ptr->inside_quest].name);
+                                       sprintf(statmsg, "...Now, you are in the quest '%s'.", quest[p_ptr->inside_quest].name);
 #endif
-                                }                                                      
-                                else
-                                {
+                               }                                                       
+                               else
+                               {
 #ifdef JP
-                                        sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¸½ºß¡¢ %s ¤Î %d ³¬¤Çõº÷¤·¤Æ¤¤¤ë¡£", map_name(), dun_level);
+                                       sprintf(statmsg, "¡Ä¤¢¤Ê¤¿¤Ï¸½ºß¡¢ %s ¤Î %d ³¬¤Çõº÷¤·¤Æ¤¤¤ë¡£", map_name(), dun_level);
 #else
-                                        sprintf(statmsg, "...Now, you are exploring level %d of %s.", dun_level, map_name());
+                                       sprintf(statmsg, "...Now, you are exploring level %d of %s.", dun_level, map_name());
 #endif
-                                }
+                               }
                        }
 
                        if (*statmsg)
@@ -3945,7 +3945,7 @@ void display_player(int mode)
        /* Special */
        else if (mode == 3)
        {
-                display_player_other_flag_info();
+               display_player_other_flag_info();
        }
 
        else if (mode == 4)
@@ -3957,13 +3957,13 @@ void display_player(int mode)
 static bool ang_sort_comp_quest_num(vptr u, vptr v, int a, int b)
 {
        int *q_num = (int *)u;
-        quest_type *qa = &quest[q_num[a]];
-        quest_type *qb = &quest[q_num[b]];
+       quest_type *qa = &quest[q_num[a]];
+       quest_type *qb = &quest[q_num[b]];
 
        if (qa->complev < qb->complev) return TRUE;
        if (qa->complev > qb->complev) return FALSE;
        if (qa->level <= qb->level) return TRUE;
-        return FALSE;
+       return FALSE;
 }
 
 static void ang_sort_swap_quest_num(vptr u, vptr v, int a, int b)
@@ -3991,10 +3991,10 @@ errr make_character_dump(FILE *fff)
 
 #ifdef JP
        fprintf(fff, "  [ÊѶòÈÚÅÜ %d.%d.%d ¥­¥ã¥é¥¯¥¿¾ðÊó]\n\n",
-               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
+               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 #else
        fprintf(fff, "  [Hengband %d.%d.%d Character Dump]\n\n",
-               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
+               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 #endif
 
        update_playtime();
@@ -4023,7 +4023,7 @@ errr make_character_dump(FILE *fff)
 
                /* End the row */
 #ifdef JP
-                        fprintf(fff, "%s\n", buf);
+                       fprintf(fff, "%s\n", buf);
 #else
                fprintf(fff, "%s\n", buf);
 #endif
@@ -4191,22 +4191,22 @@ errr make_character_dump(FILE *fff)
                {
                        if (num < MIN_RANDOM_QUEST)
                        {
-                                int old_quest;
-                        
+                               int old_quest;
+                       
                                /* Set the quest number temporary */
                                old_quest = p_ptr->inside_quest;
                                p_ptr->inside_quest = num;
 
                                /* Get the quest */
-                                init_flags = INIT_ASSIGN;
+                               init_flags = INIT_ASSIGN;
 
                                process_dungeon_file("q_info_j.txt", 0, 0, 0, 0);
 
                                /* Reset the old quest number */
                                p_ptr->inside_quest = old_quest;
 
-                                /* No info from "silent" quests */
-                                if (quest[num].flags & QUEST_FLAG_SILENT) continue;
+                               /* No info from "silent" quests */
+                               if (quest[num].flags & QUEST_FLAG_SILENT) continue;
                        }
 
                        total++;
@@ -4215,29 +4215,29 @@ errr make_character_dump(FILE *fff)
                        {
                                /* Print the quest info */
 
-                                if (quest[num].complev == 0)
-                                {
-                                        fprintf(fff, 
+                               if (quest[num].complev == 0)
+                               {
+                                       fprintf(fff, 
 #ifdef JP
-                                                "  %s (%d³¬) - ÉÔÀᄀ\n",
+                                               "  %s (%d³¬) - ÉÔÀᄀ\n",
 #else
-                                                "  %s (Dungeon level: %d) - (Cancelled)\n",
+                                               "  %s (Dungeon level: %d) - (Cancelled)\n",
 #endif
-                                                r_name+r_info[quest[num].r_idx].name,
-                                                quest[num].level);
-                                }
-                                else
-                                {
-                                        fprintf(fff, 
+                                               r_name+r_info[quest[num].r_idx].name,
+                                               quest[num].level);
+                               }
+                               else
+                               {
+                                       fprintf(fff, 
 #ifdef JP
-                                                "  %s (%d³¬) - ¥ì¥Ù¥ë%d\n",
+                                               "  %s (%d³¬) - ¥ì¥Ù¥ë%d\n",
 #else
-                                                "  %s (Dungeon level: %d) - level %d\n",
+                                               "  %s (Dungeon level: %d) - level %d\n",
 #endif
-                                                r_name+r_info[quest[num].r_idx].name,
-                                                quest[num].level,
-                                                quest[num].complev);
-                                }
+                                               r_name+r_info[quest[num].r_idx].name,
+                                               quest[num].level,
+                                               quest[num].complev);
+                               }
                        }
                        else
                        {
@@ -4272,7 +4272,7 @@ errr make_character_dump(FILE *fff)
                {
                        if (num < MIN_RANDOM_QUEST)
                        {
-                                int old_quest;
+                               int old_quest;
 
                                /* Set the quest number temporary */
                                old_quest = p_ptr->inside_quest;
@@ -4286,8 +4286,8 @@ errr make_character_dump(FILE *fff)
                                /* Reset the old quest number */
                                p_ptr->inside_quest = old_quest;
 
-                                /* No info from "silent" quests */
-                                if (quest[num].flags & QUEST_FLAG_SILENT) continue;
+                               /* No info from "silent" quests */
+                               if (quest[num].flags & QUEST_FLAG_SILENT) continue;
                        }
 
                        total++;
@@ -4350,7 +4350,7 @@ errr make_character_dump(FILE *fff)
 #ifdef JP
        fprintf(fff, "\n µ¢´Ô¾ì½ê:\n");
 #else
-        fprintf(fff, "\n Recall Depth:\n");
+       fprintf(fff, "\n Recall Depth:\n");
 #endif
        for (y = 1; y < max_d_idx; y++)
        {
@@ -4388,21 +4388,21 @@ errr make_character_dump(FILE *fff)
 
        if (ironman_autoscum)
 #ifdef JP
-               fprintf(fff, "\n ¼«Æ°Áª¤ê¹¥¤ß  :     ALWAYS");
+               fprintf(fff, "\n ¼«Æ°Áª¤ê¹¥¤ß  :     ALWAYS");
 #else
                fprintf(fff, "\n Autoscum:           ALWAYS");
 #endif
 
        else if (auto_scum)
 #ifdef JP
-               fprintf(fff, "\n ¼«Æ°Áª¤ê¹¥¤ß  :     ON");
+               fprintf(fff, "\n ¼«Æ°Áª¤ê¹¥¤ß  :     ON");
 #else
                fprintf(fff, "\n Autoscum:           ON");
 #endif
 
        else
 #ifdef JP
-               fprintf(fff, "\n ¼«Æ°Áª¤ê¹¥¤ß  :     OFF");
+               fprintf(fff, "\n ¼«Æ°Áª¤ê¹¥¤ß  :     OFF");
 #else
                fprintf(fff, "\n Autoscum:           OFF");
 #endif
@@ -4500,7 +4500,7 @@ errr make_character_dump(FILE *fff)
 
        else
 #ifdef JP
-               fprintf(fff, "\n ¥¢¥ê¡¼¥Ê:           OFF");
+               fprintf(fff, "\n ¥¢¥ê¡¼¥Ê:           OFF");
 #else
                fprintf(fff, "\n Arena Levels:       OFF");
 #endif
@@ -4742,7 +4742,7 @@ fprintf(fff, "  [ 
 #ifdef JP
                                fprintf(fff, "\n ( %d ¥Ú¡¼¥¸ )\n", x++);
 #else
-                               fprintf(fff, "\n ( page %d )\n", x++);
+                               fprintf(fff, "\n ( page %d )\n", x++);
 #endif
                        object_desc(o_name, &st_ptr->stock[i], TRUE, 3);
                        fprintf(fff, "%c%s %s\n", I2A(i%12), paren, o_name);
@@ -4771,11 +4771,11 @@ fprintf(fff, "  [ 
                for (i = 0; i < st_ptr->stock_num; i++)
                {
 #ifdef JP
-                if ((i % 12) == 0) fprintf(fff, "\n ( %d ¥Ú¡¼¥¸ )\n", x++);
+               if ((i % 12) == 0) fprintf(fff, "\n ( %d ¥Ú¡¼¥¸ )\n", x++);
                        object_desc(o_name, &st_ptr->stock[i], TRUE, 3);
                        fprintf(fff, "%c%s %s\n", I2A(i%12), paren, o_name);
 #else
-                if ((i % 12) == 0) fprintf(fff, "\n ( page %d )\n", x++);
+               if ((i % 12) == 0) fprintf(fff, "\n ( page %d )\n", x++);
                        object_desc(o_name, &st_ptr->stock[i], TRUE, 3);
                        fprintf(fff, "%c%s %s\n", I2A(i%12), paren, o_name);
 #endif
@@ -4787,9 +4787,9 @@ fprintf(fff, "  [ 
        }
 
 #ifdef JP
-        fprintf(fff, "  [¥Á¥§¥Ã¥¯¥µ¥à: \"%s\"]\n\n", get_check_sum());
+       fprintf(fff, "  [¥Á¥§¥Ã¥¯¥µ¥à: \"%s\"]\n\n", get_check_sum());
 #else
-        fprintf(fff, "  [Check Sum: \"%s\"]\n\n", get_check_sum());
+       fprintf(fff, "  [Check Sum: \"%s\"]\n\n", get_check_sum());
 #endif
 
        return 0;
@@ -4829,7 +4829,7 @@ errr file_character(cptr name, bool full)
 
                /* Build query */
 #ifdef JP
-                (void)sprintf(out_val, "¸½Â¸¤¹¤ë¥Õ¥¡¥¤¥ë %s ¤Ë¾å½ñ¤­¤·¤Þ¤¹¤«? ", buf);
+               (void)sprintf(out_val, "¸½Â¸¤¹¤ë¥Õ¥¡¥¤¥ë %s ¤Ë¾å½ñ¤­¤·¤Þ¤¹¤«? ", buf);
 #else
                (void)sprintf(out_val, "Replace existing file %s? ", buf);
 #endif
@@ -4847,12 +4847,12 @@ errr file_character(cptr name, bool full)
        {
                /* Message */
 #ifdef JP
-                prt("¥­¥ã¥é¥¯¥¿¾ðÊó¤Î¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤­½Ð¤·¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡ª", 0, 0);
+               prt("¥­¥ã¥é¥¯¥¿¾ðÊó¤Î¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤­½Ð¤·¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡ª", 0, 0);
 #else
                prt("Character dump failed!", 0, 0);
 #endif
 
-                (void)inkey();
+               (void)inkey();
 
                /* Error */
                return (-1);
@@ -5115,7 +5115,7 @@ msg_format("'%s'
                        else if (str[6] == '<')
                        {
                                str[strlen(str) - 1] = '\0';
-                                if (tag && streq(str + 7, tag)) line = next;
+                               if (tag && streq(str + 7, tag)) line = next;
                        }
 
                        /* Skip this */
@@ -5290,8 +5290,8 @@ msg_format("'%s'
                                "[Hengband %d.%d.%d, %s, Line %d/%d]",
 #endif
 
-                          FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH,
-                          caption, line, size), 0, 0);
+                          FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH,
+                          caption, line, size), 0, 0);
                }
                else
                {
@@ -5500,7 +5500,7 @@ strcpy(tmp, "jhelp.hlp");
                        /* Close it */
                        my_fclose(fff);
 
-                        /* Drop priv's */
+                       /* Drop priv's */
                        safe_setuid_drop();
 
                        /* Build the filename */
@@ -6012,9 +6012,9 @@ long total_points(void)
 
        if (mult < 5) mult = 5;
 
-        for (i = 0; i < max_d_idx; i++)
-                if(max_dlv[i] > max_dl)
-                        max_dl = max_dlv[i];
+       for (i = 0; i < max_d_idx; i++)
+               if(max_dlv[i] > max_dl)
+                       max_dl = max_dlv[i];
 
        point_l = (p_ptr->max_exp + (100 * max_dl));
        point_h = point_l / 0x10000L;
@@ -6203,7 +6203,7 @@ static void print_tomb(void)
                if (p_ptr->total_winner || (p_ptr->lev > PY_MAX_LEVEL))
                {
 #ifdef JP
-                /* ±ÑÆüÀÚ¤êÂؤ¨ */
+               /* ±ÑÆüÀÚ¤êÂؤ¨ */
                  p= "°ÎÂç¤Ê¤ë¼Ô";
 #else
                        p = "Magnificent";
@@ -6261,57 +6261,57 @@ static void print_tomb(void)
                put_str(buf, 13, 11);
 
 #ifdef JP
-        /* Êè¤Ë¹ï¤à¸ÀÍÕ¤ò¥ª¥ê¥¸¥Ê¥ë¤è¤êºÙ¤«¤¯É½¼¨ */
-        if (streq(p_ptr->died_from, "ÅÓÃ潪λ"))
-        {
-                strcpy(tmp, "<¼«»¦>");
-        }
-        else
-        {
-                if (streq(p_ptr->died_from, "ripe"))
-                {
-                        strcpy(tmp, "°úÂà¸å¤ËÅ·¼÷¤òÁ´¤¦");
-                }
-                else if (streq(p_ptr->died_from, "Seppuku"))
-                {
-                        strcpy(tmp, "¾¡Íø¤Î¸å¡¢ÀÚÊ¢");
-                }
-                else
-                {
-                        strcpy(tmp, p_ptr->died_from);
-                }
-        }
-        center_string(buf, tmp);
-        put_str(buf, 14, 11);
-
-        if(!streq(p_ptr->died_from, "ripe") && !streq(p_ptr->died_from, "Seppuku"))
-        {
-                if( dun_level == 0 )
-                {
+       /* Êè¤Ë¹ï¤à¸ÀÍÕ¤ò¥ª¥ê¥¸¥Ê¥ë¤è¤êºÙ¤«¤¯É½¼¨ */
+       if (streq(p_ptr->died_from, "ÅÓÃ潪λ"))
+       {
+               strcpy(tmp, "<¼«»¦>");
+       }
+       else
+       {
+               if (streq(p_ptr->died_from, "ripe"))
+               {
+                       strcpy(tmp, "°úÂà¸å¤ËÅ·¼÷¤òÁ´¤¦");
+               }
+               else if (streq(p_ptr->died_from, "Seppuku"))
+               {
+                       strcpy(tmp, "¾¡Íø¤Î¸å¡¢ÀÚÊ¢");
+               }
+               else
+               {
+                       strcpy(tmp, p_ptr->died_from);
+               }
+       }
+       center_string(buf, tmp);
+       put_str(buf, 14, 11);
+
+       if(!streq(p_ptr->died_from, "ripe") && !streq(p_ptr->died_from, "Seppuku"))
+       {
+               if( dun_level == 0 )
+               {
                        cptr town = (p_ptr->town_num ? "³¹" : "¹ÓÌî");
-                        if(streq(p_ptr->died_from, "ÅÓÃ潪λ"))
-                        {
-                                sprintf(tmp, "%s¤Ç»à¤ó¤À", town);
-                        }
-                        else
-                        {
-                                sprintf(tmp, "¤Ë%s¤Ç»¦¤µ¤ì¤¿", town);
-                        }
-                }
-                else
-                {
-                        if(streq(p_ptr->died_from, "ÅÓÃ潪λ"))
-                        {
-                                sprintf(tmp, "Ãϲ¼ %d ³¬¤Ç»à¤ó¤À", dun_level);
-                        }
-                        else
-                        {
-                                sprintf(tmp, "¤ËÃϲ¼ %d ³¬¤Ç»¦¤µ¤ì¤¿", dun_level);
-                        }
-                }
-                center_string(buf, tmp);
-                put_str(buf, 15, 11);
-        }
+                       if(streq(p_ptr->died_from, "ÅÓÃ潪λ"))
+                       {
+                               sprintf(tmp, "%s¤Ç»à¤ó¤À", town);
+                       }
+                       else
+                       {
+                               sprintf(tmp, "¤Ë%s¤Ç»¦¤µ¤ì¤¿", town);
+                       }
+               }
+               else
+               {
+                       if(streq(p_ptr->died_from, "ÅÓÃ潪λ"))
+                       {
+                               sprintf(tmp, "Ãϲ¼ %d ³¬¤Ç»à¤ó¤À", dun_level);
+                       }
+                       else
+                       {
+                               sprintf(tmp, "¤ËÃϲ¼ %d ³¬¤Ç»¦¤µ¤ì¤¿", dun_level);
+                       }
+               }
+               center_string(buf, tmp);
+               put_str(buf, 15, 11);
+       }
 #else
                (void)sprintf(tmp, "Killed on Level %d", dun_level);
                center_string(buf, tmp);
@@ -6907,7 +6907,7 @@ errr get_rnd_line(cptr file_name, int entry, char *output)
                                {
                                        /* Error while converting the monster number */
                                        msg_format("Error in line %d of %s!",
-                                                 line_num, file_name);
+                                                 line_num, file_name);
                                        my_fclose(fp);
                                        return (-1);
                                }
@@ -6946,7 +6946,7 @@ errr get_rnd_line(cptr file_name, int entry, char *output)
 
                        /* Reached end of file without finding the number */
                        msg_format("Error in line %d of %s!",
-                                 line_num, file_name);
+                                 line_num, file_name);
 
                        my_fclose(fp);
                        return (-1);
@@ -6971,7 +6971,7 @@ errr get_rnd_line(cptr file_name, int entry, char *output)
                                        break;
                        }
 
-                        if (test==0)
+                       if (test==0)
                        {
                                /* Found the line */
                                if (counter == line) break;
@@ -6980,7 +6980,7 @@ errr get_rnd_line(cptr file_name, int entry, char *output)
                        {
                                /* Error - End of file */
                                msg_format("Error in line %d of %s!",
-                                         line_num, file_name);
+                                         line_num, file_name);
 
                                my_fclose(fp);
                                return (-1);
@@ -7334,7 +7334,7 @@ static void handle_signal_abort(int sig)
 #ifdef JP
 "¶²¤í¤·¤¤¥½¥Õ¥È¤Î¥Ð¥°¤¬Èô¤Ó¤«¤«¤Ã¤Æ¤­¤¿¡ª");
 #else
-                   "A gruesome software bug LEAPS out at you!");
+                   "A gruesome software bug LEAPS out at you!");
 #endif
 
 
index 13b185c..65b72ab 100644 (file)
@@ -497,7 +497,7 @@ static bool object_flavor(int k_idx)
 void get_table_name(char *out_string)
 {
 #ifdef JP
-        char Syllable[80];
+       char Syllable[80];
        strcpy(out_string, "¡Ø");
        get_rnd_line("aname_j.txt", 1, Syllable);
        strcat(out_string, Syllable);
@@ -945,7 +945,7 @@ char *object_desc_kosuu(char *t, object_type *o_ptr)
       case TV_FOOD:
       {
          if(o_ptr->sval == SV_FOOD_JERKY)
-          {
+         {
              t = object_desc_str(t, "ÀÚ¤ì");
              break;
          }
@@ -1095,7 +1095,7 @@ static flag_insc_table flag_insc_misc[] =
        { "Éâ", "Lv", TR_FEATHER, -1 },
        { "ÌÀ", "Lu", TR_LITE, -1 },
        { "·Ù", "Wr", TR_WARNING, -1 },
-        { "ÇÜ", "Xm", TR_XTRA_MIGHT, -1 },
+       { "ÇÜ", "Xm", TR_XTRA_MIGHT, -1 },
        { "¼Í", "Xs", TR_XTRA_SHOTS, -1 },
        { "ÅÜ", "Ag", TR_AGGRAVATE, -1 },
        { "½Ë", "Bs", TR_BLESSED, -1 },
@@ -1193,95 +1193,95 @@ static flag_insc_table flag_insc_sust[] =
 #else
 static flag_insc_table flag_insc_plus[] =
 {
-       { "At", TR_BLOWS, -1 },
-       { "Sp", TR_SPEED, -1 },
-       { "St", TR_STR, -1 },
-       { "In", TR_INT, -1 },
-       { "Wi", TR_WIS, -1 },
-       { "Dx", TR_DEX, -1 },
-       { "Cn", TR_CON, -1 },
-       { "Ch", TR_CHR, -1 },
-       { "Sl", TR_STEALTH, -1 },
-       { "Sr", TR_SEARCH, -1 },
-       { "If", TR_INFRA, -1 },
-       { "Dg", TR_TUNNEL, -1 },
-       { NULL, 0, -1 }
+       { "At", TR_BLOWS, -1 },
+       { "Sp", TR_SPEED, -1 },
+       { "St", TR_STR, -1 },
+       { "In", TR_INT, -1 },
+       { "Wi", TR_WIS, -1 },
+       { "Dx", TR_DEX, -1 },
+       { "Cn", TR_CON, -1 },
+       { "Ch", TR_CHR, -1 },
+       { "Sl", TR_STEALTH, -1 },
+       { "Sr", TR_SEARCH, -1 },
+       { "If", TR_INFRA, -1 },
+       { "Dg", TR_TUNNEL, -1 },
+       { NULL, 0, -1 }
 };
 
 static flag_insc_table flag_insc_immune[] =
 {
-       { "Ac", TR_IM_ACID, -1 },
-       { "El", TR_IM_ELEC, -1 },
-       { "Fi", TR_IM_FIRE, -1 },
-       { "Co", TR_IM_COLD, -1 },
-       { NULL, 0, -1 }
+       { "Ac", TR_IM_ACID, -1 },
+       { "El", TR_IM_ELEC, -1 },
+       { "Fi", TR_IM_FIRE, -1 },
+       { "Co", TR_IM_COLD, -1 },
+       { NULL, 0, -1 }
 };
 
 static flag_insc_table flag_insc_resistance[] =
 {
-       { "Ac", TR_RES_ACID, TR_IM_ACID },
-       { "El", TR_RES_ELEC, TR_IM_ELEC },
-       { "Fi", TR_RES_FIRE, TR_IM_FIRE },
-       { "Co", TR_RES_COLD, TR_IM_COLD },
-       { "Po", TR_RES_POIS, -1 },
-       { "Li", TR_RES_LITE, -1 },
-       { "Dk", TR_RES_DARK, -1 },
-       { "Sh", TR_RES_SHARDS, -1 },
-       { "Bl", TR_RES_BLIND, -1 },
-       { "Cf", TR_RES_CONF, -1 },
-       { "So", TR_RES_SOUND, -1 },
-       { "Nt", TR_RES_NETHER, -1 },
-       { "Nx", TR_RES_NEXUS, -1 },
-       { "Ca", TR_RES_CHAOS, -1 },
-       { "Di", TR_RES_DISEN, -1 },
-       { "Fe", TR_RES_FEAR, -1 },
-       { NULL, 0, -1 }
+       { "Ac", TR_RES_ACID, TR_IM_ACID },
+       { "El", TR_RES_ELEC, TR_IM_ELEC },
+       { "Fi", TR_RES_FIRE, TR_IM_FIRE },
+       { "Co", TR_RES_COLD, TR_IM_COLD },
+       { "Po", TR_RES_POIS, -1 },
+       { "Li", TR_RES_LITE, -1 },
+       { "Dk", TR_RES_DARK, -1 },
+       { "Sh", TR_RES_SHARDS, -1 },
+       { "Bl", TR_RES_BLIND, -1 },
+       { "Cf", TR_RES_CONF, -1 },
+       { "So", TR_RES_SOUND, -1 },
+       { "Nt", TR_RES_NETHER, -1 },
+       { "Nx", TR_RES_NEXUS, -1 },
+       { "Ca", TR_RES_CHAOS, -1 },
+       { "Di", TR_RES_DISEN, -1 },
+       { "Fe", TR_RES_FEAR, -1 },
+       { NULL, 0, -1 }
 };
 
 static flag_insc_table flag_insc_misc[] =
 {
-       { "Ma", TR_DEC_MANA, -1 },
-       { "Th", TR_THROW, -1 },
-       { "Rf", TR_REFLECT, -1 },
-       { "Fa", TR_FREE_ACT, -1 },
-       { "Si", TR_SEE_INVIS, -1 },
-       { "Hl", TR_HOLD_LIFE, -1 },
-       { "Sd", TR_SLOW_DIGEST, -1 },
-       { "Rg", TR_REGEN, -1 },
-       { "Lv", TR_FEATHER, -1 },
-       { "Lu", TR_LITE, -1 },
+       { "Ma", TR_DEC_MANA, -1 },
+       { "Th", TR_THROW, -1 },
+       { "Rf", TR_REFLECT, -1 },
+       { "Fa", TR_FREE_ACT, -1 },
+       { "Si", TR_SEE_INVIS, -1 },
+       { "Hl", TR_HOLD_LIFE, -1 },
+       { "Sd", TR_SLOW_DIGEST, -1 },
+       { "Rg", TR_REGEN, -1 },
+       { "Lv", TR_FEATHER, -1 },
+       { "Lu", TR_LITE, -1 },
        { "Wr", TR_WARNING, -1 },
        { "Xm", TR_XTRA_MIGHT, -1 },
-       { "Xs", TR_XTRA_SHOTS, -1 },
-       { "Ag", TR_AGGRAVATE, -1 },
-       { "Bs", TR_BLESSED, -1 },
-       { "Ty", TR_TY_CURSE, -1 },
-       { NULL, 0, -1 }
+       { "Xs", TR_XTRA_SHOTS, -1 },
+       { "Ag", TR_AGGRAVATE, -1 },
+       { "Bs", TR_BLESSED, -1 },
+       { "Ty", TR_TY_CURSE, -1 },
+       { NULL, 0, -1 }
 };
 
 static flag_insc_table flag_insc_aura[] =
 {
-       { "F", TR_SH_FIRE, -1 },
-       { "E", TR_SH_ELEC, -1 },
-       { "C", TR_SH_COLD, -1 },
-       { "M", TR_NO_MAGIC, -1 },
-       { "T", TR_NO_TELE, -1 },
-       { NULL, 0, -1 }
+       { "F", TR_SH_FIRE, -1 },
+       { "E", TR_SH_ELEC, -1 },
+       { "C", TR_SH_COLD, -1 },
+       { "M", TR_NO_MAGIC, -1 },
+       { "T", TR_NO_TELE, -1 },
+       { NULL, 0, -1 }
 };
 
 static flag_insc_table flag_insc_brand[] =
 {
-       { "A", TR_BRAND_ACID, -1 },
-       { "E", TR_BRAND_ELEC, -1 },
-       { "F", TR_BRAND_FIRE, -1 },
-       { "Co", TR_BRAND_COLD, -1 },
-       { "P", TR_BRAND_POIS, -1 },
-       { "Ca", TR_CHAOTIC, -1 },
-       { "V", TR_VAMPIRIC, -1 },
-       { "Q", TR_IMPACT, -1 },
-       { "S", TR_VORPAL, -1 },
-       { "M", TR_FORCE_WEAPON, -1 },
-       { NULL, 0, -1 }
+       { "A", TR_BRAND_ACID, -1 },
+       { "E", TR_BRAND_ELEC, -1 },
+       { "F", TR_BRAND_FIRE, -1 },
+       { "Co", TR_BRAND_COLD, -1 },
+       { "P", TR_BRAND_POIS, -1 },
+       { "Ca", TR_CHAOTIC, -1 },
+       { "V", TR_VAMPIRIC, -1 },
+       { "Q", TR_IMPACT, -1 },
+       { "S", TR_VORPAL, -1 },
+       { "M", TR_FORCE_WEAPON, -1 },
+       { NULL, 0, -1 }
 };
 
 static flag_insc_table flag_insc_kill[] =
@@ -1337,13 +1337,13 @@ static flag_insc_table flag_insc_esp2[] =
 
 static flag_insc_table flag_insc_sust[] =
 {
-       { "St", TR_SUST_STR, -1 },
-       { "In", TR_SUST_INT, -1 },
-       { "Wi", TR_SUST_WIS, -1 },
-       { "Dx", TR_SUST_DEX, -1 },
-       { "Cn", TR_SUST_CON, -1 },
-       { "Ch", TR_SUST_CHR, -1 },
-       { NULL, 0, -1 }
+       { "St", TR_SUST_STR, -1 },
+       { "In", TR_SUST_INT, -1 },
+       { "Wi", TR_SUST_WIS, -1 },
+       { "Dx", TR_SUST_DEX, -1 },
+       { "Cn", TR_SUST_CON, -1 },
+       { "Ch", TR_SUST_CHR, -1 },
+       { NULL, 0, -1 }
 };
 #endif
 
@@ -1393,7 +1393,7 @@ static bool have_flag_of(flag_insc_table *fi_ptr, u32b flgs[TR_FLAG_SIZE])
  */
 static void get_inscription(char *buff, object_type *o_ptr)
 {
-        cptr insc = quark_str(o_ptr->inscription);
+       cptr insc = quark_str(o_ptr->inscription);
        char *ptr = buff;
        char *prev_ptr = buff;
 
@@ -1401,20 +1401,20 @@ static void get_inscription(char *buff, object_type *o_ptr)
 
        /* Not fully identified */
        if (!(o_ptr->ident & IDENT_MENTAL))
-        {
-                /* Copy until end of line or '#' */
-                while (*insc)
-                {
-                        if (*insc == '#') break;
+       {
+               /* Copy until end of line or '#' */
+               while (*insc)
+               {
+                       if (*insc == '#') break;
 #ifdef JP
-                        if (iskanji(*insc)) *buff++ = *insc++;
+                       if (iskanji(*insc)) *buff++ = *insc++;
 #endif
-                        *buff++ = *insc++;
-                }
+                       *buff++ = *insc++;
+               }
 
-                *buff = '\0';
-                return;
-        }
+               *buff = '\0';
+               return;
+       }
 
        /* Extract the flags */
        object_flags(o_ptr, flgs);
@@ -1423,13 +1423,13 @@ static void get_inscription(char *buff, object_type *o_ptr)
        *buff = '\0';
        for (; *insc; insc++)
        {
-                bool kanji = FALSE;
-                bool all;
+               bool kanji = FALSE;
+               bool all;
 
-                /* Ignore fake artifact inscription */
-                if (*insc == '#') break;
+               /* Ignore fake artifact inscription */
+               if (*insc == '#') break;
 
-                /* {%} will be automatically converted */
+               /* {%} will be automatically converted */
                else if ('%' == *insc)
                {
                        cptr start_percent = ptr;
@@ -1477,14 +1477,14 @@ static void get_inscription(char *buff, object_type *o_ptr)
 
                                if (o_ptr->name2)
                                {
-                                        bool teleport = have_flag(flgs, TR_TELEPORT);
+                                       bool teleport = have_flag(flgs, TR_TELEPORT);
                                        ego_item_type *e_ptr = &e_info[o_ptr->name2];
                                        
                                        for (j = 0; j < TR_FLAG_SIZE; j++)
                                                flgs[j] &= ~e_ptr->flags[j];
 
-                                        /* Always inscribe {.} for random teleport */
-                                        if (teleport) add_flag(flgs, TR_TELEPORT);
+                                       /* Always inscribe {.} for random teleport */
+                                       if (teleport) add_flag(flgs, TR_TELEPORT);
                                }
                        }
 
@@ -1556,23 +1556,23 @@ static void get_inscription(char *buff, object_type *o_ptr)
                        ptr = inscribe_flags_aux(flag_insc_slay, flgs, kanji, ptr);
 
                        /* Esp */
-                        if (kanji)
-                        {
-                                if (have_flag_of(flag_insc_esp1, flgs) ||
-                                    have_flag_of(flag_insc_esp2, flgs))
-                                        ADD_INSC("~");
-                                ptr = inscribe_flags_aux(flag_insc_esp1, flgs, kanji, ptr);
-                                ptr = inscribe_flags_aux(flag_insc_esp2, flgs, kanji, ptr);
-                        }
-                        else
-                        {
-                                if (have_flag_of(flag_insc_esp1, flgs))
-                                        ADD_INSC("~");
-                                ptr = inscribe_flags_aux(flag_insc_esp1, flgs, kanji, ptr);
-                                if (have_flag_of(flag_insc_esp2, flgs))
-                                        ADD_INSC("~");
-                                ptr = inscribe_flags_aux(flag_insc_esp2, flgs, kanji, ptr);
-                        }
+                       if (kanji)
+                       {
+                               if (have_flag_of(flag_insc_esp1, flgs) ||
+                                   have_flag_of(flag_insc_esp2, flgs))
+                                       ADD_INSC("~");
+                               ptr = inscribe_flags_aux(flag_insc_esp1, flgs, kanji, ptr);
+                               ptr = inscribe_flags_aux(flag_insc_esp2, flgs, kanji, ptr);
+                       }
+                       else
+                       {
+                               if (have_flag_of(flag_insc_esp1, flgs))
+                                       ADD_INSC("~");
+                               ptr = inscribe_flags_aux(flag_insc_esp1, flgs, kanji, ptr);
+                               if (have_flag_of(flag_insc_esp2, flgs))
+                                       ADD_INSC("~");
+                               ptr = inscribe_flags_aux(flag_insc_esp2, flgs, kanji, ptr);
+                       }
 
                        /* Random Teleport */
                        if (have_flag(flgs, TR_TELEPORT))
@@ -1595,7 +1595,7 @@ static void get_inscription(char *buff, object_type *o_ptr)
                        *ptr++ = *insc;
                }
        }
-        *ptr = '\0';
+       *ptr = '\0';
 }
 
 
@@ -2023,9 +2023,9 @@ void object_desc(char *buf, object_type *o_ptr, int pref, int mode)
                {
                        modstr = basenm;
 #ifdef JP
-                        basenm = "& ÍÓÈé»æ - #";
+                       basenm = "& ÍÓÈé»æ - #";
 #else
-                        basenm = "& Parchement~ - #";
+                       basenm = "& Parchement~ - #";
 #endif
                        break;
                }
@@ -2213,7 +2213,7 @@ void object_desc(char *buf, object_type *o_ptr, int pref, int mode)
                default:
                {
 #ifdef JP
-                        strcpy(buf, "(¤Ê¤·)");
+                       strcpy(buf, "(¤Ê¤·)");
 #else
                        strcpy(buf, "(nothing)");
 #endif
@@ -2376,40 +2376,40 @@ void object_desc(char *buf, object_type *o_ptr, int pref, int mode)
                t = object_desc_str(t,format("ÃÃÌê»Õ%s¤Î",player_name));
        }
 
-        /* ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¡¢Ì¾¤Î¤¢¤ë¥¢¥¤¥Æ¥à¤Î̾Á°¤òÉղ乤ë */
-        if (known) {
-                /* ¥é¥ó¥À¥à¡¦¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È */
+       /* ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¡¢Ì¾¤Î¤¢¤ë¥¢¥¤¥Æ¥à¤Î̾Á°¤òÉղ乤ë */
+       if (known) {
+               /* ¥é¥ó¥À¥à¡¦¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È */
                if (o_ptr->art_name)
                {       char temp[256];
-                       strcpy(temp, quark_str(o_ptr->art_name));
-                        /* '¡Ø' ¤«¤é»Ï¤Þ¤é¤Ê¤¤ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ½é¤ËÉղ乤ë */
-                        /* ±Ñ¸ìÈǤΥ»¡¼¥Ö¥Õ¥¡¥¤¥ë¤«¤éÍ褿 'of XXX' ¤Ï,¡ÖXXX¤Î¡×¤Èɽ¼¨¤¹¤ë */
+                       strcpy(temp, quark_str(o_ptr->art_name));
+                       /* '¡Ø' ¤«¤é»Ï¤Þ¤é¤Ê¤¤ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ½é¤ËÉղ乤ë */
+                       /* ±Ñ¸ìÈǤΥ»¡¼¥Ö¥Õ¥¡¥¤¥ë¤«¤éÍ褿 'of XXX' ¤Ï,¡ÖXXX¤Î¡×¤Èɽ¼¨¤¹¤ë */
                        if ( strncmp( temp , "of ",3)==0 ) {t=object_desc_str(t,&temp[3]);t=object_desc_str(t,"¤Î");}
                        else 
-                        if ( strncmp( temp , "¡Ø" , 2 ) != 0 && temp[0]!='\'')
-                                t=object_desc_str(t,  temp);
-               }
-                /* ÅÁÀâ¤Î¥¢¥¤¥Æ¥à */
-                else if (o_ptr->name1 && !have_flag(flgs, TR_FULL_NAME)) {
-                        artifact_type *a_ptr = &a_info[o_ptr->name1];
-                        /* '¡Ø' ¤«¤é»Ï¤Þ¤é¤Ê¤¤ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ½é¤ËÉղ乤ë */
-                        if ( strncmp( (a_name + a_ptr->name), "¡Ø" , 2) != 0){
-                                t=object_desc_str(t, (a_name + a_ptr->name));
-                        }
-                }
-                /* Ì¾¤Î¤¢¤ë¥¢¥¤¥Æ¥à */
-                else if (o_ptr->name2) {
-                        ego_item_type *e_ptr = &e_info[o_ptr->name2];
-                        t=object_desc_str(t, (e_name + e_ptr->name));
-                }
-        }
+                       if ( strncmp( temp , "¡Ø" , 2 ) != 0 && temp[0]!='\'')
+                               t=object_desc_str(t,  temp);
+               }
+               /* ÅÁÀâ¤Î¥¢¥¤¥Æ¥à */
+               else if (o_ptr->name1 && !have_flag(flgs, TR_FULL_NAME)) {
+                       artifact_type *a_ptr = &a_info[o_ptr->name1];
+                       /* '¡Ø' ¤«¤é»Ï¤Þ¤é¤Ê¤¤ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ½é¤ËÉղ乤ë */
+                       if ( strncmp( (a_name + a_ptr->name), "¡Ø" , 2) != 0){
+                               t=object_desc_str(t, (a_name + a_ptr->name));
+                       }
+               }
+               /* Ì¾¤Î¤¢¤ë¥¢¥¤¥Æ¥à */
+               else if (o_ptr->name2) {
+                       ego_item_type *e_ptr = &e_info[o_ptr->name2];
+                       t=object_desc_str(t, (e_name + e_ptr->name));
+               }
+       }
 #endif
        /* Copy the string */
        for (; *s; s++)
        {
                /* Pluralizer */
 #ifdef JP
-                if (*s == '#')
+               if (*s == '#')
 #else
                if (*s == '~')
                {
@@ -2468,27 +2468,27 @@ void object_desc(char *buf, object_type *o_ptr, int pref, int mode)
 
 
 #ifdef JP
-        /* '¡Ø'¤«¤é»Ï¤Þ¤ëÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ¸å¤ËÉղ乤ë */
-        if (known) {
+       /* '¡Ø'¤«¤é»Ï¤Þ¤ëÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤Î̾Á°¤ÏºÇ¸å¤ËÉղ乤ë */
+       if (known) {
                /* ¥é¥ó¥À¥à¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤Î̾Á°¤Ï¥»¡¼¥Ö¥Õ¥¡¥¤¥ë¤Ëµ­Ï¿
-                   ¤µ¤ì¤ë¤Î¤Ç¡¢±Ñ¸ìÈǤÎ̾Á°¤â¤½¤ì¤é¤·¤¯ÊÑ´¹¤¹¤ë */
+                  ¤µ¤ì¤ë¤Î¤Ç¡¢±Ñ¸ìÈǤÎ̾Á°¤â¤½¤ì¤é¤·¤¯ÊÑ´¹¤¹¤ë */
                if (o_ptr->art_name)
                {       char temp[256];int itemp;
-                       strcpy(temp, quark_str(o_ptr->art_name));
+                       strcpy(temp, quark_str(o_ptr->art_name));
                        /* MEGA HACK by ita*/
-                                if ( strncmp( temp , "¡Ø" , 2 ) == 0 ) t=object_desc_str(t,  temp);else
+                               if ( strncmp( temp , "¡Ø" , 2 ) == 0 ) t=object_desc_str(t,  temp);else
                         if( temp[0]=='\'' ) { itemp=strlen(temp);temp[itemp-1]=0; 
                         t=object_desc_str(t,"¡Ø");
                         t=object_desc_str(t,&temp[1]);
                         t=object_desc_str(t,"¡Ù");}
-                                
-               }
-                else if (o_ptr->name1) {
-                                artifact_type *a_ptr = &a_info[o_ptr->name1];
-                                if ( strncmp( (a_name + a_ptr->name) , "¡Ø" , 2 ) == 0 ){
-                                        t=object_desc_str(t, (a_name + a_ptr->name));
-                                }
-                }
+                               
+               }
+               else if (o_ptr->name1) {
+                               artifact_type *a_ptr = &a_info[o_ptr->name1];
+                               if ( strncmp( (a_name + a_ptr->name) , "¡Ø" , 2 ) == 0 ){
+                                       t=object_desc_str(t, (a_name + a_ptr->name));
+                               }
+               }
                else if (o_ptr->inscription)
                {
                        cptr str = quark_str(o_ptr->inscription);
@@ -2514,7 +2514,7 @@ void object_desc(char *buf, object_type *o_ptr, int pref, int mode)
                                t=object_desc_str(t,"¡Ù");
                        }
                }
-        }
+       }
 #else
        if ((o_ptr->tval > TV_CAPTURE) && o_ptr->xtra3)
        {
@@ -2962,7 +2962,7 @@ t = object_desc_str(t, "(
                }
                t = object_desc_num(t, o_ptr->pval);
 #ifdef JP
-                t = object_desc_str(t, "²óʬ");
+               t = object_desc_str(t, "²óʬ");
 #else
                t = object_desc_str(t, " charge");
 
@@ -2992,8 +2992,8 @@ t = object_desc_str(t, "(
                                /* Find out how many rods are charging, by dividing
                                 * current timeout by each rod's maximum timeout.
                                 * Ensure that any remainder is rounded up.  Display
-                                * very discharged stacks as merely fully discharged.
-                                */
+                                * very discharged stacks as merely fully discharged.
+                                */
                                power = (o_ptr->timeout + (k_ptr->pval - 1)) / k_ptr->pval;
                                if (power > o_ptr->number) power = o_ptr->number;
 
@@ -3206,15 +3206,15 @@ strcpy(tmp_val2, "̤Ƚ
        /* Use the standard inscription if available */
        if (o_ptr->inscription)
        {
-                char buff[1024];
+               char buff[1024];
 
                if (tmp_val2[0]) strcat(tmp_val2, ", ");
 
-                /* Get inscription and convert {%} */
-                get_inscription(buff, o_ptr);
+               /* Get inscription and convert {%} */
+               get_inscription(buff, o_ptr);
 
-                /* strcat with correct treating of kanji */
-                my_strcat(tmp_val2, buff, sizeof(tmp_val2));
+               /* strcat with correct treating of kanji */
+               my_strcat(tmp_val2, buff, sizeof(tmp_val2));
        }
 
        /* Note the discount, if any */
index 4fa9baa..3d2a4c2 100644 (file)
@@ -137,17 +137,17 @@ static bool alloc_stairs(int feat, int num, int walls)
        }
        else if (feat == FEAT_MORE)
        {
-                int q_idx = quest_number(dun_level);
+               int q_idx = quest_number(dun_level);
 
                /* No downstairs on quest levels */
                if (dun_level > 1 && q_idx)
-                {
+               {
                        monster_race *r_ptr = &r_info[quest[q_idx].r_idx];
 
                        /* The quest monster(s) is still alive? */
                        if (!(r_ptr->flags1 & RF1_UNIQUE) || 0 < r_ptr->max_num)
-                                return TRUE;
-                }
+                               return TRUE;
+               }
 
                /* No downstairs at the bottom */
                if (dun_level >= d_info[dungeon_type].maxdepth) return TRUE;
@@ -178,8 +178,8 @@ static bool alloc_stairs(int feat, int num, int walls)
                                /* Require a certain number of adjacent walls */
                                if (next_to_walls(y, x) < walls) continue;
 
-                                /* Clear possible garbage of hidden trap */
-                                c_ptr->mimic = 0;
+                               /* Clear possible garbage of hidden trap */
+                               c_ptr->mimic = 0;
 
                                /* Clear previous contents, add stairs */
                                if (i < more_num) c_ptr->feat = feat+0x07;
@@ -317,7 +317,7 @@ static int next_to_corr(int y1, int x1)
 
                /* Skip non "empty floor" grids */
                if (!is_floor_grid(c_ptr))
-                        continue;
+                       continue;
 
                /* Skip grids inside rooms */
                if (c_ptr->info & (CAVE_ROOM)) continue;
@@ -409,14 +409,14 @@ static bool cave_gen(void)
 
        dun_data dun_body;
 
-        /* Fill the arrays of floors and walls in the good proportions */
-        for (i = 0; i < 100; i++)
-        {
-                int lim1, lim2, lim3;
+       /* Fill the arrays of floors and walls in the good proportions */
+       for (i = 0; i < 100; i++)
+       {
+               int lim1, lim2, lim3;
 
-                lim1 = d_info[dungeon_type].floor_percent1;
-                lim2 = lim1 + d_info[dungeon_type].floor_percent2;
-                lim3 = lim2 + d_info[dungeon_type].floor_percent3;
+               lim1 = d_info[dungeon_type].floor_percent1;
+               lim2 = lim1 + d_info[dungeon_type].floor_percent2;
+               lim3 = lim2 + d_info[dungeon_type].floor_percent3;
 
                if (i < lim1)
                        floor_type[i] = d_info[dungeon_type].floor1;
@@ -434,14 +434,14 @@ static bool cave_gen(void)
                        fill_type[i] = d_info[dungeon_type].fill_type2;
                else if (i < lim3)
                        fill_type[i] = d_info[dungeon_type].fill_type3;
-        }
+       }
 
        /* Prepare allocation table */
        get_mon_num_prep(get_monster_hook(), NULL);
 
-        feat_wall_outer = d_info[dungeon_type].outer_wall;
-        feat_wall_inner = d_info[dungeon_type].inner_wall;
-        feat_wall_solid = d_info[dungeon_type].outer_wall;
+       feat_wall_outer = d_info[dungeon_type].outer_wall;
+       feat_wall_inner = d_info[dungeon_type].inner_wall;
+       feat_wall_solid = d_info[dungeon_type].outer_wall;
 
        /* Global data */
        dun = &dun_body;
@@ -753,7 +753,7 @@ if (cheat_room) msg_print("
        /* Hack -- Add some rivers */
        if (one_in_(3) && (randint1(dun_level) > 5))
        {
-               /* Choose water or lava */
+               /* Choose water or lava */
                if ((randint1(MAX_DEPTH * 2) - 1 > dun_level) && (d_info[dungeon_type].flags1 & DF1_WATER_RIVER))
                {
                        feat1 = FEAT_DEEP_WATER;
@@ -767,11 +767,11 @@ if (cheat_room) msg_print("
                else feat1 = 0;
 
 
-               /* Only add river if matches lake type or if have no lake at all */
-               if ((((laketype == 1) && (feat1 == FEAT_DEEP_LAVA)) ||
-                   ((laketype == 2) && (feat1 == FEAT_DEEP_WATER)) ||
+               /* Only add river if matches lake type or if have no lake at all */
+               if ((((laketype == 1) && (feat1 == FEAT_DEEP_LAVA)) ||
+                   ((laketype == 2) && (feat1 == FEAT_DEEP_WATER)) ||
                     (laketype == 0)) && feat1)
-               {
+               {
                        add_river(feat1, feat2);
                }
        }
@@ -1067,29 +1067,29 @@ msg_format("
        alloc_object(ALLOC_SET_BOTH, ALLOC_TYP_OBJECT, randnor(DUN_AMT_ITEM, 3));
        alloc_object(ALLOC_SET_BOTH, ALLOC_TYP_GOLD, randnor(DUN_AMT_GOLD, 3));
 
-        /* Put an Artifact and Artifact Guardian is requested */
-        if(d_info[dungeon_type].final_guardian && (d_info[dungeon_type].maxdepth == dun_level))
-        {
-                int oy;
-                int ox;
-                int try = 4000;
-
-                /* Find a good position */
-                while(try)
-                {
-                        /* Get a random spot */
-                        oy = randint1(cur_hgt - 4) + 2;
-                        ox = randint1(cur_wid - 4) + 2;
-
-                        /* Is it a good spot ? */
-                        if (cave_empty_bold2(oy, ox) && monster_can_cross_terrain(cave[oy][ox].feat, &r_info[d_info[dungeon_type].final_guardian]))
+       /* Put an Artifact and Artifact Guardian is requested */
+       if(d_info[dungeon_type].final_guardian && (d_info[dungeon_type].maxdepth == dun_level))
+       {
+               int oy;
+               int ox;
+               int try = 4000;
+
+               /* Find a good position */
+               while(try)
+               {
+                       /* Get a random spot */
+                       oy = randint1(cur_hgt - 4) + 2;
+                       ox = randint1(cur_wid - 4) + 2;
+
+                       /* Is it a good spot ? */
+                       if (cave_empty_bold2(oy, ox) && monster_can_cross_terrain(cave[oy][ox].feat, &r_info[d_info[dungeon_type].final_guardian]))
                        {
                                /* Place the guardian */
                                if (place_monster_aux(0, oy, ox, d_info[dungeon_type].final_guardian, (PM_ALLOW_GROUP | PM_NO_KAGE | PM_NO_PET))) break;
                        }
-                        /* One less try */
-                        try--;
-                }
+                       /* One less try */
+                       try--;
+               }
        }
 
        if ((empty_level && (!one_in_(DARK_EMPTY) || (randint1(100) > dun_level))) && !(d_info[dungeon_type].flags1 & DF1_DARKNESS))
@@ -1441,7 +1441,7 @@ static byte extract_feeling(void)
        /* Hack -- Have a special feeling sometimes */
        if (good_item_flag && !preserve_mode) return 1;
 
-       if (rating > 100) return 2;
+       if (rating > 100) return 2;
        if (rating > 80) return 3;
        if (rating > 60) return 4;
        if (rating > 40) return 5;
@@ -1510,7 +1510,7 @@ static void place_pet(void)
                        cave[cy][cx].m_idx = m_idx;
 
                        m_ptr->r_idx = party_mon[i].r_idx;
-                        r_ptr = &r_info[m_ptr->r_idx];
+                       r_ptr = &r_info[m_ptr->r_idx];
 
                        m_ptr->ap_r_idx = party_mon[i].ap_r_idx;
                        m_ptr->sub_align = party_mon[i].sub_align;
index 88ffead..af47ed5 100644 (file)
@@ -110,11 +110,11 @@ void place_random_stairs(int y, int x)
 void place_random_door(int y, int x)
 {
        int tmp;
-        cave_type *c_ptr = &cave[y][x];
+       cave_type *c_ptr = &cave[y][x];
 
-        /* Initialize mimic info */
-        c_ptr->mimic = 0;
-        
+       /* Initialize mimic info */
+       c_ptr->mimic = 0;
+       
        if (d_info[dungeon_type].flags1 & DF1_NO_DOORS)
        {
                place_floor_bold(y, x);
@@ -142,17 +142,17 @@ void place_random_door(int y, int x)
        else if (tmp < 600)
        {
                /* Create secret door */
-                place_closed_door(y, x);
+               place_closed_door(y, x);
 
-                /* Hide */
-                c_ptr->mimic = fill_type[randint0(100)];
+               /* Hide */
+               c_ptr->mimic = fill_type[randint0(100)];
 
-                /* Floor type terrain cannot hide a door */
-                if (!(c_ptr->mimic & 0x20))
-                {
-                        c_ptr->feat = c_ptr->mimic;
-                        c_ptr->mimic = 0;
-                }
+               /* Floor type terrain cannot hide a door */
+               if (!(c_ptr->mimic & 0x20))
+               {
+                       c_ptr->feat = c_ptr->mimic;
+                       c_ptr->mimic = 0;
+               }
        }
 
        /* Closed, locked, or stuck doors (400/1000) */
index 4d23966..de7979e 100644 (file)
@@ -88,15 +88,15 @@ cptr            p = "ɬ
 #else
        (void)strnfmt(out_val, 78, "(%^ss %c-%c, *=List, ESC=exit) Use which %s? ",
 #endif
-        p, I2A(0), "abcdefghijklmnopqrstuvwxyz012345"[num-1], p);
+       p, I2A(0), "abcdefghijklmnopqrstuvwxyz012345"[num-1], p);
 
        if (use_menu) screen_save();
 
        /* Get a spell from the user */
 
-        choice= always_show_list ? ESCAPE:1 ;
-        while (!flag)
-        {
+       choice= always_show_list ? ESCAPE:1 ;
+       while (!flag)
+       {
                if(choice==ESCAPE) choice = ' '; 
                else if( !get_com(out_val, &choice, FALSE) )break;
 
@@ -235,8 +235,8 @@ put_str("name              Lv  SP      name              Lv  SP ", y, x + 5);
 
                                        /* Dump the spell --(-- */
                                        strcat(psi_desc, format(" %-18s%2d %3d",
-                                               spell_names[technic2magic(REALM_HISSATSU)-1][i],
-                                               spell.slevel, spell.smana));
+                                               spell_names[technic2magic(REALM_HISSATSU)-1][i],
+                                               spell.slevel, spell.smana));
                                        prt(psi_desc, y + (line%17) + (line >= 17), x+(line/17)*30);
                                        prt("", y + (line%17) + (line >= 17) + 1, x+(line/17)*30);
                                }
@@ -674,7 +674,7 @@ static bool cast_hissatsu_spell(int spell)
                cave[y][x].info &= ~(CAVE_MARK);
 
                /* Destroy the feature */
-                cave_set_feat(y, x, floor_type[randint0(100)]);
+               cave_set_feat(y, x, floor_type[randint0(100)]);
 
                /* Update some things */
                p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MONSTERS | PU_MON_LITE);
@@ -894,13 +894,13 @@ static bool cast_hissatsu_spell(int spell)
                if (dir == 5) return FALSE;
                for (i = 0; i < 3; i++)
                {
-                        int oy, ox;
-                        int ny, nx;
-                        int m_idx;
-                        monster_type *m_ptr;
+                       int oy, ox;
+                       int ny, nx;
+                       int m_idx;
+                       monster_type *m_ptr;
 
-                        y = py + ddy[dir];
-                        x = px + ddx[dir];
+                       y = py + ddy[dir];
+                       x = px + ddx[dir];
 
                        if (cave[y][x].m_idx)
                                py_attack(y, x, HISSATSU_3DAN);
@@ -919,78 +919,78 @@ static bool cast_hissatsu_spell(int spell)
                                return TRUE;
                        }
 
-                        /* Monster is dead? */
+                       /* Monster is dead? */
                        if (!cave[y][x].m_idx) break;
 
-                        ny = y + ddy[dir];
-                        nx = x + ddx[dir];
-                        m_idx = cave[y][x].m_idx;
-                        m_ptr = &m_list[m_idx];
+                       ny = y + ddy[dir];
+                       nx = x + ddx[dir];
+                       m_idx = cave[y][x].m_idx;
+                       m_ptr = &m_list[m_idx];
 
-                        /* Monster cannot move back? */
-                        if (!monster_can_enter(ny, nx, &r_info[m_ptr->r_idx])) continue;
+                       /* Monster cannot move back? */
+                       if (!monster_can_enter(ny, nx, &r_info[m_ptr->r_idx])) continue;
 
-                        cave[y][x].m_idx = 0;
-                        cave[ny][nx].m_idx = m_idx;
-                        m_ptr->fy = ny;
-                        m_ptr->fx = nx;
+                       cave[y][x].m_idx = 0;
+                       cave[ny][nx].m_idx = m_idx;
+                       m_ptr->fy = ny;
+                       m_ptr->fx = nx;
 
-                        update_mon(m_idx, TRUE);
+                       update_mon(m_idx, TRUE);
 
-                        /* Player can move forward? */
-                        if (player_can_enter(cave[y][x].feat))
-                        {
-                                /* Save the old location */
-                                oy = py;
-                                ox = px;
+                       /* Player can move forward? */
+                       if (player_can_enter(cave[y][x].feat))
+                       {
+                               /* Save the old location */
+                               oy = py;
+                               ox = px;
 
-                                /* Move the player */
-                                py = y;
-                                px = x;
+                               /* Move the player */
+                               py = y;
+                               px = x;
 
-                                if (p_ptr->riding)
-                                {
-                                        int tmp;
-                                        tmp = cave[py][px].m_idx;
-                                        cave[py][px].m_idx = cave[oy][ox].m_idx;
-                                        cave[oy][ox].m_idx = tmp;
-                                        m_list[p_ptr->riding].fy = py;
-                                        m_list[p_ptr->riding].fx = px;
-                                        update_mon(cave[py][px].m_idx, TRUE);
-                                }
+                               if (p_ptr->riding)
+                               {
+                                       int tmp;
+                                       tmp = cave[py][px].m_idx;
+                                       cave[py][px].m_idx = cave[oy][ox].m_idx;
+                                       cave[oy][ox].m_idx = tmp;
+                                       m_list[p_ptr->riding].fy = py;
+                                       m_list[p_ptr->riding].fx = px;
+                                       update_mon(cave[py][px].m_idx, TRUE);
+                               }
 
-                                forget_flow();
+                               forget_flow();
 
-                                /* Redraw the old spot */
-                                lite_spot(oy, ox);
+                               /* Redraw the old spot */
+                               lite_spot(oy, ox);
 
-                                /* Redraw the new spot */
-                                lite_spot(py, px);
-                        }
+                               /* Redraw the new spot */
+                               lite_spot(py, px);
+                       }
 
-                        /* Redraw the old spot */
-                        lite_spot(y, x);
+                       /* Redraw the old spot */
+                       lite_spot(y, x);
 
-                        /* Redraw the new spot */
-                        lite_spot(ny, nx);
+                       /* Redraw the new spot */
+                       lite_spot(ny, nx);
 
-                        /* Check for new panel (redraw map) */
-                        verify_panel();
+                       /* Check for new panel (redraw map) */
+                       verify_panel();
 
-                        /* Update stuff */
-                        p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW);
+                       /* Update stuff */
+                       p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW);
 
-                        /* Update the monsters */
-                        p_ptr->update |= (PU_DISTANCE);
+                       /* Update the monsters */
+                       p_ptr->update |= (PU_DISTANCE);
 
-                        /* Window stuff */
-                        p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
+                       /* Window stuff */
+                       p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
 
-                        /* Handle stuff */
-                        handle_stuff();
+                       /* Handle stuff */
+                       handle_stuff();
 
-                        /* -more- */
-                        if (i < 2) msg_print(NULL);
+                       /* -more- */
+                       if (i < 2) msg_print(NULL);
                }
                break;
        }
index ca4328f..4028321 100644 (file)
@@ -97,7 +97,7 @@ struct header
 };
 
 extern errr init_info_txt(FILE *fp, char *buf, header *head,
-                          parse_info_txt_func parse_info_txt_line);
+                         parse_info_txt_func parse_info_txt_line);
 
 #ifdef ALLOW_TEMPLATES
 extern errr parse_z_info(char *buf, header *head);
index 5cbdd96..291bfde 100644 (file)
@@ -658,38 +658,38 @@ static cptr k_info_gen_flags[] =
  */
 static cptr d_info_flags1[] =
 {
-        "WINNER",
-        "MAZE",
-        "SMALLEST",
-        "BEGINNER",
-        "BIG",
-        "NO_DOORS",
-        "WATER_RIVER",
-        "LAVA_RIVER",
-        "WATER_RIVERS",
-        "LAVA_RIVERS",
-        "CAVE",
-        "CAVERN",
-        "NO_UP",
-        "HOT",
-        "COLD",
-        "NO_DOWN",
-        "FORGET",
-        "LAKE_WATER",
-        "LAKE_LAVA",
-        "LAKE_RUBBLE",
-        "LAKE_TREE",
-        "NO_VAULT",
-        "ARENA",
-        "DESTROY",
-        "XXX1",
-        "NO_CAVE",
-        "NO_MAGIC",
-        "NO_MELEE",
-        "CHAMELEON",
-        "DARKNESS",
-        "XXX1",
-        "XXX1"
+       "WINNER",
+       "MAZE",
+       "SMALLEST",
+       "BEGINNER",
+       "BIG",
+       "NO_DOORS",
+       "WATER_RIVER",
+       "LAVA_RIVER",
+       "WATER_RIVERS",
+       "LAVA_RIVERS",
+       "CAVE",
+       "CAVERN",
+       "NO_UP",
+       "HOT",
+       "COLD",
+       "NO_DOWN",
+       "FORGET",
+       "LAKE_WATER",
+       "LAKE_LAVA",
+       "LAKE_RUBBLE",
+       "LAKE_TREE",
+       "NO_VAULT",
+       "ARENA",
+       "DESTROY",
+       "XXX1",
+       "NO_CAVE",
+       "NO_MAGIC",
+       "NO_MELEE",
+       "CHAMELEON",
+       "DARKNESS",
+       "XXX1",
+       "XXX1"
 };
 
 
@@ -792,7 +792,7 @@ byte color_char_to_attr(char c)
  * Initialize an "*_info" array, by parsing an ascii "template" file
  */
 errr init_info_txt(FILE *fp, char *buf, header *head,
-                   parse_info_txt_func parse_info_txt_line)
+                  parse_info_txt_func parse_info_txt_line)
 {
        errr err;
 
@@ -827,16 +827,16 @@ errr init_info_txt(FILE *fp, char *buf, header *head,
                        continue;
                }
 
-                /* Mega Hack -- Calculate Check Sum */
-                if (buf[0] != 'N' && buf[0] != 'D')
-                {
-                        int i;
-                        for (i = 0; buf[i]; i++)
-                        {
-                                head->v_extra += (byte)buf[i];
-                                head->v_extra ^= (1 << (i % 8));
-                        }
-                }
+               /* Mega Hack -- Calculate Check Sum */
+               if (buf[0] != 'N' && buf[0] != 'D')
+               {
+                       int i;
+                       for (i = 0; buf[i]; i++)
+                       {
+                               head->v_extra += (byte)buf[i];
+                               head->v_extra ^= (1 << (i % 8));
+                       }
+               }
 
                /* Parse the line */
                if ((err = (*parse_info_txt_line)(buf, head)) != 0)
@@ -2398,18 +2398,18 @@ static errr grab_one_dungeon_flag(dungeon_info_type *d_ptr, cptr what)
        /* Scan flags1 */
        for (i = 0; i < 32; i++)
        {
-                if (streq(what, d_info_flags1[i]))
+               if (streq(what, d_info_flags1[i]))
                {
-                        d_ptr->flags1 |= (1L << i);
+                       d_ptr->flags1 |= (1L << i);
                        return (0);
                }
        }
 
        /* Oops */
 #ifdef JP
-        msg_format("̤ÃΤΥÀ¥ó¥¸¥ç¥ó¡¦¥Õ¥é¥° '%s'¡£", what);
+       msg_format("̤ÃΤΥÀ¥ó¥¸¥ç¥ó¡¦¥Õ¥é¥° '%s'¡£", what);
 #else
-        msg_format("Unknown dungeon type flag '%s'.", what);
+       msg_format("Unknown dungeon type flag '%s'.", what);
 #endif
 
        /* Failure */
@@ -2426,9 +2426,9 @@ static errr grab_one_basic_monster_flag(dungeon_info_type *d_ptr, cptr what)
        /* Scan flags1 */
        for (i = 0; i < 32; i++)
        {
-                if (streq(what, r_info_flags1[i]))
+               if (streq(what, r_info_flags1[i]))
                {
-                        d_ptr->mflags1 |= (1L << i);
+                       d_ptr->mflags1 |= (1L << i);
                        return (0);
                }
        }
@@ -2438,7 +2438,7 @@ static errr grab_one_basic_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags2[i]))
                {
-                        d_ptr->mflags2 |= (1L << i);
+                       d_ptr->mflags2 |= (1L << i);
                        return (0);
                }
        }
@@ -2448,7 +2448,7 @@ static errr grab_one_basic_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags3[i]))
                {
-                        d_ptr->mflags3 |= (1L << i);
+                       d_ptr->mflags3 |= (1L << i);
                        return (0);
                }
        }
@@ -2456,9 +2456,9 @@ static errr grab_one_basic_monster_flag(dungeon_info_type *d_ptr, cptr what)
        /* Scan flags7 */
        for (i = 0; i < 32; i++)
        {
-                if (streq(what, r_info_flags7[i]))
+               if (streq(what, r_info_flags7[i]))
                {
-                        d_ptr->mflags7 |= (1L << i);
+                       d_ptr->mflags7 |= (1L << i);
                        return (0);
                }
        }
@@ -2468,7 +2468,7 @@ static errr grab_one_basic_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags8[i]))
                {
-                        d_ptr->mflags8 |= (1L << i);
+                       d_ptr->mflags8 |= (1L << i);
                        return (0);
                }
        }
@@ -2478,7 +2478,7 @@ static errr grab_one_basic_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags9[i]))
                {
-                        d_ptr->mflags9 |= (1L << i);
+                       d_ptr->mflags9 |= (1L << i);
                        return (0);
                }
        }
@@ -2506,7 +2506,7 @@ static errr grab_one_spell_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags4[i]))
                {
-                        d_ptr->mflags4 |= (1L << i);
+                       d_ptr->mflags4 |= (1L << i);
                        return (0);
                }
        }
@@ -2516,7 +2516,7 @@ static errr grab_one_spell_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags5[i]))
                {
-                        d_ptr->mflags5 |= (1L << i);
+                       d_ptr->mflags5 |= (1L << i);
                        return (0);
                }
        }
@@ -2526,7 +2526,7 @@ static errr grab_one_spell_monster_flag(dungeon_info_type *d_ptr, cptr what)
        {
                if (streq(what, r_info_flags6[i]))
                {
-                        d_ptr->mflags6 |= (1L << i);
+                       d_ptr->mflags6 |= (1L << i);
                        return (0);
                }
        }
@@ -2670,7 +2670,7 @@ errr parse_d_info(char *buf, header *head)
 
                /* Scan for the values */
                if (7 != sscanf(buf+2, "%d:%d:%d:%d:%d:%d:%d",
-                                &f1, &p1, &f2, &p2, &f3, &p3, &tunnel)) return (1);
+                               &f1, &p1, &f2, &p2, &f3, &p3, &tunnel)) return (1);
 
                /* Save the values */
                d_ptr->floor1 = f1;
@@ -2723,7 +2723,7 @@ errr parse_d_info(char *buf, header *head)
                                while (*t == ' ' || *t == '|') t++;
                        }
 
-                                /* XXX XXX XXX Hack -- Read Final Artifact */
+                               /* XXX XXX XXX Hack -- Read Final Artifact */
                        if (1 == sscanf(s, "FINAL_ARTIFACT_%d", &artif))
                        {
                                /* Extract a "Final Artifact" */
@@ -2736,7 +2736,7 @@ errr parse_d_info(char *buf, header *head)
                                continue;
                        }
 
-                                /* XXX XXX XXX Hack -- Read Final Object */
+                               /* XXX XXX XXX Hack -- Read Final Object */
                        if (1 == sscanf(s, "FINAL_OBJECT_%d", &artif))
                        {
                                /* Extract a "Final Artifact" */
@@ -2749,7 +2749,7 @@ errr parse_d_info(char *buf, header *head)
                                continue;
                        }
 
-                                /* XXX XXX XXX Hack -- Read Artifact Guardian */
+                               /* XXX XXX XXX Hack -- Read Artifact Guardian */
                        if (1 == sscanf(s, "FINAL_GUARDIAN_%d", &monst))
                        {
                                /* Extract a "Artifact Guardian" */
@@ -2762,7 +2762,7 @@ errr parse_d_info(char *buf, header *head)
                                continue;
                        }
 
-                                /* XXX XXX XXX Hack -- Read Special Percentage */
+                               /* XXX XXX XXX Hack -- Read Special Percentage */
                        if (1 == sscanf(s, "MONSTER_DIV_%d", &monst))
                        {
                                /* Extract a "Special %" */
@@ -2801,7 +2801,7 @@ errr parse_d_info(char *buf, header *head)
                                while (*t == ' ' || *t == '|') t++;
                        }
 
-                                /* XXX XXX XXX Hack -- Read monster symbols */
+                               /* XXX XXX XXX Hack -- Read monster symbols */
                        if (1 == sscanf(s, "R_CHAR_%c", &r_char))
                        {
                                /* Limited to 5 races */
@@ -3369,12 +3369,12 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
                        {
                                place_trap(*y, *x);
                        }
-                        /* Hidden trap (or door) */
-                        else if (letter[idx].trap)
-                        {
-                                c_ptr->mimic = c_ptr->feat;
-                                c_ptr->feat = letter[idx].trap;
-                        }
+                       /* Hidden trap (or door) */
+                       else if (letter[idx].trap)
+                       {
+                               c_ptr->mimic = c_ptr->feat;
+                               c_ptr->feat = letter[idx].trap;
+                       }
                        else if (object_index)
                        {
                                /* Get local object */
@@ -3618,10 +3618,10 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
                                max_e_idx = atoi(zz[1]);
                        }
 
-                        /* Maximum d_idx */
-                        else if (zz[0][0] == 'D')
+                       /* Maximum d_idx */
+                       else if (zz[0][0] == 'D')
                        {
-                                max_d_idx = atoi(zz[1]); 
+                               max_d_idx = atoi(zz[1]); 
                        }
 
                        /* Maximum o_idx */
@@ -3839,7 +3839,7 @@ static cptr process_dungeon_file_expr(char **sp, char *fp)
                        else if (streq(b+1, "RACE"))
                        {
 #ifdef JP
-                                v = rp_ptr->E_title;
+                               v = rp_ptr->E_title;
 #else
                                v = rp_ptr->title;
 #endif
@@ -3849,7 +3849,7 @@ static cptr process_dungeon_file_expr(char **sp, char *fp)
                        else if (streq(b+1, "CLASS"))
                        {
 #ifdef JP
-                                v = cp_ptr->E_title;
+                               v = cp_ptr->E_title;
 #else
                                v = cp_ptr->title;
 #endif
@@ -3861,7 +3861,7 @@ static cptr process_dungeon_file_expr(char **sp, char *fp)
 #ifdef JP
                                v = E_realm_names[p_ptr->realm1];
 #else
-                                v = realm_names[p_ptr->realm1];
+                               v = realm_names[p_ptr->realm1];
 #endif
                        }
 
@@ -3869,7 +3869,7 @@ static cptr process_dungeon_file_expr(char **sp, char *fp)
                        else if (streq(b+1, "REALM2"))
                        {
 #ifdef JP
-                                v = E_realm_names[p_ptr->realm2];
+                               v = E_realm_names[p_ptr->realm2];
 #else
                                v = realm_names[p_ptr->realm2];
 #endif
index f2126a8..920b17f 100644 (file)
@@ -251,15 +251,15 @@ cptr err_str[PARSE_ERROR_MAX] =
 {
        NULL,
 #ifdef JP
-        "ʸˡ¥¨¥é¡¼",
-        "¸Å¤¤¥Õ¥¡¥¤¥ë",
-        "µ­Ï¿¥Ø¥Ã¥À¤¬¤Ê¤¤",
-        "ÉÔϢ³¥ì¥³¡¼¥É",
-        "¤ª¤«¤·¤Ê¥Õ¥é¥°Â¸ºß",
-        "̤ÄêµÁÌ¿Îá",
-        "¥á¥â¥êÉÔ­",
-        "ºÂɸÈϰϳ°",
-        "°ú¿ôÉÔ­",
+       "ʸˡ¥¨¥é¡¼",
+       "¸Å¤¤¥Õ¥¡¥¤¥ë",
+       "µ­Ï¿¥Ø¥Ã¥À¤¬¤Ê¤¤",
+       "ÉÔϢ³¥ì¥³¡¼¥É",
+       "¤ª¤«¤·¤Ê¥Õ¥é¥°Â¸ºß",
+       "̤ÄêµÁÌ¿Îá",
+       "¥á¥â¥êÉÔ­",
+       "ºÂɸÈϰϳ°",
+       "°ú¿ôÉÔ­",
 #else
        "parse error",
        "obsolete file",
@@ -452,7 +452,7 @@ static errr init_info(cptr filename, header *head,
        {
 #ifdef CHECK_MODIFICATION_TIME
 
-                err = check_modification_date(fd, format("%s_j.txt", filename));
+               err = check_modification_date(fd, format("%s_j.txt", filename));
 
 #endif /* CHECK_MODIFICATION_TIME */
 
@@ -652,7 +652,7 @@ static errr init_f_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("f_info", &f_head,
-                        (void*)&f_info, (void*)&f_name, (void*)&f_text);
+                        (void*)&f_info, (void*)&f_name, (void*)&f_text);
 }
 
 
@@ -672,7 +672,7 @@ static errr init_k_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("k_info", &k_head,
-                        (void*)&k_info, (void*)&k_name, (void*)&k_text);
+                        (void*)&k_info, (void*)&k_name, (void*)&k_text);
 }
 
 
@@ -693,7 +693,7 @@ static errr init_a_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("a_info", &a_head,
-                        (void*)&a_info, (void*)&a_name, (void*)&a_text);
+                        (void*)&a_info, (void*)&a_name, (void*)&a_text);
 }
 
 
@@ -714,7 +714,7 @@ static errr init_e_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("e_info", &e_head,
-                        (void*)&e_info, (void*)&e_name, (void*)&e_text);
+                        (void*)&e_info, (void*)&e_name, (void*)&e_text);
 }
 
 
@@ -735,7 +735,7 @@ static errr init_r_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("r_info", &r_head,
-                        (void*)&r_info, (void*)&r_name, (void*)&r_text);
+                        (void*)&r_info, (void*)&r_name, (void*)&r_text);
 }
 
 
@@ -756,7 +756,7 @@ static errr init_d_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("d_info", &d_head,
-                        (void*)&d_info, (void*)&d_name, (void*)&d_text);
+                        (void*)&d_info, (void*)&d_name, (void*)&d_text);
 }
 
 
@@ -779,7 +779,7 @@ errr init_v_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("v_info", &v_head,
-                        (void*)&v_info, (void*)&v_name, (void*)&v_text);
+                        (void*)&v_info, (void*)&v_name, (void*)&v_text);
 }
 
 
@@ -799,7 +799,7 @@ static errr init_s_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("s_info", &s_head,
-                        (void*)&s_info, (void*)&s_name, (void*)&s_text);
+                        (void*)&s_info, (void*)&s_name, (void*)&s_text);
 }
 
 
@@ -819,7 +819,7 @@ static errr init_m_info(void)
 #endif /* ALLOW_TEMPLATES */
 
        return init_info("m_info", &m_head,
-                        (void*)&m_info, (void*)&m_name, (void*)&m_text);
+                        (void*)&m_info, (void*)&m_name, (void*)&m_text);
 }
 
 
@@ -1562,8 +1562,8 @@ static errr init_other(void)
        /* Allocate and Wipe the monster list */
        C_MAKE(m_list, max_m_idx, monster_type);
 
-        /* Allocate and Wipe the max dungeon level */
-        C_MAKE(max_dlv, max_d_idx, s16b);
+       /* Allocate and Wipe the max dungeon level */
+       C_MAKE(max_dlv, max_d_idx, s16b);
 
        /* Allocate and wipe each line of the cave */
        for (i = 0; i < MAX_HGT; i++)
@@ -1687,12 +1687,12 @@ static errr init_other(void)
        }
 
        /*
-         *  Set the "default" window flags
+        *  Set the "default" window flags
         *  Window 1 : Display messages
         *  Window 2 : Display inven/equip
         */
-        window_flag[1] = 1L << 6;
-        window_flag[2] = 1L << 0;
+       window_flag[1] = 1L << 6;
+       window_flag[2] = 1L << 0;
 
 
        /*** Pre-allocate space for the "format()" buffer ***/
@@ -2306,15 +2306,15 @@ note("[
  */
 cptr get_check_sum(void)
 {
-        return format("%02x%02x%02x%02x%02x%02x%02x%02x%02x", 
-                      f_head.v_extra, 
-                      k_head.v_extra, 
-                      a_head.v_extra, 
-                      e_head.v_extra, 
-                      r_head.v_extra, 
-                      d_head.v_extra, 
-                      m_head.v_extra, 
-                      s_head.v_extra, 
-                      v_head.v_extra);
+       return format("%02x%02x%02x%02x%02x%02x%02x%02x%02x", 
+                     f_head.v_extra, 
+                     k_head.v_extra, 
+                     a_head.v_extra, 
+                     e_head.v_extra, 
+                     r_head.v_extra, 
+                     d_head.v_extra, 
+                     m_head.v_extra, 
+                     s_head.v_extra, 
+                     v_head.v_extra);
 }
 
index ed651e1..99a42b6 100644 (file)
@@ -300,13 +300,13 @@ static void rd_item(object_type *o_ptr)
        rd_u32b(&o_ptr->art_flags[1]);
        rd_u32b(&o_ptr->art_flags[2]);
        if (h_older_than(1, 3, 0, 0)) o_ptr->art_flags[3] = 0L;
-        else rd_u32b(&o_ptr->art_flags[3]);
+       else rd_u32b(&o_ptr->art_flags[3]);
 
-        if (h_older_than(1, 3, 0, 0))
-        {
-                if (o_ptr->name2 == EGO_TELEPATHY)
-                        add_flag(o_ptr->art_flags, TR_TELEPATHY);
-        }
+       if (h_older_than(1, 3, 0, 0))
+       {
+               if (o_ptr->name2 == EGO_TELEPATHY)
+                       add_flag(o_ptr->art_flags, TR_TELEPATHY);
+       }
 
        if (z_older_than(11, 0, 11))
        {
@@ -420,11 +420,11 @@ static void rd_item(object_type *o_ptr)
        else
        {
                rd_byte(&o_ptr->xtra3);
-                if (h_older_than(1, 3, 0, 1))
-                {
-                        if (o_ptr->tval > TV_CAPTURE && o_ptr->xtra3 >= 1+96)
-                                o_ptr->xtra3 += -96 + MIN_SPECIAL_ESSENCE;
-                }
+               if (h_older_than(1, 3, 0, 1))
+               {
+                       if (o_ptr->tval > TV_CAPTURE && o_ptr->xtra3 >= 1+96)
+                               o_ptr->xtra3 += -96 + MIN_SPECIAL_ESSENCE;
+               }
 
                rd_s16b(&o_ptr->xtra4);
                rd_s16b(&o_ptr->xtra5);
@@ -436,7 +436,7 @@ static void rd_item(object_type *o_ptr)
                o_ptr->pval = 0;
        }
 
-        rd_byte(&o_ptr->feeling);
+       rd_byte(&o_ptr->feeling);
 
        /* Inscription */
        rd_string(buf, sizeof(buf));
@@ -580,7 +580,7 @@ static void rd_monster(monster_type *m_ptr)
                rd_s16b(&m_ptr->target_x);
        }
 
-        rd_byte(&m_ptr->invulner);
+       rd_byte(&m_ptr->invulner);
 
        if (!(z_major == 2 && z_minor == 0 && z_patch == 6))
                rd_u32b(&m_ptr->smart);
@@ -1223,16 +1223,16 @@ static void rd_extra(void)
        {
                for (i = 0; i < 108; i++) rd_s32b(&p_ptr->magic_num1[i]);
                for (i = 0; i < 108; i++) rd_byte(&p_ptr->magic_num2[i]);
-                if (h_older_than(1, 3, 0, 1))
-                {
-                        if (p_ptr->pclass == CLASS_SMITH)
-                        {
-                                p_ptr->magic_num1[TR_ES_ATTACK] = p_ptr->magic_num1[96];
-                                p_ptr->magic_num1[96] = 0;
-                                p_ptr->magic_num1[TR_ES_AC] = p_ptr->magic_num1[97];
-                                p_ptr->magic_num1[97] = 0;
-                        }
-                }
+               if (h_older_than(1, 3, 0, 1))
+               {
+                       if (p_ptr->pclass == CLASS_SMITH)
+                       {
+                               p_ptr->magic_num1[TR_ES_ATTACK] = p_ptr->magic_num1[96];
+                               p_ptr->magic_num1[96] = 0;
+                               p_ptr->magic_num1[TR_ES_AC] = p_ptr->magic_num1[97];
+                               p_ptr->magic_num1[97] = 0;
+                       }
+               }
        }
        if ((p_ptr->pclass == CLASS_BARD) && p_ptr->magic_num1[0]) p_ptr->action = ACTION_SING;
 
@@ -1404,16 +1404,16 @@ note(format("
        }
        else
        {
-                byte max = (byte)max_d_idx;
+               byte max = (byte)max_d_idx;
 
-                rd_byte(&max);
+               rd_byte(&max);
 
-                for(i = 0; i < max; i++)
+               for(i = 0; i < max; i++)
                {
-                        rd_s16b(&max_dlv[i]);
+                       rd_s16b(&max_dlv[i]);
                        if (max_dlv[i] > d_info[i].maxdepth) max_dlv[i] = d_info[i].maxdepth;
                }
-        }
+       }
 
        /* Repair maximum player level XXX XXX XXX */
        if (p_ptr->max_plv < p_ptr->lev) p_ptr->max_plv = p_ptr->lev;
@@ -1872,7 +1872,7 @@ static errr rd_dungeon(void)
 
        /* Header info */
        rd_s16b(&dun_level);
-        if (z_older_than(10, 3, 8)) dungeon_type = DUNGEON_ANGBAND;
+       if (z_older_than(10, 3, 8)) dungeon_type = DUNGEON_ANGBAND;
        else rd_byte(&dungeon_type);
 
        /* Set the base level for old versions */
@@ -1905,22 +1905,22 @@ static errr rd_dungeon(void)
        /* Load the dungeon data */
        for (x = y = 0; y < ymax; )
        {
-                u16b info;
+               u16b info;
 
                /* Grab RLE info */
                rd_byte(&count);
                if (z_older_than(10,3,6))
-                {
+               {
                        rd_byte(&tmp8u);
-                        info = (u16b)tmp8u;
-                }
+                       info = (u16b)tmp8u;
+               }
                else
-                {
+               {
                        rd_u16b(&info);
 
-                        /* Decline invalid flags */
-                        info &= ~(CAVE_LITE | CAVE_VIEW | CAVE_MNLT);
-                }
+                       /* Decline invalid flags */
+                       info &= ~(CAVE_LITE | CAVE_VIEW | CAVE_MNLT);
+               }
 
                /* Apply the RLE info */
                for (i = count; i > 0; i--)
@@ -1929,7 +1929,7 @@ static errr rd_dungeon(void)
                        c_ptr = &cave[y][x];
 
                        /* Extract "info" */
-                        c_ptr->info = info;
+                       c_ptr->info = info;
 
                        /* Advance/Wrap */
                        if (++x >= xmax)
@@ -2034,84 +2034,84 @@ static errr rd_dungeon(void)
                }
        }
 
-        /* Convert cave data */
-        if (z_older_than(11, 0, 99))
-        {
-                for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
-                {
+       /* Convert cave data */
+       if (z_older_than(11, 0, 99))
+       {
+               for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
+               {
                        /* Wipe old unused flags */
                        cave[y][x].info &= ~(CAVE_MASK);
-                }
-        }
+               }
+       }
 
-        if (h_older_than(1, 1, 1, 0))
-        {
-                for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
-                {
+       if (h_older_than(1, 1, 1, 0))
+       {
+               for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
+               {
                        /* Access the cave */
                        c_ptr = &cave[y][x];
 
-                        /* Very old */
-                        if (c_ptr->feat == FEAT_INVIS)
-                        {
-                                c_ptr->feat = FEAT_FLOOR;
-                                c_ptr->info |= CAVE_TRAP;
-                        }
-                
-                        /* Older than 1.1.1 */
-                        if (c_ptr->feat == FEAT_MIRROR)
-                        {
-                                c_ptr->feat = FEAT_FLOOR;
-                                c_ptr->info |= CAVE_OBJECT;
-                        }
-                }
-        }
-
-        if (h_older_than(1, 3, 1, 0))
-        {
-                for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
-                {
+                       /* Very old */
+                       if (c_ptr->feat == FEAT_INVIS)
+                       {
+                               c_ptr->feat = FEAT_FLOOR;
+                               c_ptr->info |= CAVE_TRAP;
+                       }
+               
+                       /* Older than 1.1.1 */
+                       if (c_ptr->feat == FEAT_MIRROR)
+                       {
+                               c_ptr->feat = FEAT_FLOOR;
+                               c_ptr->info |= CAVE_OBJECT;
+                       }
+               }
+       }
+
+       if (h_older_than(1, 3, 1, 0))
+       {
+               for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
+               {
                        /* Access the cave */
                        c_ptr = &cave[y][x];
 
-                        /* Old CAVE_IN_MIRROR flag */
-                        if (c_ptr->info & CAVE_OBJECT)
-                        {
-                                c_ptr->mimic = FEAT_MIRROR;
-                        }
-
-                        /* Runes will be mimics and flags */
-                        else if (c_ptr->feat == FEAT_MINOR_GLYPH ||
-                                 c_ptr->feat == FEAT_GLYPH)
-                        {
-                                c_ptr->info |= CAVE_OBJECT;
-                                c_ptr->mimic = c_ptr->feat;
-                                c_ptr->feat = FEAT_FLOOR;
-                        }
-
-                        /* Hidden traps will be trap terrains mimicing floor */
-                        else if (c_ptr->info & CAVE_TRAP)
-                        {
-                                c_ptr->info &= ~CAVE_TRAP;
-                                c_ptr->mimic = c_ptr->feat;
-                                c_ptr->feat = choose_random_trap();
-                        }
-
-                        /* Another hidden trap */
-                        else if (c_ptr->feat == FEAT_INVIS)
-                        {
-                                c_ptr->mimic = FEAT_FLOOR;
-                                c_ptr->feat = FEAT_TRAP_OPEN;
-                        }
-
-                        /* Hidden doors will be closed doors mimicing wall */
-                        else if (c_ptr->feat == FEAT_SECRET)
-                        {
-                                place_closed_door(y, x);
-                                c_ptr->mimic = FEAT_WALL_EXTRA;
-                        }
-                }
-        }
+                       /* Old CAVE_IN_MIRROR flag */
+                       if (c_ptr->info & CAVE_OBJECT)
+                       {
+                               c_ptr->mimic = FEAT_MIRROR;
+                       }
+
+                       /* Runes will be mimics and flags */
+                       else if (c_ptr->feat == FEAT_MINOR_GLYPH ||
+                                c_ptr->feat == FEAT_GLYPH)
+                       {
+                               c_ptr->info |= CAVE_OBJECT;
+                               c_ptr->mimic = c_ptr->feat;
+                               c_ptr->feat = FEAT_FLOOR;
+                       }
+
+                       /* Hidden traps will be trap terrains mimicing floor */
+                       else if (c_ptr->info & CAVE_TRAP)
+                       {
+                               c_ptr->info &= ~CAVE_TRAP;
+                               c_ptr->mimic = c_ptr->feat;
+                               c_ptr->feat = choose_random_trap();
+                       }
+
+                       /* Another hidden trap */
+                       else if (c_ptr->feat == FEAT_INVIS)
+                       {
+                               c_ptr->mimic = FEAT_FLOOR;
+                               c_ptr->feat = FEAT_TRAP_OPEN;
+                       }
+
+                       /* Hidden doors will be closed doors mimicing wall */
+                       else if (c_ptr->feat == FEAT_SECRET)
+                       {
+                               place_closed_door(y, x);
+                               c_ptr->mimic = FEAT_WALL_EXTRA;
+                       }
+               }
+       }
 
        /*** Objects ***/
 
@@ -2293,13 +2293,13 @@ static errr rd_savefile_new_aux(void)
 
 
        /* Mention the savefile version */
-        note(format(
+       note(format(
 #ifdef JP
-                     "¥Ð¡¼¥¸¥ç¥ó %d.%d.%d ¤Î¥»¡¼¥Ö¡¦¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥ÉÃæ...",
+                    "¥Ð¡¼¥¸¥ç¥ó %d.%d.%d ¤Î¥»¡¼¥Ö¡¦¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥ÉÃæ...",
 #else
-                     "Loading a %d.%d.%d savefile...",
+                    "Loading a %d.%d.%d savefile...",
 #endif
-                     (z_major > 9) ? z_major - 10 : z_major, z_minor, z_patch));
+                    (z_major > 9) ? z_major - 10 : z_major, z_minor, z_patch));
 
 
        /* Strip the version bytes */
@@ -2314,11 +2314,11 @@ static errr rd_savefile_new_aux(void)
        x_check = 0L;
 
        /* Read the version number of the savefile */
-        /* Old savefile will be version 0.0.0.3 */
-        rd_byte(&h_ver_extra);
-        rd_byte(&h_ver_patch);
-        rd_byte(&h_ver_minor);
-        rd_byte(&h_ver_major);
+       /* Old savefile will be version 0.0.0.3 */
+       rd_byte(&h_ver_extra);
+       rd_byte(&h_ver_patch);
+       rd_byte(&h_ver_minor);
+       rd_byte(&h_ver_major);
 
        /* Operating system info */
        rd_u32b(&sf_system);
index 244440c..a417ba0 100644 (file)
@@ -116,7 +116,7 @@ static unsigned long create_pixel(Display *dpy, byte red, byte green, byte blue)
        if (!(XAllocColor(dpy, cmap, &xcolour)))
        {
                quit_fmt("Couldn't allocate bitmap color '#%02x%02x%02x'\n",
-                        red, green, blue);
+                        red, green, blue);
        }
 
        return (xcolour.pixel);
@@ -275,11 +275,11 @@ static XImage *ReadBMP(Display *dpy, char *Name)
        {
                RGBQUAD clrg;
 
-               /* Read an "RGBQUAD" */
-               rd_byte(f, &(clrg.b));
-               rd_byte(f, &(clrg.g));
-               rd_byte(f, &(clrg.r));
-               rd_byte(f, &(clrg.filler));
+               /* Read an "RGBQUAD" */
+               rd_byte(f, &(clrg.b));
+               rd_byte(f, &(clrg.g));
+               rd_byte(f, &(clrg.r));
+               rd_byte(f, &(clrg.filler));
                
                /* Analyze the color */
                clr_pixels[i] = create_pixel(dpy, clrg.r, clrg.g, clrg.b);
@@ -295,8 +295,8 @@ static XImage *ReadBMP(Display *dpy, char *Name)
        C_MAKE(Data, total, char);
 
        Res = XCreateImage(dpy, visual, depth, ZPixmap, 0 /*offset*/,
-                          Data, infoheader.biWidth, infoheader.biHeight,
-                          8 /*bitmap_pad*/, 0 /*bytes_per_line*/);
+                          Data, infoheader.biWidth, infoheader.biHeight,
+                          8 /*bitmap_pad*/, 0 /*bytes_per_line*/);
 
        /* Failure */
        if (Res == NULL)
@@ -341,7 +341,7 @@ static XImage *ReadBMP(Display *dpy, char *Name)
                        {
                                /* Technically 1 bit is legal too */
                                quit_fmt("Illegal biBitCount %d in %s",
-                                        infoheader.biBitCount, Name);
+                                        infoheader.biBitCount, Name);
                        }
                }
        }
@@ -384,8 +384,8 @@ static bool smoothRescaling = TRUE;
  * redScan, greenScan and blueScan must be sufficiently sized
  */
 static void GetScaledRow(XImage *Im, int x, int y, int iw, int ow,
-                         unsigned long *redScan, unsigned long *greenScan,
-                         unsigned long *blueScan)
+                        unsigned long *redScan, unsigned long *greenScan,
+                        unsigned long *blueScan)
 {
        int xi, si, sifrac, ci, cifrac, addWhole, addFrac;
        unsigned long pix;
@@ -526,8 +526,8 @@ static void GetScaledRow(XImage *Im, int x, int y, int iw, int ow,
  * are divided first.
  */
 static void PutRGBScan(XImage *Im, int x, int y, int w, int div,
-                       unsigned long *redScan, unsigned long *greenScan,
-                       unsigned long *blueScan)
+                      unsigned long *redScan, unsigned long *greenScan,
+                      unsigned long *blueScan)
 {
        int xi;
        unsigned long pix;
@@ -552,7 +552,7 @@ static void PutRGBScan(XImage *Im, int x, int y, int w, int div,
  * vertical directions (eg. shrink horizontal, grow vertical).
  */
 static void ScaleIcon(XImage *ImIn, XImage *ImOut,
-                     int x1, int y1, int x2, int y2,
+                     int x1, int y1, int x2, int y2,
                      int ix, int iy, int ox, int oy)
 {
        int div;
@@ -585,9 +585,9 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
                for (yi = 0; yi < oy; yi++)
                {
                        GetScaledRow(ImIn, x1, y1 + yi, ix, ox,
-                                    tempRed, tempGreen, tempBlue);
+                                    tempRed, tempGreen, tempBlue);
                        PutRGBScan(ImOut, x2, y2 + yi, ox, div,
-                                  tempRed, tempGreen, tempBlue);
+                                  tempRed, tempGreen, tempBlue);
                }
        }
        else if (iy < oy)
@@ -617,7 +617,7 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
                                {
                                        /* only get next row if in same icon */
                                        GetScaledRow(ImIn, x1, si + 1, ix, ox,
-                                                    nextRed, nextGreen, nextBlue);
+                                                    nextRed, nextGreen, nextBlue);
                                }
                        }
 
@@ -626,16 +626,16 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
                        for (xi = 0; xi < ox; xi++)
                        {
                                tempRed[xi] = (prevRed[xi] * (oy - sifrac) +
-                                              nextRed[xi] * sifrac);
+                                              nextRed[xi] * sifrac);
                                tempGreen[xi] = (prevGreen[xi] * (oy - sifrac) +
-                                                nextGreen[xi] * sifrac);
+                                                nextGreen[xi] * sifrac);
                                tempBlue[xi] = (prevBlue[xi] * (oy - sifrac) +
-                                               nextBlue[xi] * sifrac);
+                                               nextBlue[xi] * sifrac);
                        }
 
                        /* write row to output image: */
                        PutRGBScan(ImOut, x2, y2 + yi, ox, div,
-                                  tempRed, tempGreen, tempBlue);
+                                  tempRed, tempGreen, tempBlue);
 
                        /* advance sampling position: */
                        sifrac += iy;
@@ -686,7 +686,7 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
                        while (si < ci)
                        {
                                GetScaledRow(ImIn, x1, si, ix, ox,
-                                            nextRed, nextGreen, nextBlue);
+                                            nextRed, nextGreen, nextBlue);
                                for (xi = 0; xi < ox; xi++)
                                {
                                        tempRed[xi]   += nextRed[xi]   * oy;
@@ -700,7 +700,7 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
                        {
                                /* only get next row if still in icon: */
                                GetScaledRow(ImIn, x1, si, ix, ox,
-                                            nextRed, nextGreen, nextBlue);
+                                            nextRed, nextGreen, nextBlue);
                        }
                        sifrac = cifrac;
                        for (xi = 0; xi < ox; xi++)
@@ -711,7 +711,7 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
                        }
                        /* write row to output image: */
                        PutRGBScan(ImOut, x2, y2 + yi, ox, div,
-                                  tempRed, tempGreen, tempBlue);
+                                  tempRed, tempGreen, tempBlue);
                }
        }
 }
@@ -719,7 +719,7 @@ static void ScaleIcon(XImage *ImIn, XImage *ImOut,
 
 
 static XImage *ResizeImageSmooth(Display *dpy, XImage *Im,
-                                 int ix, int iy, int ox, int oy)
+                                int ix, int iy, int ox, int oy)
 {
        Visual *visual = DefaultVisual(dpy, DefaultScreen(dpy));
 
@@ -739,8 +739,8 @@ static XImage *ResizeImageSmooth(Display *dpy, XImage *Im,
        Data = (char *)malloc(width2 * height2 * Im->bits_per_pixel / 8);
 
        Tmp = XCreateImage(dpy, visual,
-                          Im->depth, ZPixmap, 0, Data, width2, height2,
-                          32, 0);
+                          Im->depth, ZPixmap, 0, Data, width2, height2,
+                          32, 0);
 
        /* compute values for decomposing pixel into color values: */
        redMask = Im->red_mask;
@@ -771,7 +771,7 @@ static XImage *ResizeImageSmooth(Display *dpy, XImage *Im,
                for (x1 = 0, x2 = 0; (x1 < width1) && (x2 < width2); x1 += ix, x2 += ox)
                {
                        ScaleIcon(Im, Tmp, x1, y1, x2, y2,
-                                 ix, iy, ox, oy);
+                                 ix, iy, ox, oy);
                }
        }
 
@@ -785,7 +785,7 @@ static XImage *ResizeImageSmooth(Display *dpy, XImage *Im,
  * Also appears in "main-xaw.c".
  */
 static XImage *ResizeImage(Display *dpy, XImage *Im,
-                           int ix, int iy, int ox, int oy)
+                          int ix, int iy, int ox, int oy)
 {
        Visual *visual = DefaultVisual(dpy, DefaultScreen(dpy));
 
@@ -813,8 +813,8 @@ static XImage *ResizeImage(Display *dpy, XImage *Im,
        Data = (char *)malloc(width2 * height2 * Im->bits_per_pixel / 8);
 
        Tmp = XCreateImage(dpy, visual,
-                          Im->depth, ZPixmap, 0, Data, width2, height2,
-                          32, 0);
+                          Im->depth, ZPixmap, 0, Data, width2, height2,
+                          32, 0);
 
        if (ix > ox)
        {
index 158ccbf..d358e03 100644 (file)
@@ -616,7 +616,7 @@ static void Term_xtra_dos_clear(void)
        {
                /* Draw the Term black */
                rectfill(screen,
-                       x1, y1, x1 + w1 - 1, y1 + h1 - 1,
+                       x1, y1, x1 + w1 - 1, y1 + h1 - 1,
                        COLOR_OFFSET + TERM_DARK);
        }
 }
@@ -1097,7 +1097,7 @@ static errr Term_wipe_dos(int x, int y, int n)
        {
                /* Draw a black block */
                rectfill(screen, x1, y1, x1 + w1 - 1, y1 + h1 - 1,
-                       COLOR_OFFSET + TERM_DARK);
+                       COLOR_OFFSET + TERM_DARK);
        }
 
        /* Success */
@@ -1147,7 +1147,7 @@ static errr Term_text_dos(int x, int y, int n, byte a, const char *cp)
 
                /* Dump the text */
                textout(screen, td->font, text, x1, y1,
-                       COLOR_OFFSET + (a & 0x0F));
+                       COLOR_OFFSET + (a & 0x0F));
        }
        /* Stretch needed */
        else
@@ -1163,7 +1163,7 @@ static errr Term_text_dos(int x, int y, int n, byte a, const char *cp)
 
                        /* Dump some text */
                        textout(screen, td->font, text, x1, y1,
-                               COLOR_OFFSET + (a & 0x0F));
+                               COLOR_OFFSET + (a & 0x0F));
 
                        /* Advance */
                        x1 += td->tile_wid;
index 565ee7c..647c69e 100644 (file)
@@ -664,14 +664,14 @@ static bool init_sound(void)
       /* Prepare the sounds */
       for (i = 1; i < SOUND_MAX; i++)
       {
-         /* Extract name of sound file */
-         sprintf(wav, "%s.wav", angband_sound_name[i]);
+        /* Extract name of sound file */
+        sprintf(wav, "%s.wav", angband_sound_name[i]);
 
-         /* Access the sound */
-         path_build(buf, sizeof(buf), ANGBAND_DIR_XTRA_SOUND, wav);
+        /* Access the sound */
+        path_build(buf, sizeof(buf), ANGBAND_DIR_XTRA_SOUND, wav);
 
-         /* Save the sound filename, if it exists */
-         if (check_file(buf)) sound_file[i] = string_make(buf);
+        /* Save the sound filename, if it exists */
+        if (check_file(buf)) sound_file[i] = string_make(buf);
       }
 
       /* Sound available */
@@ -929,8 +929,8 @@ static errr Term_xtra_gcu_react(void)
        {
                /* Set one color (note scaling) */
                init_color(i, angband_color_table[i][1] * 1000 / 255,
-                             angband_color_table[i][2] * 1000 / 255,
-                             angband_color_table[i][3] * 1000 / 255);
+                             angband_color_table[i][2] * 1000 / 255,
+                             angband_color_table[i][3] * 1000 / 255);
        }
 
 #endif
@@ -964,7 +964,7 @@ static errr Term_xtra_gcu(int n, int v)
 #ifdef USE_SOUND
       /* Make a special sound */
       case TERM_XTRA_SOUND:
-         return (Term_xtra_gcu_sound(v));
+        return (Term_xtra_gcu_sound(v));
 #endif
 
       /* Flush the Curses buffer */
@@ -1233,12 +1233,12 @@ errr init_gcu(int argc, char *argv[])
 
    /* Do we have color, and enough color, available? */
    can_use_color = ((start_color() != ERR) && has_colors() &&
-                    (COLORS >= 8) && (COLOR_PAIRS >= 8));
+                   (COLORS >= 8) && (COLOR_PAIRS >= 8));
 
 #ifdef REDEFINE_COLORS
        /* Can we change colors? */
        can_fix_color = (can_use_color && can_change_color() &&
-                        (COLORS >= 16) && (COLOR_PAIRS > 8));
+                        (COLORS >= 16) && (COLOR_PAIRS > 8));
 #endif
 
    /* Attempt to use customized colors */
@@ -1247,17 +1247,17 @@ errr init_gcu(int argc, char *argv[])
       /* Prepare the color pairs */
       for (i = 1; i <= 63; i++)
       {
-         /* Reset the color */
-         if (init_pair(i, (i - 1) % 8, (i - 1) / 8) == ERR)
-         {
-            quit("Color pair init failed");
-         }
+        /* Reset the color */
+        if (init_pair(i, (i - 1) % 8, (i - 1) / 8) == ERR)
+        {
+           quit("Color pair init failed");
+        }
 
        /* Set up the colormap */
        colortable[i - 1] = (COLOR_PAIR(i) | A_NORMAL);
        colortable[i + 7] = (COLOR_PAIR(i) | A_BRIGHT);
 
-        /* XXX XXX XXX Take account of "gamma correction" */
+       /* XXX XXX XXX Take account of "gamma correction" */
 
        /* Prepare the "Angband Colors" */
        Term_xtra_gcu_react();
@@ -1266,7 +1266,7 @@ errr init_gcu(int argc, char *argv[])
    /* Attempt to use colors */
    else if (can_use_color)
    {
-                /* Color-pair 0 is *always* WHITE on BLACK */
+               /* Color-pair 0 is *always* WHITE on BLACK */
 
                /* Prepare the color pairs */
                init_pair(1, COLOR_RED,     COLOR_BLACK);
@@ -1307,11 +1307,11 @@ errr init_gcu(int argc, char *argv[])
       /* Initialize (if needed) */
       if (arg_sound && !init_sound())
       {
-         /* Warning */
-         plog("Cannot initialize sound!");
+        /* Warning */
+        plog("Cannot initialize sound!");
 
-         /* Cannot enable */
-         arg_sound = FALSE;
+        /* Cannot enable */
+        arg_sound = FALSE;
       }
 
       /* Change setting */
@@ -1361,33 +1361,33 @@ errr init_gcu(int argc, char *argv[])
 
       switch (i)
       {
-         /* Upper left */
-         case 0: rows = 24;
-            cols = 80;
-            y = x = 0;
-            break;
-         /* Lower left */
-         case 1: rows = LINES - 25;
-            cols = 80;
-            y = 24;
-            x = 0;
-            break;
-         /* Upper right */
-         case 2: rows = 24;
-            cols = COLS - 81;
-            y = 0;
-            x = 81;
-            break;
-         /* Lower right */
-         case 3: rows = LINES - 25;
-            cols = COLS - 81;
-            y = 24;
-            x = 81;
-            break;
-         /* XXX */
-         default: rows = cols = 0;
-             y = x = 0;
-             break;
+        /* Upper left */
+        case 0: rows = 24;
+           cols = 80;
+           y = x = 0;
+           break;
+        /* Lower left */
+        case 1: rows = LINES - 25;
+           cols = 80;
+           y = 24;
+           x = 0;
+           break;
+        /* Upper right */
+        case 2: rows = 24;
+           cols = COLS - 81;
+           y = 0;
+           x = 81;
+           break;
+        /* Lower right */
+        case 3: rows = LINES - 25;
+           cols = COLS - 81;
+           y = 24;
+           x = 81;
+           break;
+        /* XXX */
+        default: rows = cols = 0;
+            y = x = 0;
+            break;
       }
 
       /* No non-windows */
index daf0595..63c844b 100644 (file)
@@ -847,19 +847,19 @@ static errr Term_text_ibm(int x, int y, int n, byte a, const char *cp)
 #ifdef JP
       /* Dump the text */
       for (i = 0; i < n; i++) {
-              if (iskanji(cp[i])) {
-                      char jbuf[3];
-                      jbuf[0] = cp[i++];
-                      jbuf[1] = cp[i];
-                      jbuf[2] = '\0';
-                      cputs(jbuf);
-              } else {
-                      putch(cp[i]);
-              }
+             if (iskanji(cp[i])) {
+                     char jbuf[3];
+                     jbuf[0] = cp[i++];
+                     jbuf[1] = cp[i];
+                     jbuf[2] = '\0';
+                     cputs(jbuf);
+             } else {
+                     putch(cp[i]);
+             }
       }
 #else
-        /* Dump the text */
-        for (i = 0; i < n; i++) putch(cp[i]);
+       /* Dump the text */
+       for (i = 0; i < n; i++) putch(cp[i]);
 #endif
 
 #else /* USE_CONIO */
@@ -1128,11 +1128,11 @@ unsigned short __dpmi_sel = 0x0000;
 #define _farsetsel(x) __dpmi_sel=(x)
 extern void _farnspokeb(unsigned long offset, unsigned char value);
 #pragma aux _farnspokeb =        \
-          "push   fs"            \
-          "mov    fs,__dpmi_sel" \
-          "mov    fs:[eax],bl"   \
-          "pop    fs"            \
-          parm [eax] [bl];
+         "push   fs"            \
+         "mov    fs,__dpmi_sel" \
+         "mov    fs:[eax],bl"   \
+         "pop    fs"            \
+         parm [eax] [bl];
 
 #else /* USE_WAT */
 
index cc20121..07dc294 100644 (file)
@@ -1962,7 +1962,7 @@ static errr Term_text_mac(int x, int y, int n, byte a, const char *cp)
  */
 #ifdef USE_TRANSPARENCY
 static errr Term_pict_mac(int x, int y, int n, const byte *ap, const char *cp,
-                          const byte *tap, const char *tcp)
+                         const byte *tap, const char *tcp)
 #else
 static errr Term_pict_mac(int x, int y, int n, const byte *ap, const char *cp)
 #endif
@@ -2631,7 +2631,7 @@ static void init_windows(void)
 
                /* Find the folder */
                err = FindFolder(kOnSystemDisk, kPreferencesFolderType, kCreateFolder,
-                                &vref, &dirID);
+                                &vref, &dirID);
 
                /* Success */
                if (!err)
@@ -3016,7 +3016,7 @@ static void save_pref_file(void)
 
                /* Find the folder */
                err = FindFolder(kOnSystemDisk, kPreferencesFolderType, kCreateFolder,
-                                &vref, &dirID);
+                                &vref, &dirID);
 
                /* Success */
                if (!err)
@@ -4546,7 +4546,7 @@ static void menu(long mc)
                                        break;
                                }
 
-                                case 9: /* bigtile mode */
+                               case 9: /* bigtile mode */
                                {
                                        term_data *td = &data[0];
 
@@ -4652,7 +4652,7 @@ static OSErr CheckRequiredAEParams(const AppleEvent *theAppleEvent)
        Size    actualSize;
 
        aeError = AEGetAttributePtr(theAppleEvent, keyMissedKeywordAttr, typeWildCard,
-                                   &returnedType, NULL, 0, &actualSize);
+                                   &returnedType, NULL, 0, &actualSize);
 
        if (aeError == errAEDescNotFound) return (noErr);
 
@@ -4666,7 +4666,7 @@ static OSErr CheckRequiredAEParams(const AppleEvent *theAppleEvent)
  * Apple Event Handler -- Open Application
  */
 static pascal OSErr AEH_Start(const AppleEvent *theAppleEvent,
-                              const AppleEvent *reply, long handlerRefCon)
+                             const AppleEvent *reply, long handlerRefCon)
 {
 #pragma unused(reply, handlerRefCon)
 
@@ -4678,7 +4678,7 @@ static pascal OSErr AEH_Start(const AppleEvent *theAppleEvent,
  * Apple Event Handler -- Quit Application
  */
 static pascal OSErr AEH_Quit(const AppleEvent *theAppleEvent,
-                             const AppleEvent *reply, long handlerRefCon)
+                            const AppleEvent *reply, long handlerRefCon)
 {
 #pragma unused(reply, handlerRefCon)
 #if TARGET_API_MAC_CARBON
@@ -4721,7 +4721,7 @@ static pascal OSErr AEH_Quit(const AppleEvent *theAppleEvent,
  * Apple Event Handler -- Print Documents
  */
 static pascal OSErr AEH_Print(const AppleEvent *theAppleEvent,
-                              const AppleEvent *reply, long handlerRefCon)
+                             const AppleEvent *reply, long handlerRefCon)
 {
 #pragma unused(theAppleEvent, reply, handlerRefCon)
 
@@ -4744,7 +4744,7 @@ static pascal OSErr AEH_Print(const AppleEvent *theAppleEvent,
  * "shamelessly swiped & hacked")
  */
 static pascal OSErr AEH_Open(AppleEvent *theAppleEvent,
-                             AppleEvent* reply, long handlerRefCon)
+                            AppleEvent* reply, long handlerRefCon)
 {
 #pragma unused(reply, handlerRefCon)
 
@@ -4767,7 +4767,7 @@ static pascal OSErr AEH_Open(AppleEvent *theAppleEvent,
         */
 
        err = AEGetNthPtr(&docList, 1L, typeFSS, &keywd,
-                         &returnedType, (Ptr) &myFSS, sizeof(myFSS), &actualSize);
+                         &returnedType, (Ptr) &myFSS, sizeof(myFSS), &actualSize);
        if (err) return err;
 
        /* Only needed to check savefile type below */
@@ -5779,25 +5779,25 @@ void main(void)
        AEH_Start_UPP = NewAEEventHandlerUPP(AEH_Start);
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEOpenApplication, AEH_Start_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
        /* Obtain a "Universal Procedure Pointer" */
        AEH_Quit_UPP = NewAEEventHandlerUPP(AEH_Quit);
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEQuitApplication, AEH_Quit_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
        /* Obtain a "Universal Procedure Pointer" */
        AEH_Print_UPP = NewAEEventHandlerUPP(AEH_Print);
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEPrintDocuments, AEH_Print_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
        /* Obtain a "Universal Procedure Pointer" */
        AEH_Open_UPP = NewAEEventHandlerUPP(AEH_Open);
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments, AEH_Open_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 #endif
 
        /* Find the current application */
index c382a29..da08f6c 100644 (file)
@@ -1889,7 +1889,7 @@ static errr Term_text_mac(int x, int y, int n, byte a, const char *cp)
  */
 #ifdef USE_TRANSPARENCY
 static errr Term_pict_mac(int x, int y, int n, const byte *ap, const char *cp,
-                          const byte *tap, const char *tcp)
+                         const byte *tap, const char *tcp)
 #else
 static errr Term_pict_mac(int x, int y, int n, const byte *ap, const char *cp)
 #endif
@@ -2591,7 +2591,7 @@ static void init_windows(void)
 
                /* Find the folder */
                err = FindFolder(kOnSystemDisk, kPreferencesFolderType, kCreateFolder,
-                                &vref, &dirID);
+                                &vref, &dirID);
 
                /* Success */
                if (!err)
@@ -2973,7 +2973,7 @@ static void save_pref_file(void)
 
                /* Find the folder */
                err = FindFolder(kOnSystemDisk, kPreferencesFolderType, kCreateFolder,
-                                &vref, &dirID);
+                                &vref, &dirID);
 
                /* Success */
                if (!err)
@@ -4224,7 +4224,7 @@ static void menu(long mc)
                                        break;
                                }
 
-                                case 9: /* bigtile mode */
+                               case 9: /* bigtile mode */
                                {
                                        term_data *td = &data[0];
 
@@ -4332,7 +4332,7 @@ static OSErr CheckRequiredAEParams(const AppleEvent *theAppleEvent)
        Size    actualSize;
 
        aeError = AEGetAttributePtr(theAppleEvent, keyMissedKeywordAttr, typeWildCard,
-                                   &returnedType, NULL, 0, &actualSize);
+                                   &returnedType, NULL, 0, &actualSize);
 
        if (aeError == errAEDescNotFound) return (noErr);
 
@@ -4346,7 +4346,7 @@ static OSErr CheckRequiredAEParams(const AppleEvent *theAppleEvent)
  * Apple Event Handler -- Open Application
  */
 static pascal OSErr AEH_Start(const AppleEvent *theAppleEvent,
-                              const AppleEvent *reply, long handlerRefCon)
+                             const AppleEvent *reply, long handlerRefCon)
 {
 #pragma unused(reply, handlerRefCon)
 
@@ -4358,7 +4358,7 @@ static pascal OSErr AEH_Start(const AppleEvent *theAppleEvent,
  * Apple Event Handler -- Quit Application
  */
 static pascal OSErr AEH_Quit(const AppleEvent *theAppleEvent,
-                             const AppleEvent *reply, long handlerRefCon)
+                            const AppleEvent *reply, long handlerRefCon)
 {
 #pragma unused(reply, handlerRefCon)
 
@@ -4374,7 +4374,7 @@ static pascal OSErr AEH_Quit(const AppleEvent *theAppleEvent,
  * Apple Event Handler -- Print Documents
  */
 static pascal OSErr AEH_Print(const AppleEvent *theAppleEvent,
-                              const AppleEvent *reply, long handlerRefCon)
+                             const AppleEvent *reply, long handlerRefCon)
 {
 #pragma unused(theAppleEvent, reply, handlerRefCon)
 
@@ -4397,7 +4397,7 @@ static pascal OSErr AEH_Print(const AppleEvent *theAppleEvent,
  * "shamelessly swiped & hacked")
  */
 static pascal OSErr AEH_Open(AppleEvent *theAppleEvent,
-                             AppleEvent* reply, long handlerRefCon)
+                            AppleEvent* reply, long handlerRefCon)
 {
 #pragma unused(reply, handlerRefCon)
 
@@ -4420,7 +4420,7 @@ static pascal OSErr AEH_Open(AppleEvent *theAppleEvent,
         */
 
        err = AEGetNthPtr(&docList, 1L, typeFSS, &keywd,
-                         &returnedType, (Ptr) &myFSS, sizeof(myFSS), &actualSize);
+                         &returnedType, (Ptr) &myFSS, sizeof(myFSS), &actualSize);
        if (err) return err;
 
        /* Only needed to check savefile type below */
@@ -5304,28 +5304,28 @@ void main(void)
 
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEOpenApplication, AEH_Start_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
        /* Obtain a "Universal Procedure Pointer" */
        AEH_Quit_UPP = NewAEEventHandlerProc(AEH_Quit);
 
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEQuitApplication, AEH_Quit_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
        /* Obtain a "Universal Procedure Pointer" */
        AEH_Print_UPP = NewAEEventHandlerProc(AEH_Print);
 
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEPrintDocuments, AEH_Print_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
        /* Obtain a "Universal Procedure Pointer" */
        AEH_Open_UPP = NewAEEventHandlerProc(AEH_Open);
 
        /* Install the hook (ignore error codes) */
        AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments, AEH_Open_UPP,
-                             0L, FALSE);
+                             0L, FALSE);
 
 #endif
 
index 924a404..8d39500 100644 (file)
@@ -1538,8 +1538,8 @@ static void term_window_resize(term_data *td)
 
        /* Resize the window */
        SetWindowPos(td->w, 0, 0, 0,
-                    td->size_wid, td->size_hgt,
-                    SWP_NOMOVE | SWP_NOZORDER);
+                    td->size_wid, td->size_hgt,
+                    SWP_NOMOVE | SWP_NOZORDER);
 
        /* Redraw later */
        InvalidateRect(td->w, NULL, TRUE);
@@ -1634,9 +1634,9 @@ static errr term_force_font(term_data *td, cptr path)
        if (!td->font_id) return (1);
 #else
        td->font_id = CreateFont(hgt, wid, 0, 0, FW_DONTCARE, 0, 0, 0,
-                                ANSI_CHARSET, OUT_DEFAULT_PRECIS,
-                                CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
-                                FIXED_PITCH | FF_DONTCARE, base);
+                                ANSI_CHARSET, OUT_DEFAULT_PRECIS,
+                                CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
+                                FIXED_PITCH | FF_DONTCARE, base);
 #endif
 
 
@@ -2433,7 +2433,7 @@ static errr Term_text_win(int x, int y, int n, byte a, const char *s)
                                rc.right += td->font_wid;
                                /* Dump the text */
                                ExtTextOut(hdc, rc.left, rc.top, ETO_CLIPPED, &rc,
-                                      s+i, 2, NULL);
+                                      s+i, 2, NULL);
                                rc.right -= td->font_wid;
 
                                /* Advance */
@@ -2456,7 +2456,7 @@ static errr Term_text_win(int x, int y, int n, byte a, const char *s)
                        } else {
                                /* Dump the text */
                                ExtTextOut(hdc, rc.left, rc.top, ETO_CLIPPED, &rc,
-                                      s+i, 1, NULL);
+                                      s+i, 1, NULL);
 
                                /* Advance */
                                rc.left += td->tile_wid;
@@ -2465,7 +2465,7 @@ static errr Term_text_win(int x, int y, int n, byte a, const char *s)
 #else
                        /* Dump the text */
                        ExtTextOut(hdc, rc.left, rc.top, 0, &rc,
-                                  s+i, 1, NULL);
+                                  s+i, 1, NULL);
 
                        /* Advance */
                        rc.left += td->tile_wid;
@@ -2480,7 +2480,7 @@ static errr Term_text_win(int x, int y, int n, byte a, const char *s)
        {
                /* Dump the text */
                ExtTextOut(hdc, rc.left, rc.top, ETO_OPAQUE | ETO_CLIPPED, &rc,
-                          s, n, NULL);
+                          s, n, NULL);
        }
 
        /* Release DC */
@@ -2869,8 +2869,8 @@ static void init_windows(void)
        /* Main window (need these before term_getsize gets called) */
        td = &data[0];
        td->dwStyle = (WS_OVERLAPPED | WS_THICKFRAME | WS_SYSMENU |
-                      WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CAPTION |
-                      WS_VISIBLE);
+                      WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CAPTION |
+                      WS_VISIBLE);
        td->dwExStyle = 0;
        td->visible = TRUE;
 
@@ -2936,10 +2936,10 @@ static void init_windows(void)
 
                my_td = td;
                td->w = CreateWindowEx(td->dwExStyle, AngList,
-                                      td->s, td->dwStyle,
-                                      td->pos_x, td->pos_y,
-                                      td->size_wid, td->size_hgt,
-                                      HWND_DESKTOP, NULL, hInstance, NULL);
+                                      td->s, td->dwStyle,
+                                      td->pos_x, td->pos_y,
+                                      td->size_wid, td->size_hgt,
+                                      HWND_DESKTOP, NULL, hInstance, NULL);
                my_td = NULL;
 #ifdef JP
                if (!td->w) quit("¥µ¥Ö¥¦¥£¥ó¥É¥¦¤ËºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿");
@@ -2981,10 +2981,10 @@ static void init_windows(void)
        /* Main window */
        my_td = td;
        td->w = CreateWindowEx(td->dwExStyle, AppName,
-                              td->s, td->dwStyle,
-                              td->pos_x, td->pos_y,
-                              td->size_wid, td->size_hgt,
-                              HWND_DESKTOP, NULL, hInstance, NULL);
+                              td->s, td->dwStyle,
+                              td->pos_x, td->pos_y,
+                              td->size_wid, td->size_hgt,
+                              HWND_DESKTOP, NULL, hInstance, NULL);
        my_td = NULL;
 #ifdef JP
        if (!td->w) quit("¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿");
@@ -3029,15 +3029,15 @@ static void setup_menus(void)
 
        /* Menu "File", Disable all */
        EnableMenuItem(hm, IDM_FILE_NEW,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_FILE_OPEN,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_FILE_SAVE,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_FILE_EXIT,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_FILE_SCORE,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
 
        /* No character available */
@@ -3055,40 +3055,40 @@ static void setup_menus(void)
        {
                /* Menu "File", Item "Save" */
                EnableMenuItem(hm, IDM_FILE_SAVE,
-                          MF_BYCOMMAND | MF_ENABLED);
+                          MF_BYCOMMAND | MF_ENABLED);
        }
 
        /* Menu "File", Item "Exit" */
        EnableMenuItem(hm, IDM_FILE_EXIT,
-                      MF_BYCOMMAND | MF_ENABLED);
+                      MF_BYCOMMAND | MF_ENABLED);
 
        EnableMenuItem(hm, IDM_FILE_SCORE,
-                      MF_BYCOMMAND | MF_ENABLED);
+                      MF_BYCOMMAND | MF_ENABLED);
 
 
        /* Menu "Window::Visibility" */
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_VIS_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                CheckMenuItem(hm, IDM_WINDOW_VIS_0 + i,
-                             (data[i].visible ? MF_CHECKED : MF_UNCHECKED));
+                             (data[i].visible ? MF_CHECKED : MF_UNCHECKED));
 
                EnableMenuItem(hm, IDM_WINDOW_VIS_0 + i,
-                              MF_BYCOMMAND | MF_ENABLED);
+                              MF_BYCOMMAND | MF_ENABLED);
        }
 
        /* Menu "Window::Font" */
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_FONT_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_FONT_0 + i,
-                                      MF_BYCOMMAND | MF_ENABLED);
+                                      MF_BYCOMMAND | MF_ENABLED);
                }
        }
 
@@ -3096,15 +3096,15 @@ static void setup_menus(void)
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_POS_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                CheckMenuItem(hm, IDM_WINDOW_POS_0 + i,
-                             (data[i].posfix ? MF_CHECKED : MF_UNCHECKED));
+                             (data[i].posfix ? MF_CHECKED : MF_UNCHECKED));
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_POS_0 + i,
-                                      MF_BYCOMMAND | MF_ENABLED);
+                                      MF_BYCOMMAND | MF_ENABLED);
                }
        }
 
@@ -3112,15 +3112,15 @@ static void setup_menus(void)
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_BIZ_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                CheckMenuItem(hm, IDM_WINDOW_BIZ_0 + i,
-                             (data[i].bizarre ? MF_CHECKED : MF_UNCHECKED));
+                             (data[i].bizarre ? MF_CHECKED : MF_UNCHECKED));
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_BIZ_0 + i,
-                                  MF_BYCOMMAND | MF_ENABLED);
+                                  MF_BYCOMMAND | MF_ENABLED);
 
                }
        }
@@ -3129,12 +3129,12 @@ static void setup_menus(void)
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_I_WID_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_I_WID_0 + i,
-                                  MF_BYCOMMAND | MF_ENABLED);
+                                  MF_BYCOMMAND | MF_ENABLED);
 
                }
        }
@@ -3143,12 +3143,12 @@ static void setup_menus(void)
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_D_WID_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_D_WID_0 + i,
-                                  MF_BYCOMMAND | MF_ENABLED);
+                                  MF_BYCOMMAND | MF_ENABLED);
 
                }
        }
@@ -3157,12 +3157,12 @@ static void setup_menus(void)
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_I_HGT_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_I_HGT_0 + i,
-                                  MF_BYCOMMAND | MF_ENABLED);
+                                  MF_BYCOMMAND | MF_ENABLED);
 
                }
        }
@@ -3171,30 +3171,30 @@ static void setup_menus(void)
        for (i = 0; i < MAX_TERM_DATA; i++)
        {
                EnableMenuItem(hm, IDM_WINDOW_D_HGT_0 + i,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
                if (data[i].visible)
                {
                        EnableMenuItem(hm, IDM_WINDOW_D_HGT_0 + i,
-                                  MF_BYCOMMAND | MF_ENABLED);
+                                  MF_BYCOMMAND | MF_ENABLED);
 
                }
        }
 
        /* Menu "Options", disable all */
        EnableMenuItem(hm, IDM_OPTIONS_NO_GRAPHICS,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_OPTIONS_OLD_GRAPHICS,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_OPTIONS_NEW_GRAPHICS,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_OPTIONS_BIGTILE,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
        EnableMenuItem(hm, IDM_OPTIONS_SOUND,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 #ifndef JP
        EnableMenuItem(hm, IDM_OPTIONS_SAVER,
-                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                      MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 #endif
 
        /* Menu "Options", Item "Map" */
@@ -3202,24 +3202,24 @@ static void setup_menus(void)
                EnableMenuItem(GetMenu(data[0].w), IDM_OPTIONS_MAP, MF_BYCOMMAND | MF_ENABLED);
        else
                EnableMenuItem(GetMenu(data[0].w), IDM_OPTIONS_MAP,
-                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+                              MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
 
        /* Menu "Options", update all */
        CheckMenuItem(hm, IDM_OPTIONS_NO_GRAPHICS,
-                     (arg_graphics == GRAPHICS_NONE ? MF_CHECKED : MF_UNCHECKED));
+                     (arg_graphics == GRAPHICS_NONE ? MF_CHECKED : MF_UNCHECKED));
        CheckMenuItem(hm, IDM_OPTIONS_OLD_GRAPHICS,
-                     (arg_graphics == GRAPHICS_ORIGINAL ? MF_CHECKED : MF_UNCHECKED));
+                     (arg_graphics == GRAPHICS_ORIGINAL ? MF_CHECKED : MF_UNCHECKED));
        CheckMenuItem(hm, IDM_OPTIONS_NEW_GRAPHICS,
-                     (arg_graphics == GRAPHICS_ADAM_BOLT ? MF_CHECKED : MF_UNCHECKED));
+                     (arg_graphics == GRAPHICS_ADAM_BOLT ? MF_CHECKED : MF_UNCHECKED));
        CheckMenuItem(hm, IDM_OPTIONS_BIGTILE,
-                     (arg_bigtile ? MF_CHECKED : MF_UNCHECKED));
+                     (arg_bigtile ? MF_CHECKED : MF_UNCHECKED));
        CheckMenuItem(hm, IDM_OPTIONS_SOUND,
-                     (arg_sound ? MF_CHECKED : MF_UNCHECKED));
+                     (arg_sound ? MF_CHECKED : MF_UNCHECKED));
        CheckMenuItem(hm, IDM_OPTIONS_BG,
-                     (use_bg ? MF_CHECKED : MF_UNCHECKED));
+                     (use_bg ? MF_CHECKED : MF_UNCHECKED));
 #ifndef JP
        CheckMenuItem(hm, IDM_OPTIONS_SAVER,
-                     (hwndSaver ? MF_CHECKED : MF_UNCHECKED));
+                     (hwndSaver ? MF_CHECKED : MF_UNCHECKED));
 #endif
 
 #ifdef USE_GRAPHICS
@@ -3241,7 +3241,7 @@ static void setup_menus(void)
 #ifdef USE_SAVER
        /* Menu "Options", Item "ScreenSaver" */
        EnableMenuItem(hm, IDM_OPTIONS_SAVER,
-                      MF_BYCOMMAND | MF_ENABLED);
+                      MF_BYCOMMAND | MF_ENABLED);
 #endif /* USE_SAVER */
 }
 
@@ -3930,11 +3930,11 @@ static void process_menus(WORD wCmd)
                        {
                                /* Create a screen scaver window */
                                hwndSaver = CreateWindowEx(WS_EX_TOPMOST, "WindowsScreenSaverClass",
-                                                          "Angband Screensaver",
-                                                          WS_POPUP | WS_MAXIMIZE | WS_VISIBLE,
-                                                          0, 0, GetSystemMetrics(SM_CXSCREEN),
-                                                          GetSystemMetrics(SM_CYSCREEN),
-                                                          NULL, NULL, hInstance, NULL);
+                                                          "Angband Screensaver",
+                                                          WS_POPUP | WS_MAXIMIZE | WS_VISIBLE,
+                                                          0, 0, GetSystemMetrics(SM_CXSCREEN),
+                                                          GetSystemMetrics(SM_CYSCREEN),
+                                                          NULL, NULL, hInstance, NULL);
 
                                if (hwndSaver)
                                {
@@ -4013,12 +4013,12 @@ static void process_menus(WORD wCmd)
 
 #ifdef __MWERKS__
 LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
-                                  WPARAM wParam, LPARAM lParam);
+                                 WPARAM wParam, LPARAM lParam);
 LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
-                                  WPARAM wParam, LPARAM lParam)
+                                 WPARAM wParam, LPARAM lParam)
 #else /* __MWERKS__ */
 LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
-                                          WPARAM wParam, LPARAM lParam)
+                                         WPARAM wParam, LPARAM lParam)
 #endif /* __MWERKS__ */
 {
        PAINTSTRUCT ps;
@@ -4320,12 +4320,12 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
 
 #ifdef __MWERKS__
 LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
-                                           WPARAM wParam, LPARAM lParam);
+                                          WPARAM wParam, LPARAM lParam);
 LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
-                                           WPARAM wParam, LPARAM lParam)
+                                          WPARAM wParam, LPARAM lParam)
 #else /* __MWERKS__ */
 LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
-                                           WPARAM wParam, LPARAM lParam)
+                                          WPARAM wParam, LPARAM lParam)
 #endif /* __MWERKS__ */
 {
        term_data *td;
@@ -4540,12 +4540,12 @@ LRESULT FAR PASCAL AngbandListProc(HWND hWnd, UINT uMsg,
 
 #ifdef __MWERKS__
 LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg,
-                                    WPARAM wParam, LPARAM lParam);
+                                   WPARAM wParam, LPARAM lParam);
 LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg,
-                                    WPARAM wParam, LPARAM lParam)
+                                   WPARAM wParam, LPARAM lParam)
 #else /* __MWERKS__ */
 LRESULT FAR PASCAL AngbandSaverProc(HWND hWnd, UINT uMsg,
-                                            WPARAM wParam, LPARAM lParam)
+                                           WPARAM wParam, LPARAM lParam)
 #endif /* __MWERKS__ */
 {
        static int iMouse = 0;
@@ -4643,10 +4643,10 @@ static void hack_plog(cptr str)
        {
 #ifdef JP
                MessageBox(NULL, str, "·Ù¹ð¡ª",
-                          MB_ICONEXCLAMATION | MB_OK);
+                          MB_ICONEXCLAMATION | MB_OK);
 #else
                MessageBox(NULL, str, "Warning",
-                          MB_ICONEXCLAMATION | MB_OK);
+                          MB_ICONEXCLAMATION | MB_OK);
 #endif
 
        }
@@ -4663,10 +4663,10 @@ static void hack_quit(cptr str)
        {
 #ifdef JP
                MessageBox(NULL, str, "¥¨¥é¡¼¡ª",
-                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
+                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
 #else
                MessageBox(NULL, str, "Error",
-                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
+                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
 #endif
 
        }
@@ -4696,10 +4696,10 @@ static void hook_plog(cptr str)
        {
 #ifdef JP
                MessageBox(data[0].w, str, "·Ù¹ð¡ª",
-                          MB_ICONEXCLAMATION | MB_OK);
+                          MB_ICONEXCLAMATION | MB_OK);
 #else
                MessageBox(data[0].w, str, "Warning",
-                          MB_ICONEXCLAMATION | MB_OK);
+                          MB_ICONEXCLAMATION | MB_OK);
 #endif
 
        }
@@ -4719,10 +4719,10 @@ static void hook_quit(cptr str)
        {
 #ifdef JP
                MessageBox(data[0].w, str, "¥¨¥é¡¼¡ª",
-                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
+                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
 #else
                MessageBox(data[0].w, str, "Error",
-                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
+                          MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
 #endif
 
        }
@@ -4926,7 +4926,7 @@ static void init_stuff(void)
 
 
 int FAR PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrevInst,
-                       LPSTR lpCmdLine, int nCmdShow)
+                      LPSTR lpCmdLine, int nCmdShow)
 {
        int i;
 
index d7b4d17..2bd91b3 100644 (file)
@@ -386,7 +386,7 @@ struct infofnt
 /* Init an infowin by giving father as an (info_win*) (or NULL), and data */
 #define Infowin_init_dad(D,X,Y,W,H,B,FG,BG) \
        Infowin_init_data(((D) ? ((D)->win) : (Window)(None)), \
-                         X,Y,W,H,B,FG,BG)
+                         X,Y,W,H,B,FG,BG)
 
 
 /* Init a top level infowin by pos,size,bord,Colors */
@@ -470,7 +470,7 @@ static infofnt *Infofnt = (infofnt*)(NULL);
 
 #ifdef _JP
 #define Infokfnt_set(I) \
-        (Infokfnt = (I))
+       (Infokfnt = (I))
 #endif
 /*
  * Init the current metadpy, with various initialization stuff.
@@ -745,7 +745,7 @@ static errr Infowin_init_real(Window xid)
  *     If 'dad == None' assume 'dad == root'
  */
 static errr Infowin_init_data(Window dad, int x, int y, int w, int h,
-                              int b, Pixell fg, Pixell bg)
+                             int b, Pixell fg, Pixell bg)
 {
        Window xid;
 
@@ -935,7 +935,7 @@ static errr Infowin_fill(void)
 {
        /* Execute the request */
        XFillRectangle(Metadpy->dpy, Infowin->win, Infoclr->gc,
-                      0, 0, Infowin->w, Infowin->h);
+                      0, 0, Infowin->w, Infowin->h);
 
        /* Success */
        return (0);
@@ -1161,7 +1161,7 @@ static errr Infoclr_init_data(Pixell fg, Pixell bg, int op, int stip)
 
        /* Set up the GC mask */
        gc_mask = (GCFunction | GCBackground | GCForeground |
-                  GCFillStyle | GCGraphicsExposures);
+                  GCFillStyle | GCGraphicsExposures);
 
        /* Create the GC detailed above */
        gc = XCreateGC(Metadpy->dpy, Metadpy->root, gc_mask, &gcv);
@@ -1529,65 +1529,65 @@ XDrawMultiString(display,d,gc, x, y, string, len, afont,
 
 #ifdef TOFU      
       if ( (*str) == 0x7f ) {
-          
-          /* 0x7F¤Ï¢£¤Ç·è¤áÂǤÁ */
-          
-          /* Ï¢Â³¤¹¤ë0x7F¤ÎŤµ¤ò¸¡½Ð */
-          slen = 0;
-          while ( str < endp && (*str) == 0x7f ) {
-              slen++; 
+         
+         /* 0x7F¤Ï¢£¤Ç·è¤áÂǤÁ */
+         
+         /* Ï¢Â³¤¹¤ë0x7F¤ÎŤµ¤ò¸¡½Ð */
+         slen = 0;
+         while ( str < endp && (*str) == 0x7f ) {
+             slen++; 
              str++;
-          }
-          
-          /* ÉÁ²è */
-          XFillRectangle( display, d, gc, x, y-afont_ascent, 
-                          slen * afont_width, afont_height);
+         }
+         
+         /* ÉÁ²è */
+         XFillRectangle( display, d, gc, x, y-afont_ascent, 
+                         slen * afont_width, afont_height);
  
-          /* ¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤ë */
-          x += afont_width * slen;
+         /* ¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤ë */
+         x += afont_width * slen;
       } 
       else  
 #endif
       if ( iskanji(*str) ) {
-          
-          /* UJIS¤Î»Ï¤Þ¤ê */
-          
-          /* Ï¢Â³¤¹¤ëUJISʸ»ú¤ÎŤµ¤ò¸¡½Ð */
-          slen = 0;
-          while ( str < endp && *str && iskanji(*str) ) {
-              kanji[slen].byte1 = *str++ & 0x7f;
-              kanji[slen++].byte2 = *str++ & 0x7f;
-          }
-          
-          /* ÉÁ²è */
-          XSetFont( display, gc, kfont->fid );
-          XDrawImageString16( display, d, gc, x, y, kanji, slen );
+         
+         /* UJIS¤Î»Ï¤Þ¤ê */
+         
+         /* Ï¢Â³¤¹¤ëUJISʸ»ú¤ÎŤµ¤ò¸¡½Ð */
+         slen = 0;
+         while ( str < endp && *str && iskanji(*str) ) {
+             kanji[slen].byte1 = *str++ & 0x7f;
+             kanji[slen++].byte2 = *str++ & 0x7f;
+         }
+         
+         /* ÉÁ²è */
+         XSetFont( display, gc, kfont->fid );
+         XDrawImageString16( display, d, gc, x, y, kanji, slen );
 
  
-          /* ¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤ë */
-          x += kfont_width * slen;
-          
+         /* ¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤ë */
+         x += kfont_width * slen;
+         
       } else {
-          
-          /* Èó´Á»ú(=ASCII¤È²¾Äê)¤Î»Ï¤Þ¤ê */
-          
-          /* Ï¢Â³¤¹¤ëASCIIʸ»ú¤ò¸¡½Ð */
-          p = str;
-          slen = 0;
-          while ( str < endp && *str && !iskanji(*str) ) {
+         
+         /* Èó´Á»ú(=ASCII¤È²¾Äê)¤Î»Ï¤Þ¤ê */
+         
+         /* Ï¢Â³¤¹¤ëASCIIʸ»ú¤ò¸¡½Ð */
+         p = str;
+         slen = 0;
+         while ( str < endp && *str && !iskanji(*str) ) {
 #ifdef TOFU
-              if (*str == 0x7f)break;
-#endif
-              str++;
-              slen++;
-          }
-          
-          /* ÉÁ²è */
-          XSetFont( display, gc, afont->fid );
-          XDrawImageString( display, d, gc, x, y, p, slen );
-          
-          /* ¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤ë */
-          x += afont_width * slen;
+             if (*str == 0x7f)break;
+#endif
+             str++;
+             slen++;
+         }
+         
+         /* ÉÁ²è */
+         XSetFont( display, gc, afont->fid );
+         XDrawImageString( display, d, gc, x, y, p, slen );
+         
+         /* ¥Ý¥¤¥ó¥¿¤ò¿Ê¤á¤ë */
+         x += afont_width * slen;
       }
     }
 }
@@ -1644,7 +1644,7 @@ static errr Infofnt_text_std(int x, int y, cptr str, int len)
                {
                        /* Note that the Infoclr is set up to contain the Infofnt */
                        XDrawImageString(Metadpy->dpy, Infowin->win, Infoclr->gc,
-                                        x + i * Infofnt->wid + Infofnt->off, y, str + i, 1);
+                                        x + i * Infofnt->wid + Infofnt->off, y, str + i, 1);
                }
        }
 
@@ -1655,17 +1655,17 @@ static errr Infofnt_text_std(int x, int y, cptr str, int len)
 #ifdef _JP
                /* ´Á»ú¥Õ¥©¥ó¥È¤Îɽ¼¨Éý¤Ï ASCII¥Õ¥©¥ó¥È¤Î2Çܤ˸ÇÄê */
                XDrawMultiString(Metadpy->dpy, Infowin->win, Infoclr->gc,
-                                x, y, str, len,
-                                Infofnt->info, Infofnt->wid, Infofnt->hgt,
-                                 Infofnt->asc, 
-                                 Infokfnt->info, Infofnt->wid * 2);
+                                x, y, str, len,
+                                Infofnt->info, Infofnt->wid, Infofnt->hgt,
+                                Infofnt->asc, 
+                                Infokfnt->info, Infofnt->wid * 2);
 #else
 #ifdef USE_FONTSET
                XmbDrawImageString(Metadpy->dpy, Infowin->win, Infofnt->info,
-                                  Infoclr->gc, x, y, str, len);
+                                  Infoclr->gc, x, y, str, len);
 #else
                XDrawImageString(Metadpy->dpy, Infowin->win, Infoclr->gc,
-                                x, y, str, len);
+                                x, y, str, len);
 #endif
 #endif
 
@@ -1908,18 +1908,18 @@ static void react_keypress(XKeyEvent *xev)
        if (ks)
        {
                sprintf(msg, "%c%s%s%s%s_%lX%c", 31,
-                       mc ? "N" : "", ms ? "S" : "",
-                       mo ? "O" : "", mx ? "M" : "",
-                       (unsigned long)(ks), 13);
+                       mc ? "N" : "", ms ? "S" : "",
+                       mo ? "O" : "", mx ? "M" : "",
+                       (unsigned long)(ks), 13);
        }
 
        /* Hack -- Use the Keycode */
        else
        {
                sprintf(msg, "%c%s%s%s%sK_%X%c", 31,
-                       mc ? "N" : "", ms ? "S" : "",
-                       mo ? "O" : "", mx ? "M" : "",
-                       ev->keycode, 13);
+                       mc ? "N" : "", ms ? "S" : "",
+                       mo ? "O" : "", mx ? "M" : "",
+                       ev->keycode, 13);
        }
 
        /* Enqueue the "macro trigger" string */
@@ -2357,9 +2357,9 @@ static errr Term_xtra_x11_react(void)
 
                                /* Create pixel */
                                pixel = create_pixel(Metadpy->dpy,
-                                                    color_table[i][1],
-                                                    color_table[i][2],
-                                                    color_table[i][3]);
+                                                    color_table[i][1],
+                                                    color_table[i][2],
+                                                    color_table[i][3]);
 
                                /* Change the foreground */
                                Infoclr_set(clr[i]);
@@ -2386,7 +2386,7 @@ static errr Term_xtra_x11(int n, int v)
 
 #ifdef USE_SOUND
                /* Make a special sound */
-               case TERM_XTRA_SOUND: return (Term_xtra_x11_sound(v));
+               case TERM_XTRA_SOUND: return (Term_xtra_x11_sound(v));
 #endif
 
                /* Flush the output XXX XXX */
@@ -2446,7 +2446,7 @@ static errr Term_bigcurs_x11(int x, int y)
        Infoclr_set(xor);
 
        /* Hilite the cursor character */
-        Infofnt_text_non(x, y, "  ", 2);
+       Infofnt_text_non(x, y, "  ", 2);
 
        /* Success */
        return (0);
@@ -2544,11 +2544,11 @@ static errr Term_pict_x11(int x, int y, int n, const byte *ap, const char *cp)
                {
                        /* Draw object / terrain */
                        XPutImage(Metadpy->dpy, td->win->win,
-                               clr[0]->gc,
-                               td->tiles,
-                               x1, y1,
-                               x, y,
-                               td->fnt->twid, td->fnt->hgt);   
+                               clr[0]->gc,
+                               td->tiles,
+                               x1, y1,
+                               x, y,
+                               td->fnt->twid, td->fnt->hgt);   
                }
                else
                {
@@ -2576,21 +2576,21 @@ static errr Term_pict_x11(int x, int y, int n, const byte *ap, const char *cp)
                        /* Draw to screen */
 
                        XPutImage(Metadpy->dpy, td->win->win,
-                             clr[0]->gc,
-                            td->TmpImage,
-                            0, 0, x, y,
-                            td->fnt->twid, td->fnt->hgt);
+                             clr[0]->gc,
+                            td->TmpImage,
+                            0, 0, x, y,
+                            td->fnt->twid, td->fnt->hgt);
                }
 
 #else /* USE_TRANSPARENCY */
 
                /* Draw object / terrain */
                XPutImage(Metadpy->dpy, td->win->win,
-                         clr[0]->gc,
-                         td->tiles,
-                         x1, y1,
-                         x, y,
-                         td->fnt->twid, td->fnt->hgt);
+                         clr[0]->gc,
+                         td->tiles,
+                         x1, y1,
+                         x, y,
+                         td->fnt->twid, td->fnt->hgt);
 
 #endif /* USE_TRANSPARENCY */
        }
@@ -2912,7 +2912,7 @@ static errr term_data_init(term_data *td, int i)
        MAKE(td->win, infowin);
        Infowin_set(td->win);
        Infowin_init_top(x, y, wid, hgt, 0,
-                        Metadpy->fg, Metadpy->bg);
+                        Metadpy->fg, Metadpy->bg);
 
        /* Ask for certain events */
 #if defined(USE_XIM)
@@ -3161,9 +3161,9 @@ errr init_x11(int argc, char *argv[])
                {
                        /* Create pixel */
                        pixel = create_pixel(Metadpy->dpy,
-                                            color_table[i][1],
-                                            color_table[i][2],
-                                            color_table[i][3]);
+                                            color_table[i][1],
+                                            color_table[i][2],
+                                            color_table[i][3]);
                }
 
                /* Initialize the color */
@@ -3273,8 +3273,8 @@ errr init_x11(int argc, char *argv[])
                        /* Resize tiles */
                        td->tiles =
                        ResizeImage(dpy, tiles_raw,
-                                   pict_wid, pict_hgt,
-                                   td->fnt->twid, td->fnt->hgt);
+                                   pict_wid, pict_hgt,
+                                   td->fnt->twid, td->fnt->hgt);
                }
 
 #ifdef USE_TRANSPARENCY
index 234b7f2..c6248af 100644 (file)
@@ -345,13 +345,13 @@ static XtResource resources[] =
 static void Initialize(AngbandWidget request, AngbandWidget new);
 static void Redisplay(AngbandWidget w, XEvent *event, Region region);
 static Boolean SetValues(AngbandWidget current, AngbandWidget request,
-                         AngbandWidget new, ArgList args, Cardinal *num_args);
+                        AngbandWidget new, ArgList args, Cardinal *num_args);
 static void Destroy(AngbandWidget widget);
 
 /* Forward declaration for internal functions */
 static void calculateSizeHints(AngbandWidget new);
 static XFontStruct *getFont(AngbandWidget widget,
-                            String font, Boolean fallback);
+                           String font, Boolean fallback);
 
 
 /* Class record constanst */
@@ -411,7 +411,7 @@ WidgetClass angbandWidgetClass = (WidgetClass) &angbandClassRec;
  * Public procedures
  */
 static void AngbandOutputText(AngbandWidget widget, int x, int y,
-                              String txt, int len, int color)
+                             String txt, int len, int color)
 {
        /* Do nothing if the string is null */
        if (!txt || !*txt)
@@ -428,11 +428,11 @@ static void AngbandOutputText(AngbandWidget widget, int x, int y,
 
        /* Place the string */
        XDrawImageString (XtDisplay(widget), XtWindow(widget),
-                         widget->angband.gc[color], x, y, txt, len);
+                         widget->angband.gc[color], x, y, txt, len);
 }
 
 static void AngbandClearArea(AngbandWidget widget,
-                             int x, int y, int w, int h, int color)
+                            int x, int y, int w, int h, int color)
 {
        /* Figure out which area to clear */
        y = y * widget->angband.fontheight + widget->angband.internal_border;
@@ -440,9 +440,9 @@ static void AngbandClearArea(AngbandWidget widget,
 
        /* Clear the area */
        XFillRectangle(XtDisplay(widget), XtWindow(widget),
-                      widget->angband.gc[color],
-                      x, y, widget->angband.fontwidth*w,
-                      widget->angband.fontheight*h);
+                      widget->angband.gc[color],
+                      x, y, widget->angband.fontwidth*w,
+                      widget->angband.fontheight*h);
 }
 
 /*
@@ -485,8 +485,8 @@ static void Initialize(AngbandWidget request, AngbandWidget new)
                else
                        gcv.foreground = new->angband.color[n];
                new->angband.gc[n] = XtGetGC((Widget)new, GCFont | GCForeground |
-                                            GCBackground | GCGraphicsExposures,
-                                            &gcv);
+                                            GCBackground | GCGraphicsExposures,
+                                            &gcv);
        }
 
        /* Create a special GC for highlighting */
@@ -494,8 +494,8 @@ static void Initialize(AngbandWidget request, AngbandWidget new)
        WhitePixelOfScreen(XtScreen((Widget)new));
        gcv.function = GXxor;
        new->angband.gc[NUM_COLORS] = XtGetGC((Widget)new, GCFunction |
-                                             GCGraphicsExposures |
-                                             GCForeground, &gcv);
+                                             GCGraphicsExposures |
+                                             GCForeground, &gcv);
 
        /* Calculate window geometry */
        new->core.height = new->angband.start_rows * new->angband.fontheight +
@@ -544,8 +544,8 @@ static void Redisplay(AngbandWidget widget, XEvent *event, Region region)
  * can potentially have effects that spans the whole widget).
  */
 static Boolean SetValues(AngbandWidget current, AngbandWidget request,
-                         AngbandWidget new, ArgList args,
-                         Cardinal *num_args)
+                        AngbandWidget new, ArgList args,
+                        Cardinal *num_args)
 {
        int depth = DefaultDepthOfScreen(XtScreen((Widget) new));
        Boolean font_changed = FALSE;
@@ -604,8 +604,8 @@ static Boolean SetValues(AngbandWidget current, AngbandWidget request,
                        XtReleaseGC((Widget)current, current->angband.gc[n]);
                        /* Get the new GC */
                        new->angband.gc[n] = XtGetGC((Widget)new, GCFont | GCForeground |
-                                                    GCBackground | GCGraphicsExposures,
-                                                    &gcv);
+                                                    GCBackground | GCGraphicsExposures,
+                                                    &gcv);
                }
 
                /* Replace the old XOR/highlighting GC */
@@ -614,8 +614,8 @@ static Boolean SetValues(AngbandWidget current, AngbandWidget request,
                gcv.function = GXxor;
                XtReleaseGC((Widget)current, current->angband.gc[NUM_COLORS]);
                new->angband.gc[NUM_COLORS] = XtGetGC((Widget)new, GCFunction |
-                                                     GCGraphicsExposures |
-                                                     GCForeground, &gcv);
+                                                     GCGraphicsExposures |
+                                                     GCForeground, &gcv);
                /* Fix the background color */
                new->core.background_pixel = new->angband.color[0];
        }
@@ -696,7 +696,7 @@ static void calculateSizeHints(AngbandWidget new)
  * Load a font
  */
 static XFontStruct *getFont(AngbandWidget widget,
-                            String font, Boolean fallback)
+                           String font, Boolean fallback)
 {
        Display *dpy = XtDisplay((Widget) widget);
        char buf[256];
@@ -880,7 +880,7 @@ static String fallback[] =
  * Do a redraw
  */
 static void react_redraw(Widget widget,
-                         XtPointer client_data, XtPointer call_data)
+                        XtPointer client_data, XtPointer call_data)
 {
        term_data *old_td = (term_data*)(Term->data);
        term_data *td = (term_data*)client_data;
@@ -954,18 +954,18 @@ static void react_keypress(XKeyEvent *ev)
        if (ks)
        {
                sprintf(msg, "%c%s%s%s%s_%lX%c", 31,
-                       mc ? "N" : "", ms ? "S" : "",
-                       mo ? "O" : "", mx ? "M" : "",
-                       (unsigned long)(ks), 13);
+                       mc ? "N" : "", ms ? "S" : "",
+                       mo ? "O" : "", mx ? "M" : "",
+                       (unsigned long)(ks), 13);
        }
 
        /* Hack -- Use the Keycode */
        else
        {
                sprintf(msg, "%c%s%s%s%sK_%X%c", 31,
-                       mc ? "N" : "", ms ? "S" : "",
-                       mo ? "O" : "", mx ? "M" : "",
-                       ev->keycode, 13);
+                       mc ? "N" : "", ms ? "S" : "",
+                       mo ? "O" : "", mx ? "M" : "",
+                       ev->keycode, 13);
        }
 
        /* Enqueue the "fake" string */
@@ -989,7 +989,7 @@ static void react_keypress(XKeyEvent *ev)
 
 
 static void handle_event (Widget widget, XtPointer client_data, XEvent *event,
-                          Boolean *continue_to_dispatch)
+                         Boolean *continue_to_dispatch)
 {
        term_data *old_td = (term_data*)(Term->data);
        term_data *td = (term_data *)client_data;
@@ -1085,7 +1085,7 @@ static errr Term_xtra_xaw(int n, int v)
                for (i=0; i<MAX_TERM_DATA; i++) {
                    if (Term == &data[i].t)
                        XClearWindow(XtDisplay((Widget)data[i].widget),
-                                    XtWindow((Widget)data[i].widget));
+                                    XtWindow((Widget)data[i].widget));
                }
                return (0);
        }
@@ -1157,20 +1157,20 @@ static void term_raise(term_data win)
  * Initialize a term_data
  */
 static errr term_data_init(term_data *td, Widget topLevel,
-                           int key_buf, String name,
-                           ArgList widget_arg, Cardinal widget_arg_no)
+                          int key_buf, String name,
+                          ArgList widget_arg, Cardinal widget_arg_no)
 {
        Widget parent;
        term *t = &td->t;
 
        /* Create the shell widget */
        parent = XtCreatePopupShell(name, topLevelShellWidgetClass, topLevel,
-                                   NULL, 0);
+                                   NULL, 0);
 
        /* Create the interior widget */
        td->widget = (AngbandWidget)
        XtCreateManagedWidget (name, angbandWidgetClass,
-                              parent, widget_arg, widget_arg_no);
+                              parent, widget_arg, widget_arg_no);
 
        /* Initialize the term (full size) */
        term_init(t, 80, 24, key_buf);
@@ -1193,11 +1193,11 @@ static errr term_data_init(term_data *td, Widget topLevel,
 
        /* Register the keypress event handler */
        XtAddEventHandler((Widget)td->widget, KeyPressMask,
-                         False, (XtEventHandler) handle_event, td);
+                         False, (XtEventHandler) handle_event, td);
 
        /* Redraw callback */
        XtAddCallback((Widget)td->widget, XtNredrawCallback,
-                     react_redraw, td);
+                     react_redraw, td);
 
        /* Realize the widget */
        XtRealizeWidget(parent);
@@ -1255,7 +1255,7 @@ errr init_xaw(void)
 
        /* Initialize the toolkit */
        topLevel = XtAppInitialize (&appcon, "Angband", NULL, 0, &argc, argv,
-                                   fallback, NULL, 0);
+                                   fallback, NULL, 0);
 
        /* Initialize the windows */
        for (i=0; i<MAX_TERM_DATA; i++) {
index 6513bb4..c46c271 100644 (file)
@@ -120,13 +120,13 @@ cptr            p = "ǽ
        (void)strnfmt(out_val, 78, "(%c-%c, *=List, ESC=exit) Use which %s? ",
 #endif
 
-               I2A(0), I2A(num - 1), p);
+               I2A(0), I2A(num - 1), p);
 
        /* Get a spell from the user */
 
-        choice= always_show_list ? ESCAPE:1 ;
-        while (!flag)
-        {
+       choice= always_show_list ? ESCAPE:1 ;
+       while (!flag)
+       {
                if(choice==ESCAPE) choice = ' '; 
                else if( !get_com(out_val, &choice, TRUE) )break; 
 
@@ -195,8 +195,8 @@ put_str("
 
                                        /* Dump the spell --(-- */
                                        sprintf(psi_desc, "  %c) %-30s %3d%%%s",
-                                               I2A(i), spell.name,
-                                               chance, comment);
+                                               I2A(i), spell.name,
+                                               chance, comment);
                                        prt(psi_desc, y + i + 1, x);
                                }
 
index b8d5e99..1862dd1 100644 (file)
@@ -166,7 +166,7 @@ bool make_attack_normal(int m_idx)
        bool blinked;
        bool touched = FALSE, fear = FALSE, alive = TRUE;
        bool explode = FALSE;
-        bool resist_drain = FALSE;
+       bool resist_drain = FALSE;
        bool do_silly_attack = (one_in_(2) && p_ptr->image);
        int syouryaku = 0;
        int get_damage = 0;
@@ -487,7 +487,7 @@ bool make_attack_normal(int m_idx)
                                case RBM_CHARGE:
                                {
 #ifdef JP
-                                       syouryaku = -1;
+                                       syouryaku = -1;
                                        act = "¤ÏÀÁµá½ñ¤ò¤è¤³¤·¤¿¡£";
 #else
                                        act = "charges you.";
@@ -501,7 +501,7 @@ bool make_attack_normal(int m_idx)
                                case RBM_CRAWL:
                                {
 #ifdef JP
-                                       syouryaku = -1;
+                                       syouryaku = -1;
                                        act = "¤¬ÂΤξå¤òÇ礤²ó¤Ã¤¿¡£";
 #else
                                        act = "crawls on you.";
@@ -538,7 +538,7 @@ bool make_attack_normal(int m_idx)
 
                                case RBM_EXPLODE:
                                {
-                                       syouryaku = -1;
+                                       syouryaku = -1;
 #ifdef JP
                                        act = "¤ÏÇúȯ¤·¤¿¡£";
 #else
@@ -586,7 +586,7 @@ bool make_attack_normal(int m_idx)
 
                                case RBM_XXX4:
                                {
-                                       syouryaku = -1;
+                                       syouryaku = -1;
 #ifdef JP
                                        act = "¤¬ XXX4 ¤òȯ¼Í¤·¤¿¡£";
 #else
@@ -610,7 +610,7 @@ bool make_attack_normal(int m_idx)
 
                                case RBM_INSULT:
                                {
-                                       syouryaku = -1;
+                                       syouryaku = -1;
                                        act = desc_insult[randint0(m_ptr->r_idx == MON_DEBBY ? 10 : 8)];
                                        sound(SOUND_MOAN);
                                        break;
@@ -618,7 +618,7 @@ bool make_attack_normal(int m_idx)
 
                                case RBM_MOAN:
                                {
-                                       syouryaku = -1;
+                                       syouryaku = -1;
                                        act = desc_moan[randint0(4)];
                                        sound(SOUND_MOAN);
                                        break;
@@ -626,7 +626,7 @@ bool make_attack_normal(int m_idx)
 
                                case RBM_SHOW:
                                {
-                                       syouryaku = -1;
+                                       syouryaku = -1;
                                        if (m_ptr->r_idx == MON_JAIAN)
                                        {
 #ifdef JP
@@ -901,7 +901,7 @@ bool make_attack_normal(int m_idx)
                                        /* Saving throw (unless paralyzed) based on dex and level */
                                        if (!p_ptr->paralyzed &&
                                            (randint0(100) < (adj_dex_safe[p_ptr->stat_ind[A_DEX]] +
-                                                             p_ptr->lev)))
+                                                             p_ptr->lev)))
                                        {
                                                /* Saving throw message */
 #ifdef JP
@@ -982,7 +982,7 @@ bool make_attack_normal(int m_idx)
                                        /* Saving throw (unless paralyzed) based on dex and level */
                                        if (!p_ptr->paralyzed &&
                                            (randint0(100) < (adj_dex_safe[p_ptr->stat_ind[A_DEX]] +
-                                                             p_ptr->lev)))
+                                                             p_ptr->lev)))
                                        {
                                                /* Saving throw message */
 #ifdef JP
@@ -1025,12 +1025,12 @@ bool make_attack_normal(int m_idx)
                                                /* Message */
 #ifdef JP
                                                msg_format("%s(%c)¤ò%sÅð¤Þ¤ì¤¿¡ª",
-                                                          o_name, index_to_label(i),
-                                                          ((o_ptr->number > 1) ? "°ì¤Ä" : ""));
+                                                          o_name, index_to_label(i),
+                                                          ((o_ptr->number > 1) ? "°ì¤Ä" : ""));
 #else
                                                msg_format("%sour %s (%c) was stolen!",
-                                                          ((o_ptr->number > 1) ? "One of y" : "Y"),
-                                                          o_name, index_to_label(i));
+                                                          ((o_ptr->number > 1) ? "One of y" : "Y"),
+                                                          o_name, index_to_label(i));
 #endif
 
                                                chg_virtue(V_SACRIFICE, 1);
@@ -1122,12 +1122,12 @@ bool make_attack_normal(int m_idx)
                                                /* Message */
 #ifdef JP
                                                msg_format("%s(%c)¤ò%s¿©¤Ù¤é¤ì¤Æ¤·¤Þ¤Ã¤¿¡ª",
-                                                         o_name, index_to_label(i),
-                                                         ((o_ptr->number > 1) ? "°ì¤Ä" : ""));
+                                                         o_name, index_to_label(i),
+                                                         ((o_ptr->number > 1) ? "°ì¤Ä" : ""));
 #else
                                                msg_format("%sour %s (%c) was eaten!",
-                                                          ((o_ptr->number > 1) ? "One of y" : "Y"),
-                                                          o_name, index_to_label(i));
+                                                          ((o_ptr->number > 1) ? "One of y" : "Y"),
+                                                          o_name, index_to_label(i));
 #endif
 
 
@@ -1640,7 +1640,7 @@ bool make_attack_normal(int m_idx)
                                        else if (p_ptr->hold_life && (randint0(100) < 75))
                                        {
 #ifdef JP
-                                                msg_print("¤·¤«¤·¼«¸Ê¤ÎÀ¸Ì¿ÎϤò¼é¤ê¤­¤Ã¤¿¡ª");
+                                               msg_print("¤·¤«¤·¼«¸Ê¤ÎÀ¸Ì¿ÎϤò¼é¤ê¤­¤Ã¤¿¡ª");
 #else
                                                msg_print("You keep hold of your life force!");
 #endif
@@ -1652,7 +1652,7 @@ bool make_attack_normal(int m_idx)
                                                if (p_ptr->hold_life)
                                                {
 #ifdef JP
-                                                        msg_print("À¸Ì¿ÎϤò¾¯¤·µÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
+                                                       msg_print("À¸Ì¿ÎϤò¾¯¤·µÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
 #else
                                                        msg_print("You feel your life slipping away!");
 #endif
@@ -1662,7 +1662,7 @@ bool make_attack_normal(int m_idx)
                                                else
                                                {
 #ifdef JP
-                                                        msg_print("À¸Ì¿ÎϤ¬ÂΤ«¤éµÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
+                                                       msg_print("À¸Ì¿ÎϤ¬ÂΤ«¤éµÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
 #else
                                                        msg_print("You feel your life draining away!");
 #endif
@@ -1689,7 +1689,7 @@ bool make_attack_normal(int m_idx)
                                        else if (p_ptr->hold_life && (randint0(100) < 50))
                                        {
 #ifdef JP
-                                                msg_print("¤·¤«¤·¼«¸Ê¤ÎÀ¸Ì¿ÎϤò¼é¤ê¤­¤Ã¤¿¡ª");
+                                               msg_print("¤·¤«¤·¼«¸Ê¤ÎÀ¸Ì¿ÎϤò¼é¤ê¤­¤Ã¤¿¡ª");
 #else
                                                msg_print("You keep hold of your life force!");
 #endif
@@ -1701,7 +1701,7 @@ bool make_attack_normal(int m_idx)
                                                if (p_ptr->hold_life)
                                                {
 #ifdef JP
-                                                        msg_print("À¸Ì¿ÎϤò¾¯¤·µÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
+                                                       msg_print("À¸Ì¿ÎϤò¾¯¤·µÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
 #else
                                                        msg_print("You feel your life slipping away!");
 #endif
@@ -1711,7 +1711,7 @@ bool make_attack_normal(int m_idx)
                                                else
                                                {
 #ifdef JP
-                                                        msg_print("À¸Ì¿ÎϤ¬ÂΤ«¤éµÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
+                                                       msg_print("À¸Ì¿ÎϤ¬ÂΤ«¤éµÛ¤¤¼è¤é¤ì¤¿µ¤¤¬¤¹¤ë¡ª");
 #else
                                                        msg_print("You feel your life draining away!");
 #endif
@@ -1817,7 +1817,7 @@ bool make_attack_normal(int m_idx)
                                                        case 10:
                                                        {
 #ifdef JP
-                                               msg_print("¤¢¤Ê¤¿¤Ï°ÊÁ°¤Û¤ÉÎ϶¯¤¯¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿...¡£");
+                                               msg_print("¤¢¤Ê¤¿¤Ï°ÊÁ°¤Û¤ÉÎ϶¯¤¯¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿...¡£");
 #else
                                                                msg_print("You're not as powerful as you used to be...");
 #endif
index 44f3454..33857e0 100644 (file)
@@ -1103,8 +1103,8 @@ static bool get_moves(int m_idx, int *mm)
        bool         no_flow = ((m_ptr->mflag2 & MFLAG_NOFLOW) && (cave[m_ptr->fy][m_ptr->fx].cost > 2));
        bool         can_pass_wall;
 
-        /* Flow towards the player */
-        (void)get_moves_aux(m_idx, &y2, &x2, no_flow);
+       /* Flow towards the player */
+       (void)get_moves_aux(m_idx, &y2, &x2, no_flow);
 
        can_pass_wall = ((r_ptr->flags2 & RF2_PASS_WALL) && ((m_idx != p_ptr->riding) || (p_ptr->pass_wall)));
 
@@ -1233,8 +1233,8 @@ static bool get_moves(int m_idx, int *mm)
        }
 
 
-        /* Check for no move */
-        if (!x && !y) return (FALSE);
+       /* Check for no move */
+       if (!x && !y) return (FALSE);
 
 
        /* Extract the "absolute distances" */
@@ -2071,7 +2071,7 @@ msg_format("%s
                                        /* Aura fire */
                                        if ((tr_ptr->flags2 & RF2_AURA_FIRE) &&
                                                !(r_ptr->flags3 & RF3_IM_FIRE) &&
-                                               !(r_ptr->flags3 & RF3_RES_ALL) && m_ptr->r_idx)
+                                               !(r_ptr->flags3 & RF3_RES_ALL) && m_ptr->r_idx)
                                        {
                                                if (see_either)
                                                {
@@ -2094,7 +2094,7 @@ msg_format("%^s
                                        /* Aura cold */
                                        if ((tr_ptr->flags3 & RF3_AURA_COLD) &&
                                                !(r_ptr->flags3 & RF3_IM_COLD) &&
-                                               !(r_ptr->flags3 & RF3_RES_ALL) && m_ptr->r_idx)
+                                               !(r_ptr->flags3 & RF3_RES_ALL) && m_ptr->r_idx)
                                        {
                                                if (see_either)
                                                {
@@ -2116,8 +2116,8 @@ msg_format("%^s
 
                                        /* Aura elec */
                                        if ((tr_ptr->flags2 & (RF2_AURA_ELEC)) &&
-                                               !(r_ptr->flags3 & (RF3_IM_ELEC)) &&
-                                               !(r_ptr->flags3 & RF3_RES_ALL) && m_ptr->r_idx)
+                                               !(r_ptr->flags3 & (RF3_IM_ELEC)) &&
+                                               !(r_ptr->flags3 & RF3_RES_ALL) && m_ptr->r_idx)
                                        {
                                                if (see_either)
                                                {
@@ -2448,7 +2448,7 @@ msg_format("%^s
 #ifdef JP
 msg_print("ÃÏÌ̤ËÍî¤È¤µ¤ì¤¿¡£");
 #else
-                                                msg_print("You have fallen from riding pet.");
+                                               msg_print("You have fallen from riding pet.");
 #endif
                                        }
                                }
@@ -2931,7 +2931,7 @@ msg_format("%^s%s", m_name, monmessage);
        /* 75% random movement */
        else if ((r_ptr->flags1 & RF1_RAND_50) &&
                                (r_ptr->flags1 & RF1_RAND_25) &&
-                (randint0(100) < 75))
+                (randint0(100) < 75))
        {
                /* Memorize flags */
                if (m_ptr->ml) r_ptr->r_flags1 |= (RF1_RAND_50);
@@ -3140,7 +3140,7 @@ msg_print("
                        c_ptr->info &= ~(CAVE_MARK);
 
                        /* Notice */
-                        cave_set_feat(ny, nx, floor_type[randint0(100)]);
+                       cave_set_feat(ny, nx, floor_type[randint0(100)]);
 
                        /* Note changes to viewable region */
                        if (player_has_los_bold(ny, nx)) do_view = TRUE;
@@ -3268,8 +3268,8 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Break the rune */
-                                c_ptr->info &= ~(CAVE_OBJECT);
-                                c_ptr->mimic = 0;
+                               c_ptr->info &= ~(CAVE_OBJECT);
+                               c_ptr->mimic = 0;
 
                                /* Allow movement */
                                do_move = TRUE;
@@ -3279,7 +3279,7 @@ msg_print("
                        }
                }
                else if (do_move && is_explosive_rune_grid(c_ptr) &&
-                        !((r_ptr->flags1 & RF1_NEVER_BLOW) && (py == ny) && (px == nx)))
+                        !((r_ptr->flags1 & RF1_NEVER_BLOW) && (py == ny) && (px == nx)))
                {
                        /* Assume no move allowed */
                        do_move = FALSE;
@@ -3315,8 +3315,8 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Break the rune */
-                                c_ptr->info &= ~(CAVE_OBJECT);
-                                c_ptr->mimic = 0;
+                               c_ptr->info &= ~(CAVE_OBJECT);
+                               c_ptr->mimic = 0;
 
                                note_spot(ny, nx);
                                lite_spot(ny, nx);
@@ -3452,7 +3452,7 @@ msg_print("
                        {
                                if (r_ptr->flags2 & RF2_KILL_WALL)
                                {
-                                        cave_set_feat(ny, nx, FEAT_GRASS);
+                                       cave_set_feat(ny, nx, FEAT_GRASS);
 
                                }
                                if (!(r_ptr->flags7 & RF7_CAN_FLY) && !(r_ptr->flags8 & RF8_WILD_WOOD))
@@ -3513,9 +3513,9 @@ msg_print("
 
                        /* Possible disturb */
                        if (m_ptr->ml &&
-                            (disturb_move ||
-                             (disturb_near && (m_ptr->mflag & MFLAG_VIEW)) ||
-                             (disturb_high && ap_r_ptr->r_tkills && ap_r_ptr->level >= p_ptr->lev)))
+                           (disturb_move ||
+                            (disturb_near && (m_ptr->mflag & MFLAG_VIEW)) ||
+                            (disturb_high && ap_r_ptr->r_tkills && ap_r_ptr->level >= p_ptr->lev)))
                        {
                                /* Disturb */
                                if (is_hostile(m_ptr))
@@ -3821,8 +3821,8 @@ void process_monsters(void)
 
        int speed;
 
-        /* Clear monster fighting indicator */
-        mon_fight = FALSE;
+       /* Clear monster fighting indicator */
+       mon_fight = FALSE;
 
        /* Memorize old race */
        old_monster_race_idx = p_ptr->monster_race_idx;
@@ -4032,7 +4032,7 @@ bool process_the_world(int num, int who, bool vs_player)
 #ifdef JP
                        msg_print("¡Ö»þ¤è¡ª¡×");
 #else
-                       msg_format("%s yells 'Time!'", m_name);
+                       msg_format("%s yells 'Time!'", m_name);
 #endif
                else msg_print("hek!");
 
index fd7c083..feda07e 100644 (file)
@@ -568,15 +568,15 @@ void mindcraft_info(char *p, int use_mind, int power)
 #else
                (void)strnfmt(out_val, 78, "(%^ss %c-%c, *=List, ESC=exit) Use which %s? ",
 #endif
-               p, I2A(0), I2A(num - 1), p);
+               p, I2A(0), I2A(num - 1), p);
        }
 
        if (use_menu && !only_browse) screen_save();
        /* Get a spell from the user */
 
-        choice= (always_show_list || use_menu) ? ESCAPE:1 ;
-        while (!flag)
-        {
+       choice= (always_show_list || use_menu) ? ESCAPE:1 ;
+       while (!flag)
+       {
                if(choice==ESCAPE) choice = ' '; 
                else if( !get_com(out_val, &choice, TRUE) )break;
 
@@ -1765,7 +1765,7 @@ msg_print("
                /* Update the old location */
                cave[target_row][target_col].m_idx = 0;
 
-               /* Update the new location */
+               /* Update the new location */
                cave[ty][tx].m_idx = m_idx;
 
                /* Move the monster */
index 0731446..d8535aa 100644 (file)
@@ -141,7 +141,7 @@ static void roff_aux(int r_idx, int mode)
        cptr            p, q;
 
 #ifdef JP
-        char            jverb_buf[64];
+       char            jverb_buf[64];
 #endif
        int             msex = 0;
 
@@ -267,10 +267,10 @@ static void roff_aux(int r_idx, int mode)
                        /* Killed ancestors */
 #ifdef JP
                        hooked_roff(format("%^s¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë",
-                                           wd_he[msex], r_ptr->r_deaths));
+                                          wd_he[msex], r_ptr->r_deaths));
 #else
                        hooked_roff(format("%^s has slain %d of your ancestors",
-                                           wd_he[msex], r_ptr->r_deaths));
+                                          wd_he[msex], r_ptr->r_deaths));
 #endif
 
 
@@ -281,7 +281,7 @@ static void roff_aux(int r_idx, int mode)
                                hooked_roff(format("¤¬¡¢¤¹¤Ç¤ËµØƤ¤Á¤Ï²Ì¤¿¤·¤Æ¤¤¤ë¡ª"));
 #else
                                hooked_roff(format(", but you have avenged %s!  ",
-                                           plural(r_ptr->r_deaths, "him", "them")));
+                                           plural(r_ptr->r_deaths, "him", "them")));
 #endif
 
                        }
@@ -293,13 +293,13 @@ static void roff_aux(int r_idx, int mode)
                                hooked_roff(format("¤Î¤Ë¡¢¤Þ¤ÀµØƤ¤Á¤ò²Ì¤¿¤·¤Æ¤¤¤Ê¤¤¡£"));
 #else
                                hooked_roff(format(", who %s unavenged.  ",
-                                           plural(r_ptr->r_deaths, "remains", "remain")));
+                                           plural(r_ptr->r_deaths, "remains", "remain")));
 #endif
 
                        }
 
-                        /* Start a new line */
-                        hooked_roff("\n");
+                       /* Start a new line */
+                       hooked_roff("\n");
                }
 
                /* Dead unique who never hurt us */
@@ -311,8 +311,8 @@ static void roff_aux(int r_idx, int mode)
                        hooked_roff("You have slain this foe.  ");
 #endif
 
-                        /* Start a new line */
-                        hooked_roff("\n");
+                       /* Start a new line */
+                       hooked_roff("\n");
                }
        }
 
@@ -322,10 +322,10 @@ static void roff_aux(int r_idx, int mode)
                /* Dead ancestors */
 #ifdef JP
                hooked_roff(format("¤³¤Î¥â¥ó¥¹¥¿¡¼¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë",
-                           r_ptr->r_deaths ));
+                           r_ptr->r_deaths ));
 #else
                hooked_roff(format("%d of your ancestors %s been killed by this creature, ",
-                           r_ptr->r_deaths, plural(r_ptr->r_deaths, "has", "have")));
+                           r_ptr->r_deaths, plural(r_ptr->r_deaths, "has", "have")));
 #endif
 
 
@@ -345,10 +345,10 @@ static void roff_aux(int r_idx, int mode)
                {
 #ifdef JP
                        hooked_roff(format("¤¬¡¢%s¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤÏÅݤ·¤Æ¤¤¤ë¡£",
-                                   "¤¢¤Ê¤¿¤ÎÀèÁÄ", r_ptr->r_tkills));
+                                   "¤¢¤Ê¤¿¤ÎÀèÁÄ", r_ptr->r_tkills));
 #else
                        hooked_roff(format("and %s have exterminated at least %d of the creatures.  ",
-                                   "your ancestors", r_ptr->r_tkills));
+                                   "your ancestors", r_ptr->r_tkills));
 #endif
 
                }
@@ -364,8 +364,8 @@ static void roff_aux(int r_idx, int mode)
 
                }
 
-                /* Start a new line */
-                hooked_roff("\n");
+               /* Start a new line */
+               hooked_roff("\n");
        }
 
        /* Normal monsters */
@@ -403,8 +403,8 @@ static void roff_aux(int r_idx, int mode)
 #endif
                }
 
-                /* Start a new line */
-                hooked_roff("\n");
+               /* Start a new line */
+               hooked_roff("\n");
        }
 
        /* Descriptions */
@@ -457,14 +457,14 @@ path_build(buf, sizeof(buf), ANGBAND_DIR_DATA, "r_info_j.raw");
 
 #endif
 
-                if (buf[0])
-                {
-                        /* Dump it */
-                        hooked_roff(buf);
+               if (buf[0])
+               {
+                       /* Dump it */
+                       hooked_roff(buf);
 
-                        /* Start a new line */
-                        hooked_roff("\n");
-                }
+                       /* Start a new line */
+                       hooked_roff("\n");
+               }
        }
 
        if (r_idx == MON_KAGE)
@@ -499,7 +499,7 @@ path_build(buf, sizeof(buf), ANGBAND_DIR_DATA, "r_info_j.raw");
                        hooked_roff(format("%^s is normally found at depths of %d feet",
 #endif
 
-                                   wd_he[msex], r_ptr->level * 50));
+                                   wd_he[msex], r_ptr->level * 50));
                }
                else
                {
@@ -509,7 +509,7 @@ path_build(buf, sizeof(buf), ANGBAND_DIR_DATA, "r_info_j.raw");
                        hooked_roff(format("%^s is normally found on dungeon level %d",
 #endif
 
-                                   wd_he[msex], r_ptr->level));
+                                   wd_he[msex], r_ptr->level));
                }
                old = TRUE;
        }
@@ -822,7 +822,7 @@ else                            hooked_roff("
                               (long)1000 / (p_ptr->max_plv+2) + 5) / 10);
 
                        hooked_roff(format(" Ìó%ld.%02ld ¥Ý¥¤¥ó¥È¤Î·Ð¸³¤È¤Ê¤ë¡£",
-                               (long)i, (long)j ));
+                               (long)i, (long)j ));
 #else
                        /* calculate the integer exp part */
                        i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv+2);
@@ -834,8 +834,8 @@ else                            hooked_roff("
 
                        /* Mention the experience */
                        hooked_roff(format(" is worth about %ld.%02ld point%s",
-                                   (long)i, (long)j,
-                                   (((i == 1) && (j == 0)) ? "" : "s")));
+                                   (long)i, (long)j,
+                                   (((i == 1) && (j == 0)) ? "" : "s")));
 
                        /* Take account of annoying English */
                        p = "th";
@@ -852,7 +852,7 @@ else                            hooked_roff("
 
                        /* Mention the dependance on the player's level */
                        hooked_roff(format(" for a%s %lu%s level character.  ",
-                                   q, (long)i, p));
+                                   q, (long)i, p));
 #endif
 
                }
@@ -941,7 +941,7 @@ hooked_roff(format("%^s
                hooked_roff(format("%^s usually appears with escorts.  ",
 #endif
 
-                           wd_he[msex]));
+                           wd_he[msex]));
        }
 
        /* Describe friends */
@@ -953,7 +953,7 @@ hooked_roff(format("%^s
                hooked_roff(format("%^s usually appears in groups.  ",
 #endif
 
-                           wd_he[msex]));
+                           wd_he[msex]));
        }
 
 
@@ -1428,7 +1428,7 @@ if (flags6 & (RF6_HEAL))            {vp[vn] = "
 #endif
 
 #ifdef JP
-        if (flags6 & (RF6_INVULNER))        {vp[vn] = "̵Ũ²½";color[vn++] = TERM_WHITE;}
+       if (flags6 & (RF6_INVULNER))        {vp[vn] = "̵Ũ²½";color[vn++] = TERM_WHITE;}
 #else
        if (flags6 & (RF6_INVULNER))        {vp[vn] = "make invulnerable";color[vn++] = TERM_WHITE;}
 #endif
@@ -1654,7 +1654,7 @@ if (flags6 & (RF6_S_UNIQUE))        {vp[vn] = "
                        hook_c_roff(color[n], vp[n]);
                }
 #ifdef JP
-                hooked_roff("¤Î¼öʸ¤ò¾§¤¨¤ë¤³¤È¤¬¤¢¤ë");
+               hooked_roff("¤Î¼öʸ¤ò¾§¤¨¤ë¤³¤È¤¬¤¢¤ë");
 #endif
        }
 
@@ -1710,7 +1710,7 @@ if (flags6 & (RF6_S_UNIQUE))        {vp[vn] = "
                hooked_roff(format("%^s has an armor rating of %d",
 #endif
 
-                           wd_he[msex], r_ptr->ac));
+                           wd_he[msex], r_ptr->ac));
 
                /* Maximized hitpoints */
                if (flags1 & RF1_FORCE_MAXHP)
@@ -1721,7 +1721,7 @@ if (flags6 & (RF6_S_UNIQUE))        {vp[vn] = "
                        hooked_roff(format(" and a life rating of %d.  ",
 #endif
 
-                                   r_ptr->hdice * r_ptr->hside));
+                                   r_ptr->hdice * r_ptr->hside));
                }
 
                /* Variable hitpoints */
@@ -1733,7 +1733,7 @@ if (flags6 & (RF6_S_UNIQUE))        {vp[vn] = "
                        hooked_roff(format(" and a life rating of %dd%d.  ",
 #endif
 
-                                   r_ptr->hdice, r_ptr->hside));
+                                   r_ptr->hdice, r_ptr->hside));
                }
        }
 
@@ -2291,7 +2291,7 @@ if ((flags3 & RF3_RES_TELE) && (r_ptr->flags1 & RF1_UNIQUE)) {vp[vn] = "
 
        /* Do we know how aware it is? */
        if ((((int)r_ptr->r_wake * (int)r_ptr->r_wake) > r_ptr->sleep) ||
-                 (r_ptr->r_ignore == MAX_UCHAR) ||
+                 (r_ptr->r_ignore == MAX_UCHAR) ||
            (r_ptr->sleep == 0 && r_ptr->r_tkills >= 10) || know_everything)
        {
                cptr act;
@@ -2401,7 +2401,7 @@ if ((flags3 & RF3_RES_TELE) && (r_ptr->flags1 & RF1_UNIQUE)) {vp[vn] = "
                     wd_he[msex], act, 10 * r_ptr->aaf));
 #else
                hooked_roff(format("%^s %s intruders, which %s may notice from %d feet.  ",
-                           wd_he[msex], act, wd_he[msex], 10 * r_ptr->aaf));
+                           wd_he[msex], act, wd_he[msex], 10 * r_ptr->aaf));
 #endif
 
        }
@@ -2931,11 +2931,11 @@ case RBE_DR_MANA:  q = "
 
 
 #ifdef JP
-                if ( r == 0 ) hooked_roff( format("%^s¤Ï", wd_he[msex]) );
+               if ( r == 0 ) hooked_roff( format("%^s¤Ï", wd_he[msex]) );
 
                /***¼ã´³É½¸½¤òÊѹ¹ ita ***/
 
-                        /* Describe damage (if known) */
+                       /* Describe damage (if known) */
                if (d1 && d2 && (know_everything || know_damage(r_idx, m)))
                  {
                    
@@ -3102,7 +3102,7 @@ void roff_top(int r_idx)
 
        /* A title (use "The" for non-uniques) */
 #ifdef JP
-        if (0)
+       if (0)
 #else
        if (!(r_ptr->flags1 & RF1_UNIQUE))
 #endif
@@ -3231,12 +3231,12 @@ bool monster_dungeon(int r_idx)
        if (!(r_ptr->flags8 & RF8_WILD_ONLY))
                return TRUE;
        else
-        {
-                dungeon_info_type *d_ptr = &d_info[dungeon_type];
-                if ((d_ptr->mflags8 & RF8_WILD_MOUNTAIN) &&
-                    (r_ptr->flags8 & RF8_WILD_MOUNTAIN)) return TRUE;
+       {
+               dungeon_info_type *d_ptr = &d_info[dungeon_type];
+               if ((d_ptr->mflags8 & RF8_WILD_MOUNTAIN) &&
+                   (r_ptr->flags8 & RF8_WILD_MOUNTAIN)) return TRUE;
                return FALSE;
-        }
+       }
 }
 
 
@@ -3536,42 +3536,42 @@ bool monster_can_cross_terrain(byte feat, monster_race *r_ptr)
  */
 bool monster_can_enter(int y, int x, monster_race *r_ptr)
 {
-        cave_type *c_ptr = &cave[y][x];
-        byte feat = c_ptr->feat;
-
-        /* Player or other monster */
-        if ((y == py) && (x == px)) return FALSE;
-        if (c_ptr->m_idx) return FALSE;
-
-        /* Permanent wall */
-        if ((c_ptr->feat >= FEAT_PERM_EXTRA) &&
-            (c_ptr->feat <= FEAT_PERM_SOLID))
-                return FALSE;
-
-        /* Can fly over the Pattern */
-        if ((c_ptr->feat >= FEAT_PATTERN_START) &&
-            (c_ptr->feat <= FEAT_PATTERN_XTRA2))
-        {
-            if (!(r_ptr->flags7 & RF7_CAN_FLY))
-                    return FALSE;
-            else
-                    return TRUE;
-        }
-
-        /* Can fly over mountain on the surface */
-        if (feat == FEAT_MOUNTAIN)
-        {
-            if (!dun_level && 
-                ((r_ptr->flags7 & RF7_CAN_FLY) ||
-                 (r_ptr->flags8 & RF8_WILD_MOUNTAIN)))
-                    return TRUE;
-            else
-                    return FALSE;
-        }
-
-        /* Cannot enter wall without pass wall ability */
-        if (!cave_floor_grid(c_ptr) && !(r_ptr->flags2 & RF2_PASS_WALL))
-                return FALSE;
+       cave_type *c_ptr = &cave[y][x];
+       byte feat = c_ptr->feat;
+
+       /* Player or other monster */
+       if ((y == py) && (x == px)) return FALSE;
+       if (c_ptr->m_idx) return FALSE;
+
+       /* Permanent wall */
+       if ((c_ptr->feat >= FEAT_PERM_EXTRA) &&
+           (c_ptr->feat <= FEAT_PERM_SOLID))
+               return FALSE;
+
+       /* Can fly over the Pattern */
+       if ((c_ptr->feat >= FEAT_PATTERN_START) &&
+           (c_ptr->feat <= FEAT_PATTERN_XTRA2))
+       {
+           if (!(r_ptr->flags7 & RF7_CAN_FLY))
+                   return FALSE;
+           else
+                   return TRUE;
+       }
+
+       /* Can fly over mountain on the surface */
+       if (feat == FEAT_MOUNTAIN)
+       {
+           if (!dun_level && 
+               ((r_ptr->flags7 & RF7_CAN_FLY) ||
+                (r_ptr->flags8 & RF8_WILD_MOUNTAIN)))
+                   return TRUE;
+           else
+                   return FALSE;
+       }
+
+       /* Cannot enter wall without pass wall ability */
+       if (!cave_floor_grid(c_ptr) && !(r_ptr->flags2 & RF2_PASS_WALL))
+               return FALSE;
 
        /* Pit */
        if (feat == FEAT_DARK_PIT)
index 841dfbc..8b3e895 100644 (file)
@@ -644,8 +644,8 @@ static bool summon_specific_aux(int r_idx)
                case SUMMON_HI_UNDEAD:
                {
                        okay = ((r_ptr->d_char == 'L') ||
-                               (r_ptr->d_char == 'V') ||
-                               (r_ptr->d_char == 'W'));
+                               (r_ptr->d_char == 'V') ||
+                               (r_ptr->d_char == 'W'));
                        break;
                }
 
@@ -707,10 +707,10 @@ static bool summon_specific_aux(int r_idx)
                case SUMMON_BIZARRE6:
                {
                        okay = ((r_ptr->d_char == '!') ||
-                                (r_ptr->d_char == '?') ||
-                                (r_ptr->d_char == '=') ||
-                                (r_ptr->d_char == '$') ||
-                                (r_ptr->d_char == '|'));
+                                (r_ptr->d_char == '?') ||
+                                (r_ptr->d_char == '=') ||
+                                (r_ptr->d_char == '$') ||
+                                (r_ptr->d_char == '|'));
                        break;
                }
 
@@ -723,7 +723,7 @@ static bool summon_specific_aux(int r_idx)
                case SUMMON_CYBER:
                {
                        okay = ((r_ptr->d_char == 'U') &&
-                               (r_ptr->flags4 & RF4_ROCKET));
+                               (r_ptr->flags4 & RF4_ROCKET));
                        break;
                }
 
@@ -857,8 +857,8 @@ static bool summon_specific_aux(int r_idx)
                case SUMMON_EAGLES:
                {
                        okay = (r_ptr->d_char == 'B' &&
-                                (r_ptr->flags8 & RF8_WILD_MOUNTAIN) &&
-                                (r_ptr->flags8 & RF8_WILD_ONLY));
+                               (r_ptr->flags8 & RF8_WILD_MOUNTAIN) &&
+                               (r_ptr->flags8 & RF8_WILD_ONLY));
                        break;
                }
                case SUMMON_PIRANHAS:
@@ -885,7 +885,7 @@ static bool restrict_monster_to_dungeon(int r_idx)
 {
        dungeon_info_type *d_ptr = &d_info[dungeon_type];
        monster_race *r_ptr = &r_info[r_idx];
-        byte a;
+       byte a;
 
        if (d_ptr->flags1 & DF1_CHAMELEON)
        {
@@ -894,10 +894,10 @@ static bool restrict_monster_to_dungeon(int r_idx)
        if (d_ptr->flags1 & DF1_NO_MAGIC)
        {
                if (r_idx != MON_CHAMELEON &&
-                    r_ptr->freq_spell && 
-                    !(r_ptr->flags4 & RF4_NOMAGIC_MASK) &&
-                    !(r_ptr->flags5 & RF5_NOMAGIC_MASK) &&
-                    !(r_ptr->flags6 & RF6_NOMAGIC_MASK))
+                   r_ptr->freq_spell && 
+                   !(r_ptr->flags4 & RF4_NOMAGIC_MASK) &&
+                   !(r_ptr->flags5 & RF5_NOMAGIC_MASK) &&
+                   !(r_ptr->flags6 & RF6_NOMAGIC_MASK))
                        return FALSE;
        }
        if (d_ptr->flags1 & DF1_NO_MELEE)
@@ -917,207 +917,207 @@ static bool restrict_monster_to_dungeon(int r_idx)
        if (d_ptr->special_div == 64) return TRUE;
        if (summon_specific_type && !(d_ptr->flags1 & DF1_CHAMELEON)) return TRUE;
 
-        if(d_ptr->mode == DUNGEON_MODE_AND)
-        {
-                if (d_ptr->mflags1)
+       if(d_ptr->mode == DUNGEON_MODE_AND)
+       {
+               if (d_ptr->mflags1)
                {
-                        if((d_ptr->mflags1 & r_ptr->flags1) != d_ptr->mflags1)
-                                return FALSE;
+                       if((d_ptr->mflags1 & r_ptr->flags1) != d_ptr->mflags1)
+                               return FALSE;
                }
-                if (d_ptr->mflags2)
+               if (d_ptr->mflags2)
                {
-                        if((d_ptr->mflags2 & r_ptr->flags2) != d_ptr->mflags2)
-                                return FALSE;
+                       if((d_ptr->mflags2 & r_ptr->flags2) != d_ptr->mflags2)
+                               return FALSE;
                }
-                if (d_ptr->mflags3)
+               if (d_ptr->mflags3)
                {
-                        if((d_ptr->mflags3 & r_ptr->flags3) != d_ptr->mflags3)
-                                return FALSE;
+                       if((d_ptr->mflags3 & r_ptr->flags3) != d_ptr->mflags3)
+                               return FALSE;
                }
-                if (d_ptr->mflags4)
+               if (d_ptr->mflags4)
                {
-                        if((d_ptr->mflags4 & r_ptr->flags4) != d_ptr->mflags4)
-                                return FALSE;
+                       if((d_ptr->mflags4 & r_ptr->flags4) != d_ptr->mflags4)
+                               return FALSE;
                }
-                if (d_ptr->mflags5)
+               if (d_ptr->mflags5)
                {
-                        if((d_ptr->mflags5 & r_ptr->flags5) != d_ptr->mflags5)
-                                return FALSE;
+                       if((d_ptr->mflags5 & r_ptr->flags5) != d_ptr->mflags5)
+                               return FALSE;
                }
-                if (d_ptr->mflags6)
+               if (d_ptr->mflags6)
                {
-                        if((d_ptr->mflags6 & r_ptr->flags6) != d_ptr->mflags6)
-                                return FALSE;
+                       if((d_ptr->mflags6 & r_ptr->flags6) != d_ptr->mflags6)
+                               return FALSE;
                }
-                if (d_ptr->mflags7)
+               if (d_ptr->mflags7)
                {
-                        if((d_ptr->mflags7 & r_ptr->flags7) != d_ptr->mflags7)
-                                return FALSE;
+                       if((d_ptr->mflags7 & r_ptr->flags7) != d_ptr->mflags7)
+                               return FALSE;
                }
-                if (d_ptr->mflags8)
+               if (d_ptr->mflags8)
                {
-                        if((d_ptr->mflags8 & r_ptr->flags8) != d_ptr->mflags8)
-                                return FALSE;
+                       if((d_ptr->mflags8 & r_ptr->flags8) != d_ptr->mflags8)
+                               return FALSE;
                }
-                if (d_ptr->mflags9)
+               if (d_ptr->mflags9)
                {
-                        if((d_ptr->mflags9 & r_ptr->flags9) != d_ptr->mflags9)
-                                return FALSE;
+                       if((d_ptr->mflags9 & r_ptr->flags9) != d_ptr->mflags9)
+                               return FALSE;
                }
-                for(a = 0; a < 5; a++)
-                        if(d_ptr->r_char[a] && (d_ptr->r_char[a] != r_ptr->d_char)) return FALSE;
-        }
-        else if(d_ptr->mode == DUNGEON_MODE_NAND)
-        {
-                byte ok[9 + 5], i = 0, j = 0;
+               for(a = 0; a < 5; a++)
+                       if(d_ptr->r_char[a] && (d_ptr->r_char[a] != r_ptr->d_char)) return FALSE;
+       }
+       else if(d_ptr->mode == DUNGEON_MODE_NAND)
+       {
+               byte ok[9 + 5], i = 0, j = 0;
 
-                if (d_ptr->mflags1)
+               if (d_ptr->mflags1)
                {
-                        i++;
-                        if(d_ptr->mflags1 & r_ptr->flags1)
-                                ok[0] = 1;
+                       i++;
+                       if(d_ptr->mflags1 & r_ptr->flags1)
+                               ok[0] = 1;
                }
-                if (d_ptr->mflags2)
+               if (d_ptr->mflags2)
                {
-                        i++;
-                        if(d_ptr->mflags2 & r_ptr->flags2)
-                                ok[1] = 1;
+                       i++;
+                       if(d_ptr->mflags2 & r_ptr->flags2)
+                               ok[1] = 1;
                }
-                if (d_ptr->mflags3)
+               if (d_ptr->mflags3)
                {
-                        i++;
-                        if(d_ptr->mflags3 & r_ptr->flags3)
-                                ok[2] = 1;
+                       i++;
+                       if(d_ptr->mflags3 & r_ptr->flags3)
+                               ok[2] = 1;
                }
-                if (d_ptr->mflags4)
+               if (d_ptr->mflags4)
                {
-                        i++;
-                        if(d_ptr->mflags4 & r_ptr->flags4)
-                                ok[3] = 1;
+                       i++;
+                       if(d_ptr->mflags4 & r_ptr->flags4)
+                               ok[3] = 1;
                }
-                if (d_ptr->mflags5)
+               if (d_ptr->mflags5)
                {
-                        i++;
-                        if(d_ptr->mflags5 & r_ptr->flags5)
-                                ok[4] = 1;
+                       i++;
+                       if(d_ptr->mflags5 & r_ptr->flags5)
+                               ok[4] = 1;
                }
-                if (d_ptr->mflags6)
+               if (d_ptr->mflags6)
                {
-                        i++;
-                        if(d_ptr->mflags6 & r_ptr->flags6)
-                                ok[5] = 1;
+                       i++;
+                       if(d_ptr->mflags6 & r_ptr->flags6)
+                               ok[5] = 1;
                }
-                if (d_ptr->mflags7)
+               if (d_ptr->mflags7)
                {
-                        i++;
-                        if(d_ptr->mflags7 & r_ptr->flags7)
-                                ok[6] = 1;
+                       i++;
+                       if(d_ptr->mflags7 & r_ptr->flags7)
+                               ok[6] = 1;
                }
-                if (d_ptr->mflags8)
+               if (d_ptr->mflags8)
                {
-                        i++;
-                        if(d_ptr->mflags8 & r_ptr->flags8)
-                                ok[7] = 1;
+                       i++;
+                       if(d_ptr->mflags8 & r_ptr->flags8)
+                               ok[7] = 1;
                }
-                if (d_ptr->mflags9)
+               if (d_ptr->mflags9)
                {
-                        i++;
-                        if(d_ptr->mflags9 & r_ptr->flags9)
-                                ok[8] = 1;
+                       i++;
+                       if(d_ptr->mflags9 & r_ptr->flags9)
+                               ok[8] = 1;
                }
 
-                for(a = 0; a < 5; a++)
-                {
-                        if(d_ptr->r_char[a])
-                        {
-                                i++;
-                                if (d_ptr->r_char[a] != r_ptr->d_char) ok[9 + a] = 1;
-                        }
-                }
+               for(a = 0; a < 5; a++)
+               {
+                       if(d_ptr->r_char[a])
+                       {
+                               i++;
+                               if (d_ptr->r_char[a] != r_ptr->d_char) ok[9 + a] = 1;
+                       }
+               }
 
-                j = ok[0] + ok[1] + ok[2] + ok[3] + ok[4] + ok[5] + ok[6] + ok[7] + ok[8] + ok[9] + ok[10] + ok[11] + ok[12] + ok[13];
+               j = ok[0] + ok[1] + ok[2] + ok[3] + ok[4] + ok[5] + ok[6] + ok[7] + ok[8] + ok[9] + ok[10] + ok[11] + ok[12] + ok[13];
 
-                if(i == j) return FALSE;
-        }
-        else if(d_ptr->mode == DUNGEON_MODE_OR)
-        {
-                byte ok = FALSE, i;
-                s32b flag;
+               if(i == j) return FALSE;
+       }
+       else if(d_ptr->mode == DUNGEON_MODE_OR)
+       {
+               byte ok = FALSE, i;
+               s32b flag;
 
-                for(i = 0; i < 32; i++)
-                {
-                        flag = d_ptr->mflags1 & (1 << i);
-                        if(r_ptr->flags1 & flag) ok = TRUE;
+               for(i = 0; i < 32; i++)
+               {
+                       flag = d_ptr->mflags1 & (1 << i);
+                       if(r_ptr->flags1 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags2 & (1 << i);
-                        if(r_ptr->flags2 & flag) ok = TRUE;
+                       flag = d_ptr->mflags2 & (1 << i);
+                       if(r_ptr->flags2 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags3 & (1 << i);
-                        if(r_ptr->flags3 & flag) ok = TRUE;
+                       flag = d_ptr->mflags3 & (1 << i);
+                       if(r_ptr->flags3 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags4 & (1 << i);
-                        if(r_ptr->flags4 & flag) ok = TRUE;
+                       flag = d_ptr->mflags4 & (1 << i);
+                       if(r_ptr->flags4 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags5 & (1 << i);
-                        if(r_ptr->flags5 & flag) ok = TRUE;
+                       flag = d_ptr->mflags5 & (1 << i);
+                       if(r_ptr->flags5 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags6 & (1 << i);
-                        if(r_ptr->flags6 & flag) ok = TRUE;
+                       flag = d_ptr->mflags6 & (1 << i);
+                       if(r_ptr->flags6 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags7 & (1 << i);
-                        if(r_ptr->flags7 & flag) ok = TRUE;
+                       flag = d_ptr->mflags7 & (1 << i);
+                       if(r_ptr->flags7 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags8 & (1 << i);
-                        if(r_ptr->flags8 & flag) ok = TRUE;
+                       flag = d_ptr->mflags8 & (1 << i);
+                       if(r_ptr->flags8 & flag) ok = TRUE;
 
-                        flag = d_ptr->mflags9 & (1 << i);
-                        if(r_ptr->flags9 & flag) ok = TRUE;
-                }
-                for(a = 0; a < 5; a++)
-                        if(d_ptr->r_char[a] == r_ptr->d_char) ok = TRUE;
+                       flag = d_ptr->mflags9 & (1 << i);
+                       if(r_ptr->flags9 & flag) ok = TRUE;
+               }
+               for(a = 0; a < 5; a++)
+                       if(d_ptr->r_char[a] == r_ptr->d_char) ok = TRUE;
 
-                return ok;
-        }
-        else if(d_ptr->mode == DUNGEON_MODE_NOR)
-        {
-                byte ok = TRUE, i;
-                s32b flag;
+               return ok;
+       }
+       else if(d_ptr->mode == DUNGEON_MODE_NOR)
+       {
+               byte ok = TRUE, i;
+               s32b flag;
 
-                for(i = 0; i < 32; i++)
-                {
-                        flag = d_ptr->mflags1 & (1 << i);
-                        if(r_ptr->flags1 & flag) ok = FALSE;
+               for(i = 0; i < 32; i++)
+               {
+                       flag = d_ptr->mflags1 & (1 << i);
+                       if(r_ptr->flags1 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags2 & (1 << i);
-                        if(r_ptr->flags2 & flag) ok = FALSE;
+                       flag = d_ptr->mflags2 & (1 << i);
+                       if(r_ptr->flags2 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags3 & (1 << i);
-                        if(r_ptr->flags3 & flag) ok = FALSE;
+                       flag = d_ptr->mflags3 & (1 << i);
+                       if(r_ptr->flags3 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags4 & (1 << i);
-                        if(r_ptr->flags4 & flag) ok = FALSE;
+                       flag = d_ptr->mflags4 & (1 << i);
+                       if(r_ptr->flags4 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags5 & (1 << i);
-                        if(r_ptr->flags5 & flag) ok = FALSE;
+                       flag = d_ptr->mflags5 & (1 << i);
+                       if(r_ptr->flags5 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags6 & (1 << i);
-                        if(r_ptr->flags6 & flag) ok = FALSE;
+                       flag = d_ptr->mflags6 & (1 << i);
+                       if(r_ptr->flags6 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags7 & (1 << i);
-                        if(r_ptr->flags7 & flag) ok = FALSE;
+                       flag = d_ptr->mflags7 & (1 << i);
+                       if(r_ptr->flags7 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags8 & (1 << i);
-                        if(r_ptr->flags8 & flag) ok = FALSE;
+                       flag = d_ptr->mflags8 & (1 << i);
+                       if(r_ptr->flags8 & flag) ok = FALSE;
 
-                        flag = d_ptr->mflags9 & (1 << i);
-                        if(r_ptr->flags9 & flag) ok = FALSE;
-                }
-                for(a = 0; a < 5; a++)
-                        if(d_ptr->r_char[a] == r_ptr->d_char) ok = FALSE;
-                return ok;
-        }
+                       flag = d_ptr->mflags9 & (1 << i);
+                       if(r_ptr->flags9 & flag) ok = FALSE;
+               }
+               for(a = 0; a < 5; a++)
+                       if(d_ptr->r_char[a] == r_ptr->d_char) ok = FALSE;
+               return ok;
+       }
 
-        return TRUE;
+       return TRUE;
 }
 
 /*
@@ -1641,9 +1641,9 @@ if (!get_rnd_line("silly_j.txt", m_ptr->r_idx, silly_name))
        {
                /* The monster is visible, so use its gender */
 #ifdef JP
-                if (r_ptr->flags1 & (RF1_FEMALE)) strcpy(desc, "Èà½÷¼«¿È");
-                else if (r_ptr->flags1 & (RF1_MALE)) strcpy(desc, "È༫¿È");
-                else strcpy(desc, "¤½¤ì¼«¿È");
+               if (r_ptr->flags1 & (RF1_FEMALE)) strcpy(desc, "Èà½÷¼«¿È");
+               else if (r_ptr->flags1 & (RF1_MALE)) strcpy(desc, "È༫¿È");
+               else strcpy(desc, "¤½¤ì¼«¿È");
 #else
                if (r_ptr->flags1 & RF1_FEMALE) strcpy(desc, "herself");
                else if (r_ptr->flags1 & RF1_MALE) strcpy(desc, "himself");
@@ -2214,7 +2214,7 @@ void update_mon(int m_idx, bool full)
 
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
-        bool do_disturb = disturb_move;
+       bool do_disturb = disturb_move;
 
        int d;
 
@@ -2228,14 +2228,14 @@ void update_mon(int m_idx, bool full)
        /* Seen by vision */
        bool easy = FALSE;
 
-        /* Do disturb? */
-        if (disturb_high)
-        {
-                monster_race *ap_r_ptr = &r_info[m_ptr->ap_r_idx];
+       /* Do disturb? */
+       if (disturb_high)
+       {
+               monster_race *ap_r_ptr = &r_info[m_ptr->ap_r_idx];
 
-                if (ap_r_ptr->r_tkills && ap_r_ptr->level >= p_ptr->lev)
-                        do_disturb = TRUE;
-        }
+               if (ap_r_ptr->r_tkills && ap_r_ptr->level >= p_ptr->lev)
+                       do_disturb = TRUE;
+       }
 
        /* Compute distance */
        if (full)
@@ -2808,7 +2808,7 @@ static bool monster_hook_tanuki(int r_idx)
  */
 static int initial_r_appearance(int r_idx)
 {
-       int attempts = 1000;
+       int attempts = 1000;
 
        int ap_r_idx;
        int min = MIN(base_level-5, 50);
@@ -2860,8 +2860,8 @@ bool place_monster_one(int who, int y, int x, int r_idx, u32b mode)
 
        cptr            name = (r_name + r_ptr->name);
 
-        /* DO NOT PLACE A MONSTER IN THE SMALL SCALE WILDERNESS !!! */
-        if(p_ptr->wild_mode) return FALSE;
+       /* DO NOT PLACE A MONSTER IN THE SMALL SCALE WILDERNESS !!! */
+       if(p_ptr->wild_mode) return FALSE;
 
        /* Verify location */
        if (!in_bounds(y, x)) return (FALSE);
@@ -2870,8 +2870,8 @@ bool place_monster_one(int who, int y, int x, int r_idx, u32b mode)
        if (!(!dun_level && (cave[y][x].feat == FEAT_MOUNTAIN) && ((r_ptr->flags8 & RF8_WILD_MOUNTAIN) || (r_ptr->flags7 & RF7_CAN_FLY))) &&
            !(cave_empty_bold2(y, x) || (mode & PM_IGNORE_TERRAIN)) &&
            !((r_ptr->flags2 & RF2_PASS_WALL) &&
-              !(cave_perma_bold(y, x) || cave[y][x].m_idx ||
-                ((y == py) && (x == px))))) return (FALSE);
+             !(cave_perma_bold(y, x) || cave[y][x].m_idx ||
+               ((y == py) && (x == px))))) return (FALSE);
 
        /* Paranoia */
        if (!r_idx) return (FALSE);
@@ -2966,8 +2966,8 @@ msg_print("
                        c_ptr->info &= ~(CAVE_MARK);
 
                        /* Break the rune */
-                        c_ptr->info &= ~(CAVE_OBJECT);
-                        c_ptr->mimic = 0;
+                       c_ptr->info &= ~(CAVE_OBJECT);
+                       c_ptr->mimic = 0;
 
                        /* Notice */
                        note_spot(y, x);
@@ -3299,8 +3299,8 @@ msg_print("
                c_ptr->info &= ~(CAVE_MARK);
 
                /* Break the rune */
-                c_ptr->info &= ~(CAVE_OBJECT);
-                c_ptr->mimic = 0;
+               c_ptr->info &= ~(CAVE_OBJECT);
+               c_ptr->mimic = 0;
 
                note_spot(y, x);
                lite_spot(y, x);
@@ -3720,29 +3720,29 @@ bool alloc_monster(int dis, u32b mode)
        int         attempts_left = 10000;
        int guardian = d_info[dungeon_type].final_guardian;
 
-        /* Put an Guardian */
-        if(guardian && d_info[dungeon_type].maxdepth == dun_level && r_info[guardian].cur_num < r_info[guardian].max_num )
-        {
-                int oy;
-                int ox;
-                int try = 4000;
-
-                /* Find a good position */
-                while(try)
-                {
-                        /* Get a random spot */
-                        oy = randint1(cur_hgt - 4) + 2;
-                        ox = randint1(cur_wid - 4) + 2;
-
-                        /* Is it a good spot ? */
-                        if (cave_empty_bold2(oy, ox) && monster_can_cross_terrain(cave[oy][ox].feat, &r_info[guardian]))
+       /* Put an Guardian */
+       if(guardian && d_info[dungeon_type].maxdepth == dun_level && r_info[guardian].cur_num < r_info[guardian].max_num )
+       {
+               int oy;
+               int ox;
+               int try = 4000;
+
+               /* Find a good position */
+               while(try)
+               {
+                       /* Get a random spot */
+                       oy = randint1(cur_hgt - 4) + 2;
+                       ox = randint1(cur_wid - 4) + 2;
+
+                       /* Is it a good spot ? */
+                       if (cave_empty_bold2(oy, ox) && monster_can_cross_terrain(cave[oy][ox].feat, &r_info[guardian]))
                        {
                                /* Place the guardian */
                                if (place_monster_aux(0, oy, ox, guardian, (PM_ALLOW_GROUP | PM_NO_KAGE | PM_NO_PET))) break;
                        }
-                        /* One less try */
-                        try--;
-                }
+                       /* One less try */
+                       try--;
+               }
        }
 
 
index b59d703..32b2a1d 100644 (file)
@@ -961,7 +961,7 @@ static int choose_attack_spell(int m_idx, byte spells[], byte num)
        byte summon[96], summon_num = 0;
        byte tactic[96], tactic_num = 0;
        byte annoy[96], annoy_num = 0;
-        byte invul[96], invul_num = 0;
+       byte invul[96], invul_num = 0;
        byte haste[96], haste_num = 0;
        byte world[96], world_num = 0;
        byte special[96], special_num = 0;
@@ -1074,10 +1074,10 @@ static int choose_attack_spell(int m_idx, byte spells[], byte num)
                                break;
                        case MON_BANOR:
                        case MON_LUPART:
-                                break;
+                               break;
                        default:
-                                if (randint0(100) < 50) success = TRUE;
-                                break;
+                               if (randint0(100) < 50) success = TRUE;
+                               break;
                }
                if (success) return (special[randint0(special_num)]);
        }
@@ -1284,11 +1284,11 @@ bool make_attack_spell(int m_idx)
        if (!chance) return (FALSE);
 
 
-        /* Only do spells occasionally */
-        if (randint0(100) >=  chance) return (FALSE);
+       /* Only do spells occasionally */
+       if (randint0(100) >=  chance) return (FALSE);
 
-        /* Sometimes forbid inate attacks (breaths) */
-        if (randint0(100) >= (chance * 2)) no_inate = TRUE;
+       /* Sometimes forbid inate attacks (breaths) */
+       if (randint0(100) >= (chance * 2)) no_inate = TRUE;
 
        /* XXX XXX XXX Handle "track_target" option (?) */
 
@@ -1393,8 +1393,8 @@ bool make_attack_spell(int m_idx)
        /* Extract the monster level */
        rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
 
-        /* Forbid inate attacks sometimes */
-        if (no_inate) f4 &= 0x500000FF;
+       /* Forbid inate attacks sometimes */
+       if (no_inate) f4 &= 0x500000FF;
 
        if (!p_ptr->csp)
        {
@@ -1439,34 +1439,34 @@ bool make_attack_spell(int m_idx)
        /* No spells left */
        if (!f4 && !f5 && !f6) return (FALSE);
 
-        /* Check for a clean bolt shot */
-        if (((f4 & RF4_BOLT_MASK) ||
-             (f5 & RF5_BOLT_MASK) ||
-             (f6 & RF6_BOLT_MASK)) &&
-            !(r_ptr->flags2 & RF2_STUPID) &&
-            !clean_shot(m_ptr->fy, m_ptr->fx, py, px, FALSE))
-        {
-                /* Remove spells that will only hurt friends */
-                f4 &= ~(RF4_BOLT_MASK);
-                f5 &= ~(RF5_BOLT_MASK);
-                f6 &= ~(RF6_BOLT_MASK);
-        }
-
-        /* Check for a possible summon */
-        if (((f4 & RF4_SUMMON_MASK) ||
-             (f5 & RF5_SUMMON_MASK) ||
-             (f6 & RF6_SUMMON_MASK)) &&
-            !(r_ptr->flags2 & RF2_STUPID) &&
-            !(summon_possible(y, x)))
-        {
-                /* Remove summoning spells */
-                f4 &= ~(RF4_SUMMON_MASK);
-                f5 &= ~(RF5_SUMMON_MASK);
-                f6 &= ~(RF6_SUMMON_MASK);
-        }
-
-        /* No spells left */
-        if (!f4 && !f5 && !f6) return (FALSE);
+       /* Check for a clean bolt shot */
+       if (((f4 & RF4_BOLT_MASK) ||
+            (f5 & RF5_BOLT_MASK) ||
+            (f6 & RF6_BOLT_MASK)) &&
+           !(r_ptr->flags2 & RF2_STUPID) &&
+           !clean_shot(m_ptr->fy, m_ptr->fx, py, px, FALSE))
+       {
+               /* Remove spells that will only hurt friends */
+               f4 &= ~(RF4_BOLT_MASK);
+               f5 &= ~(RF5_BOLT_MASK);
+               f6 &= ~(RF6_BOLT_MASK);
+       }
+
+       /* Check for a possible summon */
+       if (((f4 & RF4_SUMMON_MASK) ||
+            (f5 & RF5_SUMMON_MASK) ||
+            (f6 & RF6_SUMMON_MASK)) &&
+           !(r_ptr->flags2 & RF2_STUPID) &&
+           !(summon_possible(y, x)))
+       {
+               /* Remove summoning spells */
+               f4 &= ~(RF4_SUMMON_MASK);
+               f5 &= ~(RF5_SUMMON_MASK);
+               f6 &= ~(RF6_SUMMON_MASK);
+       }
+
+       /* No spells left */
+       if (!f4 && !f5 && !f6) return (FALSE);
 
        /* Extract the "inate" spells */
        for (k = 0; k < 32; k++)
@@ -1504,43 +1504,43 @@ bool make_attack_spell(int m_idx)
        /* Hack -- Get the "died from" name */
        monster_desc(ddesc, m_ptr, 0x288);
 
-        if (do_disi)
-                thrown_spell = 96+31;
-        else
-        {
-                int attempt = 10;
-                while(attempt--)
-                {
-                        thrown_spell = choose_attack_spell(m_idx, spell, num);
-                        if (thrown_spell) break;
-                }
-        }
+       if (do_disi)
+               thrown_spell = 96+31;
+       else
+       {
+               int attempt = 10;
+               while(attempt--)
+               {
+                       thrown_spell = choose_attack_spell(m_idx, spell, num);
+                       if (thrown_spell) break;
+               }
+       }
 
-        /* Abort if no spell was chosen */
-        if (!thrown_spell) return (FALSE);
+       /* Abort if no spell was chosen */
+       if (!thrown_spell) return (FALSE);
 
-        /* Calculate spell failure rate */
-        failrate = 25 - (rlev + 3) / 4;
+       /* Calculate spell failure rate */
+       failrate = 25 - (rlev + 3) / 4;
 
-        /* Hack -- Stupid monsters will never fail (for jellies and such) */
-        if (r_ptr->flags2 & RF2_STUPID) failrate = 0;
+       /* Hack -- Stupid monsters will never fail (for jellies and such) */
+       if (r_ptr->flags2 & RF2_STUPID) failrate = 0;
 
-        /* Check for spell failure (inate attacks never fail) */
-        if ((thrown_spell >= 128) && ((m_ptr->stunned && one_in_(2)) || (randint0(100) < failrate)))
-        {
-                disturb(1, 0);
-                /* Message */
-                if (thrown_spell != (160+7)) /* Not RF6_SPECIAL */
-                {
+       /* Check for spell failure (inate attacks never fail) */
+       if ((thrown_spell >= 128) && ((m_ptr->stunned && one_in_(2)) || (randint0(100) < failrate)))
+       {
+               disturb(1, 0);
+               /* Message */
+               if (thrown_spell != (160+7)) /* Not RF6_SPECIAL */
+               {
 #ifdef JP
-                        msg_format("%^s¤Ï¼öʸ¤ò¾§¤¨¤è¤¦¤È¤·¤¿¤¬¼ºÇÔ¤·¤¿¡£", m_name);
+                       msg_format("%^s¤Ï¼öʸ¤ò¾§¤¨¤è¤¦¤È¤·¤¿¤¬¼ºÇÔ¤·¤¿¡£", m_name);
 #else
-                        msg_format("%^s tries to cast a spell, but fails.", m_name);
+                       msg_format("%^s tries to cast a spell, but fails.", m_name);
 #endif
-                }
+               }
 
-                return (TRUE);
-        }
+               return (TRUE);
+       }
 
 
        /* Cast the spell. */
@@ -3540,57 +3540,57 @@ msg_format("%^s
                                        break;
                                }
 
-                        default:
-                                if (r_ptr->d_char == 'B')
-                                {
-                                        if (!direct) break;
-                                        disturb(1, 0);
-                                        if (one_in_(3) || x!=px || y!=py)
-                                        {
-#ifdef JP
-                                                msg_format("%^s¤ÏÆÍÁ³»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name);
-#else
-                                                msg_format("%^s suddenly go out of your sight!", m_name);
-#endif
-                                                teleport_away(m_idx, 10, FALSE);
-                                                p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
-                                                break;
-                                        }
-                                        else
-                                        {
-                                                int dam = damroll(4, 8);
+                       default:
+                               if (r_ptr->d_char == 'B')
+                               {
+                                       if (!direct) break;
+                                       disturb(1, 0);
+                                       if (one_in_(3) || x!=px || y!=py)
+                                       {
+#ifdef JP
+                                               msg_format("%^s¤ÏÆÍÁ³»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name);
+#else
+                                               msg_format("%^s suddenly go out of your sight!", m_name);
+#endif
+                                               teleport_away(m_idx, 10, FALSE);
+                                               p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
+                                               break;
+                                       }
+                                       else
+                                       {
+                                               int dam = damroll(4, 8);
                                                int get_damage = 0;
 #ifdef JP
-                                                msg_format("%^s¤¬¤¢¤Ê¤¿¤òÄϤó¤Ç¶õÃ椫¤éÅꤲÍ¤¿¡£", m_name);
+                                               msg_format("%^s¤¬¤¢¤Ê¤¿¤òÄϤó¤Ç¶õÃ椫¤éÅꤲÍ¤¿¡£", m_name);
 #else
-                                                msg_format("%^s holds you, and drops from the sky.", m_name);
+                                               msg_format("%^s holds you, and drops from the sky.", m_name);
 #endif
-                                                teleport_player_to(m_ptr->fy, m_ptr->fx, FALSE);
+                                               teleport_player_to(m_ptr->fy, m_ptr->fx, FALSE);
 
-                                                sound(SOUND_FALL);
+                                               sound(SOUND_FALL);
 
-                                                if (p_ptr->ffall)
-                                                {
+                                               if (p_ptr->ffall)
+                                               {
 #ifdef JP
-                                                        msg_print("¤¢¤Ê¤¿¤ÏÀŤ«¤ËÃåÃϤ·¤¿¡£");
+                                                       msg_print("¤¢¤Ê¤¿¤ÏÀŤ«¤ËÃåÃϤ·¤¿¡£");
 #else
-                                                        msg_print("You float gently down to the ground.");
+                                                       msg_print("You float gently down to the ground.");
 #endif
-                                                }
-                                                else
-                                                {
+                                               }
+                                               else
+                                               {
 #ifdef JP
-                                                        msg_print("¤¢¤Ê¤¿¤ÏÃÏÌ̤Ë᤭¤Ä¤±¤é¤ì¤¿¡£");
+                                                       msg_print("¤¢¤Ê¤¿¤ÏÃÏÌ̤Ë᤭¤Ä¤±¤é¤ì¤¿¡£");
 #else
-                                                        msg_print("You crashed into the ground.");
+                                                       msg_print("You crashed into the ground.");
 #endif
-                                                        dam += damroll(6, 8);
-                                                }
+                                                       dam += damroll(6, 8);
+                                               }
 
                                                /* Mega hack -- this special action deals damage to the player. Therefore the code of "eyeeye" is necessary.
                                                   -- henkma
                                                 */
-                                                get_damage = take_hit(DAMAGE_NOESCAPE, dam, m_name, -1);
+                                               get_damage = take_hit(DAMAGE_NOESCAPE, dam, m_name, -1);
                                                if (p_ptr->tim_eyeeye && get_damage > 0 && !p_ptr->is_dead)
                                                {
 #ifdef JP
@@ -3606,12 +3606,12 @@ msg_format("%^s
                                                        project(0, 0, m_ptr->fy, m_ptr->fx, get_damage, GF_MISSILE, PROJECT_KILL, -1);
                                                        set_tim_eyeeye(p_ptr->tim_eyeeye-5, TRUE);
                                                }
-                                        }
-                                        break;
-                                }
+                                       }
+                                       break;
+                               }
 
-                                /* Something is wrong */
-                                else return FALSE;
+                               /* Something is wrong */
+                               else return FALSE;
                        }
                        break;
                }
@@ -3887,15 +3887,15 @@ else msg_format("%^s
                                }
                        }
                        else if(m_ptr->r_idx == MON_THORONDOR ||
-                                m_ptr->r_idx == MON_GWAIHIR ||
-                                m_ptr->r_idx == MON_MENELDOR)
-                        {
+                               m_ptr->r_idx == MON_GWAIHIR ||
+                               m_ptr->r_idx == MON_MENELDOR)
+                       {
                                int num = 4 + randint1(3);
                                for (k = 0; k < num; k++)
                                {
                                        count += summon_specific(m_idx, y, x, rlev, SUMMON_EAGLES, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE));
                                }
-                        }
+                       }
                        else if(m_ptr->r_idx == MON_LOUSY)
                        {
                                int num = 2 + randint1(3);
index 76ffafd..e1e69c8 100644 (file)
@@ -315,10 +315,10 @@ bool monst_spell_monst(int m_idx)
                /* Prevent collateral damage */
                if (!(p_ptr->pet_extra_flags & PF_BALL_SPELL) && pet && (m_idx != p_ptr->riding))
                {
-                        int dist = distance(py, px, y, x);
+                       int dist = distance(py, px, y, x);
 
-                        /* Expected breath radius */
-                        int rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
+                       /* Expected breath radius */
+                       int rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
 
                        if (dist <= 2)
                        {
@@ -361,30 +361,30 @@ bool monst_spell_monst(int m_idx)
 
                /* Remove some spells if necessary */
 
-                /* Check for a clean bolt shot */
-                if (((f4 & RF4_BOLT_MASK) ||
-                     (f5 & RF5_BOLT_MASK) ||
-                     (f6 & RF6_BOLT_MASK)) &&
-                    !(r_ptr->flags2 & RF2_STUPID) &&
-                    !clean_shot(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, pet))
-                {
-                        f4 &= ~(RF4_BOLT_MASK);
-                        f5 &= ~(RF5_BOLT_MASK);
-                        f6 &= ~(RF6_BOLT_MASK);
-                }
-
-                /* Check for a possible summon */
-                if (((f4 & RF4_SUMMON_MASK) ||
-                     (f5 & RF5_SUMMON_MASK) ||
-                     (f6 & RF6_SUMMON_MASK)) &&
-                    !(r_ptr->flags2 & RF2_STUPID) &&
-                    !(summon_possible(t_ptr->fy, t_ptr->fx)))
-                {
-                        /* Remove summoning spells */
-                        f4 &= ~(RF4_SUMMON_MASK);
-                        f5 &= ~(RF5_SUMMON_MASK);
-                        f6 &= ~(RF6_SUMMON_MASK);
-                }
+               /* Check for a clean bolt shot */
+               if (((f4 & RF4_BOLT_MASK) ||
+                    (f5 & RF5_BOLT_MASK) ||
+                    (f6 & RF6_BOLT_MASK)) &&
+                   !(r_ptr->flags2 & RF2_STUPID) &&
+                   !clean_shot(m_ptr->fy, m_ptr->fx, t_ptr->fy, t_ptr->fx, pet))
+               {
+                       f4 &= ~(RF4_BOLT_MASK);
+                       f5 &= ~(RF5_BOLT_MASK);
+                       f6 &= ~(RF6_BOLT_MASK);
+               }
+
+               /* Check for a possible summon */
+               if (((f4 & RF4_SUMMON_MASK) ||
+                    (f5 & RF5_SUMMON_MASK) ||
+                    (f6 & RF6_SUMMON_MASK)) &&
+                   !(r_ptr->flags2 & RF2_STUPID) &&
+                   !(summon_possible(t_ptr->fy, t_ptr->fx)))
+               {
+                       /* Remove summoning spells */
+                       f4 &= ~(RF4_SUMMON_MASK);
+                       f5 &= ~(RF5_SUMMON_MASK);
+                       f6 &= ~(RF6_SUMMON_MASK);
+               }
 
                /* Hack -- allow "desperate" spells */
                if ((r_ptr->flags2 & RF2_SMART) &&
@@ -487,7 +487,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -539,7 +539,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -578,7 +578,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_SHOOT);
@@ -641,7 +641,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -684,7 +684,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -727,7 +727,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -770,7 +770,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -812,7 +812,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -855,7 +855,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -898,7 +898,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -941,7 +941,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -984,7 +984,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1010,7 +1010,7 @@ msg_format("%^s
 #ifdef JP
                                                        msg_format("¡Ö¥Ü¥©¥¨¡Á¡Á¡Á¡Á¡Á¡Á¡×");
 #else
-                                                       msg_format("'Booooeeeeee'");
+                                                       msg_format("'Booooeeeeee'");
 #endif
                                                else if (blind)
                                                {
@@ -1033,7 +1033,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1076,7 +1076,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1119,7 +1119,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1162,7 +1162,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1205,7 +1205,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1248,7 +1248,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1291,7 +1291,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1317,7 +1317,7 @@ msg_format("%^s
 #ifdef JP
                                                        msg_format("¡Ö¥ÜÄë¥Ó¥ë¥«¥Ã¥¿¡¼¡ª¡ª¡ª¡×");
 #else
-                                                       msg_format("'Boty-Build cutter!!!'");
+                                                       msg_format("'Boty-Build cutter!!!'");
 #endif
                                                else if (blind)
                                                {
@@ -1340,7 +1340,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1383,7 +1383,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1426,7 +1426,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1468,7 +1468,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1511,7 +1511,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1552,7 +1552,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1594,7 +1594,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1635,7 +1635,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
 
                                        sound(SOUND_BREATH);
@@ -1677,7 +1677,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1717,7 +1717,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1774,7 +1774,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                       mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1814,7 +1814,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1854,7 +1854,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1894,7 +1894,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1940,7 +1940,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -1980,7 +1980,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2020,7 +2020,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2244,7 +2244,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2290,7 +2290,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2337,7 +2337,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2383,7 +2383,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2429,7 +2429,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2456,7 +2456,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2483,7 +2483,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2510,7 +2510,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2551,7 +2551,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2577,7 +2577,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2604,7 +2604,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2631,7 +2631,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2658,7 +2658,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2685,7 +2685,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2712,7 +2712,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2739,7 +2739,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2790,7 +2790,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2846,7 +2846,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2902,7 +2902,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -2959,7 +2959,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3016,7 +3016,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3051,7 +3051,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3111,7 +3111,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3199,7 +3199,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3300,7 +3300,7 @@ msg_format("%^s
                                return FALSE;
                        }
 
-                        /* RF6_SPECIAL */
+                       /* RF6_SPECIAL */
                        case 160+7:
                        {
                                int k;
@@ -3315,38 +3315,38 @@ msg_format("%^s
                                                }
                                                return FALSE;
                                        }
-                                default:
-                                        if (r_ptr->d_char == 'B')
-                                        {
-                                                if (one_in_(3))
-                                                {
-                                                        if (see_m)
-                                                        {
-#ifdef JP
-                                                                msg_format("%^s¤ÏÆÍÁ³µÞ¾å¾º¤·¤Æ»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name);
-#else
-                                                                msg_format("%^s suddenly go out of your sight!", m_name);
-#endif
-                                                        }
-                                                        teleport_away(m_idx, 10, FALSE);
-                                                        p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
-                                                        break;
-                                                }
-                                                else
-                                                {
-                                                        /* Not implemented */
-                                                        return FALSE;
-                                                }
-                                                break;
-                                        }
-                                        
-                                        /* Something is wrong */
-                                        else return FALSE;
-                                }
-
-                                /* done */
-                                break;
-                        }
+                               default:
+                                       if (r_ptr->d_char == 'B')
+                                       {
+                                               if (one_in_(3))
+                                               {
+                                                       if (see_m)
+                                                       {
+#ifdef JP
+                                                               msg_format("%^s¤ÏÆÍÁ³µÞ¾å¾º¤·¤Æ»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name);
+#else
+                                                               msg_format("%^s suddenly go out of your sight!", m_name);
+#endif
+                                                       }
+                                                       teleport_away(m_idx, 10, FALSE);
+                                                       p_ptr->update |= (PU_MONSTERS | PU_MON_LITE);
+                                                       break;
+                                               }
+                                               else
+                                               {
+                                                       /* Not implemented */
+                                                       return FALSE;
+                                               }
+                                               break;
+                                       }
+                                       
+                                       /* Something is wrong */
+                                       else return FALSE;
+                               }
+
+                               /* done */
+                               break;
+                       }
                        /* RF6_TELE_TO */
                        case 160+8:
                        {
@@ -3372,7 +3372,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3442,7 +3442,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3478,7 +3478,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3547,7 +3547,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
                                animate_dead(m_idx, m_ptr->fy, m_ptr->fx);
@@ -3595,7 +3595,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3607,16 +3607,16 @@ msg_format("%s
                                                count += summon_named_creature(m_idx, y, x, MON_SHURYUUDAN, p_mode);
                                        }
                                }
-                                else if(m_ptr->r_idx == MON_THORONDOR ||
-                                        m_ptr->r_idx == MON_GWAIHIR ||
-                                        m_ptr->r_idx == MON_MENELDOR)
-                                {
-                                        int num = 4 + randint1(3);
-                                        for (k = 0; k < num; k++)
-                                        {
-                                                count += summon_specific(m_idx, y, x, rlev, SUMMON_EAGLES, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | p_mode));
-                                        }
-                                }
+                               else if(m_ptr->r_idx == MON_THORONDOR ||
+                                       m_ptr->r_idx == MON_GWAIHIR ||
+                                       m_ptr->r_idx == MON_MENELDOR)
+                               {
+                                       int num = 4 + randint1(3);
+                                       for (k = 0; k < num; k++)
+                                       {
+                                               count += summon_specific(m_idx, y, x, rlev, SUMMON_EAGLES, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | p_mode));
+                                       }
+                               }
                                else if(m_ptr->r_idx == MON_LOUSY)
                                {
                                        int num = 2 + randint1(3);
@@ -3685,7 +3685,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3724,7 +3724,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3756,7 +3756,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3791,7 +3791,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3826,7 +3826,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3861,7 +3861,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3896,7 +3896,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3932,7 +3932,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -3972,7 +3972,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -4007,7 +4007,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -4042,7 +4042,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -4077,7 +4077,7 @@ msg_format("%s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -4112,7 +4112,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -4147,7 +4147,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
@@ -4182,7 +4182,7 @@ msg_format("%^s
                                        }
                                        else
                                        {
-                                                mon_fight = TRUE;
+                                               mon_fight = TRUE;
                                        }
                                }
 
index 28e5671..882e195 100644 (file)
@@ -453,15 +453,15 @@ cptr            p = "
        (void)strnfmt(out_val, 78, "(%c-%c, *=List, ESC=exit) Use which %s? ",
 #endif
 
-               I2A(0), I2A(num - 1), p);
+               I2A(0), I2A(num - 1), p);
 
        if (use_menu) screen_save();
 
        /* Get a spell from the user */
 
-        choice= (always_show_list || use_menu) ? ESCAPE:1 ;
-        while (!flag)
-        {
+       choice= (always_show_list || use_menu) ? ESCAPE:1 ;
+       while (!flag)
+       {
                if(choice==ESCAPE) choice = ' '; 
                else if( !get_com(out_val, &choice, TRUE) )break; 
 
@@ -629,8 +629,8 @@ put_str("MP 
 
                                        /* Dump the spell --(-- */
                                        strcat(psi_desc, format(" %-26s %3d %3d%%%s",
-                                               spell.name, shouhimana,
-                                               chance, comment));
+                                               spell.name, shouhimana,
+                                               chance, comment));
                                        prt(psi_desc, y + i + 1, x);
                                }
 
index 8d33773..76b13c8 100644 (file)
@@ -1024,7 +1024,7 @@ msg_print("
                /*
                  some races are apt to gain specified mutations
                  This should be allowed only if "choose_mut" is 0.
-                                                       --- henkma
+                                                       --- henkma
                */
                if(!choose_mut){
                        if (p_ptr->prace == RACE_VAMPIRE &&
@@ -1045,12 +1045,12 @@ muta_desc = "
                                 !(p_ptr->muta2 & MUT2_HORNS) &&
                                 (randint1(10) < 7))
                          {
-                               muta_class = &(p_ptr->muta2);
-                               muta_which = MUT2_HORNS;
+                               muta_class = &(p_ptr->muta2);
+                               muta_which = MUT2_HORNS;
 #ifdef JP
 muta_desc = "³Ñ¤¬³Û¤«¤éÀ¸¤¨¤Æ¤­¤¿¡ª";
 #else
-                               muta_desc = "Horns pop forth into your forehead!";
+                               muta_desc = "Horns pop forth into your forehead!";
 #endif
 
                        }
@@ -3260,8 +3260,8 @@ int count_bits(u32b x)
 static int count_mutations(void)
 {
        return (count_bits(p_ptr->muta1) +
-               count_bits(p_ptr->muta2) +
-               count_bits(p_ptr->muta3));
+               count_bits(p_ptr->muta2) +
+               count_bits(p_ptr->muta3));
 }
 
 
index 8d9e847..99e443a 100644 (file)
@@ -146,7 +146,7 @@ void object_flags(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
 
        if ((o_ptr->tval > TV_CAPTURE) && o_ptr->xtra3)
        {
-                int add = o_ptr->xtra3 - 1;
+               int add = o_ptr->xtra3 - 1;
 
                if (add < TR_FLAG_MAX)
                {
@@ -279,7 +279,7 @@ void object_flags_known(object_type *o_ptr, u32b flgs[TR_FLAG_SIZE])
 
        if ((o_ptr->tval > TV_CAPTURE) && o_ptr->xtra3)
        {
-                int add = o_ptr->xtra3 - 1;
+               int add = o_ptr->xtra3 - 1;
 
                if (add < TR_FLAG_MAX)
                {
@@ -1878,49 +1878,49 @@ return "
        }
 
        if ((o_ptr->tval > TV_CAPTURE) && o_ptr->xtra3)
-        {
-                switch (o_ptr->xtra3 - 1)
-                {
-                case ESSENCE_TMP_RES_ACID:
+       {
+               switch (o_ptr->xtra3 - 1)
+               {
+               case ESSENCE_TMP_RES_ACID:
 #ifdef JP
-                        return "»À¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
+                       return "»À¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
 #else
-                        return "resist acid every 50+d50 turns";
+                       return "resist acid every 50+d50 turns";
 #endif
-                        break;
+                       break;
 
-                case ESSENCE_TMP_RES_ELEC:
+               case ESSENCE_TMP_RES_ELEC:
 #ifdef JP
-                        return "ÅÅ·â¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
+                       return "ÅÅ·â¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
 #else
-                        return "resist elec every 50+d50 turns";
+                       return "resist elec every 50+d50 turns";
 #endif
-                        break;
+                       break;
 
-                case ESSENCE_TMP_RES_FIRE:
+               case ESSENCE_TMP_RES_FIRE:
 #ifdef JP
-                        return "²Ð¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
+                       return "²Ð¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
 #else
-                        return "resist fire every 50+d50 turns";
+                       return "resist fire every 50+d50 turns";
 #endif
-                        break;
+                       break;
 
-                case ESSENCE_TMP_RES_COLD:
+               case ESSENCE_TMP_RES_COLD:
 #ifdef JP
-                        return "Î䵤¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
+                       return "Î䵤¤Ø¤ÎÂÑÀ­ : 50+d50¥¿¡¼¥óËè";
 #else
-                        return "resist cold every 50+d50 turns";
+                       return "resist cold every 50+d50 turns";
 #endif
-                        break;
+                       break;
 
-                case TR_IMPACT:
+               case TR_IMPACT:
 #ifdef JP
-                        return "ÃÏ¿Ì : 100+d100 ¥¿¡¼¥óËè";
+                       return "ÃÏ¿Ì : 100+d100 ¥¿¡¼¥óËè";
 #else
-                        return "earthquake every 100+d100 turns";
+                       return "earthquake every 100+d100 turns";
 #endif
-                        break;
-                }
+                       break;
+               }
        }
 
        if (o_ptr->name2 == EGO_TRUMP)
@@ -2392,8 +2392,8 @@ bool identify_fully_aux(object_type *o_ptr)
                char temp[70 * 20];
 
                roff_to_buf(o_ptr->name1 ? (a_text + a_info[o_ptr->name1].text) :
-                           (k_text + k_info[lookup_kind(o_ptr->tval, o_ptr->sval)].text),
-                           77 - 15, temp);
+                           (k_text + k_info[lookup_kind(o_ptr->tval, o_ptr->sval)].text),
+                           77 - 15, temp);
                for (j = 0; temp[j]; j += 1 + strlen(&temp[j]))
                { info[i] = &temp[j]; i++;}
        }
@@ -2539,16 +2539,16 @@ info[i++] = "
                if (o_ptr->name2 == EGO_LITE_DARKNESS)
                {
 #ifdef JP
-                        info[i++] = "¤½¤ì¤ÏÁ´¤¯¸÷¤é¤Ê¤¤¡£";
+                       info[i++] = "¤½¤ì¤ÏÁ´¤¯¸÷¤é¤Ê¤¤¡£";
 #else
                        info[i++] = "It provides no light..";
 #endif
 
                        if (o_ptr->sval == SV_LITE_FEANOR ||
-                            o_ptr->sval == SV_LITE_LANTERN)
+                           o_ptr->sval == SV_LITE_LANTERN)
                        {
 #ifdef JP
-                                info[i++] = "¤½¤ì¤ÏÌÀ¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-2)¡£";
+                               info[i++] = "¤½¤ì¤ÏÌÀ¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-2)¡£";
 #else
                                info[i++] = "It decreases radius of light source by 2.";
 #endif
@@ -2556,7 +2556,7 @@ info[i++] = "
                        else
                        {
 #ifdef JP
-                                info[i++] = "¤½¤ì¤ÏÌÀ¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-1)¡£";
+                               info[i++] = "¤½¤ì¤ÏÌÀ¤ê¤ÎȾ·Â¤ò¶¹¤á¤ë(Ⱦ·Â¤Ë-1)¡£";
 #else
                                info[i++] = "It decreases radius of light source by 1.";
 #endif
@@ -4600,14 +4600,14 @@ int show_inven(int target_item)
                strcpy(inven_spellbook_label, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
                for (i = 0; i < 52; i++)
                {
-                        char c;
-                        if (i < 26) c = (char)('a' + i);
-                        else c = (char)('A' + i - 26);
+                       char c;
+                       if (i < 26) c = (char)('a' + i);
+                       else c = (char)('A' + i - 26);
 
                        if (get_tag(&index, c))
                        {
                                if (inven_spellbook_label[i] == c)
-                                        inven_spellbook_label[i] = ' ';
+                                       inven_spellbook_label[i] = ' ';
                                inven_spellbook_label[index] = c;
                        }
                }
@@ -4810,7 +4810,7 @@ int show_equip(int target_item)
 
                /* Extract the maximal length (see below) */
 #ifdef JP
-                l = strlen(out_desc[k]) + (2 + 1);
+               l = strlen(out_desc[k]) + (2 + 1);
 #else
                l = strlen(out_desc[k]) + (2 + 3);
 #endif
@@ -4818,7 +4818,7 @@ int show_equip(int target_item)
 
                /* Increase length for labels (if needed) */
 #ifdef JP
-                if (show_labels) l += (7 + 2);
+               if (show_labels) l += (7 + 2);
 #else
                if (show_labels) l += (14 + 2);
 #endif
@@ -4838,7 +4838,7 @@ int show_equip(int target_item)
 
        /* Hack -- Find a column to start in */
 #ifdef JP
-        col = (len > wid - 6) ? 0 : (wid - len - 1);
+       col = (len > wid - 6) ? 0 : (wid - len - 1);
 #else
        col = (len > wid - 4) ? 0 : (wid - len - 1);
 #endif
@@ -4930,7 +4930,7 @@ int show_equip(int target_item)
                {
                        int wgt = o_ptr->weight * o_ptr->number;
 #ifdef JP
-                        (void)sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
+                       (void)sprintf(tmp_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
 #else
                        (void)sprintf(tmp_val, "%3d.%d lb", wgt / 10, wgt % 10);
 #endif
@@ -5300,7 +5300,7 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        /* Get the item index */
        if (repeat_pull(cp))
        {
-               if (*cp == 1111) { /* the_force */
+               if (*cp == 1111) { /* the_force */
                    item_tester_tval = 0;
                    item_tester_hook = NULL;
                    return (TRUE);
@@ -5466,10 +5466,10 @@ bool get_item(int *cp, cptr pmt, cptr str, int mode)
        }
 
 
-        /*
-         * Äɲ媥ץ·¥ç¥ó(always_show_list)¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë
-         */
-        if ((always_show_list == TRUE) || use_menu) command_see = TRUE;
+       /*
+        * Äɲ媥ץ·¥ç¥ó(always_show_list)¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë
+        */
+       if ((always_show_list == TRUE) || use_menu) command_see = TRUE;
 
        /* Hack -- start out in "display" mode */
        if (command_see)
@@ -5564,7 +5564,7 @@ sprintf(tmp_val, "%c-%c,'(',')',",
                                sprintf(tmp_val, " %c-%c,'(',')',",
 #endif
 
-                                       index_to_label(i1), index_to_label(i2));
+                                       index_to_label(i1), index_to_label(i2));
 
                                /* Append */
                                strcat(out_val, tmp_val);
@@ -5612,7 +5612,7 @@ sprintf(tmp_val, "%c-%c,'(',')',",
                                sprintf(tmp_val, " %c-%c,'(',')',",
 #endif
 
-                                       index_to_label(e1), index_to_label(e2));
+                                       index_to_label(e1), index_to_label(e2));
 
                                /* Append */
                                strcat(out_val, tmp_val);
@@ -5753,7 +5753,7 @@ if (allow_floor) strcat(out_val, " '-'
                                done = TRUE;
                                break;
                        }
-                       case 'w':
+                       case 'w':
                        {
                                if (select_the_force) {
                                        *cp = 1111;
@@ -5955,7 +5955,7 @@ if (other_query_flag && !verify("
                                break;
                        }
 
-                       case 'w':
+                       case 'w':
                        {
                                if (select_the_force) {
                                        *cp = 1111;
@@ -5969,32 +5969,32 @@ if (other_query_flag && !verify("
                        {
                                int ver;
                                if(select_spellbook){
-                                    bool not_found = FALSE;
-                                    /* Look up the tag */
-                                    if (!get_tag(&k, which))
-                                    {
+                                   bool not_found = FALSE;
+                                   /* Look up the tag */
+                                   if (!get_tag(&k, which))
+                                   {
                                        not_found = TRUE;
-                                    }
+                                   }
 
-                                    /* Hack -- Validate the item */
-                                    if ((k < INVEN_RARM) ? !inven : !equip)
-                                    {
+                                   /* Hack -- Validate the item */
+                                   if ((k < INVEN_RARM) ? !inven : !equip)
+                                   {
                                        not_found = TRUE;
-                                    }
+                                   }
 
-                                    /* Validate the item */
-                                    if (!get_item_okay(k))
-                                    {
+                                   /* Validate the item */
+                                   if (!get_item_okay(k))
+                                   {
                                        not_found = TRUE;
-                                    }
-
-                                    if( !not_found ){
-                                        /* Accept that choice */
-                                        (*cp) = k;
-                                        item = TRUE;
-                                        done = TRUE;
-                                        break;
-                                    }
+                                   }
+
+                                   if( !not_found ){
+                                       /* Accept that choice */
+                                       (*cp) = k;
+                                       item = TRUE;
+                                       done = TRUE;
+                                       break;
+                                   }
                                }                               
 
                                /* Extract "query" setting */
@@ -6004,16 +6004,16 @@ if (other_query_flag && !verify("
                                /* Convert letter to inventory index */
                                if (!command_wrk)
                                {
-                                        if (which == '(') k = i1;
-                                        else if (which == ')') k = i2;
-                                        else k = label_to_inven(which);
+                                       if (which == '(') k = i1;
+                                       else if (which == ')') k = i2;
+                                       else k = label_to_inven(which);
                                }
 
                                /* Convert letter to equipment index */
                                else
                                {
-                                        if (which == '(') k = e1;
-                                        else if (which == ')') k = e2;
+                                       if (which == '(') k = e1;
+                                       else if (which == ')') k = e2;
                                        else k = label_to_equip(which);
                                }
 
@@ -6321,7 +6321,7 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
        /* Get the item index */
        if (repeat_pull(cp))
        {
-               if (*cp == 1111) { /* the_force */
+               if (*cp == 1111) { /* the_force */
                    item_tester_tval = 0;
                    item_tester_hook = NULL;
                    return (TRUE);
@@ -6485,10 +6485,10 @@ bool get_item_floor(int *cp, cptr pmt, cptr str, int mode)
                }
        }
 
-        /*
-         * Äɲ媥ץ·¥ç¥ó(always_show_list)¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë
-         */
-        if ((always_show_list == TRUE) || use_menu) command_see = TRUE;
+       /*
+        * Äɲ媥ץ·¥ç¥ó(always_show_list)¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë
+        */
+       if ((always_show_list == TRUE) || use_menu) command_see = TRUE;
 
        /* Hack -- start out in "display" mode */
        if (command_see)
@@ -6594,7 +6594,7 @@ sprintf(tmp_val, "%c-%c,'(',')',",
                                sprintf(tmp_val, " %c-%c,'(',')',",
 #endif
 
-                                       index_to_label(i1), index_to_label(i2));
+                                       index_to_label(i1), index_to_label(i2));
 
                                /* Append */
                                strcat(out_val, tmp_val);
@@ -6677,7 +6677,7 @@ sprintf(tmp_val, "%c-%c,'(',')',",
                                sprintf(tmp_val, " %c-%c,'(',')',",
 #endif
 
-                                       index_to_label(e1), index_to_label(e2));
+                                       index_to_label(e1), index_to_label(e2));
 
                                /* Append */
                                strcat(out_val, tmp_val);
@@ -7028,7 +7028,7 @@ if (!command_see && !use_menu) strcat(out_val, " '*'
                                done = TRUE;
                                break;
                        }
-                       case 'w':
+                       case 'w':
                        {
                                if (select_the_force) {
                                        *cp = 1111;
@@ -7094,15 +7094,15 @@ if (!command_see && !use_menu) strcat(out_val, " '*'
 
                                /* Remove the first object from the list. */
                                excise_object_idx(o_idx);
-       
+       
                                /* Find end of the list. */
                                i = c_ptr->o_idx;
                                while (o_list[i].next_o_idx)
                                        i = o_list[i].next_o_idx;
-       
+       
                                /* Add after the last object. */
                                o_list[i].next_o_idx = o_idx;
-       
+       
                                /* Re-scan floor list */ 
                                floor_num = scan_floor(floor_list, py, px, 0x01);
 
@@ -7324,7 +7324,7 @@ if (!command_see && !use_menu) strcat(out_val, " '*'
                        }
 #endif
 
-                       case 'w':
+                       case 'w':
                        {
                                if (select_the_force) {
                                        *cp = 1111;
@@ -7339,32 +7339,32 @@ if (!command_see && !use_menu) strcat(out_val, " '*'
                                int ver;
 
                                if(select_spellbook){
-                                    bool not_found = FALSE;
-                                    /* Look up the tag */
-                                    if (!get_tag(&k, which))
-                                    {
+                                   bool not_found = FALSE;
+                                   /* Look up the tag */
+                                   if (!get_tag(&k, which))
+                                   {
                                        not_found = TRUE;
-                                    }
+                                   }
 
-                                    /* Hack -- Validate the item */
-                                    if ((k < INVEN_RARM) ? !inven : !equip)
-                                    {
+                                   /* Hack -- Validate the item */
+                                   if ((k < INVEN_RARM) ? !inven : !equip)
+                                   {
                                        not_found = TRUE;
-                                    }
+                                   }
 
-                                    /* Validate the item */
-                                    if (!get_item_okay(k))
-                                    {
+                                   /* Validate the item */
+                                   if (!get_item_okay(k))
+                                   {
                                        not_found = TRUE;
-                                    }
-
-                                    if( !not_found ){
-                                        /* Accept that choice */
-                                        (*cp) = k;
-                                        item = TRUE;
-                                        done = TRUE;
-                                        break;
-                                    }
+                                   }
+
+                                   if( !not_found ){
+                                       /* Accept that choice */
+                                       (*cp) = k;
+                                       item = TRUE;
+                                       done = TRUE;
+                                       break;
+                                   }
                                }                               
 
                                /* Extract "query" setting */
@@ -7374,24 +7374,24 @@ if (!command_see && !use_menu) strcat(out_val, " '*'
                                /* Convert letter to inventory index */
                                if (command_wrk == (USE_INVEN))
                                {
-                                        if (which == '(') k = i1;
-                                        else if (which == ')') k = i2;
+                                       if (which == '(') k = i1;
+                                       else if (which == ')') k = i2;
                                        else k = label_to_inven(which);
                                }
 
                                /* Convert letter to equipment index */
                                else if (command_wrk == (USE_EQUIP))
                                {
-                                        if (which == '(') k = e1;
-                                        else if (which == ')') k = e2;
+                                       if (which == '(') k = e1;
+                                       else if (which == ')') k = e2;
                                        else k = label_to_equip(which);
                                }
 
                                /* Convert letter to floor index */
                                else if (command_wrk == USE_FLOOR)
                                {
-                                        if (which == '(') k = 0;
-                                        else if (which == ')') k = floor_num - 1;
+                                       if (which == '(') k = 0;
+                                       else if (which == ')') k = floor_num - 1;
                                        else k = islower(which) ? A2I(which) : -1;
                                        if (k < 0 || k >= floor_num || k >= 23)
                                        {
@@ -7567,8 +7567,8 @@ void py_pickup_floor(int pickup)
                {
                        /* Message */
 #ifdef JP
-                msg_format(" $%ld ¤Î²ÁÃͤ¬¤¢¤ë%s¤ò¸«¤Ä¤±¤¿¡£",
-                           (long)o_ptr->pval, o_name);
+               msg_format(" $%ld ¤Î²ÁÃͤ¬¤¢¤ë%s¤ò¸«¤Ä¤±¤¿¡£",
+                          (long)o_ptr->pval, o_name);
 #else
                        msg_format("You have found %ld gold pieces worth of %s.",
                                (long) o_ptr->pval, o_name);
@@ -7644,7 +7644,7 @@ void py_pickup_floor(int pickup)
 
                        /* Message */
 #ifdef JP
-                                msg_format("%s¤¬¤¢¤ë¡£", o_name);
+                               msg_format("%s¤¬¤¢¤ë¡£", o_name);
 #else
                        msg_format("You see %s.", o_name);
 #endif
@@ -7692,7 +7692,7 @@ void py_pickup_floor(int pickup)
 
                        /* Message */
 #ifdef JP
-                                msg_format("¥¶¥Ã¥¯¤Ë¤Ï%s¤òÆþ¤ì¤ë·ä´Ö¤¬¤Ê¤¤¡£", o_name);
+                               msg_format("¥¶¥Ã¥¯¤Ë¤Ï%s¤òÆþ¤ì¤ë·ä´Ö¤¬¤Ê¤¤¡£", o_name);
 #else
                        msg_format("You have no room for %s.", o_name);
 #endif
@@ -7704,7 +7704,7 @@ void py_pickup_floor(int pickup)
                {
                        /* Message */
 #ifdef JP
-                        msg_format("¥¶¥Ã¥¯¤Ë¤Ï¾²¤Ë¤¢¤ë¤É¤Î¥¢¥¤¥Æ¥à¤âÆþ¤é¤Ê¤¤¡£", o_name);
+                       msg_format("¥¶¥Ã¥¯¤Ë¤Ï¾²¤Ë¤¢¤ë¤É¤Î¥¢¥¤¥Æ¥à¤âÆþ¤é¤Ê¤¤¡£", o_name);
 #else
                        msg_print("You have no room for any of the objects on the floor.");
 #endif
index 76bc91a..4b2ea1d 100644 (file)
@@ -885,13 +885,13 @@ s32b flag_cost(object_type * o_ptr, int plusses)
        }
        else
        {
-                if ((o_ptr->tval == TV_RING) || (o_ptr->tval == TV_AMULET))
-                {
-                        object_kind *k_ptr = &k_info[o_ptr->k_idx];
+               if ((o_ptr->tval == TV_RING) || (o_ptr->tval == TV_AMULET))
+               {
+                       object_kind *k_ptr = &k_info[o_ptr->k_idx];
 
-                        for (i = 0; i < TR_FLAG_SIZE; i++)
-                                flgs[i] &= ~(k_ptr->flags[i]);
-                }
+                       for (i = 0; i < TR_FLAG_SIZE; i++)
+                               flgs[i] &= ~(k_ptr->flags[i]);
+               }
 
                if (o_ptr->name2)
                {
@@ -1194,12 +1194,12 @@ s32b object_value_real(object_type *o_ptr)
        }
 
        else
-        {
-                int i;
-                bool flag = FALSE;
+       {
+               int i;
+               bool flag = FALSE;
 
-                for (i = 0; i < TR_FLAG_SIZE; i++) 
-                        if (o_ptr->art_flags[i]) flag = TRUE;
+               for (i = 0; i < TR_FLAG_SIZE; i++) 
+                       if (o_ptr->art_flags[i]) flag = TRUE;
 
                if (flag) value += flag_cost(o_ptr, o_ptr->pval);
        }
@@ -2560,41 +2560,41 @@ static void dragon_resist(object_type * o_ptr)
 
 static void add_esp_strong(object_type *o_ptr)
 {
-        switch (randint1(3))
-        {
-        case 1: add_flag(o_ptr->art_flags, TR_ESP_EVIL); break;
-        case 2: add_flag(o_ptr->art_flags, TR_ESP_NONLIVING); break;
-        case 3: add_flag(o_ptr->art_flags, TR_TELEPATHY); break;
-        }
+       switch (randint1(3))
+       {
+       case 1: add_flag(o_ptr->art_flags, TR_ESP_EVIL); break;
+       case 2: add_flag(o_ptr->art_flags, TR_ESP_NONLIVING); break;
+       case 3: add_flag(o_ptr->art_flags, TR_TELEPATHY); break;
+       }
 }
 
 
 static void add_esp_weak(object_type *o_ptr)
 {
-        int idx[3];
-        int n = randint1(3);
-
-        idx[0] = randint1(9);
-
-        idx[1] = randint1(8);
-        if (idx[1] >= idx[0]) idx[1]++;
-
-        idx[2] = randint1(7);
-        if (idx[2] >= idx[0]) idx[2]++;
-        if (idx[2] >= idx[1]) idx[2]++;
-
-        while (n--) switch (idx[n])
-        {
-        case 1: add_flag(o_ptr->art_flags, TR_ESP_ANIMAL); break;
-        case 2: add_flag(o_ptr->art_flags, TR_ESP_UNDEAD); break;
-        case 3: add_flag(o_ptr->art_flags, TR_ESP_DEMON); break;
-        case 4: add_flag(o_ptr->art_flags, TR_ESP_ORC); break;
-        case 5: add_flag(o_ptr->art_flags, TR_ESP_TROLL); break;
-        case 6: add_flag(o_ptr->art_flags, TR_ESP_GIANT); break;
-        case 7: add_flag(o_ptr->art_flags, TR_ESP_DRAGON);   break;
-        case 8: add_flag(o_ptr->art_flags, TR_ESP_HUMAN); break;
-        case 9: add_flag(o_ptr->art_flags, TR_ESP_GOOD); break;
-        }
+       int idx[3];
+       int n = randint1(3);
+
+       idx[0] = randint1(9);
+
+       idx[1] = randint1(8);
+       if (idx[1] >= idx[0]) idx[1]++;
+
+       idx[2] = randint1(7);
+       if (idx[2] >= idx[0]) idx[2]++;
+       if (idx[2] >= idx[1]) idx[2]++;
+
+       while (n--) switch (idx[n])
+       {
+       case 1: add_flag(o_ptr->art_flags, TR_ESP_ANIMAL); break;
+       case 2: add_flag(o_ptr->art_flags, TR_ESP_UNDEAD); break;
+       case 3: add_flag(o_ptr->art_flags, TR_ESP_DEMON); break;
+       case 4: add_flag(o_ptr->art_flags, TR_ESP_ORC); break;
+       case 5: add_flag(o_ptr->art_flags, TR_ESP_TROLL); break;
+       case 6: add_flag(o_ptr->art_flags, TR_ESP_GIANT); break;
+       case 7: add_flag(o_ptr->art_flags, TR_ESP_DRAGON);   break;
+       case 8: add_flag(o_ptr->art_flags, TR_ESP_HUMAN); break;
+       case 9: add_flag(o_ptr->art_flags, TR_ESP_GOOD); break;
+       }
 }
 
 
@@ -2857,9 +2857,9 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                                        switch (o_ptr->name2)
                                        {
                                        case EGO_TELEPATHY:
-                                                add_esp_strong(o_ptr);
-                                                add_esp_weak(o_ptr);
-                                                break;
+                                               add_esp_strong(o_ptr);
+                                               add_esp_weak(o_ptr);
+                                               break;
                                        case EGO_MAGI:
                                        case EGO_MIGHT:
                                        case EGO_REGENERATION:
@@ -2867,10 +2867,10 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
                                                break;
                                        case EGO_SEEING:
                                                if (one_in_(3))
-                                                {
-                                                        if (one_in_(2)) add_esp_strong(o_ptr);
-                                                        else add_esp_weak(o_ptr);
-                                                }
+                                               {
+                                                       if (one_in_(2)) add_esp_strong(o_ptr);
+                                                       else add_esp_weak(o_ptr);
+                                               }
                                                break;
                                        default:/* not existing crown (wisdom,lite, etc...) */
                                                ok_flag = FALSE;
@@ -3098,11 +3098,11 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
                                }
                                break;
 
-                                case SV_RING_WARNING:
-                                {
-                                        if (one_in_(3)) one_low_esp(o_ptr);
-                                        break;
-                                }
+                               case SV_RING_WARNING:
+                               {
+                                       if (one_in_(3)) one_low_esp(o_ptr);
+                                       break;
+                               }
 
                                /* Searching */
                                case SV_RING_SEARCHING:
@@ -4872,7 +4872,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        {
                /* Message */
 #ifdef JP
-                msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+               msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
 #else
                msg_format("The %s disappear%s.",
                           o_name, (plural ? "" : "s"));
@@ -4937,7 +4937,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
                            (c_ptr->feat != FEAT_FLOWER) &&
                            (c_ptr->feat != FEAT_DEEP_GRASS) &&
                            (c_ptr->feat != FEAT_SHAL_LAVA) &&
-                            (c_ptr->feat != FEAT_TREES)) continue;
+                           (c_ptr->feat != FEAT_TREES)) continue;
                        if (c_ptr->info & (CAVE_OBJECT)) continue;
 
                        /* No objects */
@@ -4997,7 +4997,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        {
                /* Message */
 #ifdef JP
-                msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+               msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
 #else
                msg_format("The %s disappear%s.",
                           o_name, (plural ? "" : "s"));
@@ -5092,7 +5092,7 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
        {
                /* Message */
 #ifdef JP
-                msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
+               msg_format("%s¤Ï¾Ã¤¨¤¿¡£", o_name);
 #else
                msg_format("The %s disappear%s.",
                           o_name, (plural ? "" : "s"));
@@ -5258,7 +5258,7 @@ byte choose_random_trap(void)
                break;
        }
 
-        return feat;
+       return feat;
 }
 
 /*
@@ -5271,8 +5271,8 @@ void disclose_grid(int y, int x)
        /* Paranoia */
        if (!c_ptr->mimic) return;
 
-        /* No longer hidden */
-        c_ptr->mimic = 0;
+       /* No longer hidden */
+       c_ptr->mimic = 0;
 
        /* Notice */
        note_spot(y, x);
@@ -5302,8 +5302,8 @@ void place_trap(int y, int x)
        if (!cave_naked_bold(y, x)) return;
 
        /* Place an invisible trap */
-        c_ptr->mimic = c_ptr->feat;
-        c_ptr->feat = choose_random_trap();
+       c_ptr->mimic = c_ptr->feat;
+       c_ptr->feat = choose_random_trap();
 }
 
 
@@ -5321,14 +5321,14 @@ void inven_item_charges(int item)
        if (!object_known_p(o_ptr)) return;
 
 #ifdef JP
-        if (o_ptr->pval <= 0)
-        {
-                msg_print("¤â¤¦ËâÎϤ¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£");
-        }
-        else
-        {
-                msg_format("¤¢¤È %d ²óʬ¤ÎËâÎϤ¬»Ä¤Ã¤Æ¤¤¤ë¡£", o_ptr->pval);
-        }
+       if (o_ptr->pval <= 0)
+       {
+               msg_print("¤â¤¦ËâÎϤ¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£");
+       }
+       else
+       {
+               msg_format("¤¢¤È %d ²óʬ¤ÎËâÎϤ¬»Ä¤Ã¤Æ¤¤¤ë¡£", o_ptr->pval);
+       }
 #else
        /* Multiple charges */
        if (o_ptr->pval != 1)
@@ -5361,17 +5361,17 @@ void inven_item_describe(int item)
 
        /* Print a message */
 #ifdef JP
-        /* "no more" ¤Î¾ì¹ç¤Ï¤³¤Á¤é¤Çɽ¼¨¤¹¤ë */
-        if (o_ptr->number <= 0)
-        {
-                /*FIRST*//*¤³¤³¤Ï¤â¤¦Ä̤é¤Ê¤¤¤«¤â */
-                msg_format("¤â¤¦%s¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£", o_name);
-        }
-        else
-        {
-                /* ¥¢¥¤¥Æ¥à̾¤ò±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½Âбþ */
-                msg_format("¤Þ¤À %s¤ò»ý¤Ã¤Æ¤¤¤ë¡£", o_name);
-        }
+       /* "no more" ¤Î¾ì¹ç¤Ï¤³¤Á¤é¤Çɽ¼¨¤¹¤ë */
+       if (o_ptr->number <= 0)
+       {
+               /*FIRST*//*¤³¤³¤Ï¤â¤¦Ä̤é¤Ê¤¤¤«¤â */
+               msg_format("¤â¤¦%s¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£", o_name);
+       }
+       else
+       {
+               /* ¥¢¥¤¥Æ¥à̾¤ò±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½Âбþ */
+               msg_format("¤Þ¤À %s¤ò»ý¤Ã¤Æ¤¤¤ë¡£", o_name);
+       }
 #else
        msg_format("You have %s.", o_name);
 #endif
@@ -5496,14 +5496,14 @@ void floor_item_charges(int item)
        if (!object_known_p(o_ptr)) return;
 
 #ifdef JP
-        if (o_ptr->pval <= 0)
-        {
-                msg_print("¤³¤Î¾²¾å¤Î¥¢¥¤¥Æ¥à¤Ï¡¢¤â¤¦ËâÎϤ¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£");
-        }
-        else
-        {
-                msg_format("¤³¤Î¾²¾å¤Î¥¢¥¤¥Æ¥à¤Ï¡¢¤¢¤È %d ²óʬ¤ÎËâÎϤ¬»Ä¤Ã¤Æ¤¤¤ë¡£", o_ptr->pval);
-        }
+       if (o_ptr->pval <= 0)
+       {
+               msg_print("¤³¤Î¾²¾å¤Î¥¢¥¤¥Æ¥à¤Ï¡¢¤â¤¦ËâÎϤ¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£");
+       }
+       else
+       {
+               msg_format("¤³¤Î¾²¾å¤Î¥¢¥¤¥Æ¥à¤Ï¡¢¤¢¤È %d ²óʬ¤ÎËâÎϤ¬»Ä¤Ã¤Æ¤¤¤ë¡£", o_ptr->pval);
+       }
 #else
        /* Multiple charges */
        if (o_ptr->pval != 1)
@@ -5536,15 +5536,15 @@ void floor_item_describe(int item)
 
        /* Print a message */
 #ifdef JP
-        /* "no more" ¤Î¾ì¹ç¤Ï¤³¤Á¤é¤Çɽ¼¨¤òʬ¤±¤ë */
-        if (o_ptr->number <= 0)
-        {
-                msg_format("¾²¾å¤Ë¤Ï¡¢¤â¤¦%s¤Ï¤Ê¤¤¡£", o_name);
-        }
-        else
-        {
-                msg_format("¾²¾å¤Ë¤Ï¡¢¤Þ¤À %s¤¬¤¢¤ë¡£", o_name);
-        }
+       /* "no more" ¤Î¾ì¹ç¤Ï¤³¤Á¤é¤Çɽ¼¨¤òʬ¤±¤ë */
+       if (o_ptr->number <= 0)
+       {
+               msg_format("¾²¾å¤Ë¤Ï¡¢¤â¤¦%s¤Ï¤Ê¤¤¡£", o_name);
+       }
+       else
+       {
+               msg_format("¾²¾å¤Ë¤Ï¡¢¤Þ¤À %s¤¬¤¢¤ë¡£", o_name);
+       }
 #else
        msg_format("You see %s.", o_name);
 #endif
@@ -5902,7 +5902,7 @@ s16b inven_takeoff(int item, int amt)
 
        /* Message */
 #ifdef JP
-        msg_format("%s(%c)%s¡£", o_name, index_to_label(slot), act);
+       msg_format("%s(%c)%s¡£", o_name, index_to_label(slot), act);
 #else
        msg_format("%s %s (%c).", act, o_name, index_to_label(slot));
 #endif
@@ -6334,12 +6334,12 @@ bool process_frakir(int xx, int yy)
 
 #define DAMCALC(f,val,max,im,vln,res,resx,resy,op,opx,opy,dmax) \
           if (f){ int dam = (val)>(max)? (max):(val); \
-           if (im) dam=0; \
-           if (vln) dam *= 2; \
-           if (res) {dam = (dam * resx) / resy;} \
-           if (op) {dam = (dam * opx) / opy;} \
-           if (dam>dmax) dmax = dam; \
-           }
+          if (im) dam=0; \
+          if (vln) dam *= 2; \
+          if (res) {dam = (dam * resx) / resy;} \
+          if (op) {dam = (dam * opx) / opy;} \
+          if (dam>dmax) dmax = dam; \
+          }
 
                                DAMCALC(f4 & (RF4_BR_FIRE), m_ptr->hp / 3, 1600, 
                                        p_ptr->immune_fire, p_ptr->muta3 & MUT3_VULN_ELEM,
@@ -6491,7 +6491,7 @@ bool process_frakir(int xx, int yy)
 
        c_ptr = &cave[yy][xx];
        if (((!easy_disarm && (is_trap(c_ptr->feat) || c_ptr->feat == FEAT_INVIS))
-            || (c_ptr->mimic && is_trap(c_ptr->feat))) && !one_in_(13))
+           || (c_ptr->mimic && is_trap(c_ptr->feat))) && !one_in_(13))
        {
                object_type *o_ptr = choose_warning_item();
 
@@ -6553,220 +6553,220 @@ typedef struct {
 #ifdef JP
 static essence_type essence_info[] = 
 {
-        {TR_STR, "ÏÓÎÏ", 4, TR_STR, 20},
-        {TR_INT, "ÃÎǽ", 4, TR_INT, 20},
-        {TR_WIS, "¸­¤µ", 4, TR_WIS, 20},
-        {TR_DEX, "´ïÍѤµ", 4, TR_DEX, 20},
-        {TR_CON, "Âѵ×ÎÏ", 4, TR_CON, 20},
-        {TR_CHR, "Ì¥ÎÏ", 4, TR_CHR, 20},
-        {TR_MAGIC_MASTERY, "ËâÎÏ»ÙÇÛ", 4, TR_MAGIC_MASTERY, 20},
-        {TR_STEALTH, "±£Ì©", 4, TR_STEALTH, 40},
-        {TR_SEARCH, "õº÷", 4, TR_SEARCH, 15},
-        {TR_INFRA, "ÀÖ³°Àþ»ëÎÏ", 4, TR_INFRA, 15},
-        {TR_TUNNEL, "ºÎ·¡", 4, TR_TUNNEL, 15},
-        {TR_SPEED, "¥¹¥Ô¡¼¥É", 4, TR_SPEED, 12},
-        {TR_BLOWS, "Äɲù¶·â", 1, TR_BLOWS, 20},
-        {TR_CHAOTIC, "¥«¥ª¥¹¹¶·â", 1, TR_CHAOTIC, 15},
-        {TR_VAMPIRIC, "µÛ·ì¹¶·â", 1, TR_VAMPIRIC, 60},
-        {TR_IMPACT, "ÃÏ¿Ìȯư", 7, TR_IMPACT, 15},
-        {TR_BRAND_POIS, "ÆÇ»¦", 1, TR_BRAND_POIS, 20},
-        {TR_BRAND_ACID, "Íϲò", 1, TR_BRAND_ACID, 20},
-        {TR_BRAND_ELEC, "ÅÅ·â", 1, TR_BRAND_ELEC, 20},
-        {TR_BRAND_FIRE, "¾Æ´þ", 1, TR_BRAND_FIRE, 20},
-        {TR_BRAND_COLD, "Åà·ë", 1, TR_BRAND_COLD, 20},
-        {TR_SUST_STR, "ÏÓÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
-        {TR_SUST_INT, "ÃÎǽ°Ý»ý", 3, TR_SUST_STR, 15},
-        {TR_SUST_WIS, "¸­¤µ°Ý»ý", 3, TR_SUST_STR, 15},
-        {TR_SUST_DEX, "´ïÍѤµ°Ý»ý", 3, TR_SUST_STR, 15},
-        {TR_SUST_CON, "Âѵ×ÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
-        {TR_SUST_CHR, "Ì¥ÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
-        {TR_IM_ACID, "»ÀÌȱÖ", 2, TR_IM_ACID, 20},
-        {TR_IM_ELEC, "ÅÅ·âÌȱÖ", 2, TR_IM_ACID, 20},
-        {TR_IM_FIRE, "²Ð±êÌȱÖ", 2, TR_IM_ACID, 20},
-        {TR_IM_COLD, "Î䵤ÌȱÖ", 2, TR_IM_ACID, 20},
-        {TR_REFLECT, "È¿¼Í", 2, TR_REFLECT, 20},
-        {TR_FREE_ACT, "ËãáãÃΤ餺", 3, TR_FREE_ACT, 20},
-        {TR_HOLD_LIFE, "À¸Ì¿ÎÏ°Ý»ý", 3, TR_HOLD_LIFE, 20},
-        {TR_RES_ACID, "ÂÑ»À", 2, TR_RES_ACID, 15},
-        {TR_RES_ELEC, "ÂÑÅÅ·â", 2, TR_RES_ELEC, 15},
-        {TR_RES_FIRE, "ÂѲбê", 2, TR_RES_FIRE, 15},
-        {TR_RES_COLD, "ÂÑÎ䵤", 2, TR_RES_COLD, 15},
-        {TR_RES_POIS, "ÂÑÆÇ", 2, TR_RES_POIS, 25},
-        {TR_RES_FEAR, "ÂѶ²ÉÝ", 2, TR_RES_FEAR, 20},
-        {TR_RES_LITE, "ÂÑÁ®¸÷", 2, TR_RES_LITE, 20},
-        {TR_RES_DARK, "ÂѰŹõ", 2, TR_RES_DARK, 20},
-        {TR_RES_BLIND, "ÂÑÌÕÌÜ", 2, TR_RES_BLIND, 20},
-        {TR_RES_CONF, "ÂѺ®Íð", 2, TR_RES_CONF, 20},
-        {TR_RES_SOUND, "Âѹ첻", 2, TR_RES_SOUND, 20},
-        {TR_RES_SHARDS, "ÂÑÇËÊÒ", 2, TR_RES_SHARDS, 20},
-        {TR_RES_NETHER, "ÂÑÃϹö", 2, TR_RES_NETHER, 20},
-        {TR_RES_NEXUS, "ÂÑ°ø²Ìº®Íð", 2, TR_RES_NEXUS, 20},
-        {TR_RES_CHAOS, "ÂÑ¥«¥ª¥¹", 2, TR_RES_CHAOS, 20},
-        {TR_RES_DISEN, "ÂÑÎô²½", 2, TR_RES_DISEN, 20},
-        {TR_SH_FIRE, "", 0, -2, 0},
-        {TR_SH_ELEC, "", 0, -2, 0},
-        {TR_SH_COLD, "", 0, -2, 0},
-        {TR_NO_MAGIC, "È¿ËâË¡", 3, TR_NO_MAGIC, 15},
-        {TR_WARNING, "·Ù¹ð", 3, TR_WARNING, 20},
-        {TR_FEATHER, "ÉâÍ·", 3, TR_FEATHER, 20},
-        {TR_LITE, "±Êµ×¸÷¸»", 3, TR_LITE, 15},
-        {TR_SEE_INVIS, "²Ä»ëÆ©ÌÀ", 3, TR_SEE_INVIS, 20},
-        {TR_TELEPATHY, "¥Æ¥ì¥Ñ¥·¡¼", 6, TR_TELEPATHY, 15},
-        {TR_SLOW_DIGEST, "Ãپò½", 3, TR_SLOW_DIGEST, 15},
-        {TR_REGEN, "µÞ®²óÉü", 3, TR_REGEN, 20},
-        {TR_TELEPORT, "¥Æ¥ì¥Ý¡¼¥È", 3, TR_TELEPORT, 25},
-
-        {TR_SLAY_EVIL, "¼Ù°­ÇÜÂÇ", 5, TR_SLAY_EVIL, 100},
-        {TR_KILL_EVIL, "¼Ù°­ÇÜÇÜÂÇ", 0, TR_SLAY_EVIL, 60},
-        {TR_SLAY_ANIMAL, "ưʪÇÜÂÇ", 5, TR_SLAY_ANIMAL, 20},
-        {TR_KILL_ANIMAL, "ưʪÇÜÇÜÂÇ", 5, TR_SLAY_ANIMAL, 60},
-        {TR_SLAY_UNDEAD, "ÉÔ»àÇÜÂÇ", 5, TR_SLAY_UNDEAD, 20},
-        {TR_KILL_UNDEAD, "ÉÔ»àÇÜÇÜÂÇ", 5, TR_SLAY_UNDEAD, 60},
-        {TR_SLAY_DEMON, "°­ËâÇÜÂÇ", 5, TR_SLAY_DEMON, 20},
-        {TR_KILL_DEMON, "°­ËâÇÜÇÜÂÇ", 5, TR_SLAY_DEMON, 60},
-        {TR_SLAY_ORC, "¥ª¡¼¥¯ÇÜÂÇ", 5, TR_SLAY_ORC, 15},
-        {TR_KILL_ORC, "¥ª¡¼¥¯ÇÜÇÜÂÇ", 5, TR_SLAY_ORC, 60},
-        {TR_SLAY_TROLL, "¥È¥í¥ëÇÜÂÇ", 5, TR_SLAY_TROLL, 15},
-        {TR_KILL_TROLL, "¥È¥í¥ëÇÜÇÜÂÇ", 5, TR_SLAY_TROLL, 60},
-        {TR_SLAY_GIANT, "µð¿ÍÇÜÂÇ", 5, TR_SLAY_GIANT, 20},
-        {TR_KILL_GIANT, "µð¿ÍÇÜÇÜÂÇ", 5, TR_SLAY_GIANT, 60},       
-        {TR_SLAY_DRAGON, "εÇÜÂÇ", 5, TR_SLAY_DRAGON, 20},
-        {TR_KILL_DRAGON, "εÇÜÇÜÂÇ", 5, TR_SLAY_DRAGON, 60},
-        {TR_SLAY_HUMAN, "¿Í´ÖÇÜÂÇ", 5, TR_SLAY_HUMAN, 20},
-        {TR_KILL_HUMAN, "¿Í´ÖÇÜÇÜÂÇ", 5, TR_SLAY_HUMAN, 60},
-
-        {TR_ESP_ANIMAL, "ưʪESP", 6, TR_SLAY_ANIMAL, 40},
-        {TR_ESP_UNDEAD, "ÉÔ»àESP", 6, TR_SLAY_UNDEAD, 40}, 
-        {TR_ESP_DEMON, "°­ËâESP", 6, TR_SLAY_DEMON, 40},       
-        {TR_ESP_ORC, "¥ª¡¼¥¯ESP", 6, TR_SLAY_ORC, 40},     
-        {TR_ESP_TROLL, "¥È¥í¥ëESP", 6, TR_SLAY_TROLL, 40},   
-        {TR_ESP_GIANT, "µð¿ÍESP", 6, TR_SLAY_GIANT, 40},       
-        {TR_ESP_DRAGON, "εESP", 6, TR_SLAY_DRAGON, 40},
-        {TR_ESP_HUMAN, "¿Í´ÖESP", 6, TR_SLAY_HUMAN, 40},
-
-        {ESSENCE_ATTACK, "¹¶·â", 10, TR_ES_ATTACK, 30},
-        {ESSENCE_AC, "Ëɸæ", 10, TR_ES_AC, 15},
-        {ESSENCE_TMP_RES_ACID, "»ÀÂÑÀ­È¯Æ°", 7, TR_RES_ACID, 50},
-        {ESSENCE_TMP_RES_ELEC, "ÅÅ·âÂÑÀ­È¯Æ°", 7, TR_RES_ELEC, 50},
-        {ESSENCE_TMP_RES_FIRE, "²Ð±êÂÑÀ­È¯Æ°", 7, TR_RES_FIRE, 50},
-        {ESSENCE_TMP_RES_COLD, "Î䵤ÂÑÀ­È¯Æ°", 7, TR_RES_COLD, 50},
-        {ESSENCE_SH_FIRE, "²Ð±ê¥ª¡¼¥é", 7, -1, 50},
-        {ESSENCE_SH_ELEC, "Åŷ⥪¡¼¥é", 7, -1, 50},
-        {ESSENCE_SH_COLD, "Î䵤¥ª¡¼¥é", 7, -1, 50},
-        {ESSENCE_RESISTANCE, "Á´ÂÑÀ­", 2, -1, 150},
-        {ESSENCE_SUSTAIN, "ÁõÈ÷ÊÝ»ý", 10, -1, 10},
-        {ESSENCE_SLAY_GLOVE, "»¦Ù¤¤Î¾®¼ê", 1, TR_ES_ATTACK, 200},
-
-        {-1, NULL, 0, -1, 0}
+       {TR_STR, "ÏÓÎÏ", 4, TR_STR, 20},
+       {TR_INT, "ÃÎǽ", 4, TR_INT, 20},
+       {TR_WIS, "¸­¤µ", 4, TR_WIS, 20},
+       {TR_DEX, "´ïÍѤµ", 4, TR_DEX, 20},
+       {TR_CON, "Âѵ×ÎÏ", 4, TR_CON, 20},
+       {TR_CHR, "Ì¥ÎÏ", 4, TR_CHR, 20},
+       {TR_MAGIC_MASTERY, "ËâÎÏ»ÙÇÛ", 4, TR_MAGIC_MASTERY, 20},
+       {TR_STEALTH, "±£Ì©", 4, TR_STEALTH, 40},
+       {TR_SEARCH, "õº÷", 4, TR_SEARCH, 15},
+       {TR_INFRA, "ÀÖ³°Àþ»ëÎÏ", 4, TR_INFRA, 15},
+       {TR_TUNNEL, "ºÎ·¡", 4, TR_TUNNEL, 15},
+       {TR_SPEED, "¥¹¥Ô¡¼¥É", 4, TR_SPEED, 12},
+       {TR_BLOWS, "Äɲù¶·â", 1, TR_BLOWS, 20},
+       {TR_CHAOTIC, "¥«¥ª¥¹¹¶·â", 1, TR_CHAOTIC, 15},
+       {TR_VAMPIRIC, "µÛ·ì¹¶·â", 1, TR_VAMPIRIC, 60},
+       {TR_IMPACT, "ÃÏ¿Ìȯư", 7, TR_IMPACT, 15},
+       {TR_BRAND_POIS, "ÆÇ»¦", 1, TR_BRAND_POIS, 20},
+       {TR_BRAND_ACID, "Íϲò", 1, TR_BRAND_ACID, 20},
+       {TR_BRAND_ELEC, "ÅÅ·â", 1, TR_BRAND_ELEC, 20},
+       {TR_BRAND_FIRE, "¾Æ´þ", 1, TR_BRAND_FIRE, 20},
+       {TR_BRAND_COLD, "Åà·ë", 1, TR_BRAND_COLD, 20},
+       {TR_SUST_STR, "ÏÓÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
+       {TR_SUST_INT, "ÃÎǽ°Ý»ý", 3, TR_SUST_STR, 15},
+       {TR_SUST_WIS, "¸­¤µ°Ý»ý", 3, TR_SUST_STR, 15},
+       {TR_SUST_DEX, "´ïÍѤµ°Ý»ý", 3, TR_SUST_STR, 15},
+       {TR_SUST_CON, "Âѵ×ÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
+       {TR_SUST_CHR, "Ì¥ÎÏ°Ý»ý", 3, TR_SUST_STR, 15},
+       {TR_IM_ACID, "»ÀÌȱÖ", 2, TR_IM_ACID, 20},
+       {TR_IM_ELEC, "ÅÅ·âÌȱÖ", 2, TR_IM_ACID, 20},
+       {TR_IM_FIRE, "²Ð±êÌȱÖ", 2, TR_IM_ACID, 20},
+       {TR_IM_COLD, "Î䵤ÌȱÖ", 2, TR_IM_ACID, 20},
+       {TR_REFLECT, "È¿¼Í", 2, TR_REFLECT, 20},
+       {TR_FREE_ACT, "ËãáãÃΤ餺", 3, TR_FREE_ACT, 20},
+       {TR_HOLD_LIFE, "À¸Ì¿ÎÏ°Ý»ý", 3, TR_HOLD_LIFE, 20},
+       {TR_RES_ACID, "ÂÑ»À", 2, TR_RES_ACID, 15},
+       {TR_RES_ELEC, "ÂÑÅÅ·â", 2, TR_RES_ELEC, 15},
+       {TR_RES_FIRE, "ÂѲбê", 2, TR_RES_FIRE, 15},
+       {TR_RES_COLD, "ÂÑÎ䵤", 2, TR_RES_COLD, 15},
+       {TR_RES_POIS, "ÂÑÆÇ", 2, TR_RES_POIS, 25},
+       {TR_RES_FEAR, "ÂѶ²ÉÝ", 2, TR_RES_FEAR, 20},
+       {TR_RES_LITE, "ÂÑÁ®¸÷", 2, TR_RES_LITE, 20},
+       {TR_RES_DARK, "ÂѰŹõ", 2, TR_RES_DARK, 20},
+       {TR_RES_BLIND, "ÂÑÌÕÌÜ", 2, TR_RES_BLIND, 20},
+       {TR_RES_CONF, "ÂѺ®Íð", 2, TR_RES_CONF, 20},
+       {TR_RES_SOUND, "Âѹ첻", 2, TR_RES_SOUND, 20},
+       {TR_RES_SHARDS, "ÂÑÇËÊÒ", 2, TR_RES_SHARDS, 20},
+       {TR_RES_NETHER, "ÂÑÃϹö", 2, TR_RES_NETHER, 20},
+       {TR_RES_NEXUS, "ÂÑ°ø²Ìº®Íð", 2, TR_RES_NEXUS, 20},
+       {TR_RES_CHAOS, "ÂÑ¥«¥ª¥¹", 2, TR_RES_CHAOS, 20},
+       {TR_RES_DISEN, "ÂÑÎô²½", 2, TR_RES_DISEN, 20},
+       {TR_SH_FIRE, "", 0, -2, 0},
+       {TR_SH_ELEC, "", 0, -2, 0},
+       {TR_SH_COLD, "", 0, -2, 0},
+       {TR_NO_MAGIC, "È¿ËâË¡", 3, TR_NO_MAGIC, 15},
+       {TR_WARNING, "·Ù¹ð", 3, TR_WARNING, 20},
+       {TR_FEATHER, "ÉâÍ·", 3, TR_FEATHER, 20},
+       {TR_LITE, "±Êµ×¸÷¸»", 3, TR_LITE, 15},
+       {TR_SEE_INVIS, "²Ä»ëÆ©ÌÀ", 3, TR_SEE_INVIS, 20},
+       {TR_TELEPATHY, "¥Æ¥ì¥Ñ¥·¡¼", 6, TR_TELEPATHY, 15},
+       {TR_SLOW_DIGEST, "Ãپò½", 3, TR_SLOW_DIGEST, 15},
+       {TR_REGEN, "µÞ®²óÉü", 3, TR_REGEN, 20},
+       {TR_TELEPORT, "¥Æ¥ì¥Ý¡¼¥È", 3, TR_TELEPORT, 25},
+
+       {TR_SLAY_EVIL, "¼Ù°­ÇÜÂÇ", 5, TR_SLAY_EVIL, 100},
+       {TR_KILL_EVIL, "¼Ù°­ÇÜÇÜÂÇ", 0, TR_SLAY_EVIL, 60},
+       {TR_SLAY_ANIMAL, "ưʪÇÜÂÇ", 5, TR_SLAY_ANIMAL, 20},
+       {TR_KILL_ANIMAL, "ưʪÇÜÇÜÂÇ", 5, TR_SLAY_ANIMAL, 60},
+       {TR_SLAY_UNDEAD, "ÉÔ»àÇÜÂÇ", 5, TR_SLAY_UNDEAD, 20},
+       {TR_KILL_UNDEAD, "ÉÔ»àÇÜÇÜÂÇ", 5, TR_SLAY_UNDEAD, 60},
+       {TR_SLAY_DEMON, "°­ËâÇÜÂÇ", 5, TR_SLAY_DEMON, 20},
+       {TR_KILL_DEMON, "°­ËâÇÜÇÜÂÇ", 5, TR_SLAY_DEMON, 60},
+       {TR_SLAY_ORC, "¥ª¡¼¥¯ÇÜÂÇ", 5, TR_SLAY_ORC, 15},
+       {TR_KILL_ORC, "¥ª¡¼¥¯ÇÜÇÜÂÇ", 5, TR_SLAY_ORC, 60},
+       {TR_SLAY_TROLL, "¥È¥í¥ëÇÜÂÇ", 5, TR_SLAY_TROLL, 15},
+       {TR_KILL_TROLL, "¥È¥í¥ëÇÜÇÜÂÇ", 5, TR_SLAY_TROLL, 60},
+       {TR_SLAY_GIANT, "µð¿ÍÇÜÂÇ", 5, TR_SLAY_GIANT, 20},
+       {TR_KILL_GIANT, "µð¿ÍÇÜÇÜÂÇ", 5, TR_SLAY_GIANT, 60},       
+       {TR_SLAY_DRAGON, "εÇÜÂÇ", 5, TR_SLAY_DRAGON, 20},
+       {TR_KILL_DRAGON, "εÇÜÇÜÂÇ", 5, TR_SLAY_DRAGON, 60},
+       {TR_SLAY_HUMAN, "¿Í´ÖÇÜÂÇ", 5, TR_SLAY_HUMAN, 20},
+       {TR_KILL_HUMAN, "¿Í´ÖÇÜÇÜÂÇ", 5, TR_SLAY_HUMAN, 60},
+
+       {TR_ESP_ANIMAL, "ưʪESP", 6, TR_SLAY_ANIMAL, 40},
+       {TR_ESP_UNDEAD, "ÉÔ»àESP", 6, TR_SLAY_UNDEAD, 40}, 
+       {TR_ESP_DEMON, "°­ËâESP", 6, TR_SLAY_DEMON, 40},       
+       {TR_ESP_ORC, "¥ª¡¼¥¯ESP", 6, TR_SLAY_ORC, 40},     
+       {TR_ESP_TROLL, "¥È¥í¥ëESP", 6, TR_SLAY_TROLL, 40},   
+       {TR_ESP_GIANT, "µð¿ÍESP", 6, TR_SLAY_GIANT, 40},       
+       {TR_ESP_DRAGON, "εESP", 6, TR_SLAY_DRAGON, 40},
+       {TR_ESP_HUMAN, "¿Í´ÖESP", 6, TR_SLAY_HUMAN, 40},
+
+       {ESSENCE_ATTACK, "¹¶·â", 10, TR_ES_ATTACK, 30},
+       {ESSENCE_AC, "Ëɸæ", 10, TR_ES_AC, 15},
+       {ESSENCE_TMP_RES_ACID, "»ÀÂÑÀ­È¯Æ°", 7, TR_RES_ACID, 50},
+       {ESSENCE_TMP_RES_ELEC, "ÅÅ·âÂÑÀ­È¯Æ°", 7, TR_RES_ELEC, 50},
+       {ESSENCE_TMP_RES_FIRE, "²Ð±êÂÑÀ­È¯Æ°", 7, TR_RES_FIRE, 50},
+       {ESSENCE_TMP_RES_COLD, "Î䵤ÂÑÀ­È¯Æ°", 7, TR_RES_COLD, 50},
+       {ESSENCE_SH_FIRE, "²Ð±ê¥ª¡¼¥é", 7, -1, 50},
+       {ESSENCE_SH_ELEC, "Åŷ⥪¡¼¥é", 7, -1, 50},
+       {ESSENCE_SH_COLD, "Î䵤¥ª¡¼¥é", 7, -1, 50},
+       {ESSENCE_RESISTANCE, "Á´ÂÑÀ­", 2, -1, 150},
+       {ESSENCE_SUSTAIN, "ÁõÈ÷ÊÝ»ý", 10, -1, 10},
+       {ESSENCE_SLAY_GLOVE, "»¦Ù¤¤Î¾®¼ê", 1, TR_ES_ATTACK, 200},
+
+       {-1, NULL, 0, -1, 0}
 };
 #else
 static essence_type essence_info[] = 
 {
-        {TR_STR, "strength", 4, TR_STR, 20},
-        {TR_INT, "intelligence", 4, TR_INT, 20},
-        {TR_WIS, "wisdom", 4, TR_WIS, 20},
-        {TR_DEX, "dexterity", 4, TR_DEX, 20},
-        {TR_CON, "constitution", 4, TR_CON, 20},
-        {TR_CHR, "charisma", 4, TR_CHR, 20},
-        {TR_MAGIC_MASTERY, "magic mastery", 4, TR_MAGIC_MASTERY, 20},
-        {TR_STEALTH, "stealth", 4, TR_STEALTH, 40},
-        {TR_SEARCH, "serching", 4, TR_SEARCH, 15},
-        {TR_INFRA, "inflavision", 4, TR_INFRA, 15},
-        {TR_TUNNEL, "digging", 4, TR_TUNNEL, 15},
-        {TR_SPEED, "speed", 4, TR_SPEED, 12},
-        {TR_BLOWS, "extra attack", 1, TR_BLOWS, 20},
-        {TR_CHAOTIC, "chaos brand", 1, TR_CHAOTIC, 15},
-        {TR_VAMPIRIC, "vampiric brand", 1, TR_VAMPIRIC, 60},
-        {TR_IMPACT, "quake activation", 7, TR_IMPACT, 15},
-        {TR_BRAND_POIS, "poison brand", 1, TR_BRAND_POIS, 20},
-        {TR_BRAND_ACID, "acid brand", 1, TR_BRAND_ACID, 20},
-        {TR_BRAND_ELEC, "electric brand", 1, TR_BRAND_ELEC, 20},
-        {TR_BRAND_FIRE, "fire brand", 1, TR_BRAND_FIRE, 20},
-        {TR_BRAND_COLD, "cold brand", 1, TR_BRAND_COLD, 20},
-        {TR_SUST_STR, "sustain strength", 3, TR_SUST_STR, 15},
-        {TR_SUST_INT, "sustain intelligence", 3, TR_SUST_STR, 15},
-        {TR_SUST_WIS, "sustain wisdom", 3, TR_SUST_STR, 15},
-        {TR_SUST_DEX, "sustain dexterity", 3, TR_SUST_STR, 15},
-        {TR_SUST_CON, "sustain constitution", 3, TR_SUST_STR, 15},
-        {TR_SUST_CHR, "sustain charisma", 3, TR_SUST_STR, 15},
-        {TR_IM_ACID, "acid immunity", 2, TR_IM_ACID, 20},
-        {TR_IM_ELEC, "electric immunity", 2, TR_IM_ACID, 20},
-        {TR_IM_FIRE, "fire immunity", 2, TR_IM_ACID, 20},
-        {TR_IM_COLD, "cold immunity", 2, TR_IM_ACID, 20},
-        {TR_REFLECT, "reflection", 2, TR_REFLECT, 20},
-        {TR_FREE_ACT, "free action", 3, TR_FREE_ACT, 20},
-        {TR_HOLD_LIFE, "hold life", 3, TR_HOLD_LIFE, 20},
-        {TR_RES_ACID, "resistance to acid", 2, TR_RES_ACID, 15},
-        {TR_RES_ELEC, "resistance to electric", 2, TR_RES_ELEC, 15},
-        {TR_RES_FIRE, "resistance to fire", 2, TR_RES_FIRE, 15},
-        {TR_RES_COLD, "resistance to cold", 2, TR_RES_COLD, 15},
-        {TR_RES_POIS, "resistance to poison", 2, TR_RES_POIS, 25},
-        {TR_RES_FEAR, "resistance to fear", 2, TR_RES_FEAR, 20},
-        {TR_RES_LITE, "resistance to light", 2, TR_RES_LITE, 20},
-        {TR_RES_DARK, "resistance to dark", 2, TR_RES_DARK, 20},
-        {TR_RES_BLIND, "resistance to blind", 2, TR_RES_BLIND, 20},
-        {TR_RES_CONF, "resistance to confusion", 2, TR_RES_CONF, 20},
-        {TR_RES_SOUND, "resistance to sound", 2, TR_RES_SOUND, 20},
-        {TR_RES_SHARDS, "resistance to shard", 2, TR_RES_SHARDS, 20},
-        {TR_RES_NETHER, "resistance to nether", 2, TR_RES_NETHER, 20},
-        {TR_RES_NEXUS, "resistance to nexus", 2, TR_RES_NEXUS, 20},
-        {TR_RES_CHAOS, "resistance to chaos", 2, TR_RES_CHAOS, 20},
-        {TR_RES_DISEN, "resistance to disenchantment", 2, TR_RES_DISEN, 20},
-        {TR_SH_FIRE, "", 0, -2, 0},
-        {TR_SH_ELEC, "", 0, -2, 0},
-        {TR_SH_COLD, "", 0, -2, 0},
-        {TR_NO_MAGIC, "anti magic", 3, TR_NO_MAGIC, 15},
-        {TR_WARNING, "warning", 3, TR_WARNING, 20},
-        {TR_FEATHER, "levitation", 3, TR_FEATHER, 20},
-        {TR_LITE, "permanent light", 3, TR_LITE, 15},
-        {TR_SEE_INVIS, "see invisible", 3, TR_SEE_INVIS, 20},
-        {TR_TELEPATHY, "telepathy", 6, TR_TELEPATHY, 15},
-        {TR_SLOW_DIGEST, "slow digestion", 3, TR_SLOW_DIGEST, 15},
-        {TR_REGEN, "regeneration", 3, TR_REGEN, 20},
-        {TR_TELEPORT, "teleport", 3, TR_TELEPORT, 25},
-
-        {TR_SLAY_EVIL, "slay evil", 5, TR_SLAY_EVIL, 100},
-        {TR_SLAY_ANIMAL, "slay animal", 5, TR_SLAY_ANIMAL, 20},
-        {TR_KILL_ANIMAL, "kill animal", 5, TR_SLAY_ANIMAL, 60},
-        {TR_KILL_EVIL, "kill evil", 0, TR_SLAY_EVIL, 60},
-        {TR_SLAY_UNDEAD, "slay undead", 5, TR_SLAY_UNDEAD, 20},
-        {TR_KILL_UNDEAD, "kill undead", 5, TR_SLAY_UNDEAD, 60},
-        {TR_SLAY_DEMON, "slay demon", 5, TR_SLAY_DEMON, 20},
-        {TR_KILL_DEMON, "kill demon", 5, TR_SLAY_DEMON, 60},
-        {TR_SLAY_ORC, "slay orc", 5, TR_SLAY_ORC, 15},
-        {TR_KILL_ORC, "kill orc", 5, TR_SLAY_ORC, 60},
-        {TR_SLAY_TROLL, "slay troll", 5, TR_SLAY_TROLL, 15},
-        {TR_KILL_TROLL, "kill troll", 5, TR_SLAY_TROLL, 60},
-        {TR_SLAY_GIANT, "slay giant", 5, TR_SLAY_GIANT, 20},
-        {TR_KILL_GIANT, "kill giant", 5, TR_SLAY_GIANT, 60},       
-        {TR_SLAY_DRAGON, "slay dragon", 5, TR_SLAY_DRAGON, 20},
-        {TR_KILL_DRAGON, "kill dragon", 5, TR_SLAY_DRAGON, 60},
-        {TR_SLAY_HUMAN, "slay human", 5, TR_SLAY_HUMAN, 20},
-        {TR_KILL_HUMAN, "kill human", 5, TR_SLAY_HUMAN, 60},
-
-        {TR_ESP_ANIMAL, "sense animal", 6, TR_SLAY_ANIMAL, 40},
-        {TR_ESP_UNDEAD, "sense undead", 6, TR_SLAY_UNDEAD, 40}, 
-        {TR_ESP_DEMON, "sense demon", 6, TR_SLAY_DEMON, 40},       
-        {TR_ESP_ORC, "sense orc", 6, TR_SLAY_ORC, 40},     
-        {TR_ESP_TROLL, "sense troll", 6, TR_SLAY_TROLL, 40},   
-        {TR_ESP_GIANT, "sense giant", 6, TR_SLAY_GIANT, 40},       
-        {TR_ESP_DRAGON, "sense dragon", 6, TR_SLAY_DRAGON, 40},
-        {TR_ESP_HUMAN, "sense human", 6, TR_SLAY_HUMAN, 40},
-
-        {ESSENCE_ATTACK, "weapon enchant", 10, TR_ES_ATTACK, 30},
-        {ESSENCE_AC, "armor enchant", 10, TR_ES_AC, 15},
-        {ESSENCE_TMP_RES_ACID, "resist acid activation", 7, TR_RES_ACID, 50},
-        {ESSENCE_TMP_RES_ELEC, "resist electricity activation", 7, TR_RES_ELEC, 50},
-        {ESSENCE_TMP_RES_FIRE, "resist fire activation", 7, TR_RES_FIRE, 50},
-        {ESSENCE_TMP_RES_COLD, "resist cold activation", 7, TR_RES_COLD, 50},
-        {ESSENCE_SH_FIRE, "fiery sheath", 7, -1, 50},
-        {ESSENCE_SH_ELEC, "electric sheath", 7, -1, 50},
-        {ESSENCE_SH_COLD, "sheath of coldness", 7, -1, 50},
-        {ESSENCE_RESISTANCE, "resistance", 2, -1, 150},
-        {ESSENCE_SUSTAIN, "elements proof", 10, -1, 10},
-        {ESSENCE_SLAY_GLOVE, "gauntlets of slaying", 1, TR_ES_ATTACK, 200},
-
-        {-1, NULL, 0, -1, 0}
+       {TR_STR, "strength", 4, TR_STR, 20},
+       {TR_INT, "intelligence", 4, TR_INT, 20},
+       {TR_WIS, "wisdom", 4, TR_WIS, 20},
+       {TR_DEX, "dexterity", 4, TR_DEX, 20},
+       {TR_CON, "constitution", 4, TR_CON, 20},
+       {TR_CHR, "charisma", 4, TR_CHR, 20},
+       {TR_MAGIC_MASTERY, "magic mastery", 4, TR_MAGIC_MASTERY, 20},
+       {TR_STEALTH, "stealth", 4, TR_STEALTH, 40},
+       {TR_SEARCH, "serching", 4, TR_SEARCH, 15},
+       {TR_INFRA, "inflavision", 4, TR_INFRA, 15},
+       {TR_TUNNEL, "digging", 4, TR_TUNNEL, 15},
+       {TR_SPEED, "speed", 4, TR_SPEED, 12},
+       {TR_BLOWS, "extra attack", 1, TR_BLOWS, 20},
+       {TR_CHAOTIC, "chaos brand", 1, TR_CHAOTIC, 15},
+       {TR_VAMPIRIC, "vampiric brand", 1, TR_VAMPIRIC, 60},
+       {TR_IMPACT, "quake activation", 7, TR_IMPACT, 15},
+       {TR_BRAND_POIS, "poison brand", 1, TR_BRAND_POIS, 20},
+       {TR_BRAND_ACID, "acid brand", 1, TR_BRAND_ACID, 20},
+       {TR_BRAND_ELEC, "electric brand", 1, TR_BRAND_ELEC, 20},
+       {TR_BRAND_FIRE, "fire brand", 1, TR_BRAND_FIRE, 20},
+       {TR_BRAND_COLD, "cold brand", 1, TR_BRAND_COLD, 20},
+       {TR_SUST_STR, "sustain strength", 3, TR_SUST_STR, 15},
+       {TR_SUST_INT, "sustain intelligence", 3, TR_SUST_STR, 15},
+       {TR_SUST_WIS, "sustain wisdom", 3, TR_SUST_STR, 15},
+       {TR_SUST_DEX, "sustain dexterity", 3, TR_SUST_STR, 15},
+       {TR_SUST_CON, "sustain constitution", 3, TR_SUST_STR, 15},
+       {TR_SUST_CHR, "sustain charisma", 3, TR_SUST_STR, 15},
+       {TR_IM_ACID, "acid immunity", 2, TR_IM_ACID, 20},
+       {TR_IM_ELEC, "electric immunity", 2, TR_IM_ACID, 20},
+       {TR_IM_FIRE, "fire immunity", 2, TR_IM_ACID, 20},
+       {TR_IM_COLD, "cold immunity", 2, TR_IM_ACID, 20},
+       {TR_REFLECT, "reflection", 2, TR_REFLECT, 20},
+       {TR_FREE_ACT, "free action", 3, TR_FREE_ACT, 20},
+       {TR_HOLD_LIFE, "hold life", 3, TR_HOLD_LIFE, 20},
+       {TR_RES_ACID, "resistance to acid", 2, TR_RES_ACID, 15},
+       {TR_RES_ELEC, "resistance to electric", 2, TR_RES_ELEC, 15},
+       {TR_RES_FIRE, "resistance to fire", 2, TR_RES_FIRE, 15},
+       {TR_RES_COLD, "resistance to cold", 2, TR_RES_COLD, 15},
+       {TR_RES_POIS, "resistance to poison", 2, TR_RES_POIS, 25},
+       {TR_RES_FEAR, "resistance to fear", 2, TR_RES_FEAR, 20},
+       {TR_RES_LITE, "resistance to light", 2, TR_RES_LITE, 20},
+       {TR_RES_DARK, "resistance to dark", 2, TR_RES_DARK, 20},
+       {TR_RES_BLIND, "resistance to blind", 2, TR_RES_BLIND, 20},
+       {TR_RES_CONF, "resistance to confusion", 2, TR_RES_CONF, 20},
+       {TR_RES_SOUND, "resistance to sound", 2, TR_RES_SOUND, 20},
+       {TR_RES_SHARDS, "resistance to shard", 2, TR_RES_SHARDS, 20},
+       {TR_RES_NETHER, "resistance to nether", 2, TR_RES_NETHER, 20},
+       {TR_RES_NEXUS, "resistance to nexus", 2, TR_RES_NEXUS, 20},
+       {TR_RES_CHAOS, "resistance to chaos", 2, TR_RES_CHAOS, 20},
+       {TR_RES_DISEN, "resistance to disenchantment", 2, TR_RES_DISEN, 20},
+       {TR_SH_FIRE, "", 0, -2, 0},
+       {TR_SH_ELEC, "", 0, -2, 0},
+       {TR_SH_COLD, "", 0, -2, 0},
+       {TR_NO_MAGIC, "anti magic", 3, TR_NO_MAGIC, 15},
+       {TR_WARNING, "warning", 3, TR_WARNING, 20},
+       {TR_FEATHER, "levitation", 3, TR_FEATHER, 20},
+       {TR_LITE, "permanent light", 3, TR_LITE, 15},
+       {TR_SEE_INVIS, "see invisible", 3, TR_SEE_INVIS, 20},
+       {TR_TELEPATHY, "telepathy", 6, TR_TELEPATHY, 15},
+       {TR_SLOW_DIGEST, "slow digestion", 3, TR_SLOW_DIGEST, 15},
+       {TR_REGEN, "regeneration", 3, TR_REGEN, 20},
+       {TR_TELEPORT, "teleport", 3, TR_TELEPORT, 25},
+
+       {TR_SLAY_EVIL, "slay evil", 5, TR_SLAY_EVIL, 100},
+       {TR_SLAY_ANIMAL, "slay animal", 5, TR_SLAY_ANIMAL, 20},
+       {TR_KILL_ANIMAL, "kill animal", 5, TR_SLAY_ANIMAL, 60},
+       {TR_KILL_EVIL, "kill evil", 0, TR_SLAY_EVIL, 60},
+       {TR_SLAY_UNDEAD, "slay undead", 5, TR_SLAY_UNDEAD, 20},
+       {TR_KILL_UNDEAD, "kill undead", 5, TR_SLAY_UNDEAD, 60},
+       {TR_SLAY_DEMON, "slay demon", 5, TR_SLAY_DEMON, 20},
+       {TR_KILL_DEMON, "kill demon", 5, TR_SLAY_DEMON, 60},
+       {TR_SLAY_ORC, "slay orc", 5, TR_SLAY_ORC, 15},
+       {TR_KILL_ORC, "kill orc", 5, TR_SLAY_ORC, 60},
+       {TR_SLAY_TROLL, "slay troll", 5, TR_SLAY_TROLL, 15},
+       {TR_KILL_TROLL, "kill troll", 5, TR_SLAY_TROLL, 60},
+       {TR_SLAY_GIANT, "slay giant", 5, TR_SLAY_GIANT, 20},
+       {TR_KILL_GIANT, "kill giant", 5, TR_SLAY_GIANT, 60},       
+       {TR_SLAY_DRAGON, "slay dragon", 5, TR_SLAY_DRAGON, 20},
+       {TR_KILL_DRAGON, "kill dragon", 5, TR_SLAY_DRAGON, 60},
+       {TR_SLAY_HUMAN, "slay human", 5, TR_SLAY_HUMAN, 20},
+       {TR_KILL_HUMAN, "kill human", 5, TR_SLAY_HUMAN, 60},
+
+       {TR_ESP_ANIMAL, "sense animal", 6, TR_SLAY_ANIMAL, 40},
+       {TR_ESP_UNDEAD, "sense undead", 6, TR_SLAY_UNDEAD, 40}, 
+       {TR_ESP_DEMON, "sense demon", 6, TR_SLAY_DEMON, 40},       
+       {TR_ESP_ORC, "sense orc", 6, TR_SLAY_ORC, 40},     
+       {TR_ESP_TROLL, "sense troll", 6, TR_SLAY_TROLL, 40},   
+       {TR_ESP_GIANT, "sense giant", 6, TR_SLAY_GIANT, 40},       
+       {TR_ESP_DRAGON, "sense dragon", 6, TR_SLAY_DRAGON, 40},
+       {TR_ESP_HUMAN, "sense human", 6, TR_SLAY_HUMAN, 40},
+
+       {ESSENCE_ATTACK, "weapon enchant", 10, TR_ES_ATTACK, 30},
+       {ESSENCE_AC, "armor enchant", 10, TR_ES_AC, 15},
+       {ESSENCE_TMP_RES_ACID, "resist acid activation", 7, TR_RES_ACID, 50},
+       {ESSENCE_TMP_RES_ELEC, "resist electricity activation", 7, TR_RES_ELEC, 50},
+       {ESSENCE_TMP_RES_FIRE, "resist fire activation", 7, TR_RES_FIRE, 50},
+       {ESSENCE_TMP_RES_COLD, "resist cold activation", 7, TR_RES_COLD, 50},
+       {ESSENCE_SH_FIRE, "fiery sheath", 7, -1, 50},
+       {ESSENCE_SH_ELEC, "electric sheath", 7, -1, 50},
+       {ESSENCE_SH_COLD, "sheath of coldness", 7, -1, 50},
+       {ESSENCE_RESISTANCE, "resistance", 2, -1, 150},
+       {ESSENCE_SUSTAIN, "elements proof", 10, -1, 10},
+       {ESSENCE_SLAY_GLOVE, "gauntlets of slaying", 1, TR_ES_ATTACK, 200},
+
+       {-1, NULL, 0, -1, 0}
 };
 #endif
 
@@ -6777,206 +6777,206 @@ static essence_type essence_info[] =
 #ifdef JP
 static cptr essence_name[] = 
 {
-        "ÏÓÎÏ",
-        "ÃÎǽ",
-        "¸­¤µ",
-        "´ïÍѤµ",
-        "Âѵ×ÎÏ",
-        "Ì¥ÎÏ",
-        "ËâÎÏ»ÙÇÛ",
-        "",
-        "±£Ì©",
-        "õº÷",
-        "ÀÖ³°Àþ»ëÎÏ",
-        "ºÎ·¡",
-        "¥¹¥Ô¡¼¥É",
-        "Äɲù¶·â",
-        "¥«¥ª¥¹¹¶·â",
-        "µÛ·ì¹¶·â",
-        "ưʪÇÜÂÇ",
-        "¼Ù°­ÇÜÂÇ",
-        "ÉÔ»àÇÜÂÇ",
-        "°­ËâÇÜÂÇ",
-        "¥ª¡¼¥¯ÇÜÂÇ",
-        "¥È¥í¥ëÇÜÂÇ",
-        "µð¿ÍÇÜÂÇ",
-        "εÇÜÂÇ",
-        "",
-        "",
-        "ÃÏ¿Ì",
-        "ÆÇ»¦",
-        "Íϲò",
-        "ÅÅ·â",
-        "¾Æ´þ",
-        "Åà·ë",
-        "ǽÎÏ°Ý»ý",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "ÌȱÖ",
-        "",
-        "",
-        "",
-        "",
-        "È¿¼Í",
-        "ËãáãÃΤ餺",
-        "À¸Ì¿ÎÏ°Ý»ý",
-        "ÂÑ»À",
-        "ÂÑÅÅ·â",
-        "ÂѲбê",
-        "ÂÑÎ䵤",
-        "ÂÑÆÇ",
-        "ÂѶ²ÉÝ",
-        "ÂÑÁ®¸÷",
-        "ÂѰŹõ",
-        "ÂÑÌÕÌÜ",
-        "ÂѺ®Íð",
-        "Âѹ첻",
-        "ÂÑÇËÊÒ",
-        "ÂÑÃϹö",
-        "ÂÑ°ø²Ìº®Íð",
-        "ÂÑ¥«¥ª¥¹",
-        "ÂÑÎô²½",
-        "",
-        "",
-        "¿Í´ÖÇÜÂÇ",
-        "",
-        "",
-        "È¿ËâË¡",
-        "",
-        "",
-        "·Ù¹ð",
-        "",
-        "",
-        "",
-        "ÉâÍ·",
-        "±Êµ×¸÷¸»",
-        "²Ä»ëÆ©ÌÀ",
-        "¥Æ¥ì¥Ñ¥·¡¼",
-        "Ãپò½",
-        "µÞ®²óÉü",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "¥Æ¥ì¥Ý¡¼¥È",
-        "",
-        "",
-        "¹¶·â",
-        "Ëɸæ",
-
-        NULL
+       "ÏÓÎÏ",
+       "ÃÎǽ",
+       "¸­¤µ",
+       "´ïÍѤµ",
+       "Âѵ×ÎÏ",
+       "Ì¥ÎÏ",
+       "ËâÎÏ»ÙÇÛ",
+       "",
+       "±£Ì©",
+       "õº÷",
+       "ÀÖ³°Àþ»ëÎÏ",
+       "ºÎ·¡",
+       "¥¹¥Ô¡¼¥É",
+       "Äɲù¶·â",
+       "¥«¥ª¥¹¹¶·â",
+       "µÛ·ì¹¶·â",
+       "ưʪÇÜÂÇ",
+       "¼Ù°­ÇÜÂÇ",
+       "ÉÔ»àÇÜÂÇ",
+       "°­ËâÇÜÂÇ",
+       "¥ª¡¼¥¯ÇÜÂÇ",
+       "¥È¥í¥ëÇÜÂÇ",
+       "µð¿ÍÇÜÂÇ",
+       "εÇÜÂÇ",
+       "",
+       "",
+       "ÃÏ¿Ì",
+       "ÆÇ»¦",
+       "Íϲò",
+       "ÅÅ·â",
+       "¾Æ´þ",
+       "Åà·ë",
+       "ǽÎÏ°Ý»ý",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "ÌȱÖ",
+       "",
+       "",
+       "",
+       "",
+       "È¿¼Í",
+       "ËãáãÃΤ餺",
+       "À¸Ì¿ÎÏ°Ý»ý",
+       "ÂÑ»À",
+       "ÂÑÅÅ·â",
+       "ÂѲбê",
+       "ÂÑÎ䵤",
+       "ÂÑÆÇ",
+       "ÂѶ²ÉÝ",
+       "ÂÑÁ®¸÷",
+       "ÂѰŹõ",
+       "ÂÑÌÕÌÜ",
+       "ÂѺ®Íð",
+       "Âѹ첻",
+       "ÂÑÇËÊÒ",
+       "ÂÑÃϹö",
+       "ÂÑ°ø²Ìº®Íð",
+       "ÂÑ¥«¥ª¥¹",
+       "ÂÑÎô²½",
+       "",
+       "",
+       "¿Í´ÖÇÜÂÇ",
+       "",
+       "",
+       "È¿ËâË¡",
+       "",
+       "",
+       "·Ù¹ð",
+       "",
+       "",
+       "",
+       "ÉâÍ·",
+       "±Êµ×¸÷¸»",
+       "²Ä»ëÆ©ÌÀ",
+       "¥Æ¥ì¥Ñ¥·¡¼",
+       "Ãپò½",
+       "µÞ®²óÉü",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "¥Æ¥ì¥Ý¡¼¥È",
+       "",
+       "",
+       "¹¶·â",
+       "Ëɸæ",
+
+       NULL
 };
 
 #else
 
 static cptr essence_name[] = 
 {
-        "strength",
-        "intelligen.",
-        "wisdom",
-        "dexterity",
-        "constitut.",
-        "charisma",
-        "magic mast.",
-        "",
-        "stealth",
-        "serching",
-        "inflavision",
-        "digging",
-        "speed",
-        "extra atk",
-        "chaos brand",
-        "vampiric",
-        "slay animal",
-        "slay evil",
-        "slay undead",
-        "slay demon",
-        "slay orc",
-        "slay troll",
-        "slay giant",
-        "slay dragon",
-        "",
-        "",
-        "quake",
-        "pois. brand",
-        "acid brand",
-        "elec. brand",
-        "fire brand",
-        "cold brand",
-        "sustain",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "immunity",
-        "",
-        "",
-        "",
-        "",
-        "reflection",
-        "free action",
-        "hold life",
-        "res. acid",
-        "res. elec.",
-        "res. fire",
-        "res. cold",
-        "res. poison",
-        "res. fear",
-        "res. light",
-        "res. dark",
-        "res. blind",
-        "res.confuse",
-        "res. sound",
-        "res. shard",
-        "res. nether",
-        "res. nexus",
-        "res. chaos",
-        "res. disen.",
-        "",
-        "",
-        "slay human",
-        "",
-        "",
-        "anti magic",
-        "",
-        "",
-        "warning",
-        "",
-        "",
-        "",
-        "levitation",
-        "perm. light",
-        "see invis.",
-        "telepathy",
-        "slow dige.",
-        "regen.",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "",
-        "teleport",
-        "",
-        "",
-        "weapon enc.",
-        "armor enc.",
-
-        NULL
+       "strength",
+       "intelligen.",
+       "wisdom",
+       "dexterity",
+       "constitut.",
+       "charisma",
+       "magic mast.",
+       "",
+       "stealth",
+       "serching",
+       "inflavision",
+       "digging",
+       "speed",
+       "extra atk",
+       "chaos brand",
+       "vampiric",
+       "slay animal",
+       "slay evil",
+       "slay undead",
+       "slay demon",
+       "slay orc",
+       "slay troll",
+       "slay giant",
+       "slay dragon",
+       "",
+       "",
+       "quake",
+       "pois. brand",
+       "acid brand",
+       "elec. brand",
+       "fire brand",
+       "cold brand",
+       "sustain",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "immunity",
+       "",
+       "",
+       "",
+       "",
+       "reflection",
+       "free action",
+       "hold life",
+       "res. acid",
+       "res. elec.",
+       "res. fire",
+       "res. cold",
+       "res. poison",
+       "res. fear",
+       "res. light",
+       "res. dark",
+       "res. blind",
+       "res.confuse",
+       "res. sound",
+       "res. shard",
+       "res. nether",
+       "res. nexus",
+       "res. chaos",
+       "res. disen.",
+       "",
+       "",
+       "slay human",
+       "",
+       "",
+       "anti magic",
+       "",
+       "",
+       "warning",
+       "",
+       "",
+       "",
+       "levitation",
+       "perm. light",
+       "see invis.",
+       "telepathy",
+       "slow dige.",
+       "regen.",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "teleport",
+       "",
+       "",
+       "weapon enc.",
+       "armor enc.",
+
+       NULL
 };
 #endif
 
@@ -7113,15 +7113,15 @@ static void drain_essence(void)
 
        for (i = 0; essence_info[i].add_name; i++)
        {
-                essence_type *es_ptr = &essence_info[i];
+               essence_type *es_ptr = &essence_info[i];
                int pval = 0;
 
                if (es_ptr->add < TR_FLAG_MAX && is_pval_flag(es_ptr->add) && old_pval)
-                        pval = (have_flag(new_flgs, es_ptr->add)) ? old_pval - o_ptr->pval : old_pval;
+                       pval = (have_flag(new_flgs, es_ptr->add)) ? old_pval - o_ptr->pval : old_pval;
 
                if (es_ptr->add < TR_FLAG_MAX &&
-                    (!have_flag(new_flgs, es_ptr->add) || pval) &&
-                    have_flag(old_flgs, es_ptr->add))
+                   (!have_flag(new_flgs, es_ptr->add) || pval) &&
+                   have_flag(old_flgs, es_ptr->add))
                {
                        if (pval)
                        {
@@ -7217,7 +7217,7 @@ static void drain_essence(void)
 #endif
                for (i = 0; essence_name[i]; i++)
                {
-                        if (!essence_name[i][0]) continue;
+                       if (!essence_name[i][0]) continue;
                        if (!drain_value[i]) continue;
 
                        p_ptr->magic_num1[i] += drain_value[i];
@@ -7243,27 +7243,27 @@ static int choose_essence(void)
        int menu_line = (use_menu ? 1 : 0);
 
 #ifdef JP
-        cptr menu_name[] = {
-                "Éð´ï°À­", 
-                "ÂÑÀ­",
-                "ǽÎÏ",
-                "¿ôÃÍ",
-                "¥¹¥ì¥¤",
-                "ESP",
-                "¤½¤Î¾"
-        };
+       cptr menu_name[] = {
+               "Éð´ï°À­", 
+               "ÂÑÀ­",
+               "ǽÎÏ",
+               "¿ôÃÍ",
+               "¥¹¥ì¥¤",
+               "ESP",
+               "¤½¤Î¾"
+       };
 #else
-        cptr menu_name[] = {
-                "Brand weapon",
-                "Resistance",
-                "Ability",
-                "Magic number", 
-                "Slay",
-                "ESP",
-                "Others"
-        };
+       cptr menu_name[] = {
+               "Brand weapon",
+               "Resistance",
+               "Ability",
+               "Magic number", 
+               "Slay",
+               "ESP",
+               "Others"
+       };
 #endif
-        const int mode_max = 7;
+       const int mode_max = 7;
 
 #ifdef ALLOW_REPEAT
        if (repeat_pull(&mode) && 1 <= mode && mode <= mode_max)
@@ -7277,13 +7277,13 @@ static int choose_essence(void)
 
                while(!mode)
                {
-                        int i;
-                        for (i = 0; i < mode_max; i++)
+                       int i;
+                       for (i = 0; i < mode_max; i++)
 #ifdef JP
-                                prt(format(" %s %s", (menu_line == 1+i) ? "¡Õ" : "  ", menu_name[i]), 2 + i, 14);
+                               prt(format(" %s %s", (menu_line == 1+i) ? "¡Õ" : "  ", menu_name[i]), 2 + i, 14);
                        prt("¤É¤Î¼ïÎà¤Î¥¨¥Ã¥»¥ó¥¹Éղäò¹Ô¤¤¤Þ¤¹¤«¡©", 0, 0);
 #else
-                                prt(format(" %s %s", (menu_line == 1+i) ? "> " : "  ", menu_name[i]), 2 + i, 14);
+                               prt(format(" %s %s", (menu_line == 1+i) ? "> " : "  ", menu_name[i]), 2 + i, 14);
                        prt("Choose from menu.", 0, 0);
 #endif
 
@@ -7321,10 +7321,10 @@ static int choose_essence(void)
                screen_save();
                while (!mode)
                {
-                        int i;
+                       int i;
 
-                        for (i = 0; i < mode_max; i++)
-                                prt(format("  %c) %s", 'a' + i, menu_name[i]), 2 + i, 14);
+                       for (i = 0; i < mode_max; i++)
+                               prt(format("  %c) %s", 'a' + i, menu_name[i]), 2 + i, 14);
 
 #ifdef JP
                        if (!get_com("²¿¤òÉղä·¤Þ¤¹¤«:", &choice, TRUE))
@@ -7336,10 +7336,10 @@ static int choose_essence(void)
                                return 0;
                        }
 
-                        if (isupper(choice)) choice = tolower(choice);
+                       if (isupper(choice)) choice = tolower(choice);
 
-                        if ('a' <= choice && choice <= 'a' + (char)mode_max - 1)
-                                mode = (int)choice - 'a' + 1;
+                       if ('a' <= choice && choice <= 'a' + (char)mode_max - 1)
+                               mode = (int)choice - 'a' + 1;
                }
                screen_load();
        }
@@ -7363,13 +7363,13 @@ static void add_essence(int mode)
        int num[22];
        char o_name[MAX_NLEN];
        int use_essence;
-        essence_type *es_ptr;
+       essence_type *es_ptr;
 
        int menu_line = (use_menu ? 1 : 0);
 
        for (i = 0; essence_info[i].add_name; i++)
        {
-                es_ptr = &essence_info[i];
+               es_ptr = &essence_info[i];
 
                if (es_ptr->type != mode) continue;
                num[max_num++] = i;
@@ -7397,9 +7397,9 @@ static void add_essence(int mode)
 
        /* Get a spell from the user */
 
-        choice = (always_show_list || use_menu) ? ESCAPE:1;
-        while (!flag)
-        {
+       choice = (always_show_list || use_menu) ? ESCAPE:1;
+       while (!flag)
+       {
                bool able[22];
                if( choice==ESCAPE ) choice = ' '; 
                else if( !get_com(out_val, &choice, FALSE) )break; 
@@ -7490,7 +7490,7 @@ static void add_essence(int mode)
                                /* Print list */
                                for (ctr = 0; ctr < max_num; ctr++)
                                {
-                                        es_ptr = &essence_info[num[ctr]];
+                                       es_ptr = &essence_info[num[ctr]];
 
                                        if (use_menu)
                                        {
@@ -7653,7 +7653,7 @@ static void add_essence(int mode)
        }
 #endif /* ALLOW_REPEAT */
 
-        es_ptr = &essence_info[num[i]];
+       es_ptr = &essence_info[num[i]];
 
        if (es_ptr->add == ESSENCE_SLAY_GLOVE)
                item_tester_tval = TV_GLOVES;
@@ -7860,7 +7860,7 @@ static void add_essence(int mode)
                }
                else
                {
-                        o_ptr->xtra3 = es_ptr->add + 1;
+                       o_ptr->xtra3 = es_ptr->add + 1;
                }
        }
        else
@@ -7926,9 +7926,9 @@ static void add_essence(int mode)
                        add_flag(o_ptr->art_flags, TR_IGNORE_COLD);
                }
                else
-                {
-                        o_ptr->xtra3 = es_ptr->add + 1;
-                }
+               {
+                       o_ptr->xtra3 = es_ptr->add + 1;
+               }
        }
 
        energy_use = 100;
@@ -8212,7 +8212,7 @@ void do_cmd_kaji(bool only_browse)
        } while (only_browse);
 #ifdef ALLOW_REPEAT
        repeat_push(mode);
-        }
+       }
 #endif /* ALLOW_REPEAT */
 
        switch(mode)
index 4d78a01..a8a6645 100644 (file)
@@ -458,7 +458,7 @@ static bool choose_kamae(void)
 #ifdef JP
                                msg_print("¤â¤È¤â¤È¹½¤¨¤Æ¤¤¤Ê¤¤¡£");
 #else
-                               msg_print("You are not assuming a posture.");
+                               msg_print("You are not assuming a posture.");
 #endif
                        screen_load();
                        return TRUE;
@@ -1399,7 +1399,7 @@ msg_print("
                                  return FALSE;
                          }
                          if (racial_aux(30, 0, A_INT, 20)){
-                               if( is_mirror_grid(&cave[py][px]))
+                               if( is_mirror_grid(&cave[py][px]))
                                {
 #ifdef JP
 msg_print("¾¯¤·Æ¬¤¬¥Ï¥Ã¥­¥ê¤·¤¿¡£");
@@ -3722,9 +3722,9 @@ if (!repeat_pull(&i) || i<0 || i>=num) {
        if (use_menu) screen_save();
         /* Get a spell from the user */
 
-        choice = (always_show_list || use_menu) ? ESCAPE:1;
-        while (!flag)
-        {
+       choice = (always_show_list || use_menu) ? ESCAPE:1;
+       while (!flag)
+       {
                if( choice==ESCAPE ) choice = ' '; 
                else if( !get_com(out_val, &choice, FALSE) )break; 
 
index df327f8..ce69697 100644 (file)
@@ -97,7 +97,7 @@ static HPALETTE PASCAL NEAR MakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
        if (lpInfo->biClrUsed)
        {
                npPal = (PLOGPALETTE)LocalAlloc(LMEM_FIXED, sizeof(LOGPALETTE) +
-                                                (WORD)lpInfo->biClrUsed * sizeof(PALETTEENTRY));
+                                                (WORD)lpInfo->biClrUsed * sizeof(PALETTEENTRY));
                if (!npPal)
                        return(FALSE);
 
@@ -142,7 +142,7 @@ static HPALETTE PASCAL NEAR MakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
  * (unable to create objects, both pointer are invalid).
  */
 static BOOL NEAR PASCAL MakeBitmapAndPalette(HDC hDC, HANDLE hDIB,
-                                             HPALETTE * phPal, HBITMAP * phBitmap)
+                                            HPALETTE * phPal, HBITMAP * phBitmap)
 {
        LPBITMAPINFOHEADER lpInfo;
        BOOL result = FALSE;
@@ -158,9 +158,9 @@ static BOOL NEAR PASCAL MakeBitmapAndPalette(HDC hDC, HANDLE hDIB,
                RealizePalette(hDC);
 
                lpBits = ((LPSTR)lpInfo + (WORD)lpInfo->biSize +
-                         (WORD)lpInfo->biClrUsed * sizeof(RGBQUAD));
+                         (WORD)lpInfo->biClrUsed * sizeof(RGBQUAD));
                hBitmap = CreateDIBitmap(hDC, lpInfo, CBM_INIT, lpBits,
-                                        (LPBITMAPINFO)lpInfo, DIB_RGB_COLORS);
+                                        (LPBITMAPINFO)lpInfo, DIB_RGB_COLORS);
 
                SelectPalette(hDC, hOldPal, TRUE);
                RealizePalette(hDC);
@@ -213,7 +213,7 @@ BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
        }
 
        pInfo->hDIB = GlobalAlloc(GHND, (DWORD)(sizeof(BITMAPINFOHEADER) +
-                                 256 * sizeof(RGBQUAD)));
+                                 256 * sizeof(RGBQUAD)));
 
        if (!pInfo->hDIB)
                return (FALSE);
@@ -262,7 +262,7 @@ BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
        if (lpbi->biSizeImage == 0)
        {
                lpbi->biSizeImage = (((((lpbi->biWidth * (DWORD)lpbi->biBitCount) + 31) & ~31) >> 3)
-                                    * lpbi->biHeight);
+                                    * lpbi->biHeight);
        }
 
        /* otherwise wouldn't work with 16 color bitmaps -- S.K. */
@@ -322,7 +322,7 @@ BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
 
                hDC = GetDC(hWnd);
                if (!MakeBitmapAndPalette(hDC, pInfo->hDIB, &((HPALETTE)pInfo->hPalette),
-                                         &((HBITMAP)pInfo->hBitmap)))
+                                         &((HBITMAP)pInfo->hBitmap)))
                {
                        ReleaseDC(hWnd,hDC);
                        goto ErrExit2;
index 707497f..5fb9e87 100644 (file)
@@ -36,7 +36,7 @@ static s16b roomdep[] =
         3, /* 11 = Circular rooms (22x22) */
        10, /* 12 = Crypts (22x22) */
        20, /* 13 = Trapped monster pit */
-        20, /* 14 = Piranha/Armageddon trap room */ 
+       20, /* 14 = Piranha/Armageddon trap room */ 
 };
 
 
@@ -61,20 +61,20 @@ static void place_secret_door(int y, int x)
        }
        else
        {
-                cave_type *c_ptr = &cave[y][x];
+               cave_type *c_ptr = &cave[y][x];
 
                /* Create secret door */
-                place_closed_door(y, x);
+               place_closed_door(y, x);
 
-                /* Hide */
-                c_ptr->mimic = fill_type[randint0(100)];
+               /* Hide */
+               c_ptr->mimic = fill_type[randint0(100)];
 
-                /* Floor type terrain cannot hide a door */
-                if (!(c_ptr->mimic & 0x20))
-                {
-                        c_ptr->feat = c_ptr->mimic;
-                        c_ptr->mimic = 0;
-                }
+               /* Floor type terrain cannot hide a door */
+               if (!(c_ptr->mimic & 0x20))
+               {
+                       c_ptr->feat = c_ptr->mimic;
+                       c_ptr->mimic = 0;
+               }
 
                c_ptr->info &= ~(CAVE_FLOOR);
        }
@@ -278,7 +278,7 @@ static bool room_alloc(int x, int y, bool crowded, int by0, int bx0, int *xx, in
         * If so, fix by tunneling outside the room in such a way as to connect the caves.
         */
        check_room_boundary(*xx - x / 2 - 1, *yy - y / 2 - 1,
-                           *xx + (x - 1) / 2 + 1, *yy + (y - 1) / 2 + 1);
+                           *xx + (x - 1) / 2 + 1, *yy + (y - 1) / 2 + 1);
 
        /* Success */
        return (TRUE);
@@ -1832,11 +1832,11 @@ static void build_type5(int by0, int bx0, bool pit)
 
        /* Pick some monster types */
        for (i = 0; i < 64; i++)
-       {
+       {
                int r_idx = 0, attempts = 100;
 
                while (attempts--)
-               {
+               {
                        /* Get a (hard) monster type */
                        r_idx = get_mon_num(dun_level + 10);
 
@@ -2282,8 +2282,8 @@ static void build_vault(int yval, int xval, int ymax, int xmax, cptr data,
                        /* Lay down a floor */
                        place_floor_grid(c_ptr);
 
-                        /* Remove any mimic */
-                        c_ptr->mimic = 0;
+                       /* Remove any mimic */
+                       c_ptr->mimic = 0;
 
                        /* Part of a vault */
                        c_ptr->info |= (CAVE_ICKY);
@@ -2330,47 +2330,47 @@ static void build_vault(int yval, int xval, int ymax, int xmax, cptr data,
                                place_trap(y, x);
                                break;
 
-                                /* Black market in a dungeon */
-                        case 'S':
-                                set_cave_feat(y, x, FEAT_SHOP_HEAD + STORE_BLACK);
-                                store_init(NO_TOWN, STORE_BLACK);
-                                break;
-                                
-                                /* The Pattern */
-                        case 'p':
-                                set_cave_feat(y, x, FEAT_PATTERN_START);
-                                break;
-                                
-                        case 'a':
-                                set_cave_feat(y, x, FEAT_PATTERN_1);
-                                break;
-                                
-                        case 'b':
-                                set_cave_feat(y, x, FEAT_PATTERN_2);
-                                break;
-                                
-                        case 'c':
-                                set_cave_feat(y, x, FEAT_PATTERN_3);
-                                break;
-                                
-                        case 'd':
-                                set_cave_feat(y, x, FEAT_PATTERN_4);
-                                break;
-                                
-                        case 'P':
-                                set_cave_feat(y, x, FEAT_PATTERN_END);
-                                break;
-                                
-                        case 'B':
-                                set_cave_feat(y, x, FEAT_PATTERN_XTRA1);
-                                break;
-
-                        case 'A':
-                                /* Reward for Pattern walk */
-                                object_level = base_level + 12;
-                                place_object(y, x, TRUE, FALSE);
-                                object_level = base_level;
-                                break;
+                               /* Black market in a dungeon */
+                       case 'S':
+                               set_cave_feat(y, x, FEAT_SHOP_HEAD + STORE_BLACK);
+                               store_init(NO_TOWN, STORE_BLACK);
+                               break;
+                               
+                               /* The Pattern */
+                       case 'p':
+                               set_cave_feat(y, x, FEAT_PATTERN_START);
+                               break;
+                               
+                       case 'a':
+                               set_cave_feat(y, x, FEAT_PATTERN_1);
+                               break;
+                               
+                       case 'b':
+                               set_cave_feat(y, x, FEAT_PATTERN_2);
+                               break;
+                               
+                       case 'c':
+                               set_cave_feat(y, x, FEAT_PATTERN_3);
+                               break;
+                               
+                       case 'd':
+                               set_cave_feat(y, x, FEAT_PATTERN_4);
+                               break;
+                               
+                       case 'P':
+                               set_cave_feat(y, x, FEAT_PATTERN_END);
+                               break;
+                               
+                       case 'B':
+                               set_cave_feat(y, x, FEAT_PATTERN_XTRA1);
+                               break;
+
+                       case 'A':
+                               /* Reward for Pattern walk */
+                               object_level = base_level + 12;
+                               place_object(y, x, TRUE, FALSE);
+                               object_level = base_level;
+                               break;
                        }
                }
        }
@@ -2565,7 +2565,7 @@ msg_print("
 
        /* Hack -- Build the vault */
        build_vault(yval, xval, v_ptr->hgt, v_ptr->wid,
-                   v_text + v_ptr->text, xoffset, yoffset, transno);
+                   v_text + v_ptr->text, xoffset, yoffset, transno);
 }
 
 
@@ -2660,7 +2660,7 @@ msg_print("
 
        /* Hack -- Build the vault */
        build_vault(yval, xval, v_ptr->hgt, v_ptr->wid,
-                   v_text + v_ptr->text, xoffset, yoffset, transno);
+                   v_text + v_ptr->text, xoffset, yoffset, transno);
 }
 
 /*
@@ -2883,7 +2883,7 @@ static void generate_hmap(int y0, int x0, int xsiz, int ysiz, int grd, int roug,
                                                /* If greater than 'grid' level then is random */
                                                store_height(ii, jj, randint1(maxsize));
                                        }
-                                       else
+                                       else
                                        {
                                                /* Average of left and right points +random bit */
                                                store_height(ii, jj,
@@ -2900,7 +2900,7 @@ static void generate_hmap(int y0, int x0, int xsiz, int ysiz, int grd, int roug,
                for (j = yhstep; j <= yysize - yhstep; j += ystep)
                {
                        for (i = 0; i <= xxsize; i += xstep)
-                       {
+                       {
                                /* cache often used values */
                                ii = i / 256 + fill_data.xmin;
                                jj = j / 256 + fill_data.ymin;
@@ -2913,7 +2913,7 @@ static void generate_hmap(int y0, int x0, int xsiz, int ysiz, int grd, int roug,
                                                /* If greater than 'grid' level then is random */
                                                store_height(ii, jj, randint1(maxsize));
                                        }
-                                       else
+                                       else
                                        {
                                                /* Average of up and down points +random bit */
                                                store_height(ii, jj,
@@ -2930,7 +2930,7 @@ static void generate_hmap(int y0, int x0, int xsiz, int ysiz, int grd, int roug,
                {
                        for (j = yhstep; j <= yysize - yhstep; j += ystep)
                        {
-                               /* cache often used values */
+                               /* cache often used values */
                                ii = i / 256 + fill_data.xmin;
                                jj = j / 256 + fill_data.ymin;
                                
@@ -2942,7 +2942,7 @@ static void generate_hmap(int y0, int x0, int xsiz, int ysiz, int grd, int roug,
                                                /* If greater than 'grid' level then is random */
                                                store_height(ii, jj, randint1(maxsize));
                                        }
-                                       else
+                                       else
                                        {
                                                /* Cache reused values. */
                                                xm = fill_data.xmin + (i - xhstep) / 256;
@@ -3093,7 +3093,7 @@ static void cave_fill(byte y, byte x)
                                        fill_data.c1, fill_data.c2, fill_data.c3,
                                        fill_data.feat1, fill_data.feat2, fill_data.feat3,
                                        fill_data.info1, fill_data.info2, fill_data.info3))
-                               {
+                               {
                                        /* Enqueue that entry */
                                        temp_y[flow_tail] = j;
                                        temp_x[flow_tail] = i;
@@ -3269,7 +3269,7 @@ static bool generate_fracave(int y0, int x0, int xsize, int ysize, int cutoff, b
                                if (room) cave[y0 + y - yhsize][x0 + x - xhsize].info |= (CAVE_ROOM);
                        }
                        else if (is_outer_bold(y0 + y - yhsize, x0 + x - xhsize) &&
-                                (cave[y0 + y - yhsize][x0 + x - xhsize].info & CAVE_ICKY))
+                                (cave[y0 + y - yhsize][x0 + x - xhsize].info & CAVE_ICKY))
                        {
                                /* Walls */
                                cave[y0 + y - yhsize][x0 + x - xhsize].info &= ~(CAVE_ICKY);
@@ -3342,7 +3342,7 @@ static void build_type9(int by0, int bx0)
 
                /* about size/2 */
                cutoff = randint1(xsize / 4) + randint1(ysize / 4) +
-                        randint1(xsize / 4) + randint1(ysize / 4);
+                        randint1(xsize / 4) + randint1(ysize / 4);
 
                /* make it */
                generate_hmap(y0, x0, xsize, ysize, grd, roug, cutoff);
@@ -3900,7 +3900,7 @@ static void build_bubble_vault(int x0, int y0, int xsize, int ysize)
                                else if (temp < min2)
                                {
                                        /* second smallest */
-                                       min2 = temp;
+                                       min2 = temp;
                                }
                        }
                        if (((min2 - min1) <= 2) && (!(min1 < 3)))
@@ -4082,7 +4082,7 @@ static void build_cave_vault(int x0, int y0, int xsiz, int ysiz)
 
                /* about size/2 */
                cutoff = randint1(xsize / 4) + randint1(ysize / 4) +
-                        randint1(xsize / 4) + randint1(ysize / 4);
+                        randint1(xsize / 4) + randint1(ysize / 4);
 
                /* make it */
                generate_hmap(y0, x0, xsize, ysize, grd, roug, cutoff);
@@ -4123,7 +4123,7 @@ static void build_cave_vault(int x0, int y0, int xsiz, int ysiz)
  * twists and turns in the labyrinth: smaller number, more twists.
  */
 static void r_visit(int y1, int x1, int y2, int x2,
-                    int node, int dir, int *visited)
+                   int node, int dir, int *visited)
 {
        int i, j, m, n, temp, x, y, adj[4];
 
@@ -4281,21 +4281,21 @@ void build_maze_vault(int x0, int y0, int xsize, int ysize, bool is_vault)
  */
 static void build_mini_c_vault(int x0, int y0, int xsize, int ysize)
  {
-       int dy, dx;
-       int y1, x1, y2, x2, y, x, total;
+       int dy, dx;
+       int y1, x1, y2, x2, y, x, total;
        int m, n, num_vertices;
        int *visited;
 
-       if (cheat_room) msg_print("Mini Checker Board Vault");
+       if (cheat_room) msg_print("Mini Checker Board Vault");
 
-       /* Pick a random room size */
+       /* Pick a random room size */
        dy = ysize / 2 - 1;
        dx = xsize / 2 - 1;
 
        y1 = y0 - dy;
-       x1 = x0 - dx;
-       y2 = y0 + dy;
-       x2 = x0 + dx;
+       x1 = x0 - dx;
+       y2 = y0 + dy;
+       x2 = x0 + dx;
 
 
        /* generate the room */
@@ -4619,9 +4619,9 @@ static void build_castle_vault(int x0, int y0, int xsize, int ysize)
        dx = xsize / 2 - 1;
 
        y1 = y0 - dy;
-       x1 = x0 - dx;
-       y2 = y0 + dy;
-       x2 = x0 + dx;
+       x1 = x0 - dx;
+       y2 = y0 + dy;
+       x2 = x0 + dx;
 
        if (cheat_room) msg_print("Castle Vault");
 
@@ -4697,7 +4697,7 @@ static void add_outer_wall(int x, int y, int light,
  * Used to build crypts
  */
 static int dist2(int x1, int y1, int x2, int y2,
-                 int h1, int h2, int h3, int h4)
+                int h1, int h2, int h3, int h4)
 {
        int dx, dy;
        dx = abs(x2 - x1);
@@ -4714,7 +4714,7 @@ static int dist2(int x1, int y1, int x2, int y2,
        if (dx >= 2 * dy) return (dx + (dy * h1) / h2);
        if (dy >= 2 * dx) return (dy + (dx * h1) / h2);
        return (((dx + dy) * 128) / 181 +
-               (dx * dx / (dy * h3) + dy * dy / (dx * h3)) * h4);
+               (dx * dx / (dy * h3) + dy * dy / (dx * h3)) * h4);
        /* 128/181 is approx. 1/sqrt(2) */
 }
 
@@ -4780,7 +4780,7 @@ static void build_target_vault(int x0, int y0, int xsize, int ysize)
 
        /* Find visible outer walls and set to be FEAT_OUTER */
        add_outer_wall(x0, y0, FALSE, x0 - rad - 1, y0 - rad - 1,
-                      x0 + rad + 1, y0 + rad + 1);
+                      x0 + rad + 1, y0 + rad + 1);
 
        /* Add inner wall */
        for (x = x0 - rad / 2; x <= x0 + rad / 2; x++)
@@ -4924,12 +4924,12 @@ static void build_elemental_vault(int x0, int y0, int xsiz, int ysiz)
        for (i = 1; i <= (xsize * ysize) / 50; i++)
        {
                build_small_room(x0 + randint0(xsize - 4) - xsize / 2 + 2,
-                                y0 + randint0(ysize - 4) - ysize / 2 + 2);
+                                y0 + randint0(ysize - 4) - ysize / 2 + 2);
        }
 
        /* Fill with monsters and treasure, low difficulty */
        fill_treasure(x0 - xhsize + 1, x0 - xhsize + xsize - 1,
-                     y0 - yhsize + 1, y0 - yhsize + ysize - 1, randint1(5));
+                     y0 - yhsize + 1, y0 - yhsize + ysize - 1, randint1(5));
 }
 #endif /* ALLOW_CAVERNS_AND_LAKES */
 
@@ -5092,7 +5092,7 @@ static void build_type12(int by0, int bx0)
 
        /* Find visible outer walls and set to be FEAT_OUTER */
        add_outer_wall(x0, y0, light, x0 - rad - 1, y0 - rad - 1,
-                      x0 + rad + 1, y0 + rad + 1);
+                      x0 + rad + 1, y0 + rad + 1);
 
        /* Check to see if there is room for an inner vault */
        for (x = x0 - 2; x <= x0 + 2; x++)
@@ -5134,7 +5134,7 @@ static bool vault_aux_trapped_pit(int r_idx)
        /* Validate the monster */
        if (!vault_monster_okay(r_idx)) return (FALSE);
 
-        /* No wall passing monster */
+       /* No wall passing monster */
        if (r_ptr->flags2 & (RF2_PASS_WALL | RF2_KILL_WALL)) return (FALSE);
 
        /* Okay */
@@ -5188,34 +5188,34 @@ static bool vault_aux_trapped_pit(int r_idx)
  */
 static void build_type13(int by0, int bx0)
 {
-        static int placing[][3] = {
-                {-2, -9, 0}, {-2, -8, 0}, {-3, -7, 0}, {-3, -6, 0},
-                {+2, -9, 0}, {+2, -8, 0}, {+3, -7, 0}, {+3, -6, 0},
-                {-2, +9, 0}, {-2, +8, 0}, {-3, +7, 0}, {-3, +6, 0},
-                {+2, +9, 0}, {+2, +8, 0}, {+3, +7, 0}, {+3, +6, 0},
-                {-2, -7, 1}, {-3, -5, 1}, {-3, -4, 1}, 
-                {+2, -7, 1}, {+3, -5, 1}, {+3, -4, 1}, 
-                {-2, +7, 1}, {-3, +5, 1}, {-3, +4, 1}, 
-                {+2, +7, 1}, {+3, +5, 1}, {+3, +4, 1},
-                {-2, -6, 2}, {-2, -5, 2}, {-3, -3, 2},
-                {+2, -6, 2}, {+2, -5, 2}, {+3, -3, 2},
-                {-2, +6, 2}, {-2, +5, 2}, {-3, +3, 2},
-                {+2, +6, 2}, {+2, +5, 2}, {+3, +3, 2},
-                {-2, -4, 3}, {-3, -2, 3},
-                {+2, -4, 3}, {+3, -2, 3},
-                {-2, +4, 3}, {-3, +2, 3},
-                {+2, +4, 3}, {+3, +2, 3},
-                {-2, -3, 4}, {-3, -1, 4},
-                {+2, -3, 4}, {+3, -1, 4},
-                {-2, +3, 4}, {-3, +1, 4},
-                {+2, +3, 4}, {+3, +1, 4},
-                {-2, -2, 5}, {-3, 0, 5}, {-2, +2, 5},
-                {+2, -2, 5}, {+3, 0, 5}, {+2, +2, 5},
-                {-2, -1, 6}, {-2, +1, 6},
-                {+2, -1, 6}, {+2, +1, 6},
-                {-2, 0, 7}, {+2, 0, 7},
-                {0, 0, -1}
-        };
+       static int placing[][3] = {
+               {-2, -9, 0}, {-2, -8, 0}, {-3, -7, 0}, {-3, -6, 0},
+               {+2, -9, 0}, {+2, -8, 0}, {+3, -7, 0}, {+3, -6, 0},
+               {-2, +9, 0}, {-2, +8, 0}, {-3, +7, 0}, {-3, +6, 0},
+               {+2, +9, 0}, {+2, +8, 0}, {+3, +7, 0}, {+3, +6, 0},
+               {-2, -7, 1}, {-3, -5, 1}, {-3, -4, 1}, 
+               {+2, -7, 1}, {+3, -5, 1}, {+3, -4, 1}, 
+               {-2, +7, 1}, {-3, +5, 1}, {-3, +4, 1}, 
+               {+2, +7, 1}, {+3, +5, 1}, {+3, +4, 1},
+               {-2, -6, 2}, {-2, -5, 2}, {-3, -3, 2},
+               {+2, -6, 2}, {+2, -5, 2}, {+3, -3, 2},
+               {-2, +6, 2}, {-2, +5, 2}, {-3, +3, 2},
+               {+2, +6, 2}, {+2, +5, 2}, {+3, +3, 2},
+               {-2, -4, 3}, {-3, -2, 3},
+               {+2, -4, 3}, {+3, -2, 3},
+               {-2, +4, 3}, {-3, +2, 3},
+               {+2, +4, 3}, {+3, +2, 3},
+               {-2, -3, 4}, {-3, -1, 4},
+               {+2, -3, 4}, {+3, -1, 4},
+               {-2, +3, 4}, {-3, +1, 4},
+               {+2, +3, 4}, {+3, +1, 4},
+               {-2, -2, 5}, {-3, 0, 5}, {-2, +2, 5},
+               {+2, -2, 5}, {+3, 0, 5}, {+2, +2, 5},
+               {-2, -1, 6}, {-2, +1, 6},
+               {+2, -1, 6}, {+2, +1, 6},
+               {-2, 0, 7}, {+2, 0, 7},
+               {0, 0, -1}
+       };
 
        int y, x, y1, x1, y2, x2, xval, yval;
        int i, j;
@@ -5228,8 +5228,8 @@ static void build_type13(int by0, int bx0)
 
        vault_aux_type *n_ptr = pick_vault_type(pit_types, ROOM_PIT);
 
-        /* Only in Angband */
-        if (dungeon_type != 1) return;
+       /* Only in Angband */
+       if (dungeon_type != 1) return;
 
        /* Try to allocate space for room. */
        if (!room_alloc(25, 13, TRUE, by0, bx0, &xval, &yval)) return;
@@ -5251,45 +5251,45 @@ static void build_type13(int by0, int bx0)
        {
                for (x = x1 - 1; x <= x2 + 1; x++)
                {
-                        c_ptr = &cave[y][x];
-                        place_inner_grid(c_ptr);
+                       c_ptr = &cave[y][x];
+                       place_inner_grid(c_ptr);
                        c_ptr->info |= (CAVE_ROOM);
                }
        }
 
        /* Place the floor area 1 */
-        for (x = x1 + 3; x <= x2 - 3; x++)
-        {
-                c_ptr = &cave[yval-2][x];
-                place_floor_grid(c_ptr);
-                add_cave_info(yval-2, x, CAVE_ICKY);
+       for (x = x1 + 3; x <= x2 - 3; x++)
+       {
+               c_ptr = &cave[yval-2][x];
+               place_floor_grid(c_ptr);
+               add_cave_info(yval-2, x, CAVE_ICKY);
 
-                c_ptr = &cave[yval+2][x];
-                place_floor_grid(c_ptr);
-                add_cave_info(yval+2, x, CAVE_ICKY);
-        }
+               c_ptr = &cave[yval+2][x];
+               place_floor_grid(c_ptr);
+               add_cave_info(yval+2, x, CAVE_ICKY);
+       }
 
        /* Place the floor area 2 */
-        for (x = x1 + 5; x <= x2 - 5; x++)
-        {
-                c_ptr = &cave[yval-3][x];
-                place_floor_grid(c_ptr);
-                add_cave_info(yval-3, x, CAVE_ICKY);
+       for (x = x1 + 5; x <= x2 - 5; x++)
+       {
+               c_ptr = &cave[yval-3][x];
+               place_floor_grid(c_ptr);
+               add_cave_info(yval-3, x, CAVE_ICKY);
 
-                c_ptr = &cave[yval+3][x];
-                place_floor_grid(c_ptr);
-                add_cave_info(yval+3, x, CAVE_ICKY);
-        }
+               c_ptr = &cave[yval+3][x];
+               place_floor_grid(c_ptr);
+               add_cave_info(yval+3, x, CAVE_ICKY);
+       }
 
        /* Corridor */
-        for (x = x1; x <= x2; x++)
-        {
-                c_ptr = &cave[yval][x];
-                place_floor_grid(c_ptr);
-                c_ptr = &cave[y1][x];
-                place_floor_grid(c_ptr);
-                c_ptr = &cave[y2][x];
-                place_floor_grid(c_ptr);
+       for (x = x1; x <= x2; x++)
+       {
+               c_ptr = &cave[yval][x];
+               place_floor_grid(c_ptr);
+               c_ptr = &cave[y1][x];
+               place_floor_grid(c_ptr);
+               c_ptr = &cave[y2][x];
+               place_floor_grid(c_ptr);
        }
 
        /* Place the outer walls */
@@ -5309,32 +5309,32 @@ static void build_type13(int by0, int bx0)
        }
 
        /* Random corridor */
-        if (one_in_(2))
-        {
-                for (y = y1; y <= yval; y++)
-                {
-                        place_floor_bold(y, x2);
-                        place_solid_bold(y, x1-1);
-                }
-                for (y = yval; y <= y2 + 1; y++)
-                {
-                        place_floor_bold(y, x1);
-                        place_solid_bold(y, x2+1);
-                }
-        }
-        else
-        {
-                for (y = yval; y <= y2 + 1; y++)
-                {
-                        place_floor_bold(y, x1);
-                        place_solid_bold(y, x2+1);
-                }
-                for (y = y1; y <= yval; y++)
-                {
-                        place_floor_bold(y, x2);
-                        place_solid_bold(y, x1-1);
-                }
-        }
+       if (one_in_(2))
+       {
+               for (y = y1; y <= yval; y++)
+               {
+                       place_floor_bold(y, x2);
+                       place_solid_bold(y, x1-1);
+               }
+               for (y = yval; y <= y2 + 1; y++)
+               {
+                       place_floor_bold(y, x1);
+                       place_solid_bold(y, x2+1);
+               }
+       }
+       else
+       {
+               for (y = yval; y <= y2 + 1; y++)
+               {
+                       place_floor_bold(y, x1);
+                       place_solid_bold(y, x2+1);
+               }
+               for (y = y1; y <= yval; y++)
+               {
+                       place_floor_bold(y, x2);
+                       place_solid_bold(y, x1-1);
+               }
+       }
 
        /* Place the wall open trap */
        cave[yval][xval].mimic = cave[yval][xval].feat;
@@ -5400,7 +5400,7 @@ static void build_type13(int by0, int bx0)
        if (cheat_room)
        {
 #ifdef JP
-                msg_format("%s¤Î櫥ԥåÈ", n_ptr->name);
+               msg_format("%s¤Î櫥ԥåÈ", n_ptr->name);
 #else
                /* Room type */
                msg_format("Trapped monster pit (%s)", n_ptr->name);
@@ -5430,12 +5430,12 @@ static void build_type13(int by0, int bx0)
        }
 
 
-        for (i = 0; placing[i][2] >= 0; i++)
-        {
-                y = yval + placing[i][0];
-                x = xval + placing[i][1];
+       for (i = 0; placing[i][2] >= 0; i++)
+       {
+               y = yval + placing[i][0];
+               x = xval + placing[i][1];
                place_monster_aux(0, y, x, what[placing[i][2]], PM_NO_KAGE);
-        }
+       }
 }
 
 
@@ -5452,7 +5452,7 @@ static void build_type14(int by0, int bx0)
        bool light;
 
        cave_type *c_ptr;
-        byte trap;
+       byte trap;
 
        /* Pick a room size */
        y1 = randint1(4);
@@ -5505,10 +5505,10 @@ static void build_type14(int by0, int bx0)
                place_outer_grid(c_ptr);
        }
 
-        if (dun_level < 30 + randint1(30))
-                trap = FEAT_TRAP_PIRANHA;
-        else
-                trap = FEAT_TRAP_ARMAGEDDON;
+       if (dun_level < 30 + randint1(30))
+               trap = FEAT_TRAP_PIRANHA;
+       else
+               trap = FEAT_TRAP_ARMAGEDDON;
 
        /* Place a special trap */
        cave[yval][xval].mimic = cave[yval][xval].feat;
@@ -5518,9 +5518,9 @@ static void build_type14(int by0, int bx0)
        if (cheat_room)
        {
 #ifdef JP
-                msg_format("%s¤ÎÉô²°", f_name + f_info[trap].name);
+               msg_format("%s¤ÎÉô²°", f_name + f_info[trap].name);
 #else
-                msg_format("Room of %s", f_name + f_info[trap].name);
+               msg_format("Room of %s", f_name + f_info[trap].name);
 #endif
        }
 }
index 806c592..f77d9de 100644 (file)
@@ -584,10 +584,10 @@ static void wr_extra(void)
 
        /* Max Player and Dungeon Levels */
        wr_s16b(p_ptr->max_plv);
-        tmp8u = (byte)max_d_idx;
-        wr_byte(tmp8u);
-        for (i = 0; i < tmp8u; i++)
-                wr_s16b(max_dlv[i]);
+       tmp8u = (byte)max_d_idx;
+       wr_byte(tmp8u);
+       for (i = 0; i < tmp8u; i++)
+               wr_s16b(max_dlv[i]);
 
        /* More info */
        wr_s16b(0);     /* oops */
@@ -621,7 +621,7 @@ static void wr_extra(void)
        wr_s16b(p_ptr->blessed);
        wr_s16b(p_ptr->tim_invis);
        wr_s16b(p_ptr->word_recall);
-        wr_s16b(p_ptr->recall_dungeon);
+       wr_s16b(p_ptr->recall_dungeon);
        wr_s16b(p_ptr->see_infra);
        wr_s16b(p_ptr->tim_infra);
        wr_s16b(p_ptr->oppose_fire);
@@ -1001,7 +1001,7 @@ static bool wr_savefile_new(void)
        wr_byte(FAKE_VER_PATCH);
        xor_byte = 0;
 
-        /* Initial value of xor_byte */
+       /* Initial value of xor_byte */
        tmp8u = (byte)randint0(256);
        wr_byte(tmp8u);
 
@@ -1583,8 +1583,8 @@ bool load_player(void)
                /* Clear screen */
                Term_clear();
 
-                /* Attempt to load */
-                err = rd_savefile_new();
+               /* Attempt to load */
+               err = rd_savefile_new();
 
                /* Message (below) */
 #ifdef JP
index c361aa5..fa86c5a 100644 (file)
@@ -247,7 +247,7 @@ sprintf(tmp_val, "( %d 
                        if ((*when == '@') && strlen(when) == 9)
                        {
                                sprintf(tmp_val, "%.4s-%.2s-%.2s",
-                                       when + 1, when + 5, when + 7);
+                                       when + 1, when + 5, when + 7);
                                when = tmp_val;
                        }
 
@@ -255,18 +255,18 @@ sprintf(tmp_val, "( %d 
 #ifdef JP
 /*sprintf(out_val, "%3d.%9s  %s%s%s¤È¤¤¤¦Ì¾¤Î%s¤Î%s (¥ì¥Ù¥ë %d)", */
                        sprintf(out_val, "%3d.%9s  %s%s%s - %s%s (¥ì¥Ù¥ë %d)",
-                               place, the_score.pts,
-                               seikaku_info[pa].title, (seikaku_info[pa].no ? "¤Î" : ""),
+                               place, the_score.pts,
+                               seikaku_info[pa].title, (seikaku_info[pa].no ? "¤Î" : ""),
                                the_score.who,
                                race_info[pr].title, class_info[pc].title,
-                               clev);
+                               clev);
 
 #else
                        sprintf(out_val, "%3d.%9s  %s %s the %s %s, Level %d",
-                               place, the_score.pts,
+                               place, the_score.pts,
                                seikaku_info[pa].title,
                                the_score.who, race_info[pr].title, class_info[pc].title,
-                               clev);
+                               clev);
 #endif
 
 
@@ -289,13 +289,13 @@ if (mlev > clev) strcat(out_val, format(" (
                                sprintf(out_val, "             ");
 
 
-                        /* »àË´¸¶°ø¤ò¥ª¥ê¥¸¥Ê¥ë¤è¤êºÙ¤«¤¯É½¼¨ */
-                        if (streq(the_score.how, "yet"))
-                        {
-                                sprintf(out_val+13, "  ¤Þ¤ÀÀ¸¤­¤Æ¤¤¤ë (%d%s)",
-                                       cdun, "³¬");
-                        }
-                        else
+                       /* »àË´¸¶°ø¤ò¥ª¥ê¥¸¥Ê¥ë¤è¤êºÙ¤«¤¯É½¼¨ */
+                       if (streq(the_score.how, "yet"))
+                       {
+                               sprintf(out_val+13, "  ¤Þ¤ÀÀ¸¤­¤Æ¤¤¤ë (%d%s)",
+                                      cdun, "³¬");
+                       }
+                       else
                        if (streq(the_score.how, "ripe"))
                        {
                                sprintf(out_val+13, "  ¾¡Íø¤Î¸å¤Ë°úÂà (%d%s)",
@@ -338,23 +338,23 @@ if (mlev > clev) strcat(out_val, format(" (
 
                        /* And still another line of info */
 #ifdef JP
-                        {
-                                char buf[11];
-
-                                /* ÆüÉÕ¤ò 19yy/mm/dd ¤Î·Á¼°¤ËÊѹ¹¤¹¤ë */
-                                if (strlen(when) == 8 && when[2] == '/' && when[5] == '/') {
-                                        sprintf(buf, "%d%s/%.5s", 19 + (when[6] < '8'), when + 6, when);
-                                        when = buf;
-                                }
-                                sprintf(out_val,
-                                                "        (¥æ¡¼¥¶¡¼:%s, ÆüÉÕ:%s, ½ê»ý¶â:%s, ¥¿¡¼¥ó:%s)",
-                                                user, when, gold, aged);
-                        }
+                       {
+                               char buf[11];
+
+                               /* ÆüÉÕ¤ò 19yy/mm/dd ¤Î·Á¼°¤ËÊѹ¹¤¹¤ë */
+                               if (strlen(when) == 8 && when[2] == '/' && when[5] == '/') {
+                                       sprintf(buf, "%d%s/%.5s", 19 + (when[6] < '8'), when + 6, when);
+                                       when = buf;
+                               }
+                               sprintf(out_val,
+                                               "        (¥æ¡¼¥¶¡¼:%s, ÆüÉÕ:%s, ½ê»ý¶â:%s, ¥¿¡¼¥ó:%s)",
+                                               user, when, gold, aged);
+                       }
 
 #else
                        sprintf(out_val,
-                               "               (User %s, Date %s, Gold %s, Turn %s).",
-                               user, when, gold, aged);
+                               "               (User %s, Date %s, Gold %s, Turn %s).",
+                               user, when, gold, aged);
 #endif
 
                        c_put_str(attr, out_val, n*4 + 4, 0);
@@ -422,7 +422,7 @@ if (highscore_fd < 0) quit("
 bool send_world_score(bool do_send)
 {
 #ifdef WORLD_SCORE
-        if(send_score && do_send)
+       if(send_score && do_send)
        {
                if(easy_band)
                {
@@ -461,7 +461,7 @@ bool send_world_score(bool do_send)
                        (void)inkey();
                }
                else return FALSE;
-        }
+       }
 #endif
        return TRUE;
 }
@@ -485,7 +485,7 @@ errr top_twenty(void)
 
        /* Save the version */
        sprintf(the_score.what, "%u.%u.%u",
-               FAKE_VER_MAJOR, FAKE_VER_MINOR, FAKE_VER_PATCH);
+               FAKE_VER_MAJOR, FAKE_VER_MINOR, FAKE_VER_PATCH);
 
        /* Calculate and save the points */
        sprintf(the_score.pts, "%9ld", (long)total_points());
@@ -537,9 +537,9 @@ errr top_twenty(void)
 #endif
        }
        else
-        {
+       {
                strcpy(the_score.how, p_ptr->died_from);
-        }
+       }
 
        /* Lock (for writing) the highscore file, or fail */
        if (fd_lock(highscore_fd, F_WRLCK)) return (1);
@@ -596,7 +596,7 @@ msg_print("
 
        /* Save the version */
        sprintf(the_score.what, "%u.%u.%u",
-               FAKE_VER_MAJOR, FAKE_VER_MINOR, FAKE_VER_PATCH);
+               FAKE_VER_MAJOR, FAKE_VER_MINOR, FAKE_VER_PATCH);
 
        /* Calculate and save the points */
        sprintf(the_score.pts, "%9ld", (long)total_points());
@@ -633,8 +633,8 @@ strcpy(the_score.day, "
 
        /* Hack -- no cause of death */
 #ifdef JP
-        /* ¤Þ¤À»à¤ó¤Ç¤¤¤Ê¤¤¤È¤­¤Î¼±ÊÌʸ»ú */
-        strcpy(the_score.how, "yet");
+       /* ¤Þ¤À»à¤ó¤Ç¤¤¤Ê¤¤¤È¤­¤Î¼±ÊÌʸ»ú */
+       strcpy(the_score.how, "yet");
 #else
        strcpy(the_score.how, "nobody (yet!)");
 #endif
@@ -883,8 +883,8 @@ void kingly(void)
        /* Fake death */
        if (!streq(p_ptr->died_from, "Seppuku"))
 #ifdef JP
-               /* °úÂष¤¿¤È¤­¤Î¼±ÊÌʸ»ú */
-               (void)strcpy(p_ptr->died_from, "ripe");
+               /* °úÂष¤¿¤È¤­¤Î¼±ÊÌʸ»ú */
+               (void)strcpy(p_ptr->died_from, "ripe");
 #else
                (void)strcpy(p_ptr->died_from, "Ripe Old Age");
 #endif
index d81dfc9..9f67718 100644 (file)
@@ -391,8 +391,8 @@ sint project_path(u16b *gp, int range, int y1, int x1, int y2, int x2, int flg)
                        if (flg & (PROJECT_STOP))
                        {
                                if ((n > 0) &&
-                                    ((y == py && x == px) || cave[y][x].m_idx != 0))
-                                        break;
+                                   ((y == py && x == px) || cave[y][x].m_idx != 0))
+                                       break;
                        }
 
                        if (!in_bounds(y, x)) break;
@@ -476,8 +476,8 @@ sint project_path(u16b *gp, int range, int y1, int x1, int y2, int x2, int flg)
                        if (flg & (PROJECT_STOP))
                        {
                                if ((n > 0) &&
-                                    ((y == py && x == px) || cave[y][x].m_idx != 0))
-                                        break;
+                                   ((y == py && x == px) || cave[y][x].m_idx != 0))
+                                       break;
                        }
 
                        if (!in_bounds(y, x)) break;
@@ -543,8 +543,8 @@ sint project_path(u16b *gp, int range, int y1, int x1, int y2, int x2, int flg)
                        if (flg & (PROJECT_STOP))
                        {
                                if ((n > 0) &&
-                                    ((y == py && x == px) || cave[y][x].m_idx != 0))
-                                        break;
+                                   ((y == py && x == px) || cave[y][x].m_idx != 0))
+                                       break;
                        }
 
                        if (!in_bounds(y, x)) break;
@@ -786,10 +786,10 @@ msg_print("
                {
                        /* Destroy all doors and traps */
                        if ((c_ptr->feat == FEAT_OPEN) ||
-                            (c_ptr->feat == FEAT_BROKEN) ||
-                            is_trap(c_ptr->feat) ||
-                            ((c_ptr->feat >= FEAT_DOOR_HEAD) &&
-                             (c_ptr->feat <= FEAT_DOOR_TAIL)))
+                           (c_ptr->feat == FEAT_BROKEN) ||
+                           is_trap(c_ptr->feat) ||
+                           ((c_ptr->feat >= FEAT_DOOR_HEAD) &&
+                            (c_ptr->feat <= FEAT_DOOR_TAIL)))
                        {
                                /* Check line of sight */
                                if (known)
@@ -880,7 +880,7 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Destroy the wall */
-                                cave_set_feat(y, x, floor_type[randint0(100)]);
+                               cave_set_feat(y, x, floor_type[randint0(100)]);
                        }
 
                        /* Quartz / Magma with treasure */
@@ -904,7 +904,7 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Destroy the wall */
-                                cave_set_feat(y, x, floor_type[randint0(100)]);
+                               cave_set_feat(y, x, floor_type[randint0(100)]);
 
                                /* Place some gold */
                                place_gold(y, x);
@@ -929,7 +929,7 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Destroy the wall */
-                                cave_set_feat(y, x, floor_type[randint0(100)]);
+                               cave_set_feat(y, x, floor_type[randint0(100)]);
                        }
 
                        /* Rubble */
@@ -951,7 +951,7 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Destroy the rubble */
-                                cave_set_feat(y, x, floor_type[randint0(100)]);
+                               cave_set_feat(y, x, floor_type[randint0(100)]);
 
                                /* Hack -- place an object */
                                if (randint0(100) < 10)
@@ -992,7 +992,7 @@ msg_print("
                                c_ptr->info &= ~(CAVE_MARK);
 
                                /* Destroy the feature */
-                                cave_set_feat(y, x, floor_type[randint0(100)]);
+                               cave_set_feat(y, x, floor_type[randint0(100)]);
                        }
 
                        /* Notice */
@@ -1068,15 +1068,15 @@ msg_print("
                        /* Require a "naked" floor grid */
                        if (!cave_naked_bold(y, x)) break;
 
-                        /* Create a glyph */
-                        cave[y][x].info |= CAVE_OBJECT;
-                        cave[y][x].mimic = FEAT_GLYPH;
+                       /* Create a glyph */
+                       cave[y][x].info |= CAVE_OBJECT;
+                       cave[y][x].mimic = FEAT_GLYPH;
 
-                        /* Notice */
-                        note_spot(y, x);
+                       /* Notice */
+                       note_spot(y, x);
        
-                        /* Redraw */
-                        lite_spot(y, x);
+                       /* Redraw */
+                       lite_spot(y, x);
 
                        break;
                }
@@ -1099,55 +1099,55 @@ msg_print("
                }
 
 
-                case GF_LAVA_FLOW:
+               case GF_LAVA_FLOW:
                {
-                        /* Shallow Lava */
-                        if(dam == 1)
-                        {
-                                /* Require a "naked" floor grid */
-                                if (!cave_naked_bold(y, x)) break;
+                       /* Shallow Lava */
+                       if(dam == 1)
+                       {
+                               /* Require a "naked" floor grid */
+                               if (!cave_naked_bold(y, x)) break;
 
-                                /* Place a shallow lava */
-                                cave_set_feat(y, x, FEAT_SHAL_LAVA);
-                        }
-                        /* Deep Lava */
-                        else
-                        {
-                                /* Require a "naked" floor grid */
-                                if (cave_perma_bold(y, x) || !dam) break;
+                               /* Place a shallow lava */
+                               cave_set_feat(y, x, FEAT_SHAL_LAVA);
+                       }
+                       /* Deep Lava */
+                       else
+                       {
+                               /* Require a "naked" floor grid */
+                               if (cave_perma_bold(y, x) || !dam) break;
 
-                                /* Place a deep lava */
-                                cave_set_feat(y, x, FEAT_DEEP_LAVA);
+                               /* Place a deep lava */
+                               cave_set_feat(y, x, FEAT_DEEP_LAVA);
 
-                                /* Dam is used as a counter for the number of grid to convert */
-                                dam--;
-                        }
+                               /* Dam is used as a counter for the number of grid to convert */
+                               dam--;
+                       }
                        break;
                }
 
-                case GF_WATER_FLOW:
+               case GF_WATER_FLOW:
                {
-                        /* Shallow Water */
-                        if(dam == 1)
-                        {
-                                /* Require a "naked" floor grid */
-                                if (!cave_naked_bold(y, x)) break;
+                       /* Shallow Water */
+                       if(dam == 1)
+                       {
+                               /* Require a "naked" floor grid */
+                               if (!cave_naked_bold(y, x)) break;
 
-                                /* Place a shallow lava */
-                                cave_set_feat(y, x, FEAT_SHAL_WATER);
-                        }
-                        /* Deep Water */
-                        else
-                        {
-                                /* Require a "naked" floor grid */
-                                if (cave_perma_bold(y, x) || !dam) break;
+                               /* Place a shallow lava */
+                               cave_set_feat(y, x, FEAT_SHAL_WATER);
+                       }
+                       /* Deep Water */
+                       else
+                       {
+                               /* Require a "naked" floor grid */
+                               if (cave_perma_bold(y, x) || !dam) break;
 
-                                /* Place a deep lava */
-                                cave_set_feat(y, x, FEAT_DEEP_WATER);
+                               /* Place a deep lava */
+                               cave_set_feat(y, x, FEAT_DEEP_WATER);
 
-                                /* Dam is used as a counter for the number of grid to convert */
-                                dam--;
-                        }
+                               /* Dam is used as a counter for the number of grid to convert */
+                               dam--;
+                       }
                        break;
                }
 
@@ -1517,11 +1517,11 @@ note_kill = "
                                break;
                        }
 
-                        case GF_IDENTIFY:
-                        {
+                       case GF_IDENTIFY:
+                       {
                                identify_item(o_ptr);
                                break;
-                        }
+                       }
 
                        /* Unlock chests */
                        case GF_KILL_TRAP:
@@ -1747,8 +1747,8 @@ static bool project_m(int who, int r, int y, int x, int dam, int typ , int flg)
        /* Can the player know about this effect? */
        bool known = ((m_ptr->cdis <= MAX_SIGHT) || p_ptr->inside_battle);
 
-        /* Can the player see the source of this effect? */
-        bool see_s = ((who <= 0) || m_list[who].ml);
+       /* Can the player see the source of this effect? */
+       bool see_s = ((who <= 0) || m_list[who].ml);
 
        /* Were the effects "irrelevant"? */
        bool skipped = FALSE;
@@ -2950,8 +2950,8 @@ note = "
 
                        }
                        else if ((r_ptr->flags2 & RF2_STUPID) ||
-                                (r_ptr->flags2 & RF2_WEIRD_MIND) ||
-                                (r_ptr->flags3 & RF3_ANIMAL) ||
+                                (r_ptr->flags2 & RF2_WEIRD_MIND) ||
+                                (r_ptr->flags3 & RF3_ANIMAL) ||
                                                (r_ptr->level > randint1(3 * dam)))
                        {
                                dam /= 3;
@@ -4150,7 +4150,7 @@ msg_format("%s
                        /* Attempt a saving throw */
                        if ((r_ptr->flags1 & (RF1_QUESTOR)) ||
                            (m_ptr->mflag2 & MFLAG_NOPET) ||
-                                (r_ptr->flags3 & (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING)) ||
+                                (r_ptr->flags3 & (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING)) ||
                                 ((r_ptr->level+10) > randint1(dam)))
                        {
                                /* Resist */
@@ -6071,17 +6071,17 @@ note = "
 
                        /* Give detailed messages if destroyed */
                        if (known && note)
-                        {
-                                monster_desc(m_name, m_ptr, 0x100);
-                                if (see_s)
-                                {
-                                        msg_format("%^s%s", m_name, note);
-                                }
-                                else
-                                {
-                                        mon_fight = TRUE;
-                                }
-                        }
+                       {
+                               monster_desc(m_name, m_ptr, 0x100);
+                               if (see_s)
+                               {
+                                       msg_format("%^s%s", m_name, note);
+                               }
+                               else
+                               {
+                                       mon_fight = TRUE;
+                               }
+                       }
 
                        monster_gain_exp(who, m_ptr->r_idx);
 
@@ -6109,14 +6109,14 @@ msg_print("
                        if (note && seen) msg_format("%^s%s", m_name, note);
 
                        /* Hack -- Pain message */
-                        else if (see_s)
-                        {
-                                message_pain(c_ptr->m_idx, dam);
-                        }
-                        else
-                        {
-                                mon_fight = TRUE;
-                        }
+                       else if (see_s)
+                       {
+                               message_pain(c_ptr->m_idx, dam);
+                       }
+                       else
+                       {
+                               mon_fight = TRUE;
+                       }
 
                        /* Hack -- handle sleep */
                        if (do_sleep) m_ptr->csleep = do_sleep;
@@ -6682,7 +6682,7 @@ if (fuzzy) msg_print("
 #endif
 
                        else if ((inventory[INVEN_RARM].name1 == ART_ZANTETSU) || (inventory[INVEN_LARM].name1 == ART_ZANTETSU))
-                       {
+                       {
 #ifdef JP
                                msg_print("Ìð¤ò»Â¤ê¼Î¤Æ¤¿¡ª");
 #else
@@ -7994,33 +7994,33 @@ bool in_disintegration_range(int y1, int x1, int y2, int x2)
  */
 static bool do_disintegration(int by, int bx, int y, int x)
 {
-        byte feat;
+       byte feat;
 
-        /* Disintegration balls explosions are stopped by perma-walls */
-        if (!in_disintegration_range(by, bx, y, x)) return FALSE;
+       /* Disintegration balls explosions are stopped by perma-walls */
+       if (!in_disintegration_range(by, bx, y, x)) return FALSE;
                                                
-        /* Permanent walls and artifacts don't get effect */
-        /* But not protect monsters and other objects */
-        if (!cave_valid_bold(y, x)) return TRUE;
+       /* Permanent walls and artifacts don't get effect */
+       /* But not protect monsters and other objects */
+       if (!cave_valid_bold(y, x)) return TRUE;
 
-        /* Destroy mirror/glyph */
-        remove_mirror(y,x);
+       /* Destroy mirror/glyph */
+       remove_mirror(y,x);
 
-        feat = cave[y][x].feat;
+       feat = cave[y][x].feat;
 
-        if ((feat < FEAT_PATTERN_START || feat > FEAT_PATTERN_XTRA2) &&
-            (feat < FEAT_DEEP_WATER || feat > FEAT_GRASS))
-        {
-                if (feat == FEAT_TREES || feat == FEAT_FLOWER || feat == FEAT_DEEP_GRASS)
-                        cave_set_feat(y, x, FEAT_GRASS);
-                else
-                        cave_set_feat(y, x, floor_type[randint0(100)]);
-        }
+       if ((feat < FEAT_PATTERN_START || feat > FEAT_PATTERN_XTRA2) &&
+           (feat < FEAT_DEEP_WATER || feat > FEAT_GRASS))
+       {
+               if (feat == FEAT_TREES || feat == FEAT_FLOWER || feat == FEAT_DEEP_GRASS)
+                       cave_set_feat(y, x, FEAT_GRASS);
+               else
+                       cave_set_feat(y, x, floor_type[randint0(100)]);
+       }
 
-        /* Update some things -- similar to GF_KILL_WALL */
-        p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MONSTERS | PU_MON_LITE);
+       /* Update some things -- similar to GF_KILL_WALL */
+       p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MONSTERS | PU_MON_LITE);
 
-        return TRUE;
+       return TRUE;
 }
 
 
@@ -8062,17 +8062,17 @@ void breath_shape(u16b *path_g, int dist, int *pgrids, byte *gx, byte *gy, byte
                                        
                                        if (disint_ball)
                                        {
-                                                /* Disintegration are stopped only by perma-walls */
-                                                if (real_breath)
-                                                {
-                                                        /* Destroy terrains */
-                                                        if (!do_disintegration(by, bx, y, x)) continue;
-                                                }
-                                                else
-                                                {
-                                                        /* No actual disintegration */
-                                                        if (!in_disintegration_range(by, bx, y, x)) continue;
-                                                }
+                                               /* Disintegration are stopped only by perma-walls */
+                                               if (real_breath)
+                                               {
+                                                       /* Destroy terrains */
+                                                       if (!do_disintegration(by, bx, y, x)) continue;
+                                               }
+                                               else
+                                               {
+                                                       /* No actual disintegration */
+                                                       if (!in_disintegration_range(by, bx, y, x)) continue;
+                                               }
                                        }
                                        else
                                        {
@@ -8324,8 +8324,8 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons
        monster_target_y=py;
        monster_target_x=px;
 
-        /* Initialize with nul string */
-        who_name[0] = '\0';
+       /* Initialize with nul string */
+       who_name[0] = '\0';
 
        /* Hack -- Jump to target */
        if (flg & (PROJECT_JUMP))
@@ -8501,7 +8501,7 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons
                        if( is_mirror_grid(&cave[y][x]))
                        {
                          /* The target of monsterspell becomes tha mirror(broken) */
-                               monster_target_y=(s16b)y;
+                               monster_target_y=(s16b)y;
                                monster_target_x=(s16b)x;
 
                                remove_mirror(y,x);
@@ -8634,14 +8634,14 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons
                            cave[y][x].feat == FEAT_DOOR_TAIL ||
                            (cave[y][x].feat >= FEAT_WALL_EXTRA &&
                             cave[y][x].feat <= FEAT_PERM_SOLID ))
-                               {
+                       {
                                if( second_step )continue;
                                break;
                        }
                        if( is_mirror_grid(&cave[y][x]) && !second_step )
                        {
                          /* The target of monsterspell becomes tha mirror(broken) */
-                               monster_target_y=(s16b)y;
+                               monster_target_y=(s16b)y;
                                monster_target_x=(s16b)x;
 
                                remove_mirror(y,x);
@@ -8840,8 +8840,8 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons
 
                                                if (typ == GF_DISINTEGRATE)
                                                {
-                                                        /* Disintegration are stopped only by perma-walls */
-                                                        if (!do_disintegration(y2, x2, y, x)) continue;
+                                                       /* Disintegration are stopped only by perma-walls */
+                                                       if (!do_disintegration(y2, x2, y, x)) continue;
                                                }
                                                else
                                                {
index 245f334..dbcb5dc 100644 (file)
@@ -3529,16 +3529,16 @@ bool detect_traps(int range, bool known)
                                /* Hack -- Memorize */
                                c_ptr->info |= (CAVE_MARK);
 
-                                if (c_ptr->mimic)
-                                {
-                                        /* Disclose a hidden trap */
-                                        disclose_grid(y, x);
-                                }
-                                else
-                                {
-                                        /* Redraw */
-                                        lite_spot(y, x);
-                                }
+                               if (c_ptr->mimic)
+                               {
+                                       /* Disclose a hidden trap */
+                                       disclose_grid(y, x);
+                               }
+                               else
+                               {
+                                       /* Redraw */
+                                       lite_spot(y, x);
+                               }
 
                                /* Obvious */
                                detect = TRUE;
@@ -3659,7 +3659,7 @@ bool detect_stairs(int range)
                            (c_ptr->feat == FEAT_LESS_LESS) ||
                            (c_ptr->feat == FEAT_MORE) ||
                            (c_ptr->feat == FEAT_MORE_MORE) ||
-                           (c_ptr->feat == FEAT_ENTRANCE))
+                           (c_ptr->feat == FEAT_ENTRANCE))
                        {
                                /* Hack -- Memorize */
                                c_ptr->info |= (CAVE_MARK);
@@ -5399,28 +5399,28 @@ bool destroy_area(int y1, int x1, int r, int full)
                                if (t < 20)
                                {
                                        /* Create granite wall */
-                                        cave_set_feat(y, x, FEAT_WALL_EXTRA);
+                                       cave_set_feat(y, x, FEAT_WALL_EXTRA);
                                }
 
                                /* Quartz */
                                else if (t < 70)
                                {
                                        /* Create quartz vein */
-                                        cave_set_feat(y, x, FEAT_QUARTZ);
+                                       cave_set_feat(y, x, FEAT_QUARTZ);
                                }
 
                                /* Magma */
                                else if (t < 100)
                                {
                                        /* Create magma vein */
-                                        cave_set_feat(y, x, FEAT_MAGMA);
+                                       cave_set_feat(y, x, FEAT_MAGMA);
                                }
 
                                /* Floor */
                                else
                                {
                                        /* Create floor */
-                                        cave_set_feat(y, x, floor_type[randint0(100)]);
+                                       cave_set_feat(y, x, floor_type[randint0(100)]);
                                }
                        }
                }
@@ -5897,8 +5897,8 @@ msg_format("%^s
                                /* Delete objects */
                                delete_object(yy, xx);
 
-                                /* Clear mirror, runes flag */
-                                c_ptr->info &= ~CAVE_OBJECT;
+                               /* Clear mirror, runes flag */
+                               c_ptr->info &= ~CAVE_OBJECT;
 
                                /* Wall (or floor) type */
                                t = (floor ? randint0(100) : 200);
@@ -5907,28 +5907,28 @@ msg_format("%^s
                                if (t < 20)
                                {
                                        /* Create granite wall */
-                                        cave_set_feat(yy, xx, FEAT_WALL_EXTRA);
+                                       cave_set_feat(yy, xx, FEAT_WALL_EXTRA);
                                }
 
                                /* Quartz */
                                else if (t < 70)
                                {
                                        /* Create quartz vein */
-                                        cave_set_feat(yy, xx, FEAT_QUARTZ);
+                                       cave_set_feat(yy, xx, FEAT_QUARTZ);
                                }
 
                                /* Magma */
                                else if (t < 100)
                                {
                                        /* Create magma vein */
-                                        cave_set_feat(yy, xx, FEAT_MAGMA);
+                                       cave_set_feat(yy, xx, FEAT_MAGMA);
                                }
 
                                /* Floor */
                                else
                                {
                                        /* Create floor */
-                                        cave_set_feat(yy, xx, floor_type[randint0(100)]);
+                                       cave_set_feat(yy, xx, floor_type[randint0(100)]);
                                }
                        }
                }
@@ -6086,8 +6086,8 @@ msg_format("%^s
 #else
                                        msg_format("%^s wakes up.", m_name);
 #endif
-                                        /* Redraw the health bar */
-                                        if (p_ptr->health_who == c_ptr->m_idx)
+                                       /* Redraw the health bar */
+                                       if (p_ptr->health_who == c_ptr->m_idx)
                                                p_ptr->redraw |= (PR_HEALTH);
 
                                }
@@ -6140,7 +6140,7 @@ static void cave_temp_room_unlite(void)
                if ((c_ptr->feat <= FEAT_INVIS) || (c_ptr->feat == FEAT_DIRT) || (c_ptr->feat == FEAT_GRASS))
                {
                        /* Forget the grid */
-                        if (!view_torch_grids) c_ptr->info &= ~(CAVE_MARK);
+                       if (!view_torch_grids) c_ptr->info &= ~(CAVE_MARK);
 
                        /* Notice */
                        note_spot(y, x);
@@ -6255,7 +6255,7 @@ static void cave_temp_room_aux(int y, int x, bool only_room)
                 * This leaves only a check for 6 bounding walls!
                 */
                if (in_bounds(y, x) && cave_floor_bold(y, x) &&
-                    (next_to_walls_adj(y, x) == 6) && (next_to_open(y, x) <= 1)) return;
+                   (next_to_walls_adj(y, x) == 6) && (next_to_open(y, x) <= 1)) return;
        }
 
        /* Paranoia -- verify space */
index 7ede2d2..f95857e 100644 (file)
@@ -1666,7 +1666,7 @@ msg_print("
 
        /* Create a glyph */
        cave[py][px].info |= CAVE_OBJECT;
-        cave[py][px].mimic = FEAT_GLYPH;
+       cave[py][px].mimic = FEAT_GLYPH;
 
        /* Notice */
        note_spot(py, px);
@@ -1693,7 +1693,7 @@ msg_print("
 
        /* Create a mirror */
        cave[py][px].info |= CAVE_OBJECT;
-        cave[py][px].mimic = FEAT_MIRROR;
+       cave[py][px].mimic = FEAT_MIRROR;
 
        /* Turn on the light */
        cave[py][px].info |= CAVE_GLOW;
@@ -1727,7 +1727,7 @@ msg_print("
 
        /* Create a glyph */
        cave[py][px].info |= CAVE_OBJECT;
-        cave[py][px].mimic = FEAT_MINOR_GLYPH;
+       cave[py][px].mimic = FEAT_MINOR_GLYPH;
 
        /* Notice */
        note_spot(py, px);
@@ -2473,8 +2473,8 @@ s = "
 msg_format("%s ¤ÏâÁ¤¤¸÷¤òȯ¤·¤¿¡ª",o_name);
 #else
        msg_format("%s %s radiate%s a blinding light!",
-                 ((item >= 0) ? "Your" : "The"), o_name,
-                 ((o_ptr->number > 1) ? "" : "s"));
+                 ((item >= 0) ? "Your" : "The"), o_name,
+                 ((o_ptr->number > 1) ? "" : "s"));
 #endif
 
        if (o_ptr->name1 || o_ptr->art_name)
@@ -2718,7 +2718,7 @@ s = "
        idx = is_autopick(o_ptr);
        auto_inscribe_item(item, idx);
        if (destroy_identify && !old_known)
-                auto_destroy_item(item, idx);
+               auto_destroy_item(item, idx);
 
        /* Something happened */
        return (TRUE);
@@ -2901,7 +2901,7 @@ s = "
        idx = is_autopick(o_ptr);
        auto_inscribe_item(item, idx);
        if (destroy_identify && !old_known)
-                auto_destroy_item(item, idx);
+               auto_destroy_item(item, idx);
 
        /* Success */
        return (TRUE);
@@ -5319,7 +5319,7 @@ msg_format("%s
 "¶²ÉݤΰŹõ¥ª¡¼¥é", "Ëɶñ", o_name);
 #else
                msg_format("A %s tries to %s, but your %s resists the effects!",
-                          "terrible black aura", "surround your armor", o_name);
+                          "terrible black aura", "surround your armor", o_name);
 #endif
 
        }
@@ -5400,7 +5400,7 @@ msg_format("%s
 "¶²ÉݤΰŹõ¥ª¡¼¥é", "Éð´ï", o_name);
 #else
                msg_format("A %s tries to %s, but your %s resists the effects!",
-                          "terrible black aura", "surround your weapon", o_name);
+                          "terrible black aura", "surround your weapon", o_name);
 #endif
 
        }
@@ -5605,7 +5605,7 @@ bool polymorph_monster(int y, int x)
                {
                        /* Placing the new monster failed */
                        if (place_monster_aux(0, y, x, old_r_idx, (mode | PM_NO_KAGE | PM_IGNORE_TERRAIN)))
-                                m_list[hack_m_idx_ii] = back_m;
+                               m_list[hack_m_idx_ii] = back_m;
                }
 
                if (targeted) target_who = hack_m_idx_ii;
index 4ee37b6..efa83e7 100644 (file)
@@ -307,13 +307,13 @@ static void say_comment_1(void)
        char rumour[1024];
 
 #ifdef JP
-        /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î¤È¤­¤ÏÊ̤Υá¥Ã¥»¡¼¥¸¤ò½Ð¤¹ */
-        if ( cur_store_num == STORE_BLACK ) {
-                msg_print(comment_1_B[randint0(MAX_COMMENT_1)]);
-        }
-        else{
-                msg_print(comment_1[randint0(MAX_COMMENT_1)]);
-        }
+       /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î¤È¤­¤ÏÊ̤Υá¥Ã¥»¡¼¥¸¤ò½Ð¤¹ */
+       if ( cur_store_num == STORE_BLACK ) {
+               msg_print(comment_1_B[randint0(MAX_COMMENT_1)]);
+       }
+       else{
+               msg_print(comment_1[randint0(MAX_COMMENT_1)]);
+       }
 #else
        msg_print(comment_1[randint0(MAX_COMMENT_1)]);
 #endif
@@ -419,15 +419,15 @@ static void say_comment_3(s32b value, int annoyed)
 static void say_comment_4(void)
 {
 #ifdef JP
-        /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î»þ¤ÏÊ̤Υá¥Ã¥»¡¼¥¸¤ò½Ð¤¹ */
-        if ( cur_store_num == STORE_BLACK ){
-                msg_print(comment_4a_B[randint0(MAX_COMMENT_4A)]);
-                msg_print(comment_4b_B[randint0(MAX_COMMENT_4B)]);
-        }
-        else{
-                msg_print(comment_4a[randint0(MAX_COMMENT_4A)]);
-                msg_print(comment_4b[randint0(MAX_COMMENT_4B)]);
-        }
+       /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î»þ¤ÏÊ̤Υá¥Ã¥»¡¼¥¸¤ò½Ð¤¹ */
+       if ( cur_store_num == STORE_BLACK ){
+               msg_print(comment_4a_B[randint0(MAX_COMMENT_4A)]);
+               msg_print(comment_4b_B[randint0(MAX_COMMENT_4B)]);
+       }
+       else{
+               msg_print(comment_4a[randint0(MAX_COMMENT_4A)]);
+               msg_print(comment_4b[randint0(MAX_COMMENT_4B)]);
+       }
 #else
        msg_print(comment_4a[randint0(MAX_COMMENT_4A)]);
        msg_print(comment_4b[randint0(MAX_COMMENT_4B)]);
@@ -442,13 +442,13 @@ static void say_comment_4(void)
 static void say_comment_5(void)
 {
 #ifdef JP
-        /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î»þ¤ÏÊ̤Υá¥Ã¥»¡¼¥¸¤ò½Ð¤¹ */
-        if ( cur_store_num == STORE_BLACK ){
-                msg_print(comment_5_B[randint0(MAX_COMMENT_5)]);
-        }
-        else{
-                msg_print(comment_5[randint0(MAX_COMMENT_5)]);
-        }
+       /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î»þ¤ÏÊ̤Υá¥Ã¥»¡¼¥¸¤ò½Ð¤¹ */
+       if ( cur_store_num == STORE_BLACK ){
+               msg_print(comment_5_B[randint0(MAX_COMMENT_5)]);
+       }
+       else{
+               msg_print(comment_5[randint0(MAX_COMMENT_5)]);
+       }
 #else
        msg_print(comment_5[randint0(MAX_COMMENT_5)]);
 #endif
@@ -2090,8 +2090,8 @@ static void display_entry(int pos)
                        /* Only show the weight of an individual item */
                        int wgt = o_ptr->weight;
 #ifdef JP
-                        sprintf(out_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
-                        put_str(out_val, i+6, 67);
+                       sprintf(out_val, "%3d.%1d kg", lbtokg1(wgt) , lbtokg2(wgt) );
+                       put_str(out_val, i+6, 67);
 #else
                        (void)sprintf(out_val, "%3d.%d lb", wgt / 10, wgt % 10);
                        put_str(out_val, i+6, 68);
@@ -2120,8 +2120,8 @@ static void display_entry(int pos)
                        /* Only show the weight of an individual item */
                        int wgt = o_ptr->weight;
 #ifdef JP
-                        sprintf(out_val, "%3d.%1d", lbtokg1(wgt) , lbtokg2(wgt) );
-                        put_str(out_val, i+6, 60);
+                       sprintf(out_val, "%3d.%1d", lbtokg1(wgt) , lbtokg2(wgt) );
+                       put_str(out_val, i+6, 60);
 #else
                        (void)sprintf(out_val, "%3d.%d", wgt / 10, wgt % 10);
                        put_str(out_val, i+6, 61);
@@ -2402,8 +2402,8 @@ static int get_stock(int *com_val, cptr pmt, int i, int j)
 
        /* Build the prompt */
 #ifdef JP
-        (void)sprintf(out_val, "(%s:%c-%c, ESC¤ÇÃæÃÇ) %s",
-                (((cur_store_num == STORE_HOME) || (cur_store_num == STORE_MUSEUM)) ? "¥¢¥¤¥Æ¥à" : "¾¦ÉÊ"), 
+       (void)sprintf(out_val, "(%s:%c-%c, ESC¤ÇÃæÃÇ) %s",
+               (((cur_store_num == STORE_HOME) || (cur_store_num == STORE_MUSEUM)) ? "¥¢¥¤¥Æ¥à" : "¾¦ÉÊ"), 
                                  I2A(i), I2A(j), pmt);
 #else
        (void)sprintf(out_val, "(Items %c-%c, ESC to exit) %s",
@@ -2660,8 +2660,8 @@ static int get_haggle(cptr pmt, s32b *poffer, s32b price, int final)
  * Return TRUE if offer is NOT okay
  */
 static bool receive_offer(cptr pmt, s32b *poffer,
-                          s32b last_offer, int factor,
-                          s32b price, int final)
+                         s32b last_offer, int factor,
+                         s32b price, int final)
 {
        /* Haggle till done */
        while (TRUE)
@@ -2801,7 +2801,7 @@ static bool purchase_haggle(object_type *o_ptr, s32b *price)
                        cancel = receive_offer("What do you offer? ",
 #endif
 
-                                              &offer, last_offer, 1, cur_ask, final);
+                                              &offer, last_offer, 1, cur_ask, final);
 
                        if (cancel)
                        {
@@ -3117,7 +3117,7 @@ static bool sell_haggle(object_type *o_ptr, s32b *price)
                                prt("", 1, 0);
                                (void)sprintf(out_val,
 #ifdef JP
-                                             "Á°²ó¤ÎÄ󼨲Á³Ê $%ld", (long)last_offer);
+                                             "Á°²ó¤ÎÄ󼨲Á³Ê $%ld", (long)last_offer);
 #else
                                                          "Your last bid %ld", (long)last_offer);
 #endif
@@ -3198,18 +3198,18 @@ static void store_purchase(void)
 
        /* Prompt */
 #ifdef JP
-        /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î»þ¤ÏÊ̤Υá¥Ã¥»¡¼¥¸ */
-        switch( cur_store_num ) {
-                case 7:
-                        sprintf(out_val, "¤É¤Î¥¢¥¤¥Æ¥à¤ò¼è¤ê¤Þ¤¹¤«? ");
-                        break;
-                case 6:
-                        sprintf(out_val, "¤É¤ì? ");
-                        break;
-                default:
-                        sprintf(out_val, "¤É¤ÎÉÊʪ¤¬Íߤ·¤¤¤ó¤À¤¤? ");
-                        break;
-        }
+       /* ¥Ö¥é¥Ã¥¯¥Þ¡¼¥±¥Ã¥È¤Î»þ¤ÏÊ̤Υá¥Ã¥»¡¼¥¸ */
+       switch( cur_store_num ) {
+               case 7:
+                       sprintf(out_val, "¤É¤Î¥¢¥¤¥Æ¥à¤ò¼è¤ê¤Þ¤¹¤«? ");
+                       break;
+               case 6:
+                       sprintf(out_val, "¤É¤ì? ");
+                       break;
+               default:
+                       sprintf(out_val, "¤É¤ÎÉÊʪ¤¬Íߤ·¤¤¤ó¤À¤¤? ");
+                       break;
+       }
 #else
        if (cur_store_num == STORE_HOME)
        {
@@ -3993,21 +3993,21 @@ static void store_examine(void)
        {
                if (cur_store_num == STORE_HOME)
 #ifdef JP
-                        msg_print("²æ¤¬²È¤Ë¤Ï²¿¤âÃÖ¤¤¤Æ¤¢¤ê¤Þ¤»¤ó¡£");
+                       msg_print("²æ¤¬²È¤Ë¤Ï²¿¤âÃÖ¤¤¤Æ¤¢¤ê¤Þ¤»¤ó¡£");
 #else
                        msg_print("Your home is empty.");
 #endif
 
-                else if (cur_store_num == STORE_MUSEUM)
+               else if (cur_store_num == STORE_MUSEUM)
 #ifdef JP
-                        msg_print("Çîʪ´Û¤Ë¤Ï²¿¤âÃÖ¤¤¤Æ¤¢¤ê¤Þ¤»¤ó¡£");
+                       msg_print("Çîʪ´Û¤Ë¤Ï²¿¤âÃÖ¤¤¤Æ¤¢¤ê¤Þ¤»¤ó¡£");
 #else
                        msg_print("Museum is empty.");
 #endif
 
                else
 #ifdef JP
-                        msg_print("¸½ºß¾¦Éʤκ߸ˤòÀڤ餷¤Æ¤¤¤Þ¤¹¡£");
+                       msg_print("¸½ºß¾¦Éʤκ߸ˤòÀڤ餷¤Æ¤¤¤Þ¤¹¡£");
 #else
                        msg_print("I am currently out of stock.");
 #endif
@@ -4151,23 +4151,23 @@ static void store_process_command(void)
                        else
                        {
                                store_top += 12;
-                                /*
-                                 * ±£¤·¥ª¥×¥·¥ç¥ó(powerup_home)¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤­¤Ï
-                                 * ²æ¤¬²È¤Ç¤Ï 2 ¥Ú¡¼¥¸¤Þ¤Ç¤·¤«É½¼¨¤·¤Ê¤¤
-                                 */
-                                if ((cur_store_num == STORE_HOME) && 
-                                    (powerup_home == FALSE) && 
-                                        (st_ptr->stock_num >= STORE_INVEN_MAX))
-                                {
-                                        if (store_top >= (STORE_INVEN_MAX - 1))
-                                        {
-                                                store_top = 0;
-                                        }
-                                }
-                                else
-                                {
-                                        if (store_top >= st_ptr->stock_num) store_top = 0;
-                                }
+                               /*
+                                * ±£¤·¥ª¥×¥·¥ç¥ó(powerup_home)¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤­¤Ï
+                                * ²æ¤¬²È¤Ç¤Ï 2 ¥Ú¡¼¥¸¤Þ¤Ç¤·¤«É½¼¨¤·¤Ê¤¤
+                                */
+                               if ((cur_store_num == STORE_HOME) && 
+                                   (powerup_home == FALSE) && 
+                                       (st_ptr->stock_num >= STORE_INVEN_MAX))
+                               {
+                                       if (store_top >= (STORE_INVEN_MAX - 1))
+                                       {
+                                               store_top = 0;
+                                       }
+                               }
+                               else
+                               {
+                                       if (store_top >= st_ptr->stock_num) store_top = 0;
+                               }
 
                                display_inventory();
                        }
@@ -4589,8 +4589,8 @@ void do_cmd_store(void)
                if (cur_store_num == STORE_HOME)
                {
 #ifdef JP
-                   prt("g) ¥¢¥¤¥Æ¥à¤ò¼è¤ë", 21, 27);
-                   prt("d) ¥¢¥¤¥Æ¥à¤òÃÖ¤¯", 22, 27);
+                  prt("g) ¥¢¥¤¥Æ¥à¤ò¼è¤ë", 21, 27);
+                  prt("d) ¥¢¥¤¥Æ¥à¤òÃÖ¤¯", 22, 27);
                   prt("x) ²È¤Î¥¢¥¤¥Æ¥à¤òÄ´¤Ù¤ë", 23,27);
 #else
                   prt("g) Get an item.", 21, 27);
@@ -4604,7 +4604,7 @@ void do_cmd_store(void)
                else if (cur_store_num == STORE_MUSEUM)
                {
 #ifdef JP
-                   prt("d) ¥¢¥¤¥Æ¥à¤òÃÖ¤¯", 21, 27);
+                  prt("d) ¥¢¥¤¥Æ¥à¤òÃÖ¤¯", 21, 27);
                   prt("x) Çîʪ´Û¤Î¥¢¥¤¥Æ¥à¤òÄ´¤Ù¤ë", 23,27);
 #else
                   prt("d) Drop an item.", 21, 27);
@@ -4617,8 +4617,8 @@ void do_cmd_store(void)
                else
                {
 #ifdef JP
-                        prt("p) ¾¦ÉʤòÇ㤦", 21, 30);
-                        prt("s) ¥¢¥¤¥Æ¥à¤òÇä¤ë", 22, 30);
+                       prt("p) ¾¦ÉʤòÇ㤦", 21, 30);
+                       prt("s) ¥¢¥¤¥Æ¥à¤òÇä¤ë", 22, 30);
                        prt("x) ¾¦ÉʤòÄ´¤Ù¤ë", 23,30);
 #else
                   prt("p) Purchase an item.", 21, 30);
@@ -4629,29 +4629,29 @@ void do_cmd_store(void)
                }
 
 #ifdef JP
-                /* ´ðËÜŪ¤Ê¥³¥Þ¥ó¥É¤ÎÄɲÃɽ¼¨ */
-
-                prt("i/e) »ý¤Áʪ/ÁõÈ÷¤Î°ìÍ÷", 21, 56);
-
-                if( rogue_like_commands == TRUE )
-                {
-                        prt("w/T) ÁõÈ÷¤¹¤ë/¤Ï¤º¤¹", 22, 56);
-                }
-                else
-                {
-                        prt("w/t) ÁõÈ÷¤¹¤ë/¤Ï¤º¤¹", 22, 56);
-                }
+               /* ´ðËÜŪ¤Ê¥³¥Þ¥ó¥É¤ÎÄɲÃɽ¼¨ */
+
+               prt("i/e) »ý¤Áʪ/ÁõÈ÷¤Î°ìÍ÷", 21, 56);
+
+               if( rogue_like_commands == TRUE )
+               {
+                       prt("w/T) ÁõÈ÷¤¹¤ë/¤Ï¤º¤¹", 22, 56);
+               }
+               else
+               {
+                       prt("w/t) ÁõÈ÷¤¹¤ë/¤Ï¤º¤¹", 22, 56);
+               }
 #else
-                prt("i/e) Inventry/Equipment list", 21, 56);
-
-                if( rogue_like_commands == TRUE )
-                {
-                        prt("w/T) Wear/Take off equipment", 22, 56);
-                }
-                else
-                {
-                        prt("w/t) Wear/Take off equipment", 22, 56);
-                }
+               prt("i/e) Inventry/Equipment list", 21, 56);
+
+               if( rogue_like_commands == TRUE )
+               {
+                       prt("w/T) Wear/Take off equipment", 22, 56);
+               }
+               else
+               {
+                       prt("w/t) Wear/Take off equipment", 22, 56);
+               }
 #endif
                /* Prompt */
 #ifdef JP
index b2a210f..989a8a2 100644 (file)
@@ -75,8 +75,8 @@ static void recursive_river(int x1, int y1, int x2, int y2, int feat1, int feat2
                if (one_in_(DUN_WAT_CHG) && (width > 0))
                {
                        recursive_river(x1 + dx + changex, y1 + dy + changey,
-                                       x1 + 8 * (dx + changex), y1 + 8 * (dy + changey),
-                                       feat1, feat2, width - 1);
+                                       x1 + 8 * (dx + changex), y1 + 8 * (dy + changey),
+                                       feat1, feat2, width - 1);
                }
        }
        else
@@ -116,8 +116,8 @@ static void recursive_river(int x1, int y1, int x2, int y2, int feat1, int feat2
                                                else
                                                        c_ptr->feat = feat1;
 
-                                                /* Clear garbage of hidden trap or door */
-                                                c_ptr->mimic = 0;
+                                               /* Clear garbage of hidden trap or door */
+                                               c_ptr->mimic = 0;
 
                                                /* Lava terrain glows */
                                                if ((feat1 == FEAT_DEEP_LAVA) ||  (feat1 == FEAT_SHAL_LAVA))
@@ -261,8 +261,8 @@ void build_streamer(int feat, int chance)
                        /* Clear previous contents, add proper vein type */
                        c_ptr->feat = feat;
 
-                        /* Paranoia: Clear mimic field */
-                        c_ptr->mimic = 0;
+                       /* Paranoia: Clear mimic field */
+                       c_ptr->mimic = 0;
 
                        /* Hack -- Add some (known) treasure */
                        if (treasure && one_in_(chance)) c_ptr->feat += 0x04;
@@ -330,8 +330,8 @@ void place_trees(int x, int y)
                                        cave[j][i].feat = FEAT_RUBBLE;
                                }
 
-                                /* Clear garbage of hidden trap or door */
-                                c_ptr->mimic = 0;
+                               /* Clear garbage of hidden trap or door */
+                               c_ptr->mimic = 0;
 
                                /* Light area since is open above */
                                cave[j][i].info |= (CAVE_GLOW | CAVE_ROOM);
@@ -429,8 +429,8 @@ if (cheat_room) msg_print("
                                                place_floor_grid(c_ptr);
                                        }
 
-                                        /* Clear garbage of hidden trap or door */
-                                        c_ptr->mimic = 0;
+                                       /* Clear garbage of hidden trap or door */
+                                       c_ptr->mimic = 0;
 
                                        /* No longer part of a room or vault */
                                        c_ptr->info &= ~(CAVE_ROOM | CAVE_ICKY);
index 64e6575..22ac928 100644 (file)
@@ -1210,11 +1210,11 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
  */
 
 #ifdef JP
-                { "¥Õ¥ì¥ó¥É¥ê¡¼¤Ê¥Ó¥ë¥Ü",       200,    170,  108,   5,  15,  RACE_HOBBIT},
+               { "¥Õ¥ì¥ó¥É¥ê¡¼¤Ê¥Ó¥ë¥Ü",       200,    170,  108,   5,  15,  RACE_HOBBIT},
 /*                { "²±É¼ԥ饹¥È¥ê¥ó",       200,    175,  108,   4,  12,  RACE_HUMAN},  */
-                { "²±É¼ԥê¥ó¥¹¥¦¥£¥ó¥É",       200,    175,  108,   4,  12,  RACE_HUMAN}, 
-                { "ÇؤÎÄ㤤¥µ¥ë¥¿¥ó",             300,    170,  107,   5,  15,  RACE_GNOME},
-                { "¥Ï¥ó¥µ¥à¤Ê¥é¥¤¥¢=¥¨¥ë",      300,    165,  107,   6,  18,  RACE_ELF},
+               { "²±É¼ԥê¥ó¥¹¥¦¥£¥ó¥É",       200,    175,  108,   4,  12,  RACE_HUMAN}, 
+               { "ÇؤÎÄ㤤¥µ¥ë¥¿¥ó",             300,    170,  107,   5,  15,  RACE_GNOME},
+               { "¥Ï¥ó¥µ¥à¤Ê¥é¥¤¥¢=¥¨¥ë",      300,    165,  107,   6,  18,  RACE_ELF},
 #else
                { "Bilbo the Friendly",         200,    170, 108,  5, 15, RACE_HOBBIT},
 /*             { "Raistlin the Chicken",       200,    175, 108,  4, 12, RACE_HUMAN}, */
@@ -1367,10 +1367,10 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
        {
                /* Armoury - 28 unique names */
 #ifdef JP
-                { "½¹°­¥³¥ó=¥À¡¼",      5000,   210,  115,   5,   7,  RACE_HALF_ORC},
-                { "´è¸Ç¼Ô¥À¡¼¥°=¥í¥¦",  10000,  190,  111,   4,   9,  RACE_HUMAN},
-                { "¸­¼Ô¥Ç¥«¥É",                 25000,  200,  112,   4,  10,  RACE_DUNADAN},
-                { "ÃÃÌê²°¤Î¥¦¥£¡¼¥é¥ó¥É",   30000,  200,  112,   4,   5,  RACE_DWARF},
+               { "½¹°­¥³¥ó=¥À¡¼",      5000,   210,  115,   5,   7,  RACE_HALF_ORC},
+               { "´è¸Ç¼Ô¥À¡¼¥°=¥í¥¦",  10000,  190,  111,   4,   9,  RACE_HUMAN},
+               { "¸­¼Ô¥Ç¥«¥É",                 25000,  200,  112,   4,  10,  RACE_DUNADAN},
+               { "ÃÃÌê²°¤Î¥¦¥£¡¼¥é¥ó¥É",   30000,  200,  112,   4,   5,  RACE_DWARF},
 #else
                { "Kon-Dar the Ugly",           5000,   210, 115,  5,  7, RACE_HALF_ORC},
                { "Darg-Low the Grim",          10000,  190, 111,  4,  9, RACE_HUMAN},
@@ -1394,9 +1394,9 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Decado the Handsome",            25000,  200, 112,  4, 10, RACE_AMBERITE},
 #endif
 #ifdef JP
-        { "¥¨¥í¡¼¡¦¥É¥é¥´¥ó¥¹¥±¥¤¥ë",          30000,  200, 112,  4,  5, RACE_ELF},
+       { "¥¨¥í¡¼¡¦¥É¥é¥´¥ó¥¹¥±¥¤¥ë",          30000,  200, 112,  4,  5, RACE_ELF},
 #else
-        { "Elo Dragonscale",          30000,  200, 112,  4,  5, RACE_ELF},
+       { "Elo Dragonscale",          30000,  200, 112,  4,  5, RACE_ELF},
 #endif
 #ifdef JP
 { "¥Ç¥ê¥«¥È¥¹",           10000,   210, 115,  5,  7, RACE_SPRITE},
@@ -1414,9 +1414,9 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Animus",            25000,  200, 112,  4, 10, RACE_GOLEM},
 #endif
 #ifdef JP
-        { "¥Þ¥ë¥ô¥¡¥¹",          30000,  200, 112,  4,  5, RACE_HALF_TITAN},
+       { "¥Þ¥ë¥ô¥¡¥¹",          30000,  200, 112,  4,  5, RACE_HALF_TITAN},
 #else
-        { "Malvus",          30000,  200, 112,  4,  5, RACE_HALF_TITAN},
+       { "Malvus",          30000,  200, 112,  4,  5, RACE_HALF_TITAN},
 #endif
 #ifdef JP
 { "¥»¥é¥¯¥·¥¹",           10000,   210, 115,  5,  7, RACE_ZOMBIE},
@@ -1434,9 +1434,9 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Drios the Faint",            25000,  200, 112,  4, 10, RACE_SPECTRE},
 #endif
 #ifdef JP
-        { "Î䤿¤¤¥Ð¥¹¥ê¥Ã¥¯",          30000,  200, 112,  4,  5, RACE_VAMPIRE},
+       { "Î䤿¤¤¥Ð¥¹¥ê¥Ã¥¯",          30000,  200, 112,  4,  5, RACE_VAMPIRE},
 #else
-        { "Bathric the Cold",          30000,  200, 112,  4,  5, RACE_VAMPIRE},
+       { "Bathric the Cold",          30000,  200, 112,  4,  5, RACE_VAMPIRE},
 #endif
 #ifdef JP
 { "Îä¹ó¥ô¥§¥ó¥¸¥§¥é",           10000,   210, 115,  5,  7, RACE_HALF_TROLL},
@@ -1454,9 +1454,9 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Yojo II",            25000,  200, 112,  4, 10, RACE_DWARF},
 #endif
 #ifdef JP
-        { "Í¥¤·¤¤¥é¥Ê¥é¡¼",          30000,  200, 112,  4,  5, RACE_AMBERITE},
+       { "Í¥¤·¤¤¥é¥Ê¥é¡¼",          30000,  200, 112,  4,  5, RACE_AMBERITE},
 #else
-        { "Ranalar the Sweet",          30000,  200, 112,  4,  5, RACE_AMBERITE},
+       { "Ranalar the Sweet",          30000,  200, 112,  4,  5, RACE_AMBERITE},
 #endif
 #ifdef JP
 { "ÉÔ¾ô¤Î¥Û¥ë¥Ð¥°",           5000,   210, 115,  5,  7, RACE_HALF_ORC},
@@ -1474,9 +1474,9 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Isedrelias",            25000,  200, 112,  4, 10, RACE_SPRITE},
 #endif
 #ifdef JP
-        { "°ì¤ÄÌÜ¥ô¥§¥°¥Ê¡¼",          5000,  200, 112,  4,  5, RACE_CYCLOPS},
+       { "°ì¤ÄÌÜ¥ô¥§¥°¥Ê¡¼",          5000,  200, 112,  4,  5, RACE_CYCLOPS},
 #else
-        { "Vegnar One-eye",          5000,  200, 112,  4,  5, RACE_CYCLOPS},
+       { "Vegnar One-eye",          5000,  200, 112,  4,  5, RACE_CYCLOPS},
 #endif
 #ifdef JP
 { "º®Æ٤Υí¥Ç¥£¥Ã¥·¥å",           10000,   210, 115,  5,  7, RACE_BEASTMAN},
@@ -1494,9 +1494,9 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Elvererith the Cheat",           10000,  200, 112,  4, 10, RACE_DARK_ELF},
 #endif
 #ifdef JP
-        { "¥¤¥ó¥×¤Î¥¶¥µ¥¹",          30000,  200, 112,  4,  5, RACE_IMP},
+       { "¥¤¥ó¥×¤Î¥¶¥µ¥¹",          30000,  200, 112,  4,  5, RACE_IMP},
 #else
-        { "Zzathath the Imp",          30000,  200, 112,  4,  5, RACE_IMP},
+       { "Zzathath the Imp",          30000,  200, 112,  4,  5, RACE_IMP},
 #endif
 #ifdef JP
 { "½¹°­¥³¥ó=¥À¡¼",           5000,   210, 115,  5,  7, RACE_HALF_ORC},
@@ -1522,10 +1522,10 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
        {
                /* Weapon Smith - 28 unique names */
 #ifdef JP
-                { "»ÄǦ¤Ê¤ë¥¢¡¼¥Î¥ë¥É",        5000,   210,  115,   6,   6,  RACE_HALF_TROLL},
-                { "½Ã»¦¤·¤Î¥¢¡¼¥ó¥À¥ë", 10000,  185,  110,   5,   9,  RACE_HALF_ELF},
-                { "½Ã¥Þ¥¹¥¿¡¼¤Î¥¨¥Ç¥£¡¼", 25000,  190,  115,   5,   7,  RACE_HOBBIT},
-                { "廦¤·¤Î¥ª¥°¥é¥¤¥ó", 30000,  195,  112,   4,   8,  RACE_DWARF},
+               { "»ÄǦ¤Ê¤ë¥¢¡¼¥Î¥ë¥É",        5000,   210,  115,   6,   6,  RACE_HALF_TROLL},
+               { "½Ã»¦¤·¤Î¥¢¡¼¥ó¥À¥ë", 10000,  185,  110,   5,   9,  RACE_HALF_ELF},
+               { "½Ã¥Þ¥¹¥¿¡¼¤Î¥¨¥Ç¥£¡¼", 25000,  190,  115,   5,   7,  RACE_HOBBIT},
+               { "廦¤·¤Î¥ª¥°¥é¥¤¥ó", 30000,  195,  112,   4,   8,  RACE_DWARF},
 #else
                { "Arnold the Beastly",      5000,   210, 115,  6,  6, RACE_BARBARIAN},
                { "Arndal Beast-Slayer",        10000,  185, 110,  5,  9, RACE_HALF_ELF},
@@ -1677,10 +1677,10 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
        {
                /* Temple - 22 unique names */
 #ifdef JP
-                { "¼ÁÁǤʥ롼¥É¥ô¥£¥Ò",         5000,   175,  109,   6,  15,  RACE_HUMAN},
-                { "¥Ñ¥é¥Ç¥£¥ó¤Î¥¬¥ó¥Ê¡¼",       10000,  185,  110,   5,  23,  RACE_HUMAN},
-                { "Áª¤Ð¤ì¤·¥È¥ê¥ó",                     25000,  180,  107,   6,  20,  RACE_ELF},
-                { "¸­ÌÀ¤Ê¤ë¥µ¥é¥¹¥È¥í",                     30000,  185,  109,   5,  15,  RACE_DWARF},
+               { "¼ÁÁǤʥ롼¥É¥ô¥£¥Ò",         5000,   175,  109,   6,  15,  RACE_HUMAN},
+               { "¥Ñ¥é¥Ç¥£¥ó¤Î¥¬¥ó¥Ê¡¼",       10000,  185,  110,   5,  23,  RACE_HUMAN},
+               { "Áª¤Ð¤ì¤·¥È¥ê¥ó",                     25000,  180,  107,   6,  20,  RACE_ELF},
+               { "¸­ÌÀ¤Ê¤ë¥µ¥é¥¹¥È¥í",                     30000,  185,  109,   5,  15,  RACE_DWARF},
 #else
                { "Ludwig the Humble",          5000,   175, 109,  6, 15, RACE_DWARF},
                { "Gunnar the Paladin",         10000,  185, 110,  5, 23, RACE_HALF_TROLL},
@@ -1832,10 +1832,10 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
        {
                /* Alchemist - 26 unique names */
 #ifdef JP
-                { "²½³Ø¼Ô¥Þ¥¦¥¶¡¼",             10000,  190,  111,   5,   8,  RACE_HALF_ELF},
-                { "¥«¥ª¥¹¤Î¥¦¥£¥º¥ë",   10000,  190,  110,   6,   8,  RACE_HOBBIT},
-                { "¶¯ÍߥߥÀ¥¹",              15000,  200,  116,   6,   9,  RACE_GNOME},
-                { "Éϼ奸¥ã=¥Õ¥¡¡¼",                   15000,  220,  111,   4,   9,  RACE_ELF},/*FIRST*/
+               { "²½³Ø¼Ô¥Þ¥¦¥¶¡¼",             10000,  190,  111,   5,   8,  RACE_HALF_ELF},
+               { "¥«¥ª¥¹¤Î¥¦¥£¥º¥ë",   10000,  190,  110,   6,   8,  RACE_HOBBIT},
+               { "¶¯ÍߥߥÀ¥¹",              15000,  200,  116,   6,   9,  RACE_GNOME},
+               { "Éϼ奸¥ã=¥Õ¥¡¡¼",                   15000,  220,  111,   4,   9,  RACE_ELF},/*FIRST*/
 #else
                { "Mauser the Chemist",         10000,  190, 111,  5,  8, RACE_HALF_ELF},
                { "Wizzle the Chaotic",         10000,  190, 110,  6,  8, RACE_HOBBIT},
@@ -1844,14 +1844,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
 #endif
 
 #ifdef JP
-        { "¥«¥«¥ë¥é¥«¥«¥ë",           15000,  200, 116,  6,  9, RACE_KLACKON},
+       { "¥«¥«¥ë¥é¥«¥«¥ë",           15000,  200, 116,  6,  9, RACE_KLACKON},
 #else
-        { "Kakalrakakal",           15000,  200, 116,  6,  9, RACE_KLACKON},
+       { "Kakalrakakal",           15000,  200, 116,  6,  9, RACE_KLACKON},
 #endif
 #ifdef JP
-        { "Ï£¶â½Ñ»Õ¥¸¥ã¥ë=¥¨¥¹",       15000,  220, 111,  4,  9, RACE_ELF},
+       { "Ï£¶â½Ñ»Õ¥¸¥ã¥ë=¥¨¥¹",       15000,  220, 111,  4,  9, RACE_ELF},
 #else
-        { "Jal-Eth the Alchemist",       15000,  220, 111,  4,  9, RACE_ELF},
+       { "Jal-Eth the Alchemist",       15000,  220, 111,  4,  9, RACE_ELF},
 #endif
 #ifdef JP
 { "ÍÑ¿´¿¼¤¤¥Õ¥¡¥Í¥é¥¹",         10000,  190, 111,  5,  8, RACE_DWARF},
@@ -1864,14 +1864,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Runcie the Insane",         10000,  190, 110,  6,  8, RACE_HUMAN},
 #endif
 #ifdef JP
-        { "¥°¥é¥ó¥Ö¥ë¥ï¡¼¥¹",           15000,  200, 116,  6,  9, RACE_GNOME},
+       { "¥°¥é¥ó¥Ö¥ë¥ï¡¼¥¹",           15000,  200, 116,  6,  9, RACE_GNOME},
 #else
-        { "Grumbleworth",           15000,  200, 116,  6,  9, RACE_GNOME},
+       { "Grumbleworth",           15000,  200, 116,  6,  9, RACE_GNOME},
 #endif
 #ifdef JP
-        { "¥Õ¥ê¥Ã¥¿¡¼",       15000,  220, 111,  4,  9, RACE_SPRITE},
+       { "¥Õ¥ê¥Ã¥¿¡¼",       15000,  220, 111,  4,  9, RACE_SPRITE},
 #else
-        { "Flitter",       15000,  220, 111,  4,  9, RACE_SPRITE},
+       { "Flitter",       15000,  220, 111,  4,  9, RACE_SPRITE},
 #endif
 #ifdef JP
 { "¥¶¥ê¥ë¥¹",         10000,  190, 111,  5,  8, RACE_HUMAN},
@@ -1884,14 +1884,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Egbert the Old",         10000,  190, 110,  6,  8, RACE_DWARF},
 #endif
 #ifdef JP
-        { "¸Ø¤ê¹â¤­¥ô¥¡¥ê¥ó¥É¥é",           15000,  200, 116,  6,  9, RACE_HIGH_ELF},
+       { "¸Ø¤ê¹â¤­¥ô¥¡¥ê¥ó¥É¥é",           15000,  200, 116,  6,  9, RACE_HIGH_ELF},
 #else
-        { "Valindra the Proud",           15000,  200, 116,  6,  9, RACE_HIGH_ELF},
+       { "Valindra the Proud",           15000,  200, 116,  6,  9, RACE_HIGH_ELF},
 #endif
 #ifdef JP
-        { "Ï£¶â½Ñ»Õ¥¿¥¨¥ó",       15000,  220, 111,  4,  9, RACE_HUMAN},
+       { "Ï£¶â½Ñ»Õ¥¿¥¨¥ó",       15000,  220, 111,  4,  9, RACE_HUMAN},
 #else
-        { "Taen the Alchemist",       15000,  220, 111,  4,  9, RACE_HUMAN},
+       { "Taen the Alchemist",       15000,  220, 111,  4,  9, RACE_HUMAN},
 #endif
 #ifdef JP
 { "¹ª¸À¥«¥¤¥É",         10000,  190, 111,  5,  8, RACE_VAMPIRE},
@@ -1904,14 +1904,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Fulir the Dark",         10000,  190, 110,  6,  8, RACE_NIBELUNG},
 #endif
 #ifdef JP
-        { "¼ÁÁǤʥɥà¥ê",           15000,  200, 116,  6,  9, RACE_DWARF},
+       { "¼ÁÁǤʥɥà¥ê",           15000,  200, 116,  6,  9, RACE_DWARF},
 #else
-        { "Domli the Humble",           15000,  200, 116,  6,  9, RACE_DWARF},
+       { "Domli the Humble",           15000,  200, 116,  6,  9, RACE_DWARF},
 #endif
 #ifdef JP
-        { "Ëâ¤Î»Ò¥ä¥¡¥¸¥å¥Ã¥«",       15000,  220, 111,  4,  9, RACE_IMP},
+       { "Ëâ¤Î»Ò¥ä¥¡¥¸¥å¥Ã¥«",       15000,  220, 111,  4,  9, RACE_IMP},
 #else
-        { "Yaarjukka Demonspawn",       15000,  220, 111,  4,  9, RACE_IMP},
+       { "Yaarjukka Demonspawn",       15000,  220, 111,  4,  9, RACE_IMP},
 #endif
 #ifdef JP
 { "ÌôÁð»Õ¥¸¥§¥é¥é¥ë¥É¡¼¥ë",         10000,  190, 111,  5,  8, RACE_HIGH_ELF},
@@ -1924,14 +1924,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Olelaldan the Wise",         10000,  190, 110,  6,  8, RACE_BARBARIAN},
 #endif
 #ifdef JP
-        { "¥Ç¥â¥Ë¥·¥¹¥È¤Î¥Õ¥¾¥°¥í",           15000,  200, 116,  6,  9, RACE_IMP},
+       { "¥Ç¥â¥Ë¥·¥¹¥È¤Î¥Õ¥¾¥°¥í",           15000,  200, 116,  6,  9, RACE_IMP},
 #else
-        { "Fthoglo the Demonicist",           15000,  200, 116,  6,  9, RACE_IMP},
+       { "Fthoglo the Demonicist",           15000,  200, 116,  6,  9, RACE_IMP},
 #endif
 #ifdef JP
-        { "Ï£¶â½Ñ»Õ¥É¥¥¥ê¥¢¥·¥å",       15000,  220, 111,  4,  9, RACE_HALF_ORC},
+       { "Ï£¶â½Ñ»Õ¥É¥¥¥ê¥¢¥·¥å",       15000,  220, 111,  4,  9, RACE_HALF_ORC},
 #else
-        { "Dridash the Alchemist",       15000,  220, 111,  4,  9, RACE_HALF_ORC},
+       { "Dridash the Alchemist",       15000,  220, 111,  4,  9, RACE_HALF_ORC},
 #endif
 #ifdef JP
 { "¶¯¼Ô¥Í¥ê¥¢",         10000,  190, 111,  5,  8, RACE_CYCLOPS},
@@ -1944,14 +1944,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Lignus the Pungent",         10000,  190, 110,  6,  8, RACE_HALF_ORC},
 #endif
 #ifdef JP
-        { "¥Æ¥£¥ë¥Ð",           15000,  200, 116,  6,  9, RACE_HOBBIT},
+       { "¥Æ¥£¥ë¥Ð",           15000,  200, 116,  6,  9, RACE_HOBBIT},
 #else
-        { "Tilba",           15000,  200, 116,  6,  9, RACE_HOBBIT},
+       { "Tilba",           15000,  200, 116,  6,  9, RACE_HOBBIT},
 #endif
 #ifdef JP
-        { "¶â»ý¤Á¥ß¥ê¥ë¥É¥ê¥Ã¥¯",       15000,  220, 111,  4,  9, RACE_HUMAN},
+       { "¶â»ý¤Á¥ß¥ê¥ë¥É¥ê¥Ã¥¯",       15000,  220, 111,  4,  9, RACE_HUMAN},
 #else
-        { "Myrildric the Wealthy",       15000,  220, 111,  4,  9, RACE_HUMAN},
+       { "Myrildric the Wealthy",       15000,  220, 111,  4,  9, RACE_HUMAN},
 #endif
 #ifdef JP
 { "²Ê³Ø¼Ô¥Þ¥¦¥¶¡¼",         10000,  190, 111,  5,  8, RACE_HALF_ELF},
@@ -1974,23 +1974,23 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Ja-Far the Alchemist",       15000,  220, 111,  4,  9, RACE_ELF},
 #endif
 #ifdef JP
-        { "¥«¥«¥ë¥é¥«¥«¥ë",           15000,  200, 116,  6,  9, RACE_KLACKON},
+       { "¥«¥«¥ë¥é¥«¥«¥ë",           15000,  200, 116,  6,  9, RACE_KLACKON},
 #else
-        { "Kakalrakakal",           15000,  200, 116,  6,  9, RACE_KLACKON},
+       { "Kakalrakakal",           15000,  200, 116,  6,  9, RACE_KLACKON},
 #endif
 #ifdef JP
-        { "Ï£¶â½Ñ»Õ¥¸¥ã¥ë=¥¨¥¹",       15000,  220, 111,  4,  9, RACE_ELF},
+       { "Ï£¶â½Ñ»Õ¥¸¥ã¥ë=¥¨¥¹",       15000,  220, 111,  4,  9, RACE_ELF},
 #else
-        { "Jal-Eth the Alchemist",       15000,  220, 111,  4,  9, RACE_ELF},
+       { "Jal-Eth the Alchemist",       15000,  220, 111,  4,  9, RACE_ELF},
 #endif
        },
        {
                /* Magic Shop - 23 unique names */
 #ifdef JP
-                { "¥½¡¼¥µ¥é¡¼¤Î¥í=¥Ñ¥ó",       20000,  200,  110,   7,   8,  RACE_HALF_ELF},
-                { "°ÎÂç¤Ê¤ë¥Ö¥¬¡¼¥Ó¥¤",         20000,  215,  113,   6,  10,  RACE_GNOME},
-                { "¥¤¥§¥ó¥À¡¼¤ÎËâË¡»È¤¤",     30000,  200,  110,   7,  10,  RACE_HUMAN},
-                { "»àÎî»È¤¤¥ê¥ã¥¯",30000,      175,  110,   5,  11,  RACE_HIGH_ELF},
+               { "¥½¡¼¥µ¥é¡¼¤Î¥í=¥Ñ¥ó",       20000,  200,  110,   7,   8,  RACE_HALF_ELF},
+               { "°ÎÂç¤Ê¤ë¥Ö¥¬¡¼¥Ó¥¤",         20000,  215,  113,   6,  10,  RACE_GNOME},
+               { "¥¤¥§¥ó¥À¡¼¤ÎËâË¡»È¤¤",     30000,  200,  110,   7,  10,  RACE_HUMAN},
+               { "»àÎî»È¤¤¥ê¥ã¥¯",30000,      175,  110,   5,  11,  RACE_HIGH_ELF},
 #else
                { "Lo Pan the Sorcerer",        20000,  200, 110,  7,  8, RACE_HALF_ELF},
                { "Buggerby the Great",         20000,  215, 113,  6, 10, RACE_GNOME},
@@ -1999,24 +1999,24 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
 #endif
 
 #ifdef JP
-        { "Ëâ½Ñ»Õ¥¹¥­¥É¥¥¥Ë¡¼",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
+       { "Ëâ½Ñ»Õ¥¹¥­¥É¥¥¥Ë¡¼",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
 #else
-        { "Skidney the Sorcerer",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
+       { "Skidney the Sorcerer",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
 #endif
 #ifdef JP
-        { "¸¸½Ñ»Õ¥­¥ê¥¢",       30000,  200, 110,  7, 10, RACE_HUMAN},
+       { "¸¸½Ñ»Õ¥­¥ê¥¢",       30000,  200, 110,  7, 10, RACE_HUMAN},
 #else
-        { "Kyria the Illusionist",       30000,  200, 110,  7, 10, RACE_HUMAN},
+       { "Kyria the Illusionist",       30000,  200, 110,  7, 10, RACE_HUMAN},
 #endif
 #ifdef JP
-        { "»àÎî½Ñ»Õ¥Ë¥Ã¥­",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "»àÎî½Ñ»Õ¥Ë¥Ã¥­",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #else
-        { "Nikki the Necromancer",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "Nikki the Necromancer",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #endif
 #ifdef JP
-        { "¥½¥í¥¹¥È¥é¥ó",        15000,  200, 110,  7,  8, RACE_SPRITE},
+       { "¥½¥í¥¹¥È¥é¥ó",        15000,  200, 110,  7,  8, RACE_SPRITE},
 #else
-        { "Solostoran",        15000,  200, 110,  7,  8, RACE_SPRITE},
+       { "Solostoran",        15000,  200, 110,  7,  8, RACE_SPRITE},
 #endif
 #ifdef JP
 { "±¨Â±¸ý¥¢¥Á¥·¥§",         20000,  215, 113,  6, 10, RACE_MIND_FLAYER},
@@ -2024,19 +2024,19 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Achshe the Tentacled",         20000,  215, 113,  6, 10, RACE_MIND_FLAYER},
 #endif
 #ifdef JP
-        { "µ®Â²¤Î¥«¥¶",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
+       { "µ®Â²¤Î¥«¥¶",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
 #else
-        { "Kaza the Noble",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
+       { "Kaza the Noble",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
 #endif
 #ifdef JP
-        { "°Å¤­¥Õ¥¡¥¸¥ë",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "°Å¤­¥Õ¥¡¥¸¥ë",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #else
-        { "Fazzil the Dark",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "Fazzil the Dark",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #endif
 #ifdef JP
-        { "°ÎÂç¤Ê¤ë¥±¥ë¥É¡¼¥ó",        15000,  200, 110,  7,  8, RACE_DWARF},
+       { "°ÎÂç¤Ê¤ë¥±¥ë¥É¡¼¥ó",        15000,  200, 110,  7,  8, RACE_DWARF},
 #else
-        { "Keldorn the Grand",        15000,  200, 110,  7,  8, RACE_DWARF},
+       { "Keldorn the Grand",        15000,  200, 110,  7,  8, RACE_DWARF},
 #endif
 #ifdef JP
 { "¥Õ¥£¥é¥ó¥¹¥í¥×¥¹",         20000,  215, 113,  6, 10, RACE_HOBBIT},
@@ -2044,19 +2044,19 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Philanthropus",         20000,  215, 113,  6, 10, RACE_HOBBIT},
 #endif
 #ifdef JP
-        { "Ëâ½÷¤Î¥¢¥°¥Ê¡¼",       30000,  200, 110,  7, 10, RACE_HUMAN},
+       { "Ëâ½÷¤Î¥¢¥°¥Ê¡¼",       30000,  200, 110,  7, 10, RACE_HUMAN},
 #else
-        { "Agnar the Enchantress",       30000,  200, 110,  7, 10, RACE_HUMAN},
+       { "Agnar the Enchantress",       30000,  200, 110,  7, 10, RACE_HUMAN},
 #endif
 #ifdef JP
-        { "»àÎî½Ñ»Õ¥Ó¥å¥ê¥¢¥ó¥¹",       30000,  175, 110,  5, 11, RACE_BEASTMAN},
+       { "»àÎî½Ñ»Õ¥Ó¥å¥ê¥¢¥ó¥¹",       30000,  175, 110,  5, 11, RACE_BEASTMAN},
 #else
-        { "Buliance the Necromancer",       30000,  175, 110,  5, 11, RACE_BEASTMAN},
+       { "Buliance the Necromancer",       30000,  175, 110,  5, 11, RACE_BEASTMAN},
 #endif
 #ifdef JP
-        { "¥Ï¥¤¥á¥¤¥¸¤Î¥ô¥¤¥é¥¯",        15000,  200, 110,  7,  8, RACE_BEASTMAN},
+       { "¥Ï¥¤¥á¥¤¥¸¤Î¥ô¥¤¥é¥¯",        15000,  200, 110,  7,  8, RACE_BEASTMAN},
 #else
-        { "Vuirak the High-Mage",        15000,  200, 110,  7,  8, RACE_BEASTMAN},
+       { "Vuirak the High-Mage",        15000,  200, 110,  7,  8, RACE_BEASTMAN},
 #endif
 #ifdef JP
 { "Ãηüԥޥǥ£¥Ã¥·¥å",         20000,  215, 113,  6, 10, RACE_BEASTMAN},
@@ -2064,19 +2064,19 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Madish the Smart",         20000,  215, 113,  6, 10, RACE_BEASTMAN},
 #endif
 #ifdef JP
-        { "¥Õ¥¡¥ì¥Ö¥ê¥ó¥Ü¡¼¥ë",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
+       { "¥Õ¥¡¥ì¥Ö¥ê¥ó¥Ü¡¼¥ë",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
 #else
-        { "Falebrimbor",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
+       { "Falebrimbor",       30000,  200, 110,  7, 10, RACE_HIGH_ELF},
 #endif
 #ifdef JP
-        { "±¢¸±¥Õ¥§¥ê¥ë=¥¬¥ó¥É",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "±¢¸±¥Õ¥§¥ê¥ë=¥¬¥ó¥É",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #else
-        { "Felil-Gand the Subtle",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "Felil-Gand the Subtle",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #endif
 #ifdef JP
-        { "¼ö½Ñ»Õ¥µ¥ì¥´¡¼¥É",        15000,  200, 110,  7,  8, RACE_BARBARIAN},
+       { "¼ö½Ñ»Õ¥µ¥ì¥´¡¼¥É",        15000,  200, 110,  7,  8, RACE_BARBARIAN},
 #else
-        { "Thalegord the Shaman",        15000,  200, 110,  7,  8, RACE_BARBARIAN},
+       { "Thalegord the Shaman",        15000,  200, 110,  7,  8, RACE_BARBARIAN},
 #endif
 #ifdef JP
 { "¿ÀÈë²È¥¯¥È¥¥¥¢¥í¥¹",         20000,  215, 113,  6, 10, RACE_MIND_FLAYER},
@@ -2084,14 +2084,14 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Cthoaloth the Mystic",         20000,  215, 113,  6, 10, RACE_MIND_FLAYER},
 #endif
 #ifdef JP
-        { "¸¸½Ñ»Õ¥¤¥Ù¥ê",       30000,  200, 110,  7, 10, RACE_SKELETON},
+       { "¸¸½Ñ»Õ¥¤¥Ù¥ê",       30000,  200, 110,  7, 10, RACE_SKELETON},
 #else
-        { "Ibeli the Illusionist",       30000,  200, 110,  7, 10, RACE_SKELETON},
+       { "Ibeli the Illusionist",       30000,  200, 110,  7, 10, RACE_SKELETON},
 #endif
 #ifdef JP
-        { "»àÎî½Ñ»Õ¥Ø¥È¡¼",       30000,  175, 110,  5, 11, RACE_YEEK},
+       { "»àÎî½Ñ»Õ¥Ø¥È¡¼",       30000,  175, 110,  5, 11, RACE_YEEK},
 #else
-        { "Heto the Necromancer",       30000,  175, 110,  5, 11, RACE_YEEK},
+       { "Heto the Necromancer",       30000,  175, 110,  5, 11, RACE_YEEK},
 #endif
 #ifdef JP
 { "Ëâ½Ñ»Õ¥í=¥Ñ¥ó",        20000,  200, 110,  7,  8, RACE_HALF_ELF},
@@ -2114,24 +2114,24 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
                { "Rjak the Necromancer",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #endif
 #ifdef JP
-        { "Ëâ½Ñ»Õ¥¹¥­¥É¥¥¥Ë¡¼",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
+       { "Ëâ½Ñ»Õ¥¹¥­¥É¥¥¥Ë¡¼",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
 #else
-        { "Skidney the Sorcerer",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
+       { "Skidney the Sorcerer",        15000,  200, 110,  7,  8, RACE_HALF_ELF},
 #endif
 #ifdef JP
-        { "¸¸½Ñ»Õ¥­¥ê¥¢",       30000,  200, 110,  7, 10, RACE_HUMAN},
+       { "¸¸½Ñ»Õ¥­¥ê¥¢",       30000,  200, 110,  7, 10, RACE_HUMAN},
 #else
-        { "Kyria the Illusionist",       30000,  200, 110,  7, 10, RACE_HUMAN},
+       { "Kyria the Illusionist",       30000,  200, 110,  7, 10, RACE_HUMAN},
 #endif
 #ifdef JP
-        { "»àÎî½Ñ»Õ¥Ë¥Ã¥­",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "»àÎî½Ñ»Õ¥Ë¥Ã¥­",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #else
-        { "Nikki the Necromancer",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
+       { "Nikki the Necromancer",       30000,  175, 110,  5, 11, RACE_DARK_ELF},
 #endif
 #ifdef JP
-        { "¥½¥í¥¹¥È¥é¥ó",        15000,  200, 110,  7,  8, RACE_SPRITE},
+       { "¥½¥í¥¹¥È¥é¥ó",        15000,  200, 110,  7,  8, RACE_SPRITE},
 #else
-        { "Solostoran",        15000,  200, 110,  7,  8, RACE_SPRITE},
+       { "Solostoran",        15000,  200, 110,  7,  8, RACE_SPRITE},
 #endif
 #ifdef JP
 { "±¨Â±¸ý¥¢¥Á¥·¥§",         20000,  215, 113,  6, 10, RACE_MIND_FLAYER},
@@ -2142,10 +2142,10 @@ owner_type owners[MAX_STORES][MAX_OWNERS] =
        {
                /* Black Market - 32 unique names */
 #ifdef JP
-                { "¥¬¥ê¡¼=¥®¥¬¥º",            20000,  250,  150,  10,   5,  RACE_HALF_TROLL},
-                { "¥´¥Ö¥ê¥ó¤Î¥Ò¥¹¥È¡¼¥¢",       20000,  250,  150,  10,   5,  RACE_HALF_ORC},
-                { "¥Õ¥§¥ì¥ó¥®¿Í¥¯¥¢¡¼¥¯",           30000,  250,  150,  10,   5,  RACE_HUMAN},
-                { "¸øÀµ¤Ê¤ë(?)¥È¥Ã¥Ô",                     30000,  250,  150,  10,   5,  RACE_ELF},
+               { "¥¬¥ê¡¼=¥®¥¬¥º",            20000,  250,  150,  10,   5,  RACE_HALF_TROLL},
+               { "¥´¥Ö¥ê¥ó¤Î¥Ò¥¹¥È¡¼¥¢",       20000,  250,  150,  10,   5,  RACE_HALF_ORC},
+               { "¥Õ¥§¥ì¥ó¥®¿Í¥¯¥¢¡¼¥¯",           30000,  250,  150,  10,   5,  RACE_HUMAN},
+               { "¸øÀµ¤Ê¤ë(?)¥È¥Ã¥Ô",                     30000,  250,  150,  10,   5,  RACE_ELF},
 #else
                { "Gary Gygaz",                 20000,  250, 150, 10,  5, RACE_HALF_TROLL},
                { "Histor the Goblin",          20000,  250, 150, 10,  5, RACE_HALF_ORC},
@@ -2772,16 +2772,16 @@ player_sex sex_info[MAX_SEXES] =
 {
        {
 #ifdef JP
-                "½÷À­",
-                "¥¯¥¤¡¼¥ó",
+               "½÷À­",
+               "¥¯¥¤¡¼¥ó",
 #endif
                "Female",
                "Queen"
        },
        {
 #ifdef JP
-                "ÃËÀ­",
-                "¥­¥ó¥°",
+               "ÃËÀ­",
+               "¥­¥ó¥°",
 #endif
                "Male",
                "King"
@@ -2817,11 +2817,11 @@ player_race race_info[MAX_RACES] =
                72,  6, 180, 25,
                66,  4, 150, 20,
                0,
-                0x7FFFFFF,
+               0x7FFFFFF,
        },
        {
 #ifdef JP
-               "¥Ï¡¼¥Õ¥¨¥ë¥Õ",
+               "¥Ï¡¼¥Õ¥¨¥ë¥Õ",
 #endif
                "Half-Elf",
 
@@ -2832,11 +2832,11 @@ player_race race_info[MAX_RACES] =
                66,  6, 130, 15,
                62,  6, 100, 10,
                2,
-                0x677E7FF,
+               0x677E7FF,
        },
        {
 #ifdef JP
-               "¥¨¥ë¥Õ",
+               "¥¨¥ë¥Õ",
 #endif
                "Elf",
 
@@ -2847,7 +2847,7 @@ player_race race_info[MAX_RACES] =
                60,  4, 100,  6,
                54,  4, 80,  6,
                3,
-                0x677E75B,
+               0x677E75B,
 
        },
        {
@@ -2863,7 +2863,7 @@ player_race race_info[MAX_RACES] =
                36,  3, 60,  3,
                33,  3, 50,  3,
                4,
-                0x76FFC0B,
+               0x76FFC0B,
        },
        {
 #ifdef JP
@@ -2878,7 +2878,7 @@ player_race race_info[MAX_RACES] =
                42,  3, 90,  6,
                39,  3, 75,  3,
                4,
-                0x767D60F,
+               0x767D60F,
        },
        {
 #ifdef JP
@@ -2893,7 +2893,7 @@ player_race race_info[MAX_RACES] =
                48,  3, 150, 10,
                46,  3, 120, 10,
                5,
-                0x1890005,
+               0x1890005,
        },
        {
 #ifdef JP
@@ -2908,7 +2908,7 @@ player_race race_info[MAX_RACES] =
                66,  1, 150,  5,
                62,  1, 120,  5,
                3,
-                0x5D8818D,
+               0x5D8818D,
        },
        {
 #ifdef JP
@@ -2923,11 +2923,11 @@ player_race race_info[MAX_RACES] =
                96, 10, 250, 50,
                84,  8, 225, 40,
                3,
-                0x0880005,
+               0x0880005,
        },
        {
 #ifdef JP
-                "¥¢¥ó¥Ð¥é¥¤¥È",
+               "¥¢¥ó¥Ð¥é¥¤¥È",
 #endif
                "Amberite",
 
@@ -2938,11 +2938,11 @@ player_race race_info[MAX_RACES] =
                82, 5, 190, 20,
                78,  6, 180, 15,
                0,
-                0x7FFF7FF,
+               0x7FFF7FF,
        },
        {
 #ifdef JP
-                "¥Ï¥¤¥¨¥ë¥Õ",
+               "¥Ï¥¤¥¨¥ë¥Õ",
 #endif
                "High-Elf",
 
@@ -3267,11 +3267,11 @@ player_race race_info[MAX_RACES] =
                111, 11, 255, 50,
                99, 11, 250, 45,
                  0,
-                0x0010005,
+               0x0010005,
        },
        {
 #ifdef JP
-                "¥¢¥ë¥³¥ó",
+               "¥¢¥ë¥³¥ó",
 #endif
                "Archon",
 
@@ -3282,11 +3282,11 @@ player_race race_info[MAX_RACES] =
                82, 5, 190, 20,
                78,  6, 180, 15,
                3,
-                0x779F777,
+               0x779F777,
        },
        {
 #ifdef JP
-                "¥Ð¥ë¥í¥°",
+               "¥Ð¥ë¥í¥°",
                "Balrog",
 #else
                "Balrog",
@@ -3299,11 +3299,11 @@ player_race race_info[MAX_RACES] =
                100,10, 255, 65,
                80, 10, 240, 64,
                5,
-                0x7EDC4DB,
+               0x7EDC4DB,
        },
        {
 #ifdef JP
-                "¥É¥¥¥Ê¥À¥ó",
+               "¥É¥¥¥Ê¥À¥ó",
 #endif
                "Dunadan",
 
@@ -3314,7 +3314,7 @@ player_race race_info[MAX_RACES] =
                82, 5, 190, 20,
                78,  6, 180, 15,
                0,
-                0x7FFF7FF,
+               0x7FFF7FF,
        },
        {
 #ifdef JP
@@ -3343,7 +3343,7 @@ player_race race_info[MAX_RACES] =
                48,  6, 150, 25,
                44,  4, 130, 20,
                0,
-                0x418B7AD,
+               0x418B7AD,
        },
        {
 #ifdef JP
@@ -3579,11 +3579,11 @@ player_class class_info[MAX_CLASS] =
 #ifdef JP
                "¶ãÍ·»í¿Í",
 #endif
-                "Bard",              /* Note : spell stat is Charisma */
-                {-2, 1, 2, -1, -2, 4},
-                20, 33, 34, -5, 16, 20, 34, 20,
-                8,  13, 11, 0,  0,  0,  10, 8,
-                2, 40, 25
+               "Bard",              /* Note : spell stat is Charisma */
+               {-2, 1, 2, -1, -2, 4},
+               20, 33, 34, -5, 16, 20, 34, 20,
+               8,  13, 11, 0,  0,  0,  10, 8,
+               2, 40, 25
        },
 
        {
@@ -3832,7 +3832,7 @@ player_race mimic_info[] =
                0,  0, 0, 0,
                0,  0, 0, 0,
                0,
-                0x000000,
+               0x000000,
        },
        {
 #ifdef JP
@@ -3847,7 +3847,7 @@ player_race mimic_info[] =
                0,  0, 0, 0,
                0,  0, 0, 0,
                5,
-                0x000003,
+               0x000003,
        },
        {
 #ifdef JP
@@ -3862,7 +3862,7 @@ player_race mimic_info[] =
                0,  0, 0, 0,
                0,  0, 0, 0,
                20,
-                0x000003,
+               0x000003,
        },
        {
 #ifdef JP
@@ -3877,7 +3877,7 @@ player_race mimic_info[] =
                0,  0, 0, 0,
                0,  0, 0, 0,
                5,
-                0x000005,
+               0x000005,
        },
 };
 
@@ -5227,88 +5227,88 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
 {
        /* Warrior */
        {
-                "¿·»²Ê¼",
-                "ʼ»Î",
-                "ÍÃʼ",
-                "¸Å»²Ê¼",
-                "·õ»Î",
-                "Æ®»Î",
-                "±Ñͺ",
-                "Ã˼ß",
-                "Çì¼ß",
-                "Îμç",
+               "¿·»²Ê¼",
+               "ʼ»Î",
+               "ÍÃʼ",
+               "¸Å»²Ê¼",
+               "·õ»Î",
+               "Æ®»Î",
+               "±Ñͺ",
+               "Ã˼ß",
+               "Çì¼ß",
+               "Îμç",
        },
 
        /* Mage */
        {
                                /*"¸«½¬¤¤",*/
-                "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
-                "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
-                "¸¸½Ñ»Õ",
-                "¼ö½Ñ»Õ",
-                "¾¤Îî»Õ",
-                "¾¤Ëâ»Õ",
-                "Ëâ½Ñ»Õ",
-                "ËâÆ»»Õ",
-                "¥¤¥×¥·¥·¥Þ¥¹",
-                "ÂçËâÆ»»Õ",
+               "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
+               "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
+               "¸¸½Ñ»Õ",
+               "¼ö½Ñ»Õ",
+               "¾¤Îî»Õ",
+               "¾¤Ëâ»Õ",
+               "Ëâ½Ñ»Õ",
+               "ËâÆ»»Õ",
+               "¥¤¥×¥·¥·¥Þ¥¹",
+               "ÂçËâÆ»»Õ",
        },
 
        /* Priest */
        {
-                "¿®¼Ô",                 /*¿®ÅÌ */
-                "»øÁÎ",             /*¶µ²ñÊô»Å¼Ô¡¢¸«½¬¤¤ÁΡ¢È¼ÁΡ¢½¾¼Ô */
-                "½ÏÎýÁÎ",
-                "À»¿¦¼Ô",                 /*À»¿¦¼Ô */
-                "ÅÁÆ»»Õ",               /*»Êº×ɾµÄ°÷¡¢½¤Æ»²ñ²ñ°÷ */
-                "ËÒ»Õ",               /*¥é¥Þ¶µ¤ÎÁΠ*/
-                "À»¿Í",               /*Âç»Ê¶µ¡¢Áí¼ç¶µ¡¢ÁíÂç»Ê¶µ */
-                "º×»Ê",                 /*º×»Ê¡¢»Êº× */
-                "º×»ÊĹ",               /*Âçº×»Ê¡¢º×»ÊĹ */
-                "¶µ¹Ä",
+               "¿®¼Ô",                 /*¿®ÅÌ */
+               "»øÁÎ",             /*¶µ²ñÊô»Å¼Ô¡¢¸«½¬¤¤ÁΡ¢È¼ÁΡ¢½¾¼Ô */
+               "½ÏÎýÁÎ",
+               "À»¿¦¼Ô",                 /*À»¿¦¼Ô */
+               "ÅÁÆ»»Õ",               /*»Êº×ɾµÄ°÷¡¢½¤Æ»²ñ²ñ°÷ */
+               "ËÒ»Õ",               /*¥é¥Þ¶µ¤ÎÁΠ*/
+               "À»¿Í",               /*Âç»Ê¶µ¡¢Áí¼ç¶µ¡¢ÁíÂç»Ê¶µ */
+               "º×»Ê",                 /*º×»Ê¡¢»Êº× */
+               "º×»ÊĹ",               /*Âçº×»Ê¡¢º×»ÊĹ */
+               "¶µ¹Ä",
        },
 
        /* Rogues */
        {
                /* "¤´¤í¤Ä¤­",*/                     /*¤´¤í¤Ä¤­¡¢É÷ÍèË·¡¢Éâϲ¼Ô */
-                "¤¹¤ê",
-                "Äɤ¤¤Ï¤®",                     /*Äɤ¤Çí¤®¡¢¶¯Åð¡¢Å¥ËÀ */
-                "ÌëÅð",                         /*¶¯Åð¡¢ÌëÅð¡¢Å¥ËÀ */
-                "¤³¤½Å¥",                       /*¤³¤½Å¥¡¢¾®Å¥ËÀ */
-                "¥Ú¥Æ¥ó»Õ",                     /*ÇîÅÌ¡¢¥Ú¥Æ¥ó»Õ¡¢º¾µ½»Õ */
-                "¥í¥¦¥·¡¼¥Õ",
-                "¥Ï¥¤¥·¡¼¥Õ",
-                "¥Þ¥¹¥¿¡¼¥·¡¼¥Õ",
-                "¥¢¥µ¥·¥ó",                                            /* °Å»¦¼Ô */
-                "¥®¥ë¥É¥Þ¥¹¥¿¡¼",
+               "¤¹¤ê",
+               "Äɤ¤¤Ï¤®",                     /*Äɤ¤Çí¤®¡¢¶¯Åð¡¢Å¥ËÀ */
+               "ÌëÅð",                         /*¶¯Åð¡¢ÌëÅð¡¢Å¥ËÀ */
+               "¤³¤½Å¥",                       /*¤³¤½Å¥¡¢¾®Å¥ËÀ */
+               "¥Ú¥Æ¥ó»Õ",                     /*ÇîÅÌ¡¢¥Ú¥Æ¥ó»Õ¡¢º¾µ½»Õ */
+               "¥í¥¦¥·¡¼¥Õ",
+               "¥Ï¥¤¥·¡¼¥Õ",
+               "¥Þ¥¹¥¿¡¼¥·¡¼¥Õ",
+               "¥¢¥µ¥·¥ó",                                             /* °Å»¦¼Ô */
+               "¥®¥ë¥É¥Þ¥¹¥¿¡¼",
        },
 
        /* Rangers */
        {
-                "»È¤¤Áö¤ê",
-                "ÃÚÉ×",
-                "À͸õ",                         /*À͸õ¡¢¸«Ä¥¤ê¡¢Ä廡ʼ */
-                "¼í¿Í",
-                "ÄÉÀ×¼Ô",
-                "ÀèƳ¼Ô",
-                "õ¸±¼Ô",                       /*³«Âó¼Ô¡¢Ãµ¸±¼Ô */
-                "ÌîÉú",
-                "ÌîÉúƬ",
-                "ÌîÉú¤ÎÁíÎÎ",
+               "»È¤¤Áö¤ê",
+               "ÃÚÉ×",
+               "À͸õ",                         /*À͸õ¡¢¸«Ä¥¤ê¡¢Ä廡ʼ */
+               "¼í¿Í",
+               "ÄÉÀ×¼Ô",
+               "ÀèƳ¼Ô",
+               "õ¸±¼Ô",                       /*³«Âó¼Ô¡¢Ãµ¸±¼Ô */
+               "ÌîÉú",
+               "ÌîÉúƬ",
+               "ÌîÉú¤ÎÁíÎÎ",
        },
 
        /* Paladins */
        {
-                "ͦ»Î",                 /*¿§ÃË¡¢°¦¿Í¡¢¤·¤ã¤ì¼Ô¡¢Í¦´º¤Ê¿Í */
-                "±Ò»Î",
-                "Êݸî¼Ô",
-                "ËɱҼÔ",
-                "¸î±Ò¼Ô",
-                "µ³»Î",
-                "½Åµ³»Î",
-                "À»µ³»Î",
-                "¾åµéÀ»µ³»Î",
-                "À»µ³»ÎĹ",
+               "ͦ»Î",                 /*¿§ÃË¡¢°¦¿Í¡¢¤·¤ã¤ì¼Ô¡¢Í¦´º¤Ê¿Í */
+               "±Ò»Î",
+               "Êݸî¼Ô",
+               "ËɱҼÔ",
+               "¸î±Ò¼Ô",
+               "µ³»Î",
+               "½Åµ³»Î",
+               "À»µ³»Î",
+               "¾åµéÀ»µ³»Î",
+               "À»µ³»ÎĹ",
        },
 
        /* Warrior-Mage */
@@ -5328,16 +5328,16 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
 
        /* Chaos Warrior */
        {
-                "¿·»²Ê¼",
-                "ʼ»Î",
-                "ÍÃʼ",
-                "¸Å»²Ê¼",
-                "·õ»Î",
-                "Æ®»Î",
-                "º®Æ٤αÑͺ",
-                "º®ÆÙ¤ÎÃ˼ß",
-                "º®Æ٤θø¼ß",
-                "º®Æ٤β¦¼Ô",
+               "¿·»²Ê¼",
+               "ʼ»Î",
+               "ÍÃʼ",
+               "¸Å»²Ê¼",
+               "·õ»Î",
+               "Æ®»Î",
+               "º®Æ٤αÑͺ",
+               "º®ÆÙ¤ÎÃ˼ß",
+               "º®Æ٤θø¼ß",
+               "º®Æ٤β¦¼Ô",
        },
 
        /* Monk */
@@ -5371,16 +5371,16 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
        /* High Mage; same as Mage */
        {
                                /*"¸«½¬¤¤",*/
-                "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
-                "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
-                "¸¸½Ñ»Õ",
-                "¼ö½Ñ»Õ",
-                "¾¤Îî»Õ",
-                "¾¤Ëâ»Õ",
-                "Ëâ½Ñ»Õ",
-                "ËâÆ»»Õ",
-                "¥¤¥×¥·¥·¥Þ¥¹",
-                "ÂçËâÆ»»Õ",
+               "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
+               "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
+               "¸¸½Ñ»Õ",
+               "¼ö½Ñ»Õ",
+               "¾¤Îî»Õ",
+               "¾¤Ëâ»Õ",
+               "Ëâ½Ñ»Õ",
+               "ËâÆ»»Õ",
+               "¥¤¥×¥·¥·¥Þ¥¹",
+               "ÂçËâÆ»»Õ",
        },
 
        /* Tourist */
@@ -5428,58 +5428,58 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
        /* Sorcerer; same as Mage */
        {
                                /*"¸«½¬¤¤",*/
-                "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
-                "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
-                "¸¸½Ñ»Õ",
-                "¼ö½Ñ»Õ",
-                "¾¤Îî»Õ",
-                "¾¤Ëâ»Õ",
-                "Ëâ½Ñ»Õ",
-                "ËâÆ»»Õ",
-                "¥¤¥×¥·¥·¥Þ¥¹",
-                "ÂçËâÆ»»Õ",
+               "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
+               "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
+               "¸¸½Ñ»Õ",
+               "¼ö½Ñ»Õ",
+               "¾¤Îî»Õ",
+               "¾¤Ëâ»Õ",
+               "Ëâ½Ñ»Õ",
+               "ËâÆ»»Õ",
+               "¥¤¥×¥·¥·¥Þ¥¹",
+               "ÂçËâÆ»»Õ",
        },
 
        /* Archer */
        {
-                "¿·»²Ê¼",
-                "ʼ»Î",
-                "ÍÃʼ",
-                "¸Å»²Ê¼",
-                "·õ»Î",
-                "Æ®»Î",
-                "±Ñͺ",
-                "Ã˼ß",
-                "Çì¼ß",
-                "Îμç",
+               "¿·»²Ê¼",
+               "ʼ»Î",
+               "ÍÃʼ",
+               "¸Å»²Ê¼",
+               "·õ»Î",
+               "Æ®»Î",
+               "±Ñͺ",
+               "Ã˼ß",
+               "Çì¼ß",
+               "Îμç",
        },
 
        /* Magic eater */
        {
-                "̵ÃΤʤë¼Ô",
-                "ÆþÌç¼Ô",
-                "´ñ½Ñ»Õ",
-                "Èë½Ñ»Õ",
-                "Èë½Ñ»Õ",
-                "½ÏÎý¼Ô",
-                "ã¿Í",
-                "ã¿Í",
-                "ËâÆ»»Õ",
-                "Á´¤Æ¤òÃΤë¼Ô",
-       },
-
-        /* Harper */
-       {
-                "¸«½¬¤¤",      /*"Apprentice"*/
-                "ºî¶Ê²È",      /*"Songsmith"*/
-                "¶ãÍ·»í¿Í",    /*"Bard"*/
-                "¥³¥ó¥Ñ¥Ë¥ª¥ó",        /*"Companion"*/
-                "¿´¤ÎÌþ¤·¼ê",  /*"Minstrel"*/
-                "è¶×»Õ",      /*"Harper"*/
-                "ÅÁ¾µ¤Îˤ®¼ê",        /*"Loreweaver"*/
-                "»í¿À¤Î¿½¤·»Ò",        /*"Muse"*/
-                "̴ˤ®",      /*"Dreamweaver"*/
-                "¥Þ¥¹¥¿¡¼",    /*"Master Harper"*/
+               "̵ÃΤʤë¼Ô",
+               "ÆþÌç¼Ô",
+               "´ñ½Ñ»Õ",
+               "Èë½Ñ»Õ",
+               "Èë½Ñ»Õ",
+               "½ÏÎý¼Ô",
+               "ã¿Í",
+               "ã¿Í",
+               "ËâÆ»»Õ",
+               "Á´¤Æ¤òÃΤë¼Ô",
+       },
+
+       /* Harper */
+       {
+               "¸«½¬¤¤",       /*"Apprentice"*/
+               "ºî¶Ê²È",       /*"Songsmith"*/
+               "¶ãÍ·»í¿Í",     /*"Bard"*/
+               "¥³¥ó¥Ñ¥Ë¥ª¥ó", /*"Companion"*/
+               "¿´¤ÎÌþ¤·¼ê",   /*"Minstrel"*/
+               "è¶×»Õ",       /*"Harper"*/
+               "ÅÁ¾µ¤Îˤ®¼ê", /*"Loreweaver"*/
+               "»í¿À¤Î¿½¤·»Ò", /*"Muse"*/
+               "̴ˤ®",       /*"Dreamweaver"*/
+               "¥Þ¥¹¥¿¡¼",     /*"Master Harper"*/
        },
 
        /* Red Mage; same as Warrior-Mage */
@@ -5528,30 +5528,30 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
        /* Blue Mage; same as Mage */
        {
                                /*"¸«½¬¤¤",*/
-                "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
-                "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
-                "¸¸½Ñ»Õ",
-                "¼ö½Ñ»Õ",
-                "¾¤Îî»Õ",
-                "¾¤Ëâ»Õ",
-                "Ëâ½Ñ»Õ",
-                "ËâÆ»»Õ",
-                "¥¤¥×¥·¥·¥Þ¥¹",
-                "ÂçËâÆ»»Õ",
+               "Îý½¬À¸",                 /*ÃúÃÕ¡¢Îý½¬À¸ */
+               "´ñ½Ñ»Õ",               /*º¾µ½»Õ¡¢¥Ú¥Æ¥ó»Õ */
+               "¸¸½Ñ»Õ",
+               "¼ö½Ñ»Õ",
+               "¾¤Îî»Õ",
+               "¾¤Ëâ»Õ",
+               "Ëâ½Ñ»Õ",
+               "ËâÆ»»Õ",
+               "¥¤¥×¥·¥·¥Þ¥¹",
+               "ÂçËâÆ»»Õ",
        },
 
        /* Kihei */
        {
-                "¿·»²Ê¼",
-                "ʼ»Î",
-                "ÍÃʼ",
-                "¸Å»²Ê¼",
-                "·õ»Î",
-                "Æ®»Î",
-                "±Ñͺ",
-                "Ã˼ß",
-                "Çì¼ß",
-                "Îμç",
+               "¿·»²Ê¼",
+               "ʼ»Î",
+               "ÍÃʼ",
+               "¸Å»²Ê¼",
+               "·õ»Î",
+               "Æ®»Î",
+               "±Ñͺ",
+               "Ã˼ß",
+               "Çì¼ß",
+               "Îμç",
        },
 
        /* Berserker */
@@ -5839,30 +5839,30 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
 
        /* Magic eater */
        {
-                "Apprentice",
-                "Beginner",
-                "Jagguler",
-                "Skilled",
-                "Conjurer",
-                "Magician",
-                "Master",
-                "Master",
-                "Wizard",
-                "Almighty",
+               "Apprentice",
+               "Beginner",
+               "Jagguler",
+               "Skilled",
+               "Conjurer",
+               "Magician",
+               "Master",
+               "Master",
+               "Wizard",
+               "Almighty",
        },
 
-        /* Harper */
+       /* Harper */
        {
-                "Apprentice",  /*"Apprentice"*/
-                "Songsmith",   /*"Songsmith"*/
-                "Bard",        /*"Bard"*/
-                "Companion",   /*"Companion"*/
-                "Minstrel",    /*"Minstrel"*/
-                "Harper",      /*"Harper"*/
-                "Loreweaver",  /*"Loreweaver"*/
-                "Muse",        /*"Muse"*/
-                "Dreamweaver", /*"Dreamweaver"*/
-                "Master Harper",       /*"Master Harper"*/
+               "Apprentice",   /*"Apprentice"*/
+               "Songsmith",    /*"Songsmith"*/
+               "Bard", /*"Bard"*/
+               "Companion",    /*"Companion"*/
+               "Minstrel",     /*"Minstrel"*/
+               "Harper",       /*"Harper"*/
+               "Loreweaver",   /*"Loreweaver"*/
+               "Muse", /*"Muse"*/
+               "Dreamweaver",  /*"Dreamweaver"*/
+               "Master Harper",        /*"Master Harper"*/
        },
 
        /* Red Mage */
@@ -5951,16 +5951,16 @@ cptr player_title[MAX_CLASS][PY_MAX_LEVEL / 5] =
 
        /* Kaji */
        {
-                "Copper smith",
-                "Iron smith",
-                "Steel smith",
-                "Silver smith",
-                "Dragon smith",
-                "Spirit smith",
-                "Magic smith",
-                "Soul smith",
-                "God smith",
-                "AlmightySmith",
+               "Copper smith",
+               "Iron smith",
+               "Steel smith",
+               "Silver smith",
+               "Dragon smith",
+               "Spirit smith",
+               "Magic smith",
+               "Soul smith",
+               "God smith",
+               "AlmightySmith",
        },
 
        /* Mirror Master */
@@ -6202,22 +6202,22 @@ monster_power monster_powers[MAX_MONSPELLS] =
 cptr color_names[16] =
 {
 #ifdef JP
-        "¹õ",
-        "Çò",
-        "Àij¥¿§",
-        "¥ª¥ì¥ó¥¸",
-        "ÀÖ",
-        "ÎÐ",
-        "ÀÄ",
-        "àèàῧ",
-        "³¥¿§",
-        "ÌÀÀij¥¿§",
-        "»ç",
-        "²«",
-        "ÌÀ¤ë¤¤ÀÖ",
-        "ÌÀ¤ë¤¤ÎÐ",
-        "ÌÀ¤ë¤¤ÀÄ",
-        "ÌÀàèàῧ",
+       "¹õ",
+       "Çò",
+       "Àij¥¿§",
+       "¥ª¥ì¥ó¥¸",
+       "ÀÖ",
+       "ÎÐ",
+       "ÀÄ",
+       "àèàῧ",
+       "³¥¿§",
+       "ÌÀÀij¥¿§",
+       "»ç",
+       "²«",
+       "ÌÀ¤ë¤¤ÀÖ",
+       "ÌÀ¤ë¤¤ÎÐ",
+       "ÌÀ¤ë¤¤ÀÄ",
+       "ÌÀàèàῧ",
 #else
        "Dark",
        "White",
@@ -6246,7 +6246,7 @@ cptr color_names[16] =
 cptr stat_names[6] =
 {
 #ifdef JP
-        "ÏÓÎÏ :", "ÃÎǽ :", "¸­¤µ :", "´ïÍÑ :", "Âѵנ:", "Ì¥ÎÏ :"
+       "ÏÓÎÏ :", "ÃÎǽ :", "¸­¤µ :", "´ïÍÑ :", "Âѵנ:", "Ì¥ÎÏ :"
 #else
        "STR : ", "INT : ", "WIS : ", "DEX : ", "CON : ", "CHR : "
 #endif
@@ -6259,7 +6259,7 @@ cptr stat_names[6] =
 cptr stat_names_reduced[6] =
 {
 #ifdef JP
-        "ÏÓÎÏx:", "ÃÎǽx:", "¸­¤µx:", "´ïÍÑx:", "Âѵ×x:", "Ì¥ÎÏx:"
+       "ÏÓÎÏx:", "ÃÎǽx:", "¸­¤µx:", "´ïÍÑx:", "Âѵ×x:", "Ì¥ÎÏx:"
 #else
        "Str : ", "Int : ", "Wis : ", "Dex : ", "Con : ", "Chr : "
 #endif
@@ -6284,25 +6284,25 @@ cptr stat_names_reduced[6] =
 cptr window_flag_desc[32] =
 {
 #ifdef JP
-        "»ý¤Áʪ/ÁõÈ÷°ìÍ÷",
+       "»ý¤Áʪ/ÁõÈ÷°ìÍ÷",
 #else
        "Display inven/equip",
 #endif
 
 #ifdef JP
-        "ÁõÈ÷/»ý¤Áʪ°ìÍ÷",
+       "ÁõÈ÷/»ý¤Áʪ°ìÍ÷",
 #else
        "Display equip/inven",
 #endif
 
 #ifdef JP
-        "¼öʸ°ìÍ÷",
+       "¼öʸ°ìÍ÷",
 #else
        "Display spell list",
 #endif
 
 #ifdef JP
-        "¥­¥ã¥é¥¯¥¿¾ðÊó",
+       "¥­¥ã¥é¥¯¥¿¾ðÊó",
 #else
        "Display character",
 #endif
@@ -6310,37 +6310,37 @@ cptr window_flag_desc[32] =
        NULL,
        NULL,
 #ifdef JP
-        "¥á¥Ã¥»¡¼¥¸",
+       "¥á¥Ã¥»¡¼¥¸",
 #else
        "Display messages",
 #endif
 
 #ifdef JP
-        "¥À¥ó¥¸¥ç¥óÁ´ÂοÞ",
+       "¥À¥ó¥¸¥ç¥óÁ´ÂοÞ",
 #else
        "Display overhead view",
 #endif
 
 #ifdef JP
-        "¥â¥ó¥¹¥¿¡¼¤Î»×¤¤½Ð",
+       "¥â¥ó¥¹¥¿¡¼¤Î»×¤¤½Ð",
 #else
        "Display monster recall",
 #endif
 
 #ifdef JP
-        "¥¢¥¤¥Æ¥à¤Î¾ÜºÙ",
+       "¥¢¥¤¥Æ¥à¤Î¾ÜºÙ",
 #else
        "Display object recall",
 #endif
 
 #ifdef JP
-        "¼«Ê¬¤Î¼þ°Ï¤òɽ¼¨", 
+       "¼«Ê¬¤Î¼þ°Ï¤òɽ¼¨", 
 #else
        "Display dungeon view",
 #endif
 
 #ifdef JP
-        "µ­Ç°»£±Æ",
+       "µ­Ç°»£±Æ",
 #else
        "Display snap-shot",
 #endif
@@ -6348,13 +6348,13 @@ cptr window_flag_desc[32] =
        NULL,
        NULL,
 #ifdef JP
-        "¥Ü¡¼¥°¡¦¥á¥Ã¥»¡¼¥¸",
+       "¥Ü¡¼¥°¡¦¥á¥Ã¥»¡¼¥¸",
 #else
        "Display borg messages",
 #endif
 
 #ifdef JP
-        "¥Ü¡¼¥°¡¦¥¹¥Æ¡¼¥¿¥¹",
+       "¥Ü¡¼¥°¡¦¥¹¥Æ¡¼¥¿¥¹",
 #else
        "Display borg status",
 #endif
@@ -6388,7 +6388,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &rogue_like_commands,         FALSE, 1, 0, 0,
-        "rogue_like_commands",          "¥í¡¼¥°É÷¥­¡¼ÇÛÃÖ¤ò»ÈÍѤ¹¤ë" },
+       "rogue_like_commands",          "¥í¡¼¥°É÷¥­¡¼ÇÛÃÖ¤ò»ÈÍѤ¹¤ë" },
 #else
        { &rogue_like_commands,         FALSE, 1, 0, 0,
        "rogue_like_commands",          "Rogue-like commands" },
@@ -6397,7 +6397,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &always_pickup,               FALSE, 1, 0, 5,
-        "always_pickup",                "¾ï¤Ë¥¢¥¤¥Æ¥à¤ò½¦¤¦" },
+       "always_pickup",                "¾ï¤Ë¥¢¥¤¥Æ¥à¤ò½¦¤¦" },
 #else
        { &always_pickup,               FALSE,  1, 0, 5,
        "always_pickup",                "Pick things up by default" },
@@ -6424,7 +6424,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &auto_more,                   FALSE, 1, 2, 6,
-        "auto_more",                    "¥­¡¼ÂÔ¤Á¤·¤Ê¤¤¤ÇϢ³¤Ç¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë" },
+       "auto_more",                    "¥­¡¼ÂÔ¤Á¤·¤Ê¤¤¤ÇϢ³¤Ç¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë" },
 #else
        { &auto_more,                   FALSE, 1, 2, 6,
        "auto_more",                    "Automatically clear '-more-' prompts" },
@@ -6433,7 +6433,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &command_menu,                TRUE,  1, 2, 7,
-        "command_menu",                 "¥á¥Ë¥å¡¼¤Ë¤è¤ê¥³¥Þ¥ó¥ÉÁªÂò¤òÍ­¸ú¤Ë¤¹¤ë" },
+       "command_menu",                 "¥á¥Ë¥å¡¼¤Ë¤è¤ê¥³¥Þ¥ó¥ÉÁªÂò¤òÍ­¸ú¤Ë¤¹¤ë" },
 #else
        { &command_menu,                TRUE,  1, 2, 7,
        "command_menu",                 "Enable command selection menu" },
@@ -6460,7 +6460,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &always_repeat,               TRUE,  1, 0, 6,
-        "always_repeat",                "¥³¥Þ¥ó¥É¼«Æ°·«¤êÊÖ¤·" },
+       "always_repeat",                "¥³¥Þ¥ó¥É¼«Æ°·«¤êÊÖ¤·" },
 #else
        { &always_repeat,               TRUE,  1, 0, 6,
        "always_repeat",                "Repeat obvious commands" },
@@ -6496,7 +6496,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &target_pet,                  FALSE,  1, 2, 5,
-        "target_pet",                   "¥Ú¥Ã¥È¤ò¥¿¡¼¥²¥Ã¥È¤Ë¤¹¤ë" },
+       "target_pet",                   "¥Ú¥Ã¥È¤ò¥¿¡¼¥²¥Ã¥È¤Ë¤¹¤ë" },
 #else
        { &target_pet,                  FALSE,  1, 2, 5,
        "target_pet",                   "Allow targetting pets" },
@@ -6558,7 +6558,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &depth_in_feet,               FALSE, 2, 0, 7,
-        "depth_in_feet",                "¥À¥ó¥¸¥ç¥ó¤Î¿¼¤µ¤ò¥Õ¥£¡¼¥È¤Çɽ¼¨¤¹¤ë" },
+       "depth_in_feet",                "¥À¥ó¥¸¥ç¥ó¤Î¿¼¤µ¤ò¥Õ¥£¡¼¥È¤Çɽ¼¨¤¹¤ë" },
 #else
        { &depth_in_feet,               FALSE, 2, 0, 7,
        "depth_in_feet",                "Show dungeon level in feet" },
@@ -6567,7 +6567,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &show_labels,                 TRUE,  2, 0, 10,
-        "show_labels",                  "ÁõÈ÷°ìÍ÷¤ÇÁõÈ÷¾ì½ê¤òɽ¼¨¤¹¤ë" },
+       "show_labels",                  "ÁõÈ÷°ìÍ÷¤ÇÁõÈ÷¾ì½ê¤òɽ¼¨¤¹¤ë" },
 #else
        { &show_labels,                 TRUE,  2, 0, 10,
        "show_labels",                  "Show labels in object listings" },
@@ -6576,7 +6576,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &show_weights,                TRUE,  2, 0, 11,
-        "show_weights",                 "¥¢¥¤¥Æ¥à°ìÍ÷¤Ç½ÅÎ̤òɽ¼¨¤¹¤ë" },
+       "show_weights",                 "¥¢¥¤¥Æ¥à°ìÍ÷¤Ç½ÅÎ̤òɽ¼¨¤¹¤ë" },
 #else
        { &show_weights,                TRUE,  2, 0, 11,
        "show_weights",                 "Show weights in object listings" },
@@ -6594,7 +6594,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &show_choices,                TRUE,  2, 0, 12,
-        "show_choices",                 "»ý¤Áʪ/ÁõÈ÷¥¦¥£¥ó¥É¥¦¤ËÁªÂò¥¢¥¤¥Æ¥àɽ¼¨" },
+       "show_choices",                 "»ý¤Áʪ/ÁõÈ÷¥¦¥£¥ó¥É¥¦¤ËÁªÂò¥¢¥¤¥Æ¥àɽ¼¨" },
 #else
        { &show_choices,                TRUE,  2, 0, 12,
        "show_choices",                 "Show choices in certain sub-windows" },
@@ -6603,7 +6603,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &plain_pickup,                FALSE, 2, 6, 6,
-        "plain_pickup",                 "¡Ö½¦¤Ã¤¿¡×¥á¥Ã¥»¡¼¥¸¤ò´Êά²½¤¹¤ë" },
+       "plain_pickup",                 "¡Ö½¦¤Ã¤¿¡×¥á¥Ã¥»¡¼¥¸¤ò´Êά²½¤¹¤ë" },
 #else
        { &plain_pickup,                FALSE,99, 6, 6,
        "plain_pickup",                 "Plain pickup messages(japanese only)" },
@@ -6647,8 +6647,8 @@ option_type option_info[] =
 
 
 #ifdef JP
-        { &center_player,               FALSE, 2, 5, 11,
-        "center_player",                "¾ï¤Ë¥×¥ì¥¤¥ä¡¼¤òÃæ¿´¤ËÃÖ¤¯(*ÃÙ¤¤*)" },
+       { &center_player,               FALSE, 2, 5, 11,
+       "center_player",                "¾ï¤Ë¥×¥ì¥¤¥ä¡¼¤òÃæ¿´¤ËÃÖ¤¯(*ÃÙ¤¤*)" },
 #else
        { &center_player,               FALSE, 2, 5, 11,
        "center_player",                "Center map while walking (*slow*)" },
@@ -6656,8 +6656,8 @@ option_type option_info[] =
 
 
 #ifdef JP
-        { &center_running,              TRUE,  2, 5, 12,
-        "center_running",               "Áö¤Ã¤Æ¤¤¤ë»þ¤Ç¤âÃæ¿´¤ËÃÖ¤¯" },
+       { &center_running,              TRUE,  2, 5, 12,
+       "center_running",               "Áö¤Ã¤Æ¤¤¤ë»þ¤Ç¤âÃæ¿´¤ËÃÖ¤¯" },
 #else
        { &center_running,              TRUE,  2, 5, 12,
        "center_running",               "Centering even while running" },
@@ -6666,7 +6666,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_yellow_lite,            TRUE,  2, 1, 28,
-        "view_yellow_lite",              "ÌÀ¤«¤ê¤ÎÈϰϤòÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë" },
+       "view_yellow_lite",              "ÌÀ¤«¤ê¤ÎÈϰϤòÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë" },
 #else
        { &view_yellow_lite,            TRUE,  2, 1, 28,
        "view_yellow_lite",             "Use special colors for torch-lit grids" },
@@ -6675,7 +6675,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_bright_lite,            TRUE,  2, 1, 29,
-        "view_bright_lite",             "»ë³¦¤ÎÈϰϤòÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë" },
+       "view_bright_lite",             "»ë³¦¤ÎÈϰϤòÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë" },
 #else
        { &view_bright_lite,            TRUE,  2, 1, 29,
        "view_bright_lite",             "Use special colors for 'viewable' grids" },
@@ -6684,7 +6684,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_granite_lite,           TRUE,  2, 1, 30,
-        "view_granite_lite",            "ÊɤòÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë(½Å¤¤)" },
+       "view_granite_lite",            "ÊɤòÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë(½Å¤¤)" },
 #else
        { &view_granite_lite,           TRUE,  2, 1, 30,
        "view_granite_lite",            "Use special colors for wall grids (slow)" },
@@ -6693,7 +6693,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_special_lite,           TRUE,  2, 1, 31,
-        "view_special_lite",            "¾²¤òÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë(½Å¤¤)" },
+       "view_special_lite",            "¾²¤òÆÃÊ̤ʿ§¤Çɽ¼¨¤¹¤ë(½Å¤¤)" },
 #else
        { &view_special_lite,           TRUE,  2, 1, 31,
        "view_special_lite",            "Use special colors for floor grids (slow)" },
@@ -6701,7 +6701,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &new_ascii_graphics,          FALSE, 2, 2, 4,
-        "new_ascii_graphics",           "ÃÏ·Á¤ÎÌÀ°Å¤ò¤Ï¤Ã¤­¤ê¤Èɽ¼¨¤¹¤ë" },
+       "new_ascii_graphics",           "ÃÏ·Á¤ÎÌÀ°Å¤ò¤Ï¤Ã¤­¤ê¤Èɽ¼¨¤¹¤ë" },
 #else
        { &new_ascii_graphics,          FALSE, 2, 2, 4,
        "new_ascii_graphics",           "Show a clear contrast between light and dark" },
@@ -6709,7 +6709,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &display_path,                FALSE, 2, 2, 8,
-        "display_path",                 "ËâË¡¤äÌð¤Îµ°Àפòɽ¼¨¤¹¤ë" },
+       "display_path",                 "ËâË¡¤äÌð¤Îµ°Àפòɽ¼¨¤¹¤ë" },
 #else
        { &display_path,                FALSE, 2, 2, 8,
        "display_path",                 "Display actual path before shooting" },
@@ -6718,19 +6718,19 @@ option_type option_info[] =
 
 #ifdef JP
        { &always_show_list,            TRUE,  2, 4, 0,
-        "always_show_list",             "ÁªÂò»þ¤Ë¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë" },
+       "always_show_list",             "ÁªÂò»þ¤Ë¤Ï¾ï¤Ë°ìÍ÷¤òɽ¼¨¤¹¤ë" },
 #else
        { &always_show_list,            TRUE,  2, 4, 0,
-        "always_show_list",             "Always show list at first when select items" },
+       "always_show_list",             "Always show list at first when select items" },
 #endif
 
 
 #ifdef JP
        { &change_numeral,              TRUE,  2, 4, 5,
-        "change_numeral",               "¥¢¥¤¥Æ¥à¤Î¼ïÎà¤Ë¤è¤Ã¤Æ¿ô¤¨Êý¤òÊѤ¨¤ë" },
+       "change_numeral",               "¥¢¥¤¥Æ¥à¤Î¼ïÎà¤Ë¤è¤Ã¤Æ¿ô¤¨Êý¤òÊѤ¨¤ë" },
 #else
        { &change_numeral,              TRUE,  99, 4, 5,
-        "change_numeral",               "Change a way to counting (japanese only)" },
+       "change_numeral",               "Change a way to counting (japanese only)" },
 #endif
 
 
@@ -6738,7 +6738,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &auto_scum,                   FALSE, 3, 1, 1,
-        "auto_scum",                    "³¬¤ÎÊ·°Ïµ¤¼«Æ°Áª¤ê¹¥¤ß" },
+       "auto_scum",                    "³¬¤ÎÊ·°Ïµ¤¼«Æ°Áª¤ê¹¥¤ß" },
 #else
        { &auto_scum,                   FALSE, 3, 1, 1,
        "auto_scum",                    "Auto-scum for good levels" },
@@ -6747,7 +6747,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &stack_force_notes,           TRUE,  3, 0, 8,
-        "stack_force_notes",            "°Û¤Ê¤ëÌäΥ¢¥¤¥Æ¥à¤ò¤Þ¤È¤á¤ë" },
+       "stack_force_notes",            "°Û¤Ê¤ëÌäΥ¢¥¤¥Æ¥à¤ò¤Þ¤È¤á¤ë" },
 #else
        { &stack_force_notes,           TRUE,  3, 0, 8,
        "stack_force_notes",            "Merge inscriptions when stacking" },
@@ -6756,7 +6756,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &stack_force_costs,           FALSE, 3, 0, 9,
-        "stack_force_costs",            "°Û¤Ê¤ë³ä°úɽ¼¨¤Î¥¢¥¤¥Æ¥à¤ò¤Þ¤È¤á¤ë" },
+       "stack_force_costs",            "°Û¤Ê¤ë³ä°úɽ¼¨¤Î¥¢¥¤¥Æ¥à¤ò¤Þ¤È¤á¤ë" },
 #else
        { &stack_force_costs,           FALSE, 3, 0, 9,
        "stack_force_costs",            "Merge discounts when stacking" },
@@ -6774,7 +6774,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &expand_look,                 TRUE,  3, 1, 4,
-        "expand_look",                  "¡Ö²ó¤ê¤òÄ´¤Ù¤ë¡×¥³¥Þ¥ó¥É¤ò³ÈÄ¥¤¹¤ë" },
+       "expand_look",                  "¡Ö²ó¤ê¤òÄ´¤Ù¤ë¡×¥³¥Þ¥ó¥É¤ò³ÈÄ¥¤¹¤ë" },
 #else
        { &expand_look,                 TRUE,  3, 1, 4,
        "expand_look",                  "Expand the power of the look command" },
@@ -6783,7 +6783,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &expand_list,                 TRUE,  3, 1, 5,
-        "expand_list",                  "¡Ö°ìÍ÷¡×¥³¥Þ¥ó¥É¤ò³ÈÄ¥¤¹¤ë" },
+       "expand_list",                  "¡Ö°ìÍ÷¡×¥³¥Þ¥ó¥É¤ò³ÈÄ¥¤¹¤ë" },
 #else
        { &expand_list,                 TRUE,  3, 1, 5,
        "expand_list",                  "Expand the power of the list commands" },
@@ -6792,7 +6792,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_perma_grids,            TRUE,  3, 1, 6,
-        "view_perma_grids",             "ÌÀ¤ë¤¤¾ì½ê¤Ï¤½¤Î¤Þ¤Þ¤Ë¤¹¤ë" },
+       "view_perma_grids",             "ÌÀ¤ë¤¤¾ì½ê¤Ï¤½¤Î¤Þ¤Þ¤Ë¤¹¤ë" },
 #else
        { &view_perma_grids,            TRUE,  3, 1, 6,
        "view_perma_grids",             "Map remembers all perma-lit grids" },
@@ -6801,7 +6801,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_torch_grids,            FALSE, 3, 1, 7,
-        "view_torch_grids",             "ÌÀ¤«¤ê¤Ç¾È¤é¤·¤¿¾ì½ê¤Ï¤½¤Î¤Þ¤Þ¤Ë¤¹¤ë" },
+       "view_torch_grids",             "ÌÀ¤«¤ê¤Ç¾È¤é¤·¤¿¾ì½ê¤Ï¤½¤Î¤Þ¤Þ¤Ë¤¹¤ë" },
 #else
        { &view_torch_grids,            FALSE, 3, 1, 7,
        "view_torch_grids",             "Map remembers all torch-lit grids" },
@@ -6810,7 +6810,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &view_unsafe_grids,            FALSE, 3, 1, 8,
-        "view_unsafe_grids",             "¥È¥é¥Ã¥×´¶ÃκѤߤǤʤ¤¾ì½ê¤òɽ¼¨¤¹¤ë" },
+       "view_unsafe_grids",             "¥È¥é¥Ã¥×´¶ÃκѤߤǤʤ¤¾ì½ê¤òɽ¼¨¤¹¤ë" },
 #else
        { &view_unsafe_grids,            FALSE, 3, 1, 8,
        "view_unsafe_grids",             "Map marked by detect traps" },
@@ -6819,7 +6819,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &dungeon_stair,               TRUE,  3, 1, 9,
-        "dungeon_stair",                "³¬Ãʤò¤Ä¤Ê¤²¤Æ¥À¥ó¥¸¥ç¥ó¤òÀ¸À®¤¹¤ë" },
+       "dungeon_stair",                "³¬Ãʤò¤Ä¤Ê¤²¤Æ¥À¥ó¥¸¥ç¥ó¤òÀ¸À®¤¹¤ë" },
 #else
        { &dungeon_stair,               TRUE,  3, 1, 9,
        "dungeon_stair",                "Generate dungeons with connected stairs" },
@@ -6846,7 +6846,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &empty_levels,                TRUE,  3, 0, 31,
-        "empty_levels",                 "¶õ¤Ã¤Ý¤Î¡Ö¥¢¥ê¡¼¥Ê¡×¥ì¥Ù¥ë¤ÎÀ¸À®¤ò²Äǽ¤Ë¤¹¤ë" },
+       "empty_levels",                 "¶õ¤Ã¤Ý¤Î¡Ö¥¢¥ê¡¼¥Ê¡×¥ì¥Ù¥ë¤ÎÀ¸À®¤ò²Äǽ¤Ë¤¹¤ë" },
 #else
        { &empty_levels,                TRUE,  3, 0, 31,
        "empty_levels",                 "Allow empty 'arena' levels" },
@@ -6865,10 +6865,10 @@ option_type option_info[] =
 #ifdef WORLD_SCORE
 #ifdef JP
        { &send_score,                  TRUE,  3, 4, 6,
-        "send_score",                   "¥¹¥³¥¢¥µ¡¼¥Ð¤Ë¥¹¥³¥¢¤òÁ÷¤ë" },
+       "send_score",                   "¥¹¥³¥¢¥µ¡¼¥Ð¤Ë¥¹¥³¥¢¤òÁ÷¤ë" },
 #else
        { &send_score,                  TRUE,  3, 4, 6,
-        "send_score",                   "Send score dump to the world score server" },
+       "send_score",                   "Send score dump to the world score server" },
 #endif
 #endif
 
@@ -6924,7 +6924,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_move,                FALSE,  4, 0, 20,
-        "disturb_move",                 "¤É¤³¤Î¥â¥ó¥¹¥¿¡¼¤¬Æ°¤¤¤Æ¤â¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
+       "disturb_move",                 "¤É¤³¤Î¥â¥ó¥¹¥¿¡¼¤¬Æ°¤¤¤Æ¤â¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
 #else
        { &disturb_move,                FALSE,  4, 0, 20,
        "disturb_move",                 "Disturb whenever any monster moves" },
@@ -6933,7 +6933,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_high,                FALSE,  4, 1, 3,
-        "disturb_high",                 "¥ì¥Ù¥ë¤Î¹â¤¤¥â¥ó¥¹¥¿¡¼¤¬Æ°¤¤¤¿¤é¹ÔÆ°¤òÃæ»ß¤¹¤ë"},
+       "disturb_high",                 "¥ì¥Ù¥ë¤Î¹â¤¤¥â¥ó¥¹¥¿¡¼¤¬Æ°¤¤¤¿¤é¹ÔÆ°¤òÃæ»ß¤¹¤ë"},
 #else
        { &disturb_high,                FALSE,  4, 1, 3,
        "disturb_high",                 "Disturb whenever high-level monster moves" },
@@ -6942,7 +6942,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_near,                TRUE,  4, 0, 21,
-        "disturb_near",                 "»ë³¦Æâ¤Î¥â¥ó¥¹¥¿¡¼¤¬Æ°¤¤¤¿¤é¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
+       "disturb_near",                 "»ë³¦Æâ¤Î¥â¥ó¥¹¥¿¡¼¤¬Æ°¤¤¤¿¤é¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
 #else
        { &disturb_near,                TRUE,  4, 0, 21,
        "disturb_near",                 "Disturb whenever viewable monster moves" },
@@ -6960,7 +6960,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_panel,               TRUE,  4, 0, 22,
-        "disturb_panel",                "²èÌÌ¥¹¥¯¥í¡¼¥ë»þ¤Ë¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
+       "disturb_panel",                "²èÌÌ¥¹¥¯¥í¡¼¥ë»þ¤Ë¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
 #else
        { &disturb_panel,               TRUE,  4, 0, 22,
        "disturb_panel",                "Disturb whenever map panel changes" },
@@ -6969,7 +6969,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_state,               TRUE,  4, 0, 23,
-        "disturb_state",                "¼«Ê¬¤Î¥¹¥Æ¡¼¥¿¥¹ÊѲ½»þ¤Ë¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
+       "disturb_state",                "¼«Ê¬¤Î¥¹¥Æ¡¼¥¿¥¹ÊѲ½»þ¤Ë¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
 #else
        { &disturb_state,               TRUE,  4, 0, 23,
        "disturb_state",                "Disturb whenever player state changes" },
@@ -6978,7 +6978,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_minor,               TRUE,  4, 0, 24,
-        "disturb_minor",                "º³ºÙ¤Ê¤³¤È¤¬µ¯¤­¤Æ¤â¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
+       "disturb_minor",                "º³ºÙ¤Ê¤³¤È¤¬µ¯¤­¤Æ¤â¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
 #else
        { &disturb_minor,               TRUE,  4, 0, 24,
        "disturb_minor",                "Disturb whenever boring things happen" },
@@ -6987,7 +6987,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &ring_bell,                   FALSE, 4, 0, 14,
-        "ring_bell",                    "¥¨¥é¡¼»þ¤Ë¥Ó¡¼¥×²»¤òÌĤ餹" },
+       "ring_bell",                    "¥¨¥é¡¼»þ¤Ë¥Ó¡¼¥×²»¤òÌĤ餹" },
 #else
        { &ring_bell,                   FALSE, 4, 0, 14,
        "ring_bell",                    "Audible bell (on errors, etc)" },
@@ -6996,7 +6996,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &alert_hitpoint,              TRUE, 4, 0, 26,
-        "alert_hitpoint",               "Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È¤Î·Ù¹ð»þ¤Ë¥Ó¡¼¥×¤òÌĤ餹" },
+       "alert_hitpoint",               "Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È¤Î·Ù¹ð»þ¤Ë¥Ó¡¼¥×¤òÌĤ餹" },
 #else
        { &alert_hitpoint,              TRUE, 4, 0, 26,
        "alert_hitpoint",               "Alert user to critical hitpoints" },
@@ -7005,7 +7005,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &disturb_trap_detect,         TRUE, 4, 0, 27,
-        "disturb_trap_detect",          "¥È¥é¥Ã¥×´¶ÃÎÈϰϳ°¤Ë½Ð¤ëľÁ°¤Ë¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
+       "disturb_trap_detect",          "¥È¥é¥Ã¥×´¶ÃÎÈϰϳ°¤Ë½Ð¤ëľÁ°¤Ë¹ÔÆ°¤òÃæ»ß¤¹¤ë" },
 #else
        { &disturb_trap_detect,         TRUE, 4, 0, 27,
        "disturb_trap_detect",          "Disturb when leaving trap detected area"},
@@ -7013,7 +7013,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &alert_trap_detect,           FALSE, 4, 0, 25,
-        "alert_trap_detect",            "¥È¥é¥Ã¥×´¶ÃÎÈϰϳ°¤Ë½Ð¤ëľÁ°¤Ë·Ù¹ð¤¹¤ë" },
+       "alert_trap_detect",            "¥È¥é¥Ã¥×´¶ÃÎÈϰϳ°¤Ë½Ð¤ëľÁ°¤Ë·Ù¹ð¤¹¤ë" },
 #else
        { &alert_trap_detect,           FALSE, 4, 0, 25,
        "alert_trap_detect",            "Alert when leaving trap detected area"},
@@ -7042,7 +7042,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &check_abort,                 TRUE,  5, 1, 18,
-        "check_abort",                  "Ϣ³¥³¥Þ¥ó¥É¤Ï¥­¡¼ÆþÎϤÇÃæÃǤ¹¤ë" },
+       "check_abort",                  "Ϣ³¥³¥Þ¥ó¥É¤Ï¥­¡¼ÆþÎϤÇÃæÃǤ¹¤ë" },
 #else
        { &check_abort,                 TRUE,  5, 1, 18,
        "check_abort",                  "Check for user abort while continuous command" },
@@ -7051,7 +7051,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &flush_failure,               TRUE,  5, 1, 20,
-        "flush_failure",                "ÍÍ¡¹¤Ê¥ß¥¹È¯À¸»þ¤ËÆþÎϤò¥¯¥ê¥¢¤¹¤ë" },
+       "flush_failure",                "ÍÍ¡¹¤Ê¥ß¥¹È¯À¸»þ¤ËÆþÎϤò¥¯¥ê¥¢¤¹¤ë" },
 #else
        { &flush_failure,               TRUE,  5, 1, 20,
        "flush_failure",                "Flush input on various failures" },
@@ -7060,7 +7060,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &flush_disturb,               FALSE, 5, 1, 21,
-        "flush_disturb",                "¾ã³²È¯À¸»þ¤ËÆþÎϤò¥¯¥ê¥¢¤¹¤ë" },
+       "flush_disturb",                "¾ã³²È¯À¸»þ¤ËÆþÎϤò¥¯¥ê¥¢¤¹¤ë" },
 #else
        { &flush_disturb,               FALSE, 5, 1, 21,
        "flush_disturb",                "Flush input whenever disturbed" },
@@ -7069,16 +7069,16 @@ option_type option_info[] =
 
 #ifdef JP
        { &fresh_before,                TRUE,  5, 1, 23,
-        "fresh_before",                 "Ϣ³¥³¥Þ¥ó¥ÉÃæ¤Ë²èÌ̤òºÆÉÁ²è¤·Â³¤±¤ë" },
+       "fresh_before",                 "Ϣ³¥³¥Þ¥ó¥ÉÃæ¤Ë²èÌ̤òºÆÉÁ²è¤·Â³¤±¤ë" },
 #else
        { &fresh_before,                TRUE,  5, 1, 23,
-        "fresh_before",                 "Flush output while continuous command" },
+       "fresh_before",                 "Flush output while continuous command" },
 #endif
 
 
 #ifdef JP
        { &fresh_after,                 FALSE, 5, 1, 24,
-        "fresh_after",                  "¥³¥Þ¥ó¥É¸å¤Ë²èÌ̤ò¾ï¤ËºÆÉÁ²è¤·Â³¤±¤ë" },
+       "fresh_after",                  "¥³¥Þ¥ó¥É¸å¤Ë²èÌ̤ò¾ï¤ËºÆÉÁ²è¤·Â³¤±¤ë" },
 #else
        { &fresh_after,                 FALSE, 5, 1, 24,
        "fresh_after",                  "Flush output after monster's move" },
@@ -7096,7 +7096,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &compress_savefile,           FALSE, 5, 1, 26,
-        "compress_savefile",            "¥»¡¼¥Ö¡¦¥Õ¥¡¥¤¥ëÃæ¤Î¥á¥Ã¥»¡¼¥¸¤ò°µ½Ì¤¹¤ë" },
+       "compress_savefile",            "¥»¡¼¥Ö¡¦¥Õ¥¡¥¤¥ëÃæ¤Î¥á¥Ã¥»¡¼¥¸¤ò°µ½Ì¤¹¤ë" },
 #else
        { &compress_savefile,           FALSE, 5, 1, 26,
        "compress_savefile",            "Compress messages in savefiles" },
@@ -7116,7 +7116,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &manual_haggle,               FALSE, 6, 1, 0,
-        "manual_haggle",                "Ź¤ÇÃÍÀÚ¤ê¸ò¾Ä¤ò¤¹¤ë" },
+       "manual_haggle",                "Ź¤ÇÃÍÀÚ¤ê¸ò¾Ä¤ò¤¹¤ë" },
 #else
        { &manual_haggle,               FALSE, 6, 1, 0,
        "manual_haggle",                "Manually haggle in stores" },
@@ -7125,7 +7125,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &easy_band,                   FALSE, 6, 6, 31,
-        "easy_band",                    "½é¿´¼ÔÍÑ´Êñ¥â¡¼¥É(*)" },
+       "easy_band",                    "½é¿´¼ÔÍÑ´Êñ¥â¡¼¥É(*)" },
 #else
        { &easy_band,                   FALSE, 6, 6, 31,
        "easy_band",                    "Easy Mode (*)" },
@@ -7134,7 +7134,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &smart_learn,                 TRUE,  6, 1, 14,
-        "smart_learn",                  "¥â¥ó¥¹¥¿¡¼¤Ï¼ºÇÔ¤ò³Ø½¬¤¹¤ë(*)" },
+       "smart_learn",                  "¥â¥ó¥¹¥¿¡¼¤Ï¼ºÇÔ¤ò³Ø½¬¤¹¤ë(*)" },
 #else
        { &smart_learn,                 TRUE,  6, 1, 14,
        "smart_learn",                  "Monsters learn from their mistakes (*)" },
@@ -7143,7 +7143,7 @@ option_type option_info[] =
 
 #ifdef JP
        { &smart_cheat,                 FALSE, 6, 1, 15,
-        "smart_cheat",                  "¥â¥ó¥¹¥¿¡¼¤Ï¥×¥ì¥¤¥ä¡¼¤Î¼å¤ß¤òÆͤ¯(*)" },
+       "smart_cheat",                  "¥â¥ó¥¹¥¿¡¼¤Ï¥×¥ì¥¤¥ä¡¼¤Î¼å¤ß¤òÆͤ¯(*)" },
 #else
        { &smart_cheat,                 FALSE, 6, 1, 15,
        "smart_cheat",                  "Monsters exploit players weaknesses (*)" },
@@ -7224,15 +7224,15 @@ option_type option_info[] =
 
 #ifdef JP
        { &ironman_nightmare,           FALSE, 6, 6, 18,
-        "ironman_nightmare",           "¡ÊÅ´¿ÍÍÑ¡Ë°­Ì´¥â¡¼¥É(¤³¤ì¤ÏÁ´¤¯ÉÔ¾òÍý¤Ç¤¹¡ª)(*)" },
+       "ironman_nightmare",            "¡ÊÅ´¿ÍÍÑ¡Ë°­Ì´¥â¡¼¥É(¤³¤ì¤ÏÁ´¤¯ÉÔ¾òÍý¤Ç¤¹¡ª)(*)" },
 #else
        { &ironman_nightmare,           FALSE, 6, 6, 18,
-        "ironman_nightmare",           "Nightmare mode(it isn't even remotely fair!)(*)" },
+       "ironman_nightmare",            "Nightmare mode(it isn't even remotely fair!)(*)" },
 #endif
 
 #ifdef JP
-        { &left_hander,                 FALSE, 6, 6, 13,
-        "left_hander",                  "º¸Íø¤­¤Ç¤¢¤ë" },
+       { &left_hander,                 FALSE, 6, 6, 13,
+       "left_hander",                  "º¸Íø¤­¤Ç¤¢¤ë" },
 #else
        { &left_hander,                 FALSE, 6, 6, 13,
        "left_hander",                  "Left-Hander" },
@@ -7240,8 +7240,8 @@ option_type option_info[] =
 
 
 #ifdef JP
-        { &preserve_mode,               TRUE,  6, 6, 14,
-        "preserve_mode",                "ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤ò¼è¤êƨ¤·¤Æ¤âºÆÀ¸À®¤µ¤ì¤ë(*)" },
+       { &preserve_mode,               TRUE,  6, 6, 14,
+       "preserve_mode",                "ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤ò¼è¤êƨ¤·¤Æ¤âºÆÀ¸À®¤µ¤ì¤ë(*)" },
 #else
        { &preserve_mode,               TRUE,  6, 6, 14,
        "preserve_mode",                "Preserve artifacts (*)" },
@@ -7249,8 +7249,8 @@ option_type option_info[] =
 
 
 #ifdef JP
-        { &autoroller,                  TRUE,  6, 6, 15,
-        "autoroller",                   "ǽÎÏÃͤ˥ª¡¼¥È¥í¡¼¥é¡¼»ÈÍÑ(*)" },
+       { &autoroller,                  TRUE,  6, 6, 15,
+       "autoroller",                   "ǽÎÏÃͤ˥ª¡¼¥È¥í¡¼¥é¡¼»ÈÍÑ(*)" },
 #else
        { &autoroller,                  TRUE,  6, 6, 15,
        "autoroller",                   "Allow use of autoroller for stats (*)" },
@@ -7258,8 +7258,8 @@ option_type option_info[] =
 
 
 #ifdef JP
-        { &autochara,                   FALSE, 6, 6, 16,
-        "autochara",                   "ÂγÊ/Ãϰ̤˥ª¡¼¥È¥í¡¼¥é¡¼»ÈÍÑ" },
+       { &autochara,                   FALSE, 6, 6, 16,
+       "autochara",                   "ÂγÊ/Ãϰ̤˥ª¡¼¥È¥í¡¼¥é¡¼»ÈÍÑ" },
 #else
        { &autochara,                   FALSE, 6, 6, 16,
        "autochara",                    "Autoroll for weight, height and social status" },
@@ -7268,193 +7268,193 @@ option_type option_info[] =
 
 #ifdef JP
        { &powerup_home,                TRUE,  6, 4, 3,
-        "powerup_home",                 "²æ¤¬²È¤ò³ÈÄ¥¤¹¤ë(*)" },
+       "powerup_home",                 "²æ¤¬²È¤ò³ÈÄ¥¤¹¤ë(*)" },
 
 #else
        { &powerup_home,                TRUE,  6, 4, 3,
-        "powerup_home",                 "Increase capacity of your home (*)" },
+       "powerup_home",                 "Increase capacity of your home (*)" },
 #endif
 
 
        /*** Easy Object Auto-Destroyer ***/
 
 #ifdef JP
-        { &destroy_items,               FALSE, 7, 7, 0,
-        "destroy_items",                "¥¢¥¤¥Æ¥à¤Î´Ê°×¼«Æ°Ç˲õ¤ò»ÈÍѤ¹¤ë" },
+       { &destroy_items,               FALSE, 7, 7, 0,
+       "destroy_items",                "¥¢¥¤¥Æ¥à¤Î´Ê°×¼«Æ°Ç˲õ¤ò»ÈÍѤ¹¤ë" },
 #else
-        { &destroy_items,               FALSE, 7, 7, 0,
-        "destroy_items",                "Use easy auto-destroyer" },
+       { &destroy_items,               FALSE, 7, 7, 0,
+       "destroy_items",                "Use easy auto-destroyer" },
 #endif
 
 #ifdef JP
-        { &destroy_feeling,               FALSE, 7, 7, 8,
-        "destroy_feeling",                "´Ê°×´ÕÄꤷ¤¿¤È¤­¼«Æ°Ç˲õ¤òŬÍѤ¹¤ë" },
+       { &destroy_feeling,               FALSE, 7, 7, 8,
+       "destroy_feeling",                "´Ê°×´ÕÄꤷ¤¿¤È¤­¼«Æ°Ç˲õ¤òŬÍѤ¹¤ë" },
 #else
-        { &destroy_feeling,               FALSE, 7, 7, 8,
-        "destroy_feeling",                "Apply auto-destroy as sense feeling" },
+       { &destroy_feeling,               FALSE, 7, 7, 8,
+       "destroy_feeling",                "Apply auto-destroy as sense feeling" },
 #endif
 
 #ifdef JP
-        { &destroy_identify,               FALSE, 7, 7, 9,
-        "destroy_identify",                "´ÕÄꤷ¤¿¤È¤­¼«Æ°Ç˲õ¤òŬÍѤ¹¤ë" },
+       { &destroy_identify,               FALSE, 7, 7, 9,
+       "destroy_identify",                "´ÕÄꤷ¤¿¤È¤­¼«Æ°Ç˲õ¤òŬÍѤ¹¤ë" },
 #else
-        { &destroy_identify,               FALSE, 7, 7, 9,
-        "destroy_identify",                "Apply auto-destroy as identify an item" },
+       { &destroy_identify,               FALSE, 7, 7, 9,
+       "destroy_identify",                "Apply auto-destroy as identify an item" },
 #endif
 
 #ifdef JP
-        { &leave_worth,                 TRUE, 7, 7, 2,
-        "leave_worth",                  "²ÁÃͤ¬¤¢¤ë¥¢¥¤¥Æ¥à¤Ï²õ¤µ¤Ê¤¤" },
+       { &leave_worth,                 TRUE, 7, 7, 2,
+       "leave_worth",                  "²ÁÃͤ¬¤¢¤ë¥¢¥¤¥Æ¥à¤Ï²õ¤µ¤Ê¤¤" },
 #else
-        { &leave_worth,                 TRUE, 7, 7, 2,
-        "leave_worth",                  "Auto-destroyer leaves known worthy items" },
+       { &leave_worth,                 TRUE, 7, 7, 2,
+       "leave_worth",                  "Auto-destroyer leaves known worthy items" },
 #endif
 
 #ifdef JP
-        { &leave_equip,                 FALSE, 7, 7, 3,
-        "leave_equip",                  "Éð´ï/Ëɶñ¤Ï²õ¤µ¤Ê¤¤" },
+       { &leave_equip,                 FALSE, 7, 7, 3,
+       "leave_equip",                  "Éð´ï/Ëɶñ¤Ï²õ¤µ¤Ê¤¤" },
 #else
-        { &leave_equip,                 FALSE, 7, 7, 3,
-        "leave_equip",                  "Auto-destroyer leaves weapons and armour" },
+       { &leave_equip,                 FALSE, 7, 7, 3,
+       "leave_equip",                  "Auto-destroyer leaves weapons and armour" },
 #endif
 
 #ifdef JP
-        { &leave_chest,                 TRUE, 7, 7, 7,
-        "leave_chest",                  "³«Éõ¤µ¤ì¤Æ¤¤¤Ê¤¤È¢¤Ï²õ¤µ¤Ê¤¤" },
+       { &leave_chest,                 TRUE, 7, 7, 7,
+       "leave_chest",                  "³«Éõ¤µ¤ì¤Æ¤¤¤Ê¤¤È¢¤Ï²õ¤µ¤Ê¤¤" },
 #else
-        { &leave_chest,                 TRUE, 7, 7, 7,
-        "leave_chest",                  "Auto-destroyer leaves closed chests" },
+       { &leave_chest,                 TRUE, 7, 7, 7,
+       "leave_chest",                  "Auto-destroyer leaves closed chests" },
 #endif
 
 #ifdef JP
-        { &leave_wanted,                TRUE, 7, 7, 4,
-        "leave_wanted",                 "¾Þ¶â¼ó¤Î»àÂÎ/¹ü¤Ï²õ¤µ¤Ê¤¤" },
+       { &leave_wanted,                TRUE, 7, 7, 4,
+       "leave_wanted",                 "¾Þ¶â¼ó¤Î»àÂÎ/¹ü¤Ï²õ¤µ¤Ê¤¤" },
 #else
-        { &leave_wanted,                TRUE, 7, 7, 4,
-        "leave_wanted",                 "Auto-destroyer leaves wanted corpses" },
+       { &leave_wanted,                TRUE, 7, 7, 4,
+       "leave_wanted",                 "Auto-destroyer leaves wanted corpses" },
 #endif
 
 #ifdef JP
-        { &leave_corpse,                FALSE, 7, 7, 5,
-        "leave_corpse",                 "»àÂÎ/¹ü¤Ï²õ¤µ¤Ê¤¤" },
+       { &leave_corpse,                FALSE, 7, 7, 5,
+       "leave_corpse",                 "»àÂÎ/¹ü¤Ï²õ¤µ¤Ê¤¤" },
 #else
-        { &leave_corpse,                FALSE, 7, 7, 5,
-        "leave_corpse",                 "Auto-destroyer leaves corpses and skeletons" },
+       { &leave_corpse,                FALSE, 7, 7, 5,
+       "leave_corpse",                 "Auto-destroyer leaves corpses and skeletons" },
 #endif
 
 #ifdef JP
-        { &leave_junk,                  FALSE, 7, 7, 6,
-        "leave_junk",                   "¤¬¤é¤¯¤¿¤Ï²õ¤µ¤Ê¤¤" },
+       { &leave_junk,                  FALSE, 7, 7, 6,
+       "leave_junk",                   "¤¬¤é¤¯¤¿¤Ï²õ¤µ¤Ê¤¤" },
 #else
-        { &leave_junk,                  FALSE, 7, 7, 6,
-        "leave_junk",                   "Auto-destroyer leaves junk" },
+       { &leave_junk,                  FALSE, 7, 7, 6,
+       "leave_junk",                   "Auto-destroyer leaves junk" },
 #endif
 
 
        /*** Play-record Options ***/
 
 #ifdef JP
-        { &record_fix_art,              TRUE, 10, 4, 11,
-        "record_fix_art",               "¸ÇÄꥢ¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤ÎÆþ¼ê¤òµ­Ï¿¤¹¤ë" },
+       { &record_fix_art,              TRUE, 10, 4, 11,
+       "record_fix_art",               "¸ÇÄꥢ¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤ÎÆþ¼ê¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_fix_art,              TRUE, 10, 4, 11,
-        "record_fix_art",               "Record fixed artifacts" },
+       { &record_fix_art,              TRUE, 10, 4, 11,
+       "record_fix_art",               "Record fixed artifacts" },
 #endif
 
 #ifdef JP
-        { &record_rand_art,             TRUE, 10, 4, 12,
-        "record_rand_art",              "¥é¥ó¥À¥à¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤ÎÆþ¼ê¤òµ­Ï¿¤¹¤ë" },
+       { &record_rand_art,             TRUE, 10, 4, 12,
+       "record_rand_art",              "¥é¥ó¥À¥à¥¢¡¼¥Æ¥£¥Õ¥¡¥¯¥È¤ÎÆþ¼ê¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_rand_art,             TRUE, 10, 4, 12,
-        "record_rand_art",              "Record random artifacts" },
+       { &record_rand_art,             TRUE, 10, 4, 12,
+       "record_rand_art",              "Record random artifacts" },
 #endif
 
 #ifdef JP
-        { &record_destroy_uniq,         TRUE, 10, 4, 13,
-        "record_destroy_uniq",          "¥æ¥Ë¡¼¥¯¥â¥ó¥¹¥¿¡¼¤òÅݤ·¤¿¤È¤­¤òµ­Ï¿¤¹¤ë" },
+       { &record_destroy_uniq,         TRUE, 10, 4, 13,
+       "record_destroy_uniq",          "¥æ¥Ë¡¼¥¯¥â¥ó¥¹¥¿¡¼¤òÅݤ·¤¿¤È¤­¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_destroy_uniq,         TRUE, 10, 4, 13,
-        "record_destroy_uniq",          "Record when destroy unique monster" },
+       { &record_destroy_uniq,         TRUE, 10, 4, 13,
+       "record_destroy_uniq",          "Record when destroy unique monster" },
 #endif
 
 #ifdef JP
-        { &record_fix_quest,            TRUE, 10, 4, 14,
-        "record_fix_quest",             "¸ÇÄꥯ¥¨¥¹¥È¤ÎãÀ®¤òµ­Ï¿¤¹¤ë" },
+       { &record_fix_quest,            TRUE, 10, 4, 14,
+       "record_fix_quest",             "¸ÇÄꥯ¥¨¥¹¥È¤ÎãÀ®¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_fix_quest,            TRUE, 10, 4, 14,
-        "record_fix_quest",             "Record fixed quests" },
+       { &record_fix_quest,            TRUE, 10, 4, 14,
+       "record_fix_quest",             "Record fixed quests" },
 #endif
 
 #ifdef JP
-        { &record_rand_quest,           TRUE, 10, 4, 15,
-        "record_rand_quest",            "¥é¥ó¥À¥à¥¯¥¨¥¹¥È¤ÎãÀ®¤òµ­Ï¿¤¹¤ë" },
+       { &record_rand_quest,           TRUE, 10, 4, 15,
+       "record_rand_quest",            "¥é¥ó¥À¥à¥¯¥¨¥¹¥È¤ÎãÀ®¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_rand_quest,           TRUE, 10, 4, 15,
-        "record_rand_quest",            "Record random quests" },
+       { &record_rand_quest,           TRUE, 10, 4, 15,
+       "record_rand_quest",            "Record random quests" },
 #endif
 
 #ifdef JP
-        { &record_maxdeapth,            TRUE, 10, 4, 16,
-        "record_maxdeapth",             "ºÇ¿¼³¬¤ò¹¹¿·¤·¤¿¤È¤­¤Ëµ­Ï¿¤¹¤ë" },
+       { &record_maxdeapth,            TRUE, 10, 4, 16,
+       "record_maxdeapth",             "ºÇ¿¼³¬¤ò¹¹¿·¤·¤¿¤È¤­¤Ëµ­Ï¿¤¹¤ë" },
 #else
-        { &record_maxdeapth,            TRUE, 10, 4, 16,
-        "record_maxdeapth",             "Record movements to deepest level" },
+       { &record_maxdeapth,            TRUE, 10, 4, 16,
+       "record_maxdeapth",             "Record movements to deepest level" },
 #endif
 
 #ifdef JP
-        { &record_stair,                TRUE, 10, 4, 17,
-        "record_stair",                 "³¬¤Î°ÜÆ°¤òµ­Ï¿¤¹¤ë" },
+       { &record_stair,                TRUE, 10, 4, 17,
+       "record_stair",                 "³¬¤Î°ÜÆ°¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_stair,                TRUE, 10, 4, 17,
-        "record_stair",                 "Record recall and stair movements" },
+       { &record_stair,                TRUE, 10, 4, 17,
+       "record_stair",                 "Record recall and stair movements" },
 #endif
 
 #ifdef JP
-        { &record_buy,                  TRUE, 10, 4, 18,
-        "record_buy",                   "¥¢¥¤¥Æ¥à¤Î¹ØÆþ¤òµ­Ï¿¤¹¤ë" },
+       { &record_buy,                  TRUE, 10, 4, 18,
+       "record_buy",                   "¥¢¥¤¥Æ¥à¤Î¹ØÆþ¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_buy,                  TRUE, 10, 4, 18,
-        "record_buy",                   "Record purchased items" },
+       { &record_buy,                  TRUE, 10, 4, 18,
+       "record_buy",                   "Record purchased items" },
 #endif
 
 #ifdef JP
-        { &record_sell,                 FALSE, 10, 4, 19,
-        "record_sell",                  "¥¢¥¤¥Æ¥à¤ÎÇäµÑ¤òµ­Ï¿¤¹¤ë" },
+       { &record_sell,                 FALSE, 10, 4, 19,
+       "record_sell",                  "¥¢¥¤¥Æ¥à¤ÎÇäµÑ¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_sell,                 FALSE, 10, 4, 19,
-        "record_sell",                  "Record sold items" },
+       { &record_sell,                 FALSE, 10, 4, 19,
+       "record_sell",                  "Record sold items" },
 #endif
 
 #ifdef JP
-        { &record_danger,               TRUE, 10, 4, 20,
-        "record_danger",                "¥Ô¥ó¥Á¤Ë¤Ê¤Ã¤¿¤È¤­¤òµ­Ï¿¤¹¤ë" },
+       { &record_danger,               TRUE, 10, 4, 20,
+       "record_danger",                "¥Ô¥ó¥Á¤Ë¤Ê¤Ã¤¿¤È¤­¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_danger,               TRUE, 10, 4, 20,
-        "record_danger",                "Record hitpoint warning" },
+       { &record_danger,               TRUE, 10, 4, 20,
+       "record_danger",                "Record hitpoint warning" },
 #endif
 
 #ifdef JP
-        { &record_arena,                TRUE, 10, 4, 21,
-        "record_arena",                 "¥¢¥ê¡¼¥Ê¤Ç¤Î¾¡Íø¤òµ­Ï¿¤¹¤ë" },
+       { &record_arena,                TRUE, 10, 4, 21,
+       "record_arena",                 "¥¢¥ê¡¼¥Ê¤Ç¤Î¾¡Íø¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_arena,                TRUE, 10, 4, 21,
-        "record_arena",                 "Record arena victories" },
+       { &record_arena,                TRUE, 10, 4, 21,
+       "record_arena",                 "Record arena victories" },
 #endif
 
 #ifdef JP
-        { &record_ident,                TRUE, 10, 4, 22,
-        "record_ident",                 "̤ȽÌÀ¤Î¥¢¥¤¥Æ¥à¤Î¼±Ê̤òµ­Ï¿¤¹¤ë" },
+       { &record_ident,                TRUE, 10, 4, 22,
+       "record_ident",                 "̤ȽÌÀ¤Î¥¢¥¤¥Æ¥à¤Î¼±Ê̤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_ident,                TRUE, 10, 4, 22,
-        "record_ident",                 "Record first identified items" },
+       { &record_ident,                TRUE, 10, 4, 22,
+       "record_ident",                 "Record first identified items" },
 #endif
 
 #ifdef JP
-        { &record_named_pet,            FALSE, 10, 4, 23,
-        "record_named_pet",             "̾Á°¤Ä¤­¥Ú¥Ã¥È¤Î¾ðÊó¤òµ­Ï¿¤¹¤ë" },
+       { &record_named_pet,            FALSE, 10, 4, 23,
+       "record_named_pet",             "̾Á°¤Ä¤­¥Ú¥Ã¥È¤Î¾ðÊó¤òµ­Ï¿¤¹¤ë" },
 #else
-        { &record_named_pet,            FALSE, 10, 4, 23,
-        "record_named_pet",             "Record informations of named pets" },
+       { &record_named_pet,            FALSE, 10, 4, 23,
+       "record_named_pet",             "Record informations of named pets" },
 #endif
 
 
index c49ad17..c3d52e5 100644 (file)
@@ -260,7 +260,7 @@ struct monster_race
 {
        u32b name;                              /* Name (offset) */
 #ifdef JP
-        u32b E_name;                    /* ±Ñ¸ì̾ (offset) */
+       u32b E_name;                    /* ±Ñ¸ì̾ (offset) */
 #endif
        u32b text;                              /* Text (offset) */
 
@@ -1066,7 +1066,7 @@ struct player_type
        s16b tim_sh_holy;
        s16b tim_eyeeye;
 
-        /* for mirror master */
+       /* for mirror master */
        s16b tim_reflect;       /* Timed -- Reflect */
        s16b multishadow;       /* Timed -- Multi-shadow */
        s16b dustrobe;          /* Timed -- Robe of dust */
index 050f735..c20af2f 100644 (file)
@@ -684,12 +684,12 @@ int fd_make(cptr file, int mode)
 # if defined(MACINTOSH) && defined(MAC_MPW)
 
        /* setting file type and creator -- AR */
-        {
-                errr errr_tmp;
-                errr_tmp = open(buf, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, mode);
-                fsetfileinfo(file, _fcreator, _ftype);
-                return(errr_tmp);
-        }
+       {
+               errr errr_tmp;
+               errr_tmp = open(buf, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, mode);
+               fsetfileinfo(file, _fcreator, _ftype);
+               return(errr_tmp);
+       }
 
 # else
        /* Create the file, fail if exists, write-only, binary */
@@ -1149,7 +1149,7 @@ void text_to_ascii(char *buf, cptr str)
                        /* Skip the backslash */
                        str++;
 
-                        /* Macro Trigger */
+                       /* Macro Trigger */
                        if (*str == '[')
                        {
                                trigger_text_to_ascii(&s, &str);
@@ -1636,7 +1636,7 @@ static bool parse_under = FALSE;
 void flush(void)
 {
        /* Do it later */
-        inkey_xtra = TRUE;
+       inkey_xtra = TRUE;
 }
 
 
@@ -2359,7 +2359,7 @@ void message_add(cptr str)
  for (t = buf; *t && (*t != '<' || (*(t+1) != 'x' )); t++) 
      if( iskanji(*t))t++;
 #else
-                for (t = buf; *t && (*t != '<'); t++);
+               for (t = buf; *t && (*t != '<'); t++);
 #endif
 
                if (*t)
@@ -2953,7 +2953,7 @@ void c_roff(byte a, cptr str)
                        /* Clear line, move cursor */
                        Term_erase(x, y, 255);
 
-                        break;
+                       break;
                }
 
                /* Clean up the char */
@@ -3053,7 +3053,7 @@ void c_roff(byte a, cptr str)
 
                /* Dump */
 #ifdef JP
-                Term_addch((byte)(a|0x10), ch);
+               Term_addch((byte)(a|0x10), ch);
 #else
                Term_addch(a, ch);
 #endif
@@ -3192,28 +3192,28 @@ bool askfor_aux(char *buf, int len)
                default:
 #ifdef JP
        {                       /* ÊÒ»³¤µ¤óºîÀ® */
-                int next;
-
-                                if (iskanji (i)) {
-                                        inkey_base = TRUE;
-                                        next = inkey ();
-                                        if (k+1 < len) {
-                                                buf[k++] = i;
-                                                buf[k] = next;
-                                                k_flag[k++] = 1;
-                                        } else
-                                                bell();
-                                } else {
+               int next;
+
+                               if (iskanji (i)) {
+                                       inkey_base = TRUE;
+                                       next = inkey ();
+                                       if (k+1 < len) {
+                                               buf[k++] = i;
+                                               buf[k] = next;
+                                               k_flag[k++] = 1;
+                                       } else
+                                               bell();
+                               } else {
 #ifdef SJIS
-                    if(k<len && (isprint(i) || (0xa0<=i && i<=0xdf))){
+                   if(k<len && (isprint(i) || (0xa0<=i && i<=0xdf))){
 #else
-                    if(k<len && isprint(i)){
+                   if(k<len && isprint(i)){
 #endif
-                                                buf[k] = i;
-                                                k_flag[k++] = 0;
-                                        } else
-                                                bell();
-                              }
+                                               buf[k] = i;
+                                               k_flag[k++] = 0;
+                                       } else
+                                               bell();
+                              }
                 }
 #else
                        if ((k < len) && (isprint(i)))
@@ -4015,7 +4015,7 @@ void request_command(int shopping)
        cptr act;
 
 #ifdef JP
-        int caretcmd = 0;
+       int caretcmd = 0;
 #endif
        /* Roguelike */
        if (rogue_like_commands)
@@ -4290,20 +4290,20 @@ prt(format("
        }
 
 #ifdef JP
-        for (i = 0; i < 256; i++)
-        {
-                cptr s;
-                if ((s = keymap_act[mode][i]) != NULL)
-                {
-                        if (*s == command_cmd && *(s+1) == 0)
-                        {
-                                caretcmd = i;
-                                break;
-                        }
-                }
-        }
-        if (!caretcmd)
-                caretcmd = command_cmd;
+       for (i = 0; i < 256; i++)
+       {
+               cptr s;
+               if ((s = keymap_act[mode][i]) != NULL)
+               {
+                       if (*s == command_cmd && *(s+1) == 0)
+                       {
+                               caretcmd = i;
+                               break;
+                       }
+               }
+       }
+       if (!caretcmd)
+               caretcmd = command_cmd;
 #endif
        /* Hack -- Scan equipment */
        for (i = INVEN_RARM; i < INVEN_TOTAL; i++)
@@ -4329,7 +4329,7 @@ prt(format("
                {
                        /* Check the "restriction" character */
 #ifdef JP
-                        if ((s[1] == caretcmd) || (s[1] == '*'))
+                       if ((s[1] == caretcmd) || (s[1] == '*'))
 #else
                        if ((s[1] == command_cmd) || (s[1] == '*'))
 #endif
@@ -4462,8 +4462,8 @@ int get_keymap_dir(char ch)
        }
        else
        {
-                int mode;
-                cptr act, s;
+               int mode;
+               cptr act, s;
 
                /* Roguelike */
                if (rogue_like_commands)
@@ -4921,16 +4921,16 @@ size_t my_strcpy(char *buf, const char *src, size_t bufsize)
 
        /* Copy as many bytes as will fit */
        while (len < bufsize)
-        {
+       {
                if (iskanji(*s))
-                {
+               {
                        if (len + 1 >= bufsize || !*(s+1)) break;
                        *d++ = *s++;
                        *d++ = *s++;
                        len += 2;
                }
-                else
-                {
+               else
+               {
                        *d++ = *s++;
                        len++;
                }
index 8521d77..bd38974 100644 (file)
@@ -613,7 +613,7 @@ static void generate_area(int y, int x, bool border, bool corner)
                Rand_quick = TRUE;
 
                /* Hack -- Induce consistant town layout */
-                Rand_value = wilderness[y][x].seed;
+               Rand_value = wilderness[y][x].seed;
 
                dy = rand_range(6, cur_hgt - 6);
                dx = rand_range(6, cur_wid - 6);
@@ -641,7 +641,7 @@ void wilderness_gen(void)
        int i, y, x, lim;
        cave_type *c_ptr;
 
-       /* Big town */
+       /* Big town */
        cur_hgt = MAX_HGT;
        cur_wid = MAX_WID;
 
@@ -864,21 +864,21 @@ void wilderness_gen(void)
  */
 void wilderness_gen_small()
 {
-        int i, j;
+       int i, j;
 
-        /* To prevent stupid things */
-        for (i = 0; i < MAX_WID; i++)
-        for (j = 0; j < MAX_HGT; j++)
+       /* To prevent stupid things */
+       for (i = 0; i < MAX_WID; i++)
+       for (j = 0; j < MAX_HGT; j++)
        {
-                cave[j][i].feat = FEAT_PERM_SOLID;
+               cave[j][i].feat = FEAT_PERM_SOLID;
        }
 
        /* Init the wilderness */
        process_dungeon_file("w_info_j.txt", 0, 0, max_wild_y, max_wild_x);
 
-        /* Fill the map */
-        for (i = 0; i < max_wild_x; i++)
-        for (j = 0; j < max_wild_y; j++)
+       /* Fill the map */
+       for (i = 0; i < max_wild_x; i++)
+       for (j = 0; j < max_wild_y; j++)
        {
                if (wilderness[j][i].town && (wilderness[j][i].town != NO_TOWN))
                {
@@ -891,9 +891,9 @@ void wilderness_gen_small()
                        cave[j][i].feat = FEAT_ENTRANCE;
                        cave[j][i].special = (byte)wilderness[j][i].entrance;
                }
-                else cave[j][i].feat = conv_terrain2feat[wilderness[j][i].terrain];
+               else cave[j][i].feat = conv_terrain2feat[wilderness[j][i].terrain];
 
-                cave[j][i].info |= (CAVE_GLOW | CAVE_MARK);
+               cave[j][i].info |= (CAVE_GLOW | CAVE_MARK);
        }
 
        cur_hgt = (max_wild_y / SCREEN_HGT + 1) * SCREEN_HGT;
@@ -906,9 +906,9 @@ void wilderness_gen_small()
        panel_row_min = cur_hgt;
        panel_col_min = cur_wid;
 
-        /* Place the player */
-        px = p_ptr->wilderness_x;
-        py = p_ptr->wilderness_y;
+       /* Place the player */
+       px = p_ptr->wilderness_x;
+       py = p_ptr->wilderness_y;
 
        p_ptr->town_num = 0;
 }
index f2abefb..53e8020 100644 (file)
@@ -1314,7 +1314,7 @@ static void print_header(void)
        char buf[80];
 
        sprintf(buf, "Artifact Spoilers for Hengband Version %d.%d.%d",
-               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
+               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
        spoiler_underline(buf);
 }
 
@@ -1682,7 +1682,7 @@ static void spoil_mon_desc(cptr fname)
 
        /* Dump the header */
        fprintf(fff, "Monster Spoilers for Hengband Version %d.%d.%d\n",
-               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
+               FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
        fprintf(fff, "------------------------------------------\n\n");
 
        /* Dump the header */
@@ -1701,12 +1701,12 @@ static void spoil_mon_desc(cptr fname)
                if (r_ptr->name) who[n++] = i;
        }
 
-        /* Select the sort method */
-        ang_sort_comp = ang_sort_comp_hook;
-        ang_sort_swap = ang_sort_swap_hook;
+       /* Select the sort method */
+       ang_sort_comp = ang_sort_comp_hook;
+       ang_sort_swap = ang_sort_swap_hook;
 
-        /* Sort the array by dungeon depth of monsters */
-        ang_sort(who, &why, n);
+       /* Sort the array by dungeon depth of monsters */
+       ang_sort(who, &why, n);
 
        /* Scan again */
        for (i = 0; i < n; i++)
@@ -1847,21 +1847,21 @@ static void spoil_out(cptr str)
        for (; *str; str++)
        {
 #ifdef JP
-               char cbak;
-                int k_flag = iskanji((unsigned char)(*str));
+               char cbak;
+               int k_flag = iskanji((unsigned char)(*str));
 #endif
                char ch = *str;
                int wrap = (ch == '\n');
 
 #ifdef JP
-                if (!isprint(ch) && !k_flag && !iskanji2) ch = ' ';
+               if (!isprint(ch) && !k_flag && !iskanji2) ch = ' ';
                if(k_flag && !iskanji2)iskanji2=1;else iskanji2=0;
 #else
                if (!isprint(ch)) ch = ' ';
 #endif
 
 #ifdef JP
-                if ( roff_p >= roff_buf+( (k_flag) ? 74 : 75) ) wrap=1;
+               if ( roff_p >= roff_buf+( (k_flag) ? 74 : 75) ) wrap=1;
                if ((ch == ' ') && (roff_p + 2 >= roff_buf + ((k_flag) ? 74 : 75))) wrap = 1;
 #else
                if (roff_p >= roff_buf + 75) wrap = 1;
@@ -1875,12 +1875,12 @@ static void spoil_out(cptr str)
                        *roff_p = '\0';
                        r = roff_p;
 #ifdef JP
-                                cbak=' ';
+                               cbak=' ';
 #endif
                        if (roff_s && (ch != ' '))
                        {
 #ifdef JP
-                               cbak=*roff_s;
+                               cbak=*roff_s;
 #endif
                                *roff_s = '\0';
                                r = roff_s + 1;
@@ -1903,9 +1903,9 @@ static void spoil_out(cptr str)
                  }
                  else{
                    if( iskanji2 && 
-                        strncmp(str, "¡£", 2) != 0 && 
+                       strncmp(str, "¡£", 2) != 0 && 
                        strncmp(str, "¡¢", 2) != 0 &&
-                       strncmp(str, "¥£", 2) != 0 &&
+                       strncmp(str, "¥£", 2) != 0 &&
                        strncmp(str, "¡¼", 2) != 0) roff_s = roff_p;
                  }
 #else
index 9da64fc..2046d79 100644 (file)
@@ -550,24 +550,24 @@ static void wiz_display_item(object_type *o_ptr)
        prt(buf, 2, j);
 
        prt(format("kind = %-5d  level = %-4d  tval = %-5d  sval = %-5d",
-                  o_ptr->k_idx, get_object_level(o_ptr),
-                  o_ptr->tval, o_ptr->sval), 4, j);
+                  o_ptr->k_idx, get_object_level(o_ptr),
+                  o_ptr->tval, o_ptr->sval), 4, j);
 
        prt(format("number = %-3d  wgt = %-6d  ac = %-5d    damage = %dd%d",
-                  o_ptr->number, o_ptr->weight,
-                  o_ptr->ac, o_ptr->dd, o_ptr->ds), 5, j);
+                  o_ptr->number, o_ptr->weight,
+                  o_ptr->ac, o_ptr->dd, o_ptr->ds), 5, j);
 
        prt(format("pval = %-5d  toac = %-5d  tohit = %-4d  todam = %-4d",
-                  o_ptr->pval, o_ptr->to_a, o_ptr->to_h, o_ptr->to_d), 6, j);
+                  o_ptr->pval, o_ptr->to_a, o_ptr->to_h, o_ptr->to_d), 6, j);
 
        prt(format("name1 = %-4d  name2 = %-4d  cost = %ld",
-                  o_ptr->name1, o_ptr->name2, (long)object_value(o_ptr)), 7, j);
+                  o_ptr->name1, o_ptr->name2, (long)object_value(o_ptr)), 7, j);
 
        prt(format("ident = %04x  xtra1 = %-4d  xtra2 = %-4d  timeout = %-d",
-                  o_ptr->ident, o_ptr->xtra1, o_ptr->xtra2, o_ptr->timeout), 8, j);
+                  o_ptr->ident, o_ptr->xtra1, o_ptr->xtra2, o_ptr->timeout), 8, j);
 
        prt(format("xtra3 = %-4d  xtra4 = %-4d  xtra5 = %-4d  cursed  = %-d",
-                  o_ptr->xtra3, o_ptr->xtra4, o_ptr->xtra5, o_ptr->curse_flags), 9, j);
+                  o_ptr->xtra3, o_ptr->xtra4, o_ptr->xtra5, o_ptr->curse_flags), 9, j);
 
        prt("+------------FLAGS1------------+", 10, j);
        prt("AFFECT........SLAY........BRAND.", 11, j);
@@ -1225,7 +1225,7 @@ static void do_cmd_wiz_play(void)
        {
                o_ptr = &o_list[0 - item];
        }
-        
+       
        /* The item was not changed */
        changed = FALSE;
 
@@ -1292,12 +1292,12 @@ static void do_cmd_wiz_play(void)
                /* Message */
                msg_print("Changes accepted.");
 
-                /* Recalcurate object's weight */
-                if (item >= 0)
-                {
-                        p_ptr->total_weight += (q_ptr->weight * q_ptr->number)
-                                - (o_ptr->weight * o_ptr->number);
-                }
+               /* Recalcurate object's weight */
+               if (item >= 0)
+               {
+                       p_ptr->total_weight += (q_ptr->weight * q_ptr->number)
+                               - (o_ptr->weight * o_ptr->number);
+               }
 
                /* Change */
                object_copy(o_ptr, q_ptr);
@@ -1365,12 +1365,12 @@ static void wiz_create_item(void)
                        if (a_info[i].sval != k_info[k_idx].sval) continue;
 
                        /* Create this artifact */
-                        create_named_art(i, py, px);
+                       create_named_art(i, py, px);
 
-                        /* All done */
-                        msg_print("Allocated(INSTA_ART).");
+                       /* All done */
+                       msg_print("Allocated(INSTA_ART).");
 
-                        return;
+                       return;
                }
        }
 
@@ -1380,8 +1380,8 @@ static void wiz_create_item(void)
        /* Create the item */
        object_prep(q_ptr, k_idx);
 
-        /* Apply magic */
-        apply_magic(q_ptr, dun_level, FALSE, FALSE, FALSE, FALSE);
+       /* Apply magic */
+       apply_magic(q_ptr, dun_level, FALSE, FALSE, FALSE, FALSE);
 
        /* Drop the object from heaven */
        (void)drop_near(q_ptr, -1, py, px);
@@ -1499,8 +1499,8 @@ static void do_cmd_wiz_jump(void)
        p_ptr->leftbldg = FALSE;
        energy_use = 0;
 
-        /* Prevent energy_need from being too lower than 0 */
-        p_ptr->energy_need = 0;
+       /* Prevent energy_need from being too lower than 0 */
+       p_ptr->energy_need = 0;
 
        /* Leaving */
        p_ptr->leaving = TRUE;
index 726d197..6ab07af 100644 (file)
@@ -175,7 +175,7 @@ cptr map_name(void)
 #ifdef JP
                return "¥¯¥¨¥¹¥È";
 #else
-               return "Quest";
+               return "Quest";
 #endif
        else if (p_ptr->wild_mode)
 #ifdef JP
@@ -563,7 +563,7 @@ static void prt_status(void)
        /* tim levitation */
        if (p_ptr->tim_ffall) ADD_FLG(BAR_LEVITATE);
 
-       if (p_ptr->tim_res_nether) ADD_FLG(BAR_RESNETH);
+       if (p_ptr->tim_res_nether) ADD_FLG(BAR_RESNETH);
 
        if (p_ptr->dustrobe) ADD_FLG(BAR_DUSTROBE);
 
@@ -655,7 +655,7 @@ static void prt_title(void)
        if (p_ptr->wizard)
        {
 #ifdef JP
-                /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½ ¾Î¹æ */
+               /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½ ¾Î¹æ */
                p = "[¥¦¥£¥¶¡¼¥É]";
 #else
                p = "[=-WIZARD-=]";
@@ -679,7 +679,7 @@ static void prt_title(void)
                else
                {
 #ifdef JP
-                       /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½ ¾Î¹æ */
+                       /* ±ÑÆüÀÚ¤êÂؤ¨µ¡Ç½ ¾Î¹æ */
                        p = "***¾¡Íø¼Ô***";
 
 #else
@@ -755,11 +755,11 @@ static void prt_exp(void)
        if (p_ptr->exp >= p_ptr->max_exp)
        {
 #ifdef JP
-                if (p_ptr->prace == RACE_ANDROID) put_str("¶¯²½ ", ROW_EXP, 0);
+               if (p_ptr->prace == RACE_ANDROID) put_str("¶¯²½ ", ROW_EXP, 0);
                else put_str("·Ð¸³ ", ROW_EXP, 0);
                c_put_str(TERM_L_GREEN, out_val, ROW_EXP, COL_EXP + 5);
 #else
-                if (p_ptr->prace == RACE_ANDROID) put_str("Cst ", ROW_EXP, 0);
+               if (p_ptr->prace == RACE_ANDROID) put_str("Cst ", ROW_EXP, 0);
                else put_str("EXP ", ROW_EXP, 0);
                c_put_str(TERM_L_GREEN, out_val, ROW_EXP, COL_EXP + 4);
 #endif
@@ -2106,17 +2106,17 @@ static void calc_spells(void)
                if (num_allowed>(80+bonus)) num_allowed = 80+bonus;
        }
 
-        /* Count the number of spells we know */
-        for (j = 0; j < 64; j++)
+       /* Count the number of spells we know */
+       for (j = 0; j < 64; j++)
        {
                /* Count known spells */
                if ((j < 32) ?
-                    (p_ptr->spell_forgotten1 & (1L << j)) :
-                    (p_ptr->spell_forgotten2 & (1L << (j - 32))))
+                   (p_ptr->spell_forgotten1 & (1L << j)) :
+                   (p_ptr->spell_forgotten2 & (1L << (j - 32))))
                {
                        num_boukyaku++;
-                }
-        }
+               }
+       }
 
        /* See how many spells we must forget or may learn */
        p_ptr->new_spells = num_allowed + p_ptr->add_spells + num_boukyaku - p_ptr->learned_spells;
@@ -2181,7 +2181,7 @@ static void calc_spells(void)
 
                        /* Message */
 #ifdef JP
-                        msg_format("%s¤Î%s¤ò˺¤ì¤Æ¤·¤Þ¤Ã¤¿¡£",
+                       msg_format("%s¤Î%s¤ò˺¤ì¤Æ¤·¤Þ¤Ã¤¿¡£",
                                   spell_names[technic2magic(which)-1][j%32], p );
 #else
                        msg_format("You have forgotten the %s of %s.", p,
@@ -2241,11 +2241,11 @@ static void calc_spells(void)
 
                        /* Message */
 #ifdef JP
-                        msg_format("%s¤Î%s¤ò˺¤ì¤Æ¤·¤Þ¤Ã¤¿¡£",
+                       msg_format("%s¤Î%s¤ò˺¤ì¤Æ¤·¤Þ¤Ã¤¿¡£",
                                   spell_names[technic2magic(which)-1][j%32], p );
 #else
                        msg_format("You have forgotten the %s of %s.", p,
-                                  spell_names[technic2magic(which)-1][j%32]);
+                                  spell_names[technic2magic(which)-1][j%32]);
 #endif
 
 
@@ -2317,11 +2317,11 @@ static void calc_spells(void)
 
                        /* Message */
 #ifdef JP
-                        msg_format("%s¤Î%s¤ò»×¤¤½Ð¤·¤¿¡£",
+                       msg_format("%s¤Î%s¤ò»×¤¤½Ð¤·¤¿¡£",
                                   spell_names[technic2magic(which)-1][j%32], p );
 #else
                        msg_format("You have remembered the %s of %s.",
-                                  p, spell_names[technic2magic(which)-1][j%32]);
+                                  p, spell_names[technic2magic(which)-1][j%32]);
 #endif
 
 
@@ -2373,8 +2373,8 @@ static void calc_spells(void)
                        }
 #else
                        msg_format("You can learn %d more %s%s.",
-                                  p_ptr->new_spells, p,
-                                  (p_ptr->new_spells != 1) ? "s" : "");
+                                  p_ptr->new_spells, p,
+                                  (p_ptr->new_spells != 1) ? "s" : "");
 #endif
 
                }
@@ -2385,8 +2385,8 @@ static void calc_spells(void)
                /* Redraw Study Status */
                p_ptr->redraw |= (PR_STUDY);
 
-                /* Redraw object recall */
-                p_ptr->window |= (PW_OBJECT);
+               /* Redraw object recall */
+               p_ptr->window |= (PW_OBJECT);
        }
 }
 
@@ -2647,12 +2647,12 @@ static void calc_mana(void)
                }
 
 #ifdef JP
-                /* ¥ì¥Ù¥ë¥¢¥Ã¥×¤Î»þ¤Ï¾å¾ºÎ̤òɽ¼¨¤¹¤ë */
-                if ((level_up == 1) && (msp > p_ptr->msp))
-                {
-                        msg_format("ºÇÂç¥Þ¥¸¥Ã¥¯¡¦¥Ý¥¤¥ó¥È¤¬ %d Áý²Ã¤·¤¿¡ª",
-                                   (msp - p_ptr->msp));
-                }
+               /* ¥ì¥Ù¥ë¥¢¥Ã¥×¤Î»þ¤Ï¾å¾ºÎ̤òɽ¼¨¤¹¤ë */
+               if ((level_up == 1) && (msp > p_ptr->msp))
+               {
+                       msg_format("ºÇÂç¥Þ¥¸¥Ã¥¯¡¦¥Ý¥¤¥ó¥È¤¬ %d Áý²Ã¤·¤¿¡ª",
+                                  (msp - p_ptr->msp));
+               }
 #endif
                /* Save new mana */
                p_ptr->msp = msp;
@@ -2786,12 +2786,12 @@ static void calc_hitpoints(void)
                }
 
 #ifdef JP
-                /* ¥ì¥Ù¥ë¥¢¥Ã¥×¤Î»þ¤Ï¾å¾ºÎ̤òɽ¼¨¤¹¤ë */
-                if ((level_up == 1) && (mhp > p_ptr->mhp))
-                {
-                        msg_format("ºÇÂç¥Ò¥Ã¥È¡¦¥Ý¥¤¥ó¥È¤¬ %d Áý²Ã¤·¤¿¡ª",
-                                   (mhp - p_ptr->mhp) );
-                }
+               /* ¥ì¥Ù¥ë¥¢¥Ã¥×¤Î»þ¤Ï¾å¾ºÎ̤òɽ¼¨¤¹¤ë */
+               if ((level_up == 1) && (mhp > p_ptr->mhp))
+               {
+                       msg_format("ºÇÂç¥Ò¥Ã¥È¡¦¥Ý¥¤¥ó¥È¤¬ %d Áý²Ã¤·¤¿¡ª",
+                                  (mhp - p_ptr->mhp) );
+               }
 #endif
                /* Save the new max-hitpoints */
                p_ptr->mhp = mhp;
@@ -2896,9 +2896,9 @@ static void calc_torch(void)
                p_ptr->cur_lite = 1;
 
        /*
-         * check if the player doesn't have light radius, 
+        * check if the player doesn't have light radius, 
         * but does weakly glow as an intrinsic.
-         */
+        */
        if (p_ptr->cur_lite <= 0 && p_ptr->lite) p_ptr->cur_lite++;
 
        if (p_ptr->cur_lite > 14) p_ptr->cur_lite = 14;
@@ -3303,33 +3303,33 @@ void calc_bonuses(void)
                switch(p_ptr->mimic_form)
                {
                case MIMIC_DEMON:
-                        p_ptr->hold_life=TRUE;
-                        p_ptr->resist_chaos=TRUE;
-                        p_ptr->resist_neth=TRUE;
-                        p_ptr->resist_fire=TRUE;
+                       p_ptr->hold_life=TRUE;
+                       p_ptr->resist_chaos=TRUE;
+                       p_ptr->resist_neth=TRUE;
+                       p_ptr->resist_fire=TRUE;
                        p_ptr->oppose_fire = 1;
-                        p_ptr->see_inv=TRUE;
+                       p_ptr->see_inv=TRUE;
                        p_ptr->pspeed += 3;
                        p_ptr->redraw |= PR_STATUS;
                        p_ptr->to_a += 10;
                        p_ptr->dis_to_a += 10;
                        break;
                case MIMIC_DEMON_LORD:
-                        p_ptr->hold_life=TRUE;
-                        p_ptr->resist_chaos=TRUE;
-                        p_ptr->resist_neth=TRUE;
-                        p_ptr->immune_fire=TRUE;
-                        p_ptr->resist_acid = TRUE;
-                        p_ptr->resist_fire=TRUE;
-                        p_ptr->resist_cold = TRUE;
-                        p_ptr->resist_elec = TRUE;
-                        p_ptr->resist_pois = TRUE;
-                        p_ptr->resist_conf = TRUE;
-                        p_ptr->resist_disen = TRUE;
-                        p_ptr->resist_nexus = TRUE;
-                        p_ptr->resist_fear = TRUE;
-                        p_ptr->sh_fire = TRUE;
-                        p_ptr->see_inv = TRUE;
+                       p_ptr->hold_life=TRUE;
+                       p_ptr->resist_chaos=TRUE;
+                       p_ptr->resist_neth=TRUE;
+                       p_ptr->immune_fire=TRUE;
+                       p_ptr->resist_acid = TRUE;
+                       p_ptr->resist_fire=TRUE;
+                       p_ptr->resist_cold = TRUE;
+                       p_ptr->resist_elec = TRUE;
+                       p_ptr->resist_pois = TRUE;
+                       p_ptr->resist_conf = TRUE;
+                       p_ptr->resist_disen = TRUE;
+                       p_ptr->resist_nexus = TRUE;
+                       p_ptr->resist_fear = TRUE;
+                       p_ptr->sh_fire = TRUE;
+                       p_ptr->see_inv = TRUE;
                        p_ptr->telepathy = TRUE;
                        p_ptr->ffall = TRUE;
                        p_ptr->kill_wall = TRUE;
@@ -3928,23 +3928,23 @@ void calc_bonuses(void)
                {
                        if (cursed_p(o_ptr)) p_ptr->cursed |= TRC_TELEPORT;
                        else
-                        {
-                                cptr insc = quark_str(o_ptr->inscription);
-
-                                if (o_ptr->inscription &&
-                                    (strchr(insc, '.') || strchr(insc, '%')))
-                                {
-                                        /*
-                                         * {.} will stop random teleportation.
-                                         * {%} includes '.' after conversion.
-                                         */
-                                }
-                                else
-                                {
-                                        /* Controlled random teleportation */
-                                        p_ptr->cursed |= TRC_TELEPORT_SELF;
-                                }
-                        }
+                       {
+                               cptr insc = quark_str(o_ptr->inscription);
+
+                               if (o_ptr->inscription &&
+                                   (strchr(insc, '.') || strchr(insc, '%')))
+                               {
+                                       /*
+                                        * {.} will stop random teleportation.
+                                        * {%} includes '.' after conversion.
+                                        */
+                               }
+                               else
+                               {
+                                       /* Controlled random teleportation */
+                                       p_ptr->cursed |= TRC_TELEPORT_SELF;
+                               }
+                       }
                }
 
                /* Immunity flags */
@@ -5458,9 +5458,9 @@ msg_print("
        j = 0;
        p_ptr->align = friend_align;
 
-        /* Determine player alignment */
-        for (i = 0; i < 8; i++)
-        {
+       /* Determine player alignment */
+       for (i = 0; i < 8; i++)
+       {
                if ((p_ptr->vir_types[i] == V_HARMONY) || (p_ptr->vir_types[i] == V_NATURE))
                {
                        neutral[j] = i;
@@ -5469,7 +5469,7 @@ msg_print("
                else if (p_ptr->vir_types[i] == V_UNLIFE) p_ptr->align -= p_ptr->virtues[i];
                else if (p_ptr->vir_types[i] == V_JUSTICE) p_ptr->align += (p_ptr->virtues[i]*2);
                else if (p_ptr->vir_types[i] != V_CHANCE) p_ptr->align += p_ptr->virtues[i];
-        }
+       }
        if ((inventory[INVEN_RARM].name1 == ART_IRON_BALL) || (inventory[INVEN_LARM].name1 == ART_IRON_BALL)) p_ptr->align -= 1000;
        if (prace_is_(RACE_ANGEL)) p_ptr->align += 200;
        if ((prace_is_(RACE_DEMON)) || (p_ptr->mimic_form == MIMIC_DEMON_LORD) || (p_ptr->mimic_form == MIMIC_DEMON)) p_ptr->align -= 200;
@@ -5659,7 +5659,7 @@ void update_stuff(void)
        {
                p_ptr->update &= ~(PU_DISTANCE);
 
-                /* Still need to call update_monsters(FALSE) after update_mon_lite() */ 
+               /* Still need to call update_monsters(FALSE) after update_mon_lite() */ 
                /* p_ptr->update &= ~(PU_MONSTERS); */
 
                update_monsters(TRUE);
@@ -6016,20 +6016,20 @@ bool heavy_armor(void)
 
 int number_of_quests(void)
 {
-        int i, j;
-
-        /* Clear the counter */
-        i = 0;
-
-        for (j = MIN_RANDOM_QUEST; j < MAX_RANDOM_QUEST+1; j++)
-        {
-                if (quest[j].status != QUEST_STATUS_UNTAKEN)
-                {
-                        /* Increment count of quests taken. */
-                        i++;
-                }
-        }
-
-        /* Return the number of quests taken */
-        return (i);
+       int i, j;
+
+       /* Clear the counter */
+       i = 0;
+
+       for (j = MIN_RANDOM_QUEST; j < MAX_RANDOM_QUEST+1; j++)
+       {
+               if (quest[j].status != QUEST_STATUS_UNTAKEN)
+               {
+                       /* Increment count of quests taken. */
+                       i++;
+               }
+       }
+
+       /* Return the number of quests taken */
+       return (i);
 }
index 0ee635f..69c6712 100644 (file)
@@ -119,12 +119,12 @@ msg_format("
                p_ptr->window |= (PW_PLAYER | PW_SPELL);
 
                /* HP¤ÈMP¤Î¾å¾ºÎ̤òɽ¼¨ */
-                level_up = 1;
+               level_up = 1;
 
                /* Handle stuff */
                handle_stuff();
 
-                level_up = 0;
+               level_up = 0;
 
                if (level_inc_stat)
                {
@@ -935,7 +935,7 @@ msg_print("
        /* Bloodletters of Khorne may drop a blade of chaos */
        else if (m_ptr->r_idx == MON_BLOODLETTER &&
 
-                (randint1(100) < 15) &&
+                (randint1(100) < 15) &&
            !(p_ptr->inside_arena || p_ptr->inside_battle))
        {
                /* Get local object */
@@ -1613,15 +1613,15 @@ static void get_exp_from_mon(int dam, monster_type *m_ptr)
 #define M_INT_RSHIFT63(h1,l1) {l1=(l1>>1)|(h1<<30);h1>>=1;}
 #define M_INT_DIV63(h1,l1,h2,l2,result) \
                do{ \
-                 int bit=1; \
-                  result = 0; \
+                 int bit=1; \
+                 result = 0; \
                  while( M_INT_GREATER63(h1,l1, h2, l2) ){M_INT_LSHIFT63(h2, l2); bit<<=1;} \
                  for(bit>>=1; bit>=1; bit>>=1){ \
                    M_INT_RSHIFT63(h2, l2); \
                    if(M_INT_GREATER63(h1, l1, h2, l2)) \
                      {result|=bit;M_INT_SUB63(h1, l1, h2, l2);} \
                  } \
-                } while(0)
+               } while(0)
 
                /* Give some experience for the kill */
                M_INT_DIV63(m_exp_h, m_exp_l, div_h, div_l, new_exp);
@@ -2101,7 +2101,7 @@ msg_format("%s
                 * Run (sometimes) if at 10% or less of max hit points,
                 * or (usually) when hit for half its current hit points
                 */
-                if ((randint1(10) >= percentage) ||
+               if ((randint1(10) >= percentage) ||
                    ((dam >= m_ptr->hp) && (randint0(100) < 80)))
                {
                        /* Hack -- note fear */
@@ -2109,8 +2109,8 @@ msg_format("%s
 
                        /* XXX XXX XXX Hack -- Add some timed fear */
                        m_ptr->monfear = (randint1(10) +
-                                         (((dam >= m_ptr->hp) && (percentage > 7)) ?
-                                          20 : ((11 - percentage) * 5)));
+                                         (((dam >= m_ptr->hp) && (percentage > 7)) ?
+                                          20 : ((11 - percentage) * 5)));
                }
        }
 
@@ -2810,10 +2810,10 @@ static bool target_set_accept(int y, int x)
        /* Interesting memorized features */
        if (c_ptr->info & (CAVE_MARK))
        {
-                byte feat;
+               byte feat;
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Notice glyphs */
                if (c_ptr->info & CAVE_OBJECT) return (TRUE);
@@ -3305,8 +3305,8 @@ s2 = "
 
                                /* Use a preposition */
 #ifdef JP
-                              s2 = "¤Î¾å";
-                              s3 = "¤Ë¤¤¤ë";
+                             s2 = "¤Î¾å";
+                             s3 = "¤Ë¤¤¤ë";
 #else
                                s2 = "on ";
 #endif
@@ -3416,12 +3416,12 @@ s1, o_name, s2, s3, info);
 
                                                        /* Remove the first object from the list. */
                                                        excise_object_idx(o_idx);
-       
+       
                                                        /* Find end of the list. */
                                                        i = c_ptr->o_idx;
                                                        while (o_list[i].next_o_idx)
                                                                i = o_list[i].next_o_idx;
-       
+       
                                                        /* Add after the last object. */
                                                        o_list[i].next_o_idx = o_idx;
                                                }
@@ -3505,8 +3505,8 @@ if (o_ptr->number != 1) s1 = "
                /* Double break */
                if (this_o_idx) break;
 
-                /* Feature code (applying "mimic" field) */
-                feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
+               /* Feature code (applying "mimic" field) */
+               feat = c_ptr->mimic ? c_ptr->mimic : f_info[c_ptr->feat].mimic;
 
                /* Require knowledge about grid, or ability to see grid */
                if (!(c_ptr->info & CAVE_MARK) && !player_can_see_bold(y, x))
@@ -3532,11 +3532,11 @@ if (o_ptr->number != 1) s1 = "
 #else
                                name = format("%s(level %d)", d_text + d_info[c_ptr->special].text, d_info[c_ptr->special].mindepth);
 #endif
-                        }
+                       }
                        else if (feat == FEAT_TOWN)
                        {
                                name = town[c_ptr->special].name;
-                        }
+                       }
                        else if (p_ptr->wild_mode && (feat == FEAT_FLOOR))
                        {
 #ifdef JP
@@ -5574,15 +5574,15 @@ msg_print("
                                int dx = ddx[d];
                                int dy = ddy[d];
 
-                                /* XTRA HACK MOVEFAST */
-                                if (move_fast)
-                                {
-                                     x += dx * wid / 2;
-                                     y += dy * hgt / 2;
-                                } else {
-                                x += dx;
-                                y += dy;
-                                }
+                               /* XTRA HACK MOVEFAST */
+                               if (move_fast)
+                               {
+                                    x += dx * wid / 2;
+                                    y += dy * hgt / 2;
+                               } else {
+                               x += dx;
+                               y += dy;
+                               }
 
                                /* Do not move horizontally if unnecessary */
                                if (((x < panel_col_min + wid / 2) && (dx > 0)) ||
index 40d047f..00e6318 100644 (file)
@@ -612,7 +612,7 @@ void Term_queue_line(int x, int y, int n, byte *a, char *c)
 
                /* Hack -- Ignore non-changes */
                if ((*scr_aa == *a) && (*scr_cc == *c) &&
-                       (*scr_taa == *ta) && (*scr_tcc == *tc))
+                       (*scr_taa == *ta) && (*scr_tcc == *tc))
                {
                        x++;
                        a++;
@@ -687,7 +687,7 @@ void Term_queue_chars(int x, int y, int n, byte a, cptr s)
 
        byte *scr_aa = Term->scr->a[y];
 #ifdef JP
-        char *scr_cc = Term->scr->c[y];
+       char *scr_cc = Term->scr->c[y];
 
 #ifdef USE_TRANSPARENCY
        byte *scr_taa = Term->scr->ta[y];
@@ -707,19 +707,19 @@ void Term_queue_chars(int x, int y, int n, byte a, cptr s)
 
 
 #ifdef JP
-        /* É½¼¨Ê¸»ú¤Ê¤· */
-        if (n == 0 || *s == 0) return;
-        /*
-         * Á´³Ñʸ»ú¤Î±¦È¾Ê¬¤«¤éʸ»ú¤òɽ¼¨¤¹¤ë¾ì¹ç¡¢
-         * ½Å¤Ê¤Ã¤¿Ê¸»ú¤Îº¸Éôʬ¤ò¾Ãµî¡£
-         * É½¼¨³«»Ï°ÌÃÖ¤¬º¸Ã¼¤Ç¤Ê¤¤¤È²¾Äê¡£
-         */
-        if ((scr_aa[x] & KANJI2) && !(scr_aa[x] & 0x80))
-        {
-                scr_cc[x - 1] = ' ';
-                scr_aa[x - 1] &= KANJIC;
-                x1 = x2 = x - 1;
-        }
+       /* É½¼¨Ê¸»ú¤Ê¤· */
+       if (n == 0 || *s == 0) return;
+       /*
+        * Á´³Ñʸ»ú¤Î±¦È¾Ê¬¤«¤éʸ»ú¤òɽ¼¨¤¹¤ë¾ì¹ç¡¢
+        * ½Å¤Ê¤Ã¤¿Ê¸»ú¤Îº¸Éôʬ¤ò¾Ãµî¡£
+        * É½¼¨³«»Ï°ÌÃÖ¤¬º¸Ã¼¤Ç¤Ê¤¤¤È²¾Äê¡£
+        */
+       if ((scr_aa[x] & KANJI2) && !(scr_aa[x] & 0x80))
+       {
+               scr_cc[x - 1] = ' ';
+               scr_aa[x - 1] &= KANJIC;
+               x1 = x2 = x - 1;
+       }
 #endif
        /* Queue the attr/chars */
        for ( ; n; x++, s++, n--)
@@ -808,7 +808,7 @@ void Term_queue_chars(int x, int y, int n, byte a, cptr s)
                if (x != w && !(scr_aa[x] & 0x80) && (scr_aa[x] & KANJI2))
                {
                        scr_cc[x] = ' ';
-                        scr_aa[x] &= KANJIC;
+                       scr_aa[x] &= KANJIC;
                        if (x1 < 0) x1 = x;
                        x2 = x;
                }
@@ -918,9 +918,9 @@ static void Term_fresh_row_pict(int y, int x1, int x2)
 #ifdef JP
                if ((na == oa) && (nc == oc) && (nta == ota) && (ntc == otc)
                    &&(!kanji || (scr_aa[x + 1] == old_aa[x + 1] &&
-                                 scr_cc[x + 1] == old_cc[x + 1] &&
-                                  scr_taa[x + 1] == old_taa[x + 1] &&
-                                  scr_tcc[x + 1] == old_tcc[x + 1])))
+                                 scr_cc[x + 1] == old_cc[x + 1] &&
+                                 scr_taa[x + 1] == old_taa[x + 1] &&
+                                 scr_tcc[x + 1] == old_tcc[x + 1])))
 #else
                if ((na == oa) && (nc == oc) && (nta == ota) && (ntc == otc))
 #endif
@@ -932,7 +932,7 @@ static void Term_fresh_row_pict(int y, int x1, int x2)
 #ifdef JP
                if ((na == oa) && (nc == oc) &&
                    (!kanji || (scr_aa[x + 1] == old_aa[x + 1] &&
-                               scr_cc[x + 1] == old_cc[x + 1])))
+                               scr_cc[x + 1] == old_cc[x + 1])))
 #else
                if ((na == oa) && (nc == oc))
 #endif
@@ -1084,9 +1084,9 @@ static void Term_fresh_row_both(int y, int x1, int x2)
 #ifdef JP
                if ((na == oa) && (nc == oc) && (nta == ota) && (ntc == otc)&&
                    (!kanji || (scr_aa[x + 1] == old_aa[x + 1] &&
-                               scr_cc[x + 1] == old_cc[x + 1] &&
-                                scr_taa[x + 1] == old_taa[x + 1] &&
-                                scr_tcc[x + 1] == old_tcc[x + 1])))
+                               scr_cc[x + 1] == old_cc[x + 1] &&
+                               scr_taa[x + 1] == old_taa[x + 1] &&
+                               scr_tcc[x + 1] == old_tcc[x + 1])))
 #else
                if ((na == oa) && (nc == oc) && (nta == ota) && (ntc == otc))
 #endif
@@ -1098,7 +1098,7 @@ static void Term_fresh_row_both(int y, int x1, int x2)
 #ifdef JP
                if ((na == oa) && (nc == oc) &&
                    (!kanji || (scr_aa[x + 1] == old_aa[x + 1] &&
-                               scr_cc[x + 1] == old_cc[x + 1])))
+                               scr_cc[x + 1] == old_cc[x + 1])))
 #else
                if ((na == oa) && (nc == oc))
 #endif
@@ -1352,7 +1352,7 @@ static void Term_fresh_row_text(int y, int x1, int x2)
 #ifdef JP
                if ((na == oa) && (nc == oc) &&
                    (!kanji || (scr_aa[x + 1] == old_aa[x + 1] &&
-                               scr_cc[x + 1] == old_cc[x + 1])))
+                               scr_cc[x + 1] == old_cc[x + 1])))
 #else
                if ((na == oa) && (nc == oc))
 #endif
@@ -1833,26 +1833,26 @@ errr Term_fresh(void)
                if (!scr->cu && scr->cv)
                {
 #ifdef CHUUKEI
-                        send_curs_to_chuukei_server(scr->cx, scr->cy);
+                       send_curs_to_chuukei_server(scr->cx, scr->cy);
 #endif
 
 #ifdef JP
                        if ((scr->cx + 1 < w) &&
-                            ((old->a[scr->cy][scr->cx + 1] == 255) ||
-                             (!(old->a[scr->cy][scr->cx] & 0x80) &&
-                              iskanji(old->c[scr->cy][scr->cx]))))
+                           ((old->a[scr->cy][scr->cx + 1] == 255) ||
+                            (!(old->a[scr->cy][scr->cx] & 0x80) &&
+                             iskanji(old->c[scr->cy][scr->cx]))))
 #else
                        if ((scr->cx + 1 < w) && (old->a[scr->cy][scr->cx + 1] == 255))
 #endif
                        {
                                /* Double width cursor for the Bigtile mode */
-                                (void)((*Term->bigcurs_hook)(scr->cx, scr->cy));
-                        }
-                        else
-                        {
-                                /* Call the cursor display routine */
-                                (void)((*Term->curs_hook)(scr->cx, scr->cy));
-                        }
+                               (void)((*Term->bigcurs_hook)(scr->cx, scr->cy));
+                       }
+                       else
+                       {
+                               /* Call the cursor display routine */
+                               (void)((*Term->curs_hook)(scr->cx, scr->cy));
+                       }
                }
        }
 
@@ -2199,19 +2199,19 @@ errr Term_erase(int x, int y, int n)
 #endif /* USE_TRANSPARENCY */
 
 #ifdef JP
-        /*
-         * Á´³Ñʸ»ú¤Î±¦È¾Ê¬¤«¤éʸ»ú¤òɽ¼¨¤¹¤ë¾ì¹ç¡¢
-         * ½Å¤Ê¤Ã¤¿Ê¸»ú¤Îº¸Éôʬ¤ò¾Ãµî¡£
-         */
-        if (n > 0 && (((scr_aa[x] & KANJI2) && !(scr_aa[x] & 0x80))
+       /*
+        * Á´³Ñʸ»ú¤Î±¦È¾Ê¬¤«¤éʸ»ú¤òɽ¼¨¤¹¤ë¾ì¹ç¡¢
+        * ½Å¤Ê¤Ã¤¿Ê¸»ú¤Îº¸Éôʬ¤ò¾Ãµî¡£
+        */
+       if (n > 0 && (((scr_aa[x] & KANJI2) && !(scr_aa[x] & 0x80))
                      || ((byte)scr_cc[x] == 255 && scr_aa[x] == 255)))
 #else
-        if (n > 0 && (byte)scr_cc[x] == 255 && scr_aa[x] == 255)
+       if (n > 0 && (byte)scr_cc[x] == 255 && scr_aa[x] == 255)
 #endif
-        {
-                x--;
-                n++;
-        }
+       {
+               x--;
+               n++;
+       }
 
        /* Scan every column */
        for (i = 0; i < n; i++, x++)
@@ -2223,15 +2223,15 @@ errr Term_erase(int x, int y, int n)
                if ((oa == na) && (oc == nc)) continue;
 
 #ifdef JP
-                /*
-                 * Á´³Ñʸ»ú¤Îº¸È¾Ê¬¤Çɽ¼¨¤ò½ªÎ»¤¹¤ë¾ì¹ç¡¢
-                 * ½Å¤Ê¤Ã¤¿Ê¸»ú¤Î±¦Éôʬ¤ò¾Ãµî¡£
+               /*
+                * Á´³Ñʸ»ú¤Îº¸È¾Ê¬¤Çɽ¼¨¤ò½ªÎ»¤¹¤ë¾ì¹ç¡¢
+                * ½Å¤Ê¤Ã¤¿Ê¸»ú¤Î±¦Éôʬ¤ò¾Ãµî¡£
                 *
                 * 2001/04/29 -- Habu
                 * ¹Ô¤Î±¦Ã¼¤Î¾ì¹ç¤Ï¤³¤Î½èÍý¤ò¤·¤Ê¤¤¤è¤¦¤Ë½¤Àµ¡£
-                 */
-                if ((oa & KANJI1) && (i + 1) == n && x != w - 1)
-                        n++;
+                */
+               if ((oa & KANJI1) && (i + 1) == n && x != w - 1)
+                       n++;
 #endif
                /* Save the "literal" information */
                scr_aa[x] = na;
index 3405ef0..fa5daf1 100644 (file)
@@ -48,7 +48,7 @@ vptr rnfree(vptr p, huge len)
        {
                char buf[80];
                sprintf(buf, "Kill (%ld): %ld - %ld = %ld.",
-                       len, virt_make, virt_kill, virt_make - virt_kill);
+                       len, virt_make, virt_kill, virt_make - virt_kill);
                plog(buf);
        }
 
@@ -115,7 +115,7 @@ vptr ralloc(huge len)
        {
                char buf[80];
                sprintf(buf, "Make (%ld): %ld - %ld = %ld.",
-                       len, virt_make, virt_kill, virt_make - virt_kill);
+                       len, virt_make, virt_kill, virt_make - virt_kill);
                plog(buf);
        }