• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionaa77d68e628874b7e8bddb27f0d51d20e3007704 (tree)
Time2019-05-02 20:19:24
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 martial_arts 構造体を melee.h へ移動.

Change Summary

Incremental Difference

--- a/src/melee.h
+++ b/src/melee.h
@@ -38,6 +38,18 @@ extern const concptr silly_attacks[MAX_SILLY_ATTACK];
3838 extern const concptr silly_attacks2[MAX_SILLY_ATTACK];
3939 #endif
4040
41+/* For Monk martial arts */
42+typedef struct martial_arts martial_arts;
43+struct martial_arts
44+{
45+ concptr desc; /* A verbose attack description */
46+ PLAYER_LEVEL min_level; /* Minimum level to use */
47+ int chance; /* Chance of 'success' */
48+ int dd; /* Damage dice */
49+ int ds; /* Damage sides */
50+ int effect; /* Special effects */
51+};
52+
4153 extern const martial_arts ma_blows[MAX_MA];
4254 extern const int monk_ave_damage[PY_MAX_LEVEL + 1][3];
4355
--- a/src/types.h
+++ b/src/types.h
@@ -224,20 +224,6 @@ struct player_seikaku
224224 };
225225
226226
227-/* For Monk martial arts */
228-
229-typedef struct martial_arts martial_arts;
230-
231-struct martial_arts
232-{
233- concptr desc; /* A verbose attack description */
234- PLAYER_LEVEL min_level; /* Minimum level to use */
235- int chance; /* Chance of 'success' */
236- int dd; /* Damage dice */
237- int ds; /* Damage sides */
238- int effect; /* Special effects */
239-};
240-
241227 typedef struct kamae kamae;
242228
243229 struct kamae
Show on old repository browser