Skip to content

Commit

Permalink
Correctly check for cannibalism in all butchery paths (with or withou…
Browse files Browse the repository at this point in the history
…t human dissection proficiency)

Actually check affected NPC opinions and make_angry if need be

Witnessing NPCs that are upset will comment on it (to make it apparent the source of their anger)
  • Loading branch information
RenechCDDA committed Nov 17, 2024
1 parent f4959fd commit d3bdef5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,14 @@ static bool do_cannibalism_piss_people_off( Character &you )

for( npc &guy : g->all_npcs() ) {
if( guy.is_active() && guy.sees( you ) && !guy.okay_with_eating_humans() ) {
guy.say( _( "<swear!>? Are you butchering them? That's not okay, <fuck_you>." ) );
// massive opinion penalty
guy.op_of_u.trust -= 5;
guy.op_of_u.value -= 5;
guy.op_of_u.anger += 5;
if( guy.turned_hostile() ) {
guy.make_angry();
}
}
}
return true;
Expand Down Expand Up @@ -657,7 +662,7 @@ static void set_up_butchery( player_activity &act, Character &you, butcher_type
} else {
//this runs if the butcherer does NOT have prof_dissect_humans
if( you.is_avatar() ) {
if( query_yn( _( "Would you dare desecrate the mortal remains of a fellow human being?" ) ) ) {
if( do_cannibalism_piss_people_off( you ) ) {
//random message and morale penalty
switch( rng( 1, 3 ) ) {
case 1:
Expand Down

0 comments on commit d3bdef5

Please sign in to comment.