OSDN Git Service

[Refactor] 整形
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Tue, 22 Feb 2022 16:40:19 +0000 (01:40 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sat, 26 Feb 2022 10:00:55 +0000 (19:00 +0900)
src/io/write-diary.h
src/load/old/load-v1-5-0.h

index c5be842..cd9d371 100644 (file)
@@ -2,46 +2,46 @@
 
 #include "system/angband.h"
 
-#define DIARY_DIALY                            0
-#define DIARY_DESCRIPTION              1
-#define DIARY_ART                              2
-#define DIARY_UNIQUE                   3
-#define DIARY_FIX_QUEST_C              4
-#define DIARY_FIX_QUEST_F              5
-#define DIARY_RAND_QUEST_C             6
-#define DIARY_RAND_QUEST_F             7
-#define DIARY_MAXDEAPTH                        8
-#define DIARY_TRUMP                            9
-#define DIARY_STAIR                            10
-#define DIARY_RECALL                   11
-#define DIARY_TO_QUEST                 12
-#define DIARY_TELEPORT_LEVEL   13
-#define DIARY_BUY                              14
-#define DIARY_SELL                             15
-#define DIARY_ARENA                            16
-#define DIARY_FOUND                            17
-#define DIARY_LEVELUP                  18
-#define DIARY_GAMESTART                        19
-#define DIARY_WIZ_TELE                 20
-#define DIARY_NAMED_PET                        21
-#define DIARY_PAT_TELE                 22
-#define DIARY_ART_SCROLL               23
-#define DIARY_WIZARD_LOG               24
+#define DIARY_DIALY 0
+#define DIARY_DESCRIPTION 1
+#define DIARY_ART 2
+#define DIARY_UNIQUE 3
+#define DIARY_FIX_QUEST_C 4
+#define DIARY_FIX_QUEST_F 5
+#define DIARY_RAND_QUEST_C 6
+#define DIARY_RAND_QUEST_F 7
+#define DIARY_MAXDEAPTH 8
+#define DIARY_TRUMP 9
+#define DIARY_STAIR 10
+#define DIARY_RECALL 11
+#define DIARY_TO_QUEST 12
+#define DIARY_TELEPORT_LEVEL 13
+#define DIARY_BUY 14
+#define DIARY_SELL 15
+#define DIARY_ARENA 16
+#define DIARY_FOUND 17
+#define DIARY_LEVELUP 18
+#define DIARY_GAMESTART 19
+#define DIARY_WIZ_TELE 20
+#define DIARY_NAMED_PET 21
+#define DIARY_PAT_TELE 22
+#define DIARY_ART_SCROLL 23
+#define DIARY_WIZARD_LOG 24
 
-#define RECORD_NAMED_PET_NAME        0
-#define RECORD_NAMED_PET_UNNAME      1
-#define RECORD_NAMED_PET_DISMISS     2
-#define RECORD_NAMED_PET_DEATH       3
-#define RECORD_NAMED_PET_MOVED       4
-#define RECORD_NAMED_PET_LOST_SIGHT  5
-#define RECORD_NAMED_PET_DESTROY     6
-#define RECORD_NAMED_PET_EARTHQUAKE  7
-#define RECORD_NAMED_PET_GENOCIDE    8
-#define RECORD_NAMED_PET_WIZ_ZAP     9
-#define RECORD_NAMED_PET_TELE_LEVEL  10
-#define RECORD_NAMED_PET_BLAST       11
-#define RECORD_NAMED_PET_HEAL_LEPER  12
-#define RECORD_NAMED_PET_COMPACT     13
+#define RECORD_NAMED_PET_NAME 0
+#define RECORD_NAMED_PET_UNNAME 1
+#define RECORD_NAMED_PET_DISMISS 2
+#define RECORD_NAMED_PET_DEATH 3
+#define RECORD_NAMED_PET_MOVED 4
+#define RECORD_NAMED_PET_LOST_SIGHT 5
+#define RECORD_NAMED_PET_DESTROY 6
+#define RECORD_NAMED_PET_EARTHQUAKE 7
+#define RECORD_NAMED_PET_GENOCIDE 8
+#define RECORD_NAMED_PET_WIZ_ZAP 9
+#define RECORD_NAMED_PET_TELE_LEVEL 10
+#define RECORD_NAMED_PET_BLAST 11
+#define RECORD_NAMED_PET_HEAL_LEPER 12
+#define RECORD_NAMED_PET_COMPACT 13
 #define RECORD_NAMED_PET_LOSE_PARENT 14
 
 extern bool write_level;
index 81fe238..a249677 100644 (file)
@@ -5,31 +5,31 @@
 
 // TODO: 更に分割する可能性が中程度あるのでヘッダに置いておく
 enum old_monster_resistance_type {
-       RF3_IM_ACID = 0x00010000, /* Resist acid a lot */
-       RF3_IM_ELEC = 0x00020000, /* Resist elec a lot */
-       RF3_IM_FIRE = 0x00040000, /* Resist fire a lot */
-       RF3_IM_COLD = 0x00080000, /* Resist cold a lot */
-       RF3_IM_POIS = 0x00100000, /* Resist poison a lot */
-       RF3_RES_TELE = 0x00200000, /* Resist teleportation */
-       RF3_RES_NETH = 0x00400000, /* Resist nether a lot */
-       RF3_RES_WATE = 0x00800000, /* Resist water */
-       RF3_RES_PLAS = 0x01000000, /* Resist plasma */
-       RF3_RES_NEXU = 0x02000000, /* Resist nexus */
-       RF3_RES_DISE = 0x04000000, /* Resist disenchantment */
-       RF3_RES_ALL = 0x08000000, /* Resist all */
+    RF3_IM_ACID = 0x00010000, /* Resist acid a lot */
+    RF3_IM_ELEC = 0x00020000, /* Resist elec a lot */
+    RF3_IM_FIRE = 0x00040000, /* Resist fire a lot */
+    RF3_IM_COLD = 0x00080000, /* Resist cold a lot */
+    RF3_IM_POIS = 0x00100000, /* Resist poison a lot */
+    RF3_RES_TELE = 0x00200000, /* Resist teleportation */
+    RF3_RES_NETH = 0x00400000, /* Resist nether a lot */
+    RF3_RES_WATE = 0x00800000, /* Resist water */
+    RF3_RES_PLAS = 0x01000000, /* Resist plasma */
+    RF3_RES_NEXU = 0x02000000, /* Resist nexus */
+    RF3_RES_DISE = 0x04000000, /* Resist disenchantment */
+    RF3_RES_ALL = 0x08000000, /* Resist all */
 };
 
 enum old_monster_breath_type {
-       RF4_BR_LITE = 0x00004000, /* Breathe Lite */
-       RF4_BR_DARK = 0x00008000, /* Breathe Dark */
-       RF4_BR_CONF = 0x00010000, /* Breathe Confusion */
-       RF4_BR_SOUN = 0x00020000, /* Breathe Sound */
-       RF4_BR_CHAO = 0x00040000, /* Breathe Chaos */
-       RF4_BR_TIME = 0x00200000, /* Breathe Time */
-       RF4_BR_INER = 0x00400000, /* Breathe Inertia */
-       RF4_BR_GRAV = 0x00800000, /* Breathe Gravity */
-       RF4_BR_SHAR = 0x01000000, /* Breathe Shards */
-       RF4_BR_WALL = 0x04000000, /* Breathe Force */
+    RF4_BR_LITE = 0x00004000, /* Breathe Lite */
+    RF4_BR_DARK = 0x00008000, /* Breathe Dark */
+    RF4_BR_CONF = 0x00010000, /* Breathe Confusion */
+    RF4_BR_SOUN = 0x00020000, /* Breathe Sound */
+    RF4_BR_CHAO = 0x00040000, /* Breathe Chaos */
+    RF4_BR_TIME = 0x00200000, /* Breathe Time */
+    RF4_BR_INER = 0x00400000, /* Breathe Inertia */
+    RF4_BR_GRAV = 0x00800000, /* Breathe Gravity */
+    RF4_BR_SHAR = 0x01000000, /* Breathe Shards */
+    RF4_BR_WALL = 0x04000000, /* Breathe Force */
 };
 
 extern const int OLD_QUEST_WATER_CAVE;