From 2e5421d14e79552b3291a5d409d2b44f614b7e0d Mon Sep 17 00:00:00 2001 From: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:35:21 -0700 Subject: [PATCH] fd_sleepines in tests I really thought I got these already gr. --- tests/magic_spell_effect_test.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/magic_spell_effect_test.cpp b/tests/magic_spell_effect_test.cpp index 0aeca47681240..38f7ddb5178f2 100644 --- a/tests/magic_spell_effect_test.cpp +++ b/tests/magic_spell_effect_test.cpp @@ -75,7 +75,7 @@ TEST_CASE( "line_attack", "[magic]" ) } } -TEST_CASE( "remove_field_fd_sleepiness", "[magic]" ) +TEST_CASE( "remove_field_fd_reality_tear", "[magic]" ) { // Test relies on lighting conditions, so ensure we control the level of // daylight. @@ -93,15 +93,15 @@ TEST_CASE( "remove_field_fd_sleepiness", "[magic]" ) CAPTURE( with_light ); CHECK( dummy.get_location() == player_initial_pos ); - // create fd_sleepiness of each intensity near player + // create fd_reality_tear of each intensity near player tripoint_abs_ms p1 = player_initial_pos + tripoint_east * 10; tripoint_abs_ms p2 = player_initial_pos + tripoint_east * 11; tripoint_abs_ms p3 = player_initial_pos + tripoint_east * 12; tripoint_abs_ms p4 = player_initial_pos + tripoint_east * 13; - m.add_field( m.getlocal( p1 ), fd_sleepiness, 1, 1_hours ); - m.add_field( m.getlocal( p2 ), fd_sleepiness, 2, 1_hours ); - m.add_field( m.getlocal( p3 ), fd_sleepiness, 3, 1_hours ); - m.add_field( m.getlocal( p4 ), fd_sleepiness, 3, 1_hours ); + m.add_field( m.getlocal( p1 ), fd_reality_tear, 1, 1_hours ); + m.add_field( m.getlocal( p2 ), fd_reality_tear, 2, 1_hours ); + m.add_field( m.getlocal( p3 ), fd_reality_tear, 3, 1_hours ); + m.add_field( m.getlocal( p4 ), fd_reality_tear, 3, 1_hours ); if( with_light ) { player_add_headlamp(); @@ -114,7 +114,7 @@ TEST_CASE( "remove_field_fd_sleepiness", "[magic]" ) dummy.recalc_sight_limits(); CHECK( m.getglobal( dummy.pos() ) == player_initial_pos ); - CHECK( count_fields_near( p1, fd_sleepiness ) == std::set { p1, p2, p3, p4 } ); + CHECK( count_fields_near( p1, fd_reality_tear ) == std::set { p1, p2, p3, p4 } ); spell_effect::remove_field( sp, dummy, m.getlocal( player_initial_pos ) ); calendar::turn += 1_turns; @@ -123,7 +123,7 @@ TEST_CASE( "remove_field_fd_sleepiness", "[magic]" ) m.process_fields(); CHECK( m.getglobal( dummy.pos() ) == player_initial_pos ); - CHECK( count_fields_near( p1, fd_sleepiness ) == std::set { p2, p3, p4 } ); + CHECK( count_fields_near( p1, fd_reality_tear ) == std::set { p2, p3, p4 } ); spell_effect::remove_field( sp, dummy, m.getlocal( player_initial_pos ) ); calendar::turn += 1_turns; @@ -132,7 +132,7 @@ TEST_CASE( "remove_field_fd_sleepiness", "[magic]" ) m.process_fields(); CHECK( m.getglobal( dummy.pos() ) == player_initial_pos ); - CHECK( count_fields_near( p1, fd_sleepiness ) == std::set { p3, p4 } ); + CHECK( count_fields_near( p1, fd_reality_tear ) == std::set { p3, p4 } ); spell_effect::remove_field( sp, dummy, m.getlocal( player_initial_pos ) ); calendar::turn += 1_turns; @@ -140,7 +140,7 @@ TEST_CASE( "remove_field_fd_sleepiness", "[magic]" ) calendar::turn += 1_turns; m.process_fields(); - CHECK( count_fields_near( p1, fd_sleepiness ) == std::set { p4 } ); + CHECK( count_fields_near( p1, fd_reality_tear ) == std::set { p4 } ); }; setup_and_remove_fields( true );