Skip to content

Commit

Permalink
Update addiction.cpp
Browse files Browse the repository at this point in the history
changed satisfaction requirement from 'in' to addiction instensity
  • Loading branch information
Consoleable authored Jul 25, 2024
1 parent 3c84954 commit 0d0399d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addiction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static bool opiate_effect( Character &u, addiction &add )
u.mod_painkiller( -1 );
}
// No further effects if we're doped up.
if( u.get_painkiller() >= in ) {
if( u.get_painkiller() >= add.intensity ) {
add.sated = 0_turns;
u.remove_effect( effect_shakes );
return false;
Expand Down

0 comments on commit 0d0399d

Please sign in to comment.