Skip to content

Commit

Permalink
Make test guy attack debug mon, not themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll authored Apr 14, 2024
1 parent 1aea145 commit 2a343b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/enchantments_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int test_melee_attack_attack_speed( Character &guy )

while( i != 10 ) {
prev_attack = guy.get_moves();
guy.melee_attack_abstract( guy, false, matec_id( "" ) );
guy.melee_attack_abstract( pseudo_debug_mon, false, matec_id( "" ) );

Check failure on line 218 in tests/enchantments_test.cpp

View workflow job for this annotation

GitHub Actions / build (other)

non-const lvalue reference to type 'Creature' cannot bind to a value of unrelated type 'const mtype_id' (aka 'const string_id<mtype>') [clang-diagnostic-error]
add_msg( "attack %i: attack cost: %i, total amount of moves: %i", i, prev_attack - guy.get_moves(),
guy.get_moves() );
guy.set_stamina( guy.get_stamina_max() ); //Reset reset!
Expand Down Expand Up @@ -271,7 +271,7 @@ static int test_melee_attack_attack_stamina( Character &guy )

while( i != 10 ) {
stamina_prev = guy.get_stamina();
guy.melee_attack_abstract( guy, false, matec_id( "" ) );
guy.melee_attack_abstract( pseudo_debug_mon, false, matec_id( "" ) );

Check failure on line 274 in tests/enchantments_test.cpp

View workflow job for this annotation

GitHub Actions / build (other)

non-const lvalue reference to type 'Creature' cannot bind to a value of unrelated type 'const mtype_id' (aka 'const string_id<mtype>') [clang-diagnostic-error]
add_msg( "attack %i: stamina cost: %i, current amount of stamina: %i", i,
stamina_prev - guy.get_stamina(),
guy.get_stamina() );
Expand Down

0 comments on commit 2a343b6

Please sign in to comment.