• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

修订版4d5eed2ab3dfdb3de3c794259f8d2d12d7d7f9a4 (tree)
时间2017-08-28 23:45:29
作者Deskull <desull@user...>
CommiterDeskull

Log Message

#37449 (2.2.0.65) object_mention()関数の呼び出し位置整理。 / Rearrange call position of object_mention()

更改概述

差异

--- a/src/defines.h
+++ b/src/defines.h
@@ -53,7 +53,7 @@
5353 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
5454 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
5555 #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */
56-#define FAKE_VER_EXTRA 65 /*!< ゲームのバージョン番号定義(エクストラ番号) */
56+#define FAKE_VER_EXTRA 66 /*!< ゲームのバージョン番号定義(エクストラ番号) */
5757
5858
5959 /*!
--- a/src/object2.c
+++ b/src/object2.c
@@ -2716,10 +2716,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
27162716 {
27172717 if (one_in_(50) || (power > 2)) /* power > 2 is debug only */
27182718 create_artifact(o_ptr, FALSE);
2719-
2720- /* Mention the item */
2721- if (cheat_peek) object_mention(o_ptr);
2722-
27232719 break;
27242720 }
27252721
@@ -2831,8 +2827,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
28312827
28322828 if (o_ptr->sval == SV_DRAGON_SHIELD)
28332829 {
2834- /* Mention the item */
2835- if (cheat_peek) object_mention(o_ptr);
28362830 dragon_resist(o_ptr);
28372831 if (!one_in_(3)) break;
28382832 }
@@ -2881,8 +2875,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
28812875 {
28822876 if (o_ptr->sval == SV_SET_OF_DRAGON_GLOVES)
28832877 {
2884- /* Mention the item */
2885- if (cheat_peek) object_mention(o_ptr);
28862878 dragon_resist(o_ptr);
28872879 if (!one_in_(3)) break;
28882880 }
@@ -2909,8 +2901,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
29092901 {
29102902 if (o_ptr->sval == SV_PAIR_OF_DRAGON_GREAVE)
29112903 {
2912- /* Mention the item */
2913- if (cheat_peek) object_mention(o_ptr);
29142904 dragon_resist(o_ptr);
29152905 if (!one_in_(3)) break;
29162906 }
@@ -3017,8 +3007,6 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
30173007 {
30183008 if (o_ptr->sval == SV_DRAGON_HELM)
30193009 {
3020- /* Mention the item */
3021- if (cheat_peek) object_mention(o_ptr);
30223010 dragon_resist(o_ptr);
30233011 if (!one_in_(3)) break;
30243012 }
@@ -3138,6 +3126,8 @@ static void a_m_aux_2(object_type *o_ptr, int level, int power)
31383126 break;
31393127 }
31403128 }
3129+
3130+ if (cheat_peek) object_mention(o_ptr);
31413131 }
31423132
31433133
@@ -3238,9 +3228,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
32383228 break;
32393229 }
32403230
3241- /* Mention the item */
3242- if (cheat_peek) object_mention(o_ptr);
3243-
32443231 break;
32453232 }
32463233
@@ -3745,9 +3732,6 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power)
37453732 /* gain one low ESP */
37463733 add_esp_weak(o_ptr, FALSE);
37473734
3748- /* Mention the item */
3749- if (cheat_peek) object_mention(o_ptr);
3750-
37513735 break;
37523736 }
37533737
@@ -4426,10 +4410,6 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode)
44264410 if (a_ptr->gen_flags & (TRG_RANDOM_CURSE1)) o_ptr->curse_flags |= get_curse(1, o_ptr);
44274411 if (a_ptr->gen_flags & (TRG_RANDOM_CURSE2)) o_ptr->curse_flags |= get_curse(2, o_ptr);
44284412
4429-
4430- /* Cheat -- peek at the item */
4431- if (cheat_peek) object_mention(o_ptr);
4432-
44334413 /* Done */
44344414 return;
44354415 }
@@ -4666,9 +4646,6 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode)
46664646 if ((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_HAYABUSA) && (o_ptr->pval > 2) && (o_ptr->name2 != EGO_ATTACKS))
46674647 o_ptr->pval = 2;
46684648 }
4669-
4670- /* Cheat -- describe the item */
4671- if (cheat_peek) object_mention(o_ptr);
46724649
46734650 /* Done */
46744651 return;
@@ -4690,6 +4667,8 @@ void apply_magic(object_type *o_ptr, int lev, u32b mode)
46904667 if (k_ptr->gen_flags & (TRG_RANDOM_CURSE1)) o_ptr->curse_flags |= get_curse(1, o_ptr);
46914668 if (k_ptr->gen_flags & (TRG_RANDOM_CURSE2)) o_ptr->curse_flags |= get_curse(2, o_ptr);
46924669 }
4670+
4671+
46934672 }
46944673
46954674
@@ -4857,14 +4836,6 @@ bool make_object(object_type *j_ptr, u32b mode)
48574836 obj_level = k_info[j_ptr->k_idx].level;
48584837 if (object_is_fixed_artifact(j_ptr)) obj_level = a_info[j_ptr->name1].level;
48594838
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-
48684839 /* Success */
48694840 return (TRUE);
48704841 }