• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision27f44112a1f9beeed4541529680d036e1100eba3 (tree)
Time2019-06-06 22:45:33
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 MAX_CLASS を player-class.h へ移動.

Change Summary

Incremental Difference

--- a/src/bldg.h
+++ b/src/bldg.h
@@ -2,6 +2,7 @@
22
33 #include "realm.h"
44 #include "player-race.h"
5+#include "player-class.h"
56
67 #define MAX_BLDG 32 /*!< 施設の種類最大数 / Number of buildings */
78 #define MAX_ARENA_MONS 41 /*<! 闘技場のイベント件数 -KMW- */
--- a/src/defines.h
+++ b/src/defines.h
@@ -43,7 +43,6 @@
4343 */
4444 #define ARENA_DEFEATED_OLD_VER (-(MAX_SHORT)) /*<! 旧バージョンの闘技場敗北定義 */
4545
46-#define MAX_CLASS 28 /*!< 職業の最大定義数 Maximum number of player "class" types (see "table.c", etc) */
4746 #define MAX_SEIKAKU 13 /*!< 性格の最大定義数 */
4847
4948 #define MAX_MIND_POWERS 21 /*!< 超能力の数 / Mindcraft */
--- a/src/player-class.h
+++ b/src/player-class.h
@@ -55,6 +55,7 @@
5555 #define CLASS_MIRROR_MASTER 25
5656 #define CLASS_NINJA 26
5757 #define CLASS_SNIPER 27
58+#define MAX_CLASS 28 /*!< 職業の最大定義数 Maximum number of player "class" types (see "table.c", etc) */
5859
5960 #define IS_WIZARD_CLASS() \
6061 (p_ptr->pclass == CLASS_MAGE || p_ptr->pclass == CLASS_HIGH_MAGE || p_ptr->pclass == CLASS_SORCERER || p_ptr->pclass == CLASS_MAGIC_EATER || p_ptr->pclass == CLASS_BLUE_MAGE)
Show on old repository browser