• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona687d7b025fffeabfa3bcd3c33eac17dcb6466f1 (tree)
Time2019-06-03 23:44:29
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 NO_TOWN, SECRET_TOWN を wild.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -288,17 +288,9 @@
288288
289289 #define GINOU_MAX 10
290290
291-#define NO_TOWN 6
292-#define SECRET_TOWN 5
293-
294291
295292 #define MAX_MANE 16
296-#define MAX_MONSPELLS 96
297-#define MONSPELL_TYPE_BOLT 1
298-#define MONSPELL_TYPE_BALL 2
299-#define MONSPELL_TYPE_BREATH 3
300-#define MONSPELL_TYPE_SUMMON 4
301-#define MONSPELL_TYPE_OTHER 5
293+
302294
303295 #define EATER_EXT 36
304296 #define EATER_CHARGE 0x10000L
--- a/src/monster-spell.h
+++ b/src/monster-spell.h
@@ -14,6 +14,12 @@ struct monster_power
1414 concptr name;
1515 };
1616
17+#define MAX_MONSPELLS 96
18+#define MONSPELL_TYPE_BOLT 1
19+#define MONSPELL_TYPE_BALL 2
20+#define MONSPELL_TYPE_BREATH 3
21+#define MONSPELL_TYPE_SUMMON 4
22+#define MONSPELL_TYPE_OTHER 5
1723
1824 /* Monster Spells */
1925 #define MS_SHRIEK 0
--- a/src/rooms-city.c
+++ b/src/rooms-city.c
@@ -7,6 +7,7 @@
77 #include "rooms.h"
88 #include "rooms-city.h"
99 #include "store.h"
10+#include "wild.h"
1011
1112
1213
--- a/src/rooms-vault.c
+++ b/src/rooms-vault.c
@@ -12,6 +12,7 @@
1212 #include "floor.h"
1313 #include "dungeon.h"
1414 #include "geometry.h"
15+#include "wild.h"
1516
1617 /*
1718 * The vault generation arrays
--- a/src/rumor.c
+++ b/src/rumor.c
@@ -7,6 +7,7 @@
77 #include "dungeon.h"
88 #include "monsterrace.h"
99 #include "floor-town.h"
10+#include "wild.h"
1011
1112 /*
1213 * Display a rumor and apply its effects
--- a/src/store.c
+++ b/src/store.c
@@ -43,6 +43,7 @@
4343 #include "floor-town.h"
4444 #include "japanese.h"
4545 #include "view-mainwindow.h"
46+#include "wild.h"
4647
4748 #define MIN_STOCK 12
4849
--- a/src/wild.h
+++ b/src/wild.h
@@ -1,5 +1,8 @@
11 #pragma once
22
3+#define NO_TOWN 6
4+#define SECRET_TOWN 5
5+
36 /*
47 * Wilderness terrains
58 */
Show on old repository browser