• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision756191b813cc7c4a7ee441bc917d9548ae723ea8 (tree)
Time2019-05-02 23:31:47
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 magic_type 定義を spells.h へ移動.

Change Summary

Incremental Difference

--- a/src/player-class.h
+++ b/src/player-class.h
@@ -1,5 +1,5 @@
11 #pragma once
2-
2+#include "spells.h"
33 /*
44 * Information about the player's "magic"
55 *
--- a/src/spells.h
+++ b/src/spells.h
@@ -112,6 +112,20 @@
112112
113113 #define MAX_GF 117
114114
115+/*
116+ * The "name" of spell 'N' is stored as spell_names[X][N],
117+ * where X is 0 for mage-spells and 1 for priest-spells.
118+ */
119+typedef struct magic_type magic_type;
120+
121+struct magic_type
122+{
123+ PLAYER_LEVEL slevel; /* Required level (to learn) */
124+ MANA_POINT smana; /* Required mana (to cast) */
125+ PERCENTAGE sfail; /* Minimum chance of failure */
126+ EXP sexp; /* Encoded experience bonus */
127+};
128+
115129 extern const magic_type technic_info[NUM_TECHNIC][32];
116130
117131 /* spells3.c */
--- a/src/types.h
+++ b/src/types.h
@@ -51,17 +51,3 @@
5151
5252 //#include "player-skill.h"
5353
54-
55-/*
56- * The "name" of spell 'N' is stored as spell_names[X][N],
57- * where X is 0 for mage-spells and 1 for priest-spells.
58- */
59-typedef struct magic_type magic_type;
60-
61-struct magic_type
62-{
63- PLAYER_LEVEL slevel; /* Required level (to learn) */
64- MANA_POINT smana; /* Required mana (to cast) */
65- PERCENTAGE sfail; /* Minimum chance of failure */
66- EXP sexp; /* Encoded experience bonus */
67-};
Show on old repository browser