• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision521f61175251e616d60cffecc67eb20f4a25d597 (tree)
Time2019-04-11 23:47:35
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 徳定義を avater.h に移動。

Change Summary

Incremental Difference

--- a/src/avatar.h
+++ b/src/avatar.h
@@ -1,4 +1,25 @@
11 /* avatar.c */
2+#define MAX_VIRTUE 18 /*!< 徳定義の最大数 */
3+
4+#define V_COMPASSION 1
5+#define V_HONOUR 2
6+#define V_JUSTICE 3
7+#define V_SACRIFICE 4
8+#define V_KNOWLEDGE 5
9+#define V_FAITH 6
10+#define V_ENLIGHTEN 7
11+#define V_ENCHANT 8
12+#define V_CHANCE 9
13+#define V_NATURE 10
14+#define V_HARMONY 11
15+#define V_VITALITY 12
16+#define V_UNLIFE 13
17+#define V_PATIENCE 14
18+#define V_TEMPERANCE 15
19+#define V_DILIGENCE 16
20+#define V_VALOUR 17
21+#define V_INDIVIDUALISM 18
22+
223 extern bool compare_virtue(int type, int num, int tekitou);
324 extern int virtue_number(int type);
425 extern concptr virtue[MAX_VIRTUE];
--- a/src/defines.h
+++ b/src/defines.h
@@ -3420,27 +3420,6 @@ extern int PlayerUID;
34203420 */
34213421 #define SOUND_MAX 67 /*!< 効果音定義の最大数 */
34223422
3423-#define MAX_VIRTUE 18 /*!< 徳定義の最大数 */
3424-
3425-#define V_COMPASSION 1
3426-#define V_HONOUR 2
3427-#define V_JUSTICE 3
3428-#define V_SACRIFICE 4
3429-#define V_KNOWLEDGE 5
3430-#define V_FAITH 6
3431-#define V_ENLIGHTEN 7
3432-#define V_ENCHANT 8
3433-#define V_CHANCE 9
3434-#define V_NATURE 10
3435-#define V_HARMONY 11
3436-#define V_VITALITY 12
3437-#define V_UNLIFE 13
3438-#define V_PATIENCE 14
3439-#define V_TEMPERANCE 15
3440-#define V_DILIGENCE 16
3441-#define V_VALOUR 17
3442-#define V_INDIVIDUALISM 18
3443-
34443423
34453424 /*** Hack ***/
34463425
Show on old repository browser