Skip to content

Commit

Permalink
Curable Shakes & Opium Sates (#75218)
Browse files Browse the repository at this point in the history
* Update addiction.cpp

added shakes removal when opiate cravings are satisfied

* Update addiction.cpp

made satisfaction based on addiction intensity

* Update addiction.cpp

restyled

* Update addiction.cpp

changed satisfaction requirement from 'in' to addiction instensity
  • Loading branch information
Consoleable authored Jul 25, 2024
1 parent 560f245 commit b0aae89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/addiction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ static bool opiate_effect( Character &u, addiction &add )
u.mod_painkiller( -1 );
}
// No further effects if we're doped up.
if( u.get_painkiller() >= 35 ) {
if( u.get_painkiller() >= add.intensity ) {
add.sated = 0_turns;
u.remove_effect( effect_shakes );
return false;
}
u.mod_str_bonus( -1 );
Expand Down

0 comments on commit b0aae89

Please sign in to comment.