• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3c3505a81445fa43b7a4a9d65f7f9cdb858bec14 (tree)
Time2019-05-23 00:32:00
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 is_original_ap と is_original_ap_and_seen を monster.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -2244,13 +2244,6 @@
22442244 #define MR1_SINKA 0x01
22452245
22462246
2247-/* Hack -- Determine monster race appearance index is same as race index */
2248-#define is_original_ap(A) \
2249- (bool)(((A)->ap_r_idx == (A)->r_idx) ? TRUE : FALSE)
2250-
2251-#define is_original_ap_and_seen(A) \
2252- (bool)((A)->ml && !p_ptr->image && ((A)->ap_r_idx == (A)->r_idx))
2253-
22542247 /*
22552248 * Is the monster seen by the player?
22562249 */
--- a/src/monster.h
+++ b/src/monster.h
@@ -460,4 +460,11 @@ extern void monster_drop_carried_objects(monster_type *m_ptr);
460460 (bool)(((A)->smart & SM_PET) ? TRUE : FALSE)
461461
462462 #define is_hostile(A) \
463- (bool)((is_friendly(A) || is_pet(A)) ? FALSE : TRUE)
\ No newline at end of file
463+ (bool)((is_friendly(A) || is_pet(A)) ? FALSE : TRUE)
464+
465+/* Hack -- Determine monster race appearance index is same as race index */
466+#define is_original_ap(A) \
467+ (bool)(((A)->ap_r_idx == (A)->r_idx) ? TRUE : FALSE)
468+
469+#define is_original_ap_and_seen(A) \
470+ (bool)((A)->ml && !p_ptr->image && ((A)->ap_r_idx == (A)->r_idx))
\ No newline at end of file
Show on old repository browser