Skip to content

Commit

Permalink
Revert "Fix minor cramped space errors (#70607)"
Browse files Browse the repository at this point in the history
This reverts commit 2b18060.
  • Loading branch information
kevingranade committed Jun 11, 2024
1 parent d6f3403 commit b660026
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11012,12 +11012,20 @@ void Character::process_effects()
( size == creature_size::medium && free_cargo < 62500_ml ) ||
( size == creature_size::large && free_cargo < 125000_ml ) ||
( size == creature_size::huge && free_cargo < 250000_ml ) ) {
if( !has_effect( effect_cramped_space ) ) {
add_effect( effect_cramped_space, 2_turns, true );
}
is_cramped_space = true;
return;
}
}
if( get_size() == creature_size::huge && !vp.part_with_feature( "AISLE", false ) &&
!vp.part_with_feature( "HUGE_OK", false ) ) {
if( !has_effect( effect_cramped_space ) ) {
add_effect( effect_cramped_space, 2_turns, true );
}
is_cramped_space = true;
return;
}
}
if( !is_cramped_space ) {
Expand Down

0 comments on commit b660026

Please sign in to comment.