変愚蛮怒のメインリポジトリです
修订版 | 4d5eed2ab3dfdb3de3c794259f8d2d12d7d7f9a4 (tree) |
---|---|
时间 | 2017-08-28 23:45:29 |
作者 | Deskull <desull@user...> |
Commiter | Deskull |
#37449 (2.2.0.65) object_mention()関数の呼び出し位置整理。 / Rearrange call position of object_mention()
@@ -53,7 +53,7 @@ | ||
53 | 53 | #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ |
54 | 54 | #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ |
55 | 55 | #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ |
56 | -#define FAKE_VER_EXTRA 65 /*!< ゲームのバージョン番号定義(エクストラ番号) */ | |
56 | +#define FAKE_VER_EXTRA 66 /*!< ゲームのバージョン番号定義(エクストラ番号) */ | |
57 | 57 | |
58 | 58 | |
59 | 59 | /*! |
@@ -2716,10 +2716,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power) | ||
2716 | 2716 | { |
2717 | 2717 | if (one_in_(50) || (power > 2)) /* power > 2 is debug only */ |
2718 | 2718 | create_artifact(o_ptr, FALSE); |
2719 | - | |
2720 | - /* Mention the item */ | |
2721 | - if (cheat_peek) object_mention(o_ptr); | |
2722 | - | |
2723 | 2719 | break; |
2724 | 2720 | } |
2725 | 2721 |
@@ -2831,8 +2827,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power) | ||
2831 | 2827 | |
2832 | 2828 | if (o_ptr->sval == SV_DRAGON_SHIELD) |
2833 | 2829 | { |
2834 | - /* Mention the item */ | |
2835 | - if (cheat_peek) object_mention(o_ptr); | |
2836 | 2830 | dragon_resist(o_ptr); |
2837 | 2831 | if (!one_in_(3)) break; |
2838 | 2832 | } |
@@ -2881,8 +2875,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power) | ||
2881 | 2875 | { |
2882 | 2876 | if (o_ptr->sval == SV_SET_OF_DRAGON_GLOVES) |
2883 | 2877 | { |
2884 | - /* Mention the item */ | |
2885 | - if (cheat_peek) object_mention(o_ptr); | |
2886 | 2878 | dragon_resist(o_ptr); |
2887 | 2879 | if (!one_in_(3)) break; |
2888 | 2880 | } |
@@ -2909,8 +2901,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power) | ||
2909 | 2901 | { |
2910 | 2902 | if (o_ptr->sval == SV_PAIR_OF_DRAGON_GREAVE) |
2911 | 2903 | { |
2912 | - /* Mention the item */ | |
2913 | - if (cheat_peek) object_mention(o_ptr); | |
2914 | 2904 | dragon_resist(o_ptr); |
2915 | 2905 | if (!one_in_(3)) break; |
2916 | 2906 | } |
@@ -3017,8 +3007,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power) | ||
3017 | 3007 | { |
3018 | 3008 | if (o_ptr->sval == SV_DRAGON_HELM) |
3019 | 3009 | { |
3020 | - /* Mention the item */ | |
3021 | - if (cheat_peek) object_mention(o_ptr); | |
3022 | 3010 | dragon_resist(o_ptr); |
3023 | 3011 | if (!one_in_(3)) break; |
3024 | 3012 | } |
@@ -3138,6 +3126,8 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power) | ||
3138 | 3126 | break; |
3139 | 3127 | } |
3140 | 3128 | } |
3129 | + | |
3130 | + if (cheat_peek) object_mention(o_ptr); | |
3141 | 3131 | } |
3142 | 3132 | |
3143 | 3133 |
@@ -3238,9 +3228,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power) | ||
3238 | 3228 | break; |
3239 | 3229 | } |
3240 | 3230 | |
3241 | - /* Mention the item */ | |
3242 | - if (cheat_peek) object_mention(o_ptr); | |
3243 | - | |
3244 | 3231 | break; |
3245 | 3232 | } |
3246 | 3233 |
@@ -3745,9 +3732,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power) | ||
3745 | 3732 | /* gain one low ESP */ |
3746 | 3733 | add_esp_weak(o_ptr, FALSE); |
3747 | 3734 | |
3748 | - /* Mention the item */ | |
3749 | - if (cheat_peek) object_mention(o_ptr); | |
3750 | - | |
3751 | 3735 | break; |
3752 | 3736 | } |
3753 | 3737 |
@@ -4426,10 +4410,6 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode) | ||
4426 | 4410 | if (a_ptr->gen_flags & (TRG_RANDOM_CURSE1)) o_ptr->curse_flags |= get_curse(1, o_ptr); |
4427 | 4411 | if (a_ptr->gen_flags & (TRG_RANDOM_CURSE2)) o_ptr->curse_flags |= get_curse(2, o_ptr); |
4428 | 4412 | |
4429 | - | |
4430 | - /* Cheat -- peek at the item */ | |
4431 | - if (cheat_peek) object_mention(o_ptr); | |
4432 | - | |
4433 | 4413 | /* Done */ |
4434 | 4414 | return; |
4435 | 4415 | } |
@@ -4666,9 +4646,6 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode) | ||
4666 | 4646 | if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_HAYABUSA) && (o_ptr->pval > 2) && (o_ptr->name2 != EGO_ATTACKS)) |
4667 | 4647 | o_ptr->pval = 2; |
4668 | 4648 | } |
4669 | - | |
4670 | - /* Cheat -- describe the item */ | |
4671 | - if (cheat_peek) object_mention(o_ptr); | |
4672 | 4649 | |
4673 | 4650 | /* Done */ |
4674 | 4651 | return; |
@@ -4690,6 +4667,8 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode) | ||
4690 | 4667 | if (k_ptr->gen_flags & (TRG_RANDOM_CURSE1)) o_ptr->curse_flags |= get_curse(1, o_ptr); |
4691 | 4668 | if (k_ptr->gen_flags & (TRG_RANDOM_CURSE2)) o_ptr->curse_flags |= get_curse(2, o_ptr); |
4692 | 4669 | } |
4670 | + | |
4671 | + | |
4693 | 4672 | } |
4694 | 4673 | |
4695 | 4674 |
@@ -4857,14 +4836,6 @@ bool make_object(object_type *j_ptr, u32b mode) | ||
4857 | 4836 | obj_level = k_info[j_ptr->k_idx].level; |
4858 | 4837 | if (object_is_fixed_artifact(j_ptr)) obj_level = a_info[j_ptr->name1].level; |
4859 | 4838 | |
4860 | - /* Notice "okay" out-of-depth objects */ | |
4861 | - if (!object_is_cursed(j_ptr) && !object_is_broken(j_ptr) && | |
4862 | - (obj_level > dun_level)) | |
4863 | - { | |
4864 | - /* Cheat -- peek at items */ | |
4865 | - if (cheat_peek) object_mention(j_ptr); | |
4866 | - } | |
4867 | - | |
4868 | 4839 | /* Success */ |
4869 | 4840 | return (TRUE); |
4870 | 4841 | } |