From 79b007d9a323c96fc1b5298fc2311372223db55b Mon Sep 17 00:00:00 2001 From: moxian Date: Fri, 31 Jul 2020 09:35:19 +0000 Subject: [PATCH] Fix trait-less characters not mending broken limbs. Default mutation mending_modifier is set to 1.0, but when no mutations are present, `mutation_value( "mending_modifier" )` returns zero, which is the starting/default value in `calc_mutation_value`. --- src/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character.cpp b/src/character.cpp index 56b5868b310ff..e991c16002589 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -7207,7 +7207,7 @@ static const std::map }, { "healing_resting", calc_mutation_value<&mutation_branch::healing_resting> }, - { "mending_modifier", calc_mutation_value<&mutation_branch::mending_modifier> }, + { "mending_modifier", calc_mutation_value_multiplicative<&mutation_branch::mending_modifier> }, { "hp_modifier", calc_mutation_value<&mutation_branch::hp_modifier> }, { "hp_modifier_secondary", calc_mutation_value<&mutation_branch::hp_modifier_secondary> }, { "hp_adjustment", calc_mutation_value<&mutation_branch::hp_adjustment> },