From d9f3686ca3bd761f412e55806a60f1f3f5645194 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:02:47 +0000 Subject: [PATCH] style(autofix.ci): automated formatting --- src/character_functions.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/character_functions.cpp b/src/character_functions.cpp index 59d0d3f99207..ef9b86b160ee 100644 --- a/src/character_functions.cpp +++ b/src/character_functions.cpp @@ -248,7 +248,7 @@ comfort_response_t base_comfort_value( const Character &who, const tripoint &p ) if( items_it->has_flag( STATIC( flag_id( "SLEEP_AID" ) ) ) ) { // Note: BED + SLEEP_AID = 9 pts, or 1 pt below very_comfortable comfort += 1 + static_cast( comfort_level::slightly_comfortable ); - comfort_response.aid.push_back(items_it); + comfort_response.aid.push_back( items_it ); } } } @@ -284,7 +284,7 @@ comfort_response_t base_comfort_value( const Character &who, const tripoint &p ) if( items_it->has_flag( STATIC( flag_id( "SLEEP_AID" ) ) ) ) { // Note: BED + SLEEP_AID = 9 pts, or 1 pt below very_comfortable comfort += 1 + static_cast( comfort_level::slightly_comfortable ); - comfort_response.aid.push_back(items_it); + comfort_response.aid.push_back( items_it ); } } } @@ -341,8 +341,9 @@ int rate_sleep_spot( const Character &who, const tripoint &p ) const int current_stim = who.get_stim(); const comfort_response_t comfort_info = base_comfort_value( who, p ); if( !comfort_info.aid.empty() ) { - for ( item *comfort_item:comfort_info.aid) - who.add_msg_if_player( m_info, _( "You use your %s for comfort." ), comfort_item->tname() ); + for( item *comfort_item : comfort_info.aid ) { + who.add_msg_if_player( m_info, _( "You use your %s for comfort." ), comfort_item->tname() ); + } } int sleepy = static_cast( comfort_info.level );