Skip to content

Commit

Permalink
Merge pull request #37669 from l29ah/get-comfy
Browse files Browse the repository at this point in the history
Expand comfy activities
  • Loading branch information
ZhilkinSerg authored Feb 3, 2020
2 parents 7609eb2 + b9e20cb commit db6e71e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8282,8 +8282,27 @@ int Character::bonus_item_warmth( body_part bp ) const

bool Character::can_use_floor_warmth() const
{
// TODO: Reading? Waiting?
return in_sleep_state();
return in_sleep_state() ||
has_activity( activity_id( "ACT_WAIT" ) ) ||
has_activity( activity_id( "ACT_WAIT_NPC" ) ) ||
has_activity( activity_id( "ACT_WAIT_STAMINA" ) ) ||
has_activity( activity_id( "ACT_AUTODRIVE" ) ) ||
has_activity( activity_id( "ACT_READ" ) ) ||
has_activity( activity_id( "ACT_SOCIALIZE" ) ) ||
has_activity( activity_id( "ACT_MEDITATE" ) ) ||
has_activity( activity_id( "ACT_FISH" ) ) ||
has_activity( activity_id( "ACT_GAME" ) ) ||
has_activity( activity_id( "ACT_HAND_CRANK" ) ) ||
has_activity( activity_id( "ACT_HEATING" ) ) ||
has_activity( activity_id( "ACT_VIBE" ) ) ||
has_activity( activity_id( "ACT_TRY_SLEEP" ) ) ||
has_activity( activity_id( "ACT_OPERATION" ) ) ||
has_activity( activity_id( "ACT_TREE_COMMUNION" ) ) ||
has_activity( activity_id( "ACT_EAT_MENU" ) ) ||
has_activity( activity_id( "ACT_CONSUME_FOOD_MENU" ) ) ||
has_activity( activity_id( "ACT_CONSUME_DRINK_MENU" ) ) ||
has_activity( activity_id( "ACT_CONSUME_MEDS_MENU" ) ) ||
has_activity( activity_id( "ACT_STUDY_SPELL" ) );
}

int Character::floor_bedding_warmth( const tripoint &pos )
Expand Down

0 comments on commit db6e71e

Please sign in to comment.