• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisioned2965be41deb0e228b5f50fe4d3598aecfaec33 (tree)
Time2019-06-03 23:51:26
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 TELE_LEVEL_IS_INEFF() を spells.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -331,14 +331,6 @@
331331 #define SUB_ALIGN_EVIL 0x0001
332332 #define SUB_ALIGN_GOOD 0x0002
333333
334-/* Is "teleport level" ineffective to this target? */
335-#define TELE_LEVEL_IS_INEFF(TARGET) \
336- (p_ptr->inside_arena || p_ptr->inside_battle || \
337- (p_ptr->inside_quest && !random_quest_number(current_floor_ptr->dun_level)) || \
338- (((TARGET) <= 0) && (quest_number(current_floor_ptr->dun_level) || (current_floor_ptr->dun_level >= d_info[p_ptr->dungeon_idx].maxdepth)) && \
339- (current_floor_ptr->dun_level >= 1) && ironman_downward))
340-
341-
342334 /*
343335 * Max numbers of macro trigger names
344336 */
--- a/src/spells.h
+++ b/src/spells.h
@@ -337,3 +337,10 @@ extern bool detonation(player_type *creature_ptr);
337337 extern void blood_curse_to_enemy(MONSTER_IDX m_idx);
338338 extern bool fire_crimson(void);
339339 extern bool tele_town(void);
340+
341+/* Is "teleport level" ineffective to this target? */
342+#define TELE_LEVEL_IS_INEFF(TARGET) \
343+ (p_ptr->inside_arena || p_ptr->inside_battle || \
344+ (p_ptr->inside_quest && !random_quest_number(current_floor_ptr->dun_level)) || \
345+ (((TARGET) <= 0) && (quest_number(current_floor_ptr->dun_level) || (current_floor_ptr->dun_level >= d_info[p_ptr->dungeon_idx].maxdepth)) && \
346+ (current_floor_ptr->dun_level >= 1) && ironman_downward))
Show on old repository browser