Skip to content

Commit

Permalink
Simpler solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Aug 21, 2020
1 parent 5ea2d46 commit b2be13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bionics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1703,9 +1703,6 @@ void Character::process_bionic( int b )
// Aftershock
add_morale( MORALE_FEELING_GOOD, 20, 20, 30_minutes, 20_minutes, true );
}
for( const enchantment_id &ench : bio.id->enchantments ) {
ench->activate_passive( *this );
}
}

void Character::roll_critical_bionics_failure( const bodypart_id &bp )
Expand Down
2 changes: 2 additions & 0 deletions src/suffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,8 @@ void Character::suffer()
suffer_without_sleep( sleep_deprivation );
suffer_from_tourniquet();
suffer_from_pain();
//Suffer from enchantments
enchantment_cache->activate_passive( *this );
}

bool Character::irradiate( float rads, bool bypass )
Expand Down

0 comments on commit b2be13c

Please sign in to comment.