• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione8c063482f36a776210f92a2d215aab947652e54 (tree)
Time2019-05-13 22:29:42
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 get_mon_num_hook, get_mon_num2_hook を monster.c へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -99,8 +99,6 @@ extern player_type *p_ptr;
9999
100100 extern OBJECT_TYPE_VALUE item_tester_tval;
101101 extern bool (*item_tester_hook)(object_type *o_ptr);
102-extern monsterrace_hook_type get_mon_num_hook;
103-extern monsterrace_hook_type get_mon_num2_hook;
104102 extern bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
105103
106104 extern int highscore_fd;
--- a/src/monster2.c
+++ b/src/monster2.c
@@ -1018,6 +1018,12 @@ static bool restrict_monster_to_dungeon(DUNGEON_IDX d_idx, MONRACE_IDX r_idx)
10181018 return TRUE;
10191019 }
10201020
1021+/*
1022+ * Hack -- function hooks to restrict "get_mon_num_prep()" function
1023+ */
1024+monsterrace_hook_type get_mon_num_hook;
1025+monsterrace_hook_type get_mon_num2_hook;
1026+
10211027 /*!
10221028 * @brief モンスター生成制限関数最大2つから / Apply a "monster restriction function" to the "monster allocation table"
10231029 * @param monster_hook 制限関数1
--- a/src/variable.c
+++ b/src/variable.c
@@ -171,15 +171,6 @@ OBJECT_TYPE_VALUE item_tester_tval;
171171 bool (*item_tester_hook)(object_type*);
172172
173173
174-
175-
176-/*
177- * Hack -- function hooks to restrict "get_mon_num_prep()" function
178- */
179-monsterrace_hook_type get_mon_num_hook;
180-monsterrace_hook_type get_mon_num2_hook;
181-
182-
183174 /*
184175 * Hack -- function hook to restrict "get_obj_num_prep()" function
185176 */
Show on old repository browser