• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision79d89c5b9876f07c049eccdae0271612d29ab1e7 (tree)
Time2019-05-25 19:03:26
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 ステータス定義 (A_STR~A_CHR) を player-status.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -320,18 +320,6 @@
320320 */
321321 #define INVEN_FORCE 1111
322322
323-
324-/*
325- * Indexes of the various "stats" (hard-coded by savefiles, etc).
326- */
327-#define A_STR 0
328-#define A_INT 1
329-#define A_WIS 2
330-#define A_DEX 3
331-#define A_CON 4
332-#define A_CHR 5
333-#define A_MAX 6
334-
335323 /*
336324 * Player sex constants (hard-coded by save-files, arrays, etc)
337325 */
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -82,6 +82,13 @@ struct player_type
8282
8383 s16b max_plv; /* Max Player Level */
8484
85+ #define A_STR 0
86+ #define A_INT 1
87+ #define A_WIS 2
88+ #define A_DEX 3
89+ #define A_CON 4
90+ #define A_CHR 5
91+ #define A_MAX 6
8592 BASE_STATUS stat_max[6]; /* Current "maximal" stat values */
8693 BASE_STATUS stat_max_max[6]; /* Maximal "maximal" stat values */
8794 BASE_STATUS stat_cur[6]; /* Current "natural" stat values */
Show on old repository browser