From 638126cce85b5972990c824555867f6649a5cfe8 Mon Sep 17 00:00:00 2001 From: ToxiClay Date: Thu, 7 Jan 2021 10:54:37 -0500 Subject: [PATCH] Reverses subtraction in character.cpp to correct skill rust calculation --- src/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character.cpp b/src/character.cpp index 44edc48119052..676c40ff370fe 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -4061,7 +4061,7 @@ int Character::rust_rate() const int intel = get_int(); /** @EFFECT_INT reduces skill rust by 10% per level above 8 */ int ret = ( ( rate_option == "vanilla" || rate_option == "capped" ) ? - 100 : 100 + 10 * ( intel - 8 ) ); + 100 : 100 + 10 * ( 8 - intel ) ); ret *= mutation_value( "skill_rust_multiplier" );