Skip to content

Commit

Permalink
fix towel test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Jul 27, 2020
1 parent 32823eb commit cac7075
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/iuse_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ TEST_CASE( "towel", "[iuse][towel]" )
REQUIRE( dummy.get_part_wetness( bodypart_id( "arm_l" ) ) > 0 );
REQUIRE( dummy.get_part_wetness( bodypart_id( "arm_r" ) ) > 0 );

// FIXME: Morale alone is the trigger for drying off!
// Without the morale modifier, towel_common thinks you're dry
dummy.add_morale( MORALE_WET, -10, -10, 1_hours, 1_hours );

WHEN( "they use a dry towel" ) {
REQUIRE_FALSE( towel.has_flag( flag_WET ) );
dummy.invoke_item( &towel );
Expand Down Expand Up @@ -366,6 +362,8 @@ TEST_CASE( "towel", "[iuse][towel]" )
}

GIVEN( "avatar has poor morale due to being wet" ) {
dummy.drench( 100, { bodypart_str_id( "torso" ), bodypart_str_id( "head" ), bodypart_str_id( "arm_l" ), bodypart_str_id( "arm_r" ) },
false );
dummy.add_morale( MORALE_WET, -10, -10, 1_hours, 1_hours );
REQUIRE( dummy.has_morale( MORALE_WET ) == -10 );

Expand Down

0 comments on commit cac7075

Please sign in to comment.