• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0b3362a5028b56c2774254969c291025e64e1f58 (tree)
Time2019-05-07 22:53:27
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 cap_* を spells.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -171,11 +171,6 @@ extern DUNGEON_IDX max_d_idx;
171171 extern int init_flags;
172172 extern int highscore_fd;
173173 extern bool can_save;
174-extern int cap_mon;
175-extern int cap_mspeed;
176-extern HIT_POINT cap_hp;
177-extern HIT_POINT cap_maxhp;
178-extern STR_OFFSET cap_nickname;
179174 extern MONRACE_IDX battle_mon[4];
180175 extern int sel_monster;
181176 extern int battle_odds;
--- a/src/spells.h
+++ b/src/spells.h
@@ -126,6 +126,12 @@ struct magic_type
126126 EXP sexp; /* Encoded experience bonus */
127127 };
128128
129+extern int cap_mon;
130+extern int cap_mspeed;
131+extern HIT_POINT cap_hp;
132+extern HIT_POINT cap_maxhp;
133+extern STR_OFFSET cap_nickname;
134+
129135 extern const magic_type technic_info[NUM_TECHNIC][32];
130136
131137 /* spells1.c */
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -58,6 +58,11 @@ static int rakubadam_p; /*!< 落馬した際のダメージ量 */
5858
5959 int project_length = 0; /*!< 投射の射程距離 */
6060
61+int cap_mon;
62+int cap_mspeed;
63+HIT_POINT cap_hp;
64+HIT_POINT cap_maxhp;
65+STR_OFFSET cap_nickname;
6166
6267 /*!
6368 * @brief 歌、剣術、呪術領域情報テーブル
--- a/src/variable.c
+++ b/src/variable.c
@@ -394,13 +394,6 @@ int highscore_fd = -1;
394394
395395 bool can_save = FALSE; /* Game can be saved */
396396
397-
398-int cap_mon;
399-int cap_mspeed;
400-HIT_POINT cap_hp;
401-HIT_POINT cap_maxhp;
402-STR_OFFSET cap_nickname;
403-
404397 MONRACE_IDX battle_mon[4];
405398 int sel_monster;
406399 int battle_odds;
Show on old repository browser