Skip to content

Commit f2ff584

Browse files
committed
Butchery proficiencies give their benefits below 100% learned
1 parent a03cd56 commit f2ff584

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/butchery.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,13 @@ int butcher_time_to_cut( Character &you, const item &corpse_item, const butcher_
461461
double penalty_small = 0.5;
462462
double penalty_big = 1.5;
463463

464-
int prof_butch_penalty = penalty_big * ( 1 - butch_basic ) + penalty_small * ( 1 - butch_adv );
465-
int prof_skin_penalty = penalty_small * ( 1 - skin_basic );
464+
double prof_butch_penalty = penalty_big * ( 1.0 - butch_basic ) + penalty_small *
465+
( 1.0 - butch_adv );
466+
double prof_skin_penalty = penalty_small * ( 1.0 - skin_basic );
467+
468+
add_msg_debug( debugmode::DF_ACT_BUTCHER,
469+
"Time penalties for butchering:\n Butchery proficiencies penalty: %.2f%%\n Skinning proficiency penalty: %.2f%%",
470+
prof_butch_penalty * 100.0, prof_skin_penalty * 100.0 );
466471

467472
// there supposed to be a code for book mitigation, but we don't have any book fitting for this
468473

0 commit comments

Comments
 (0)