Skip to content

Commit

Permalink
Normalize stomach contents in clear_character
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed Apr 13, 2020
1 parent e08cb3f commit 8f495c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/player_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ void clear_character( player &dummy, bool debug_storage )
dummy.set_mutation( trait_id( "DEBUG_STORAGE" ) );
}

// Clear stomach and then eat a nutritious meal to normalize stomach
// contents (needs to happen before clear_morale).
dummy.stomach.empty();
dummy.guts.empty();
item food( "debug_nutrition" );
dummy.eat( food );

dummy.empty_skills();
dummy.clear_morale();
dummy.clear_bionics();
Expand Down

0 comments on commit 8f495c3

Please sign in to comment.