From 156184e43d6db9e39005b54c3b3f493598b758f1 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 27 Feb 2023 11:04:24 +0300 Subject: [PATCH] Fix Better Criticals stat minimal value Closes #58 --- src/game/stat.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/stat.cc b/src/game/stat.cc index e8f1473..0e6e083 100644 --- a/src/game/stat.cc +++ b/src/game/stat.cc @@ -55,7 +55,10 @@ static StatDescription stat_data[STAT_COUNT] = { { NULL, NULL, 24, 0, INT_MAX, 0 }, { NULL, NULL, 25, 0, INT_MAX, 0 }, { NULL, NULL, 26, 0, 100, 0 }, - { NULL, NULL, 94, 0, 100, 0 }, + // CE: Fix minimal value (on par with Fallout 2). This allows "Better + // Criticals" to be less than 0 (with Heavy Handed trait it's -30), so it + // can affect critical effect calculation in `attack_crit_success`. + { NULL, NULL, 94, -60, 100, 0 }, { NULL, NULL, 0, 0, 100, 0 }, { NULL, NULL, 0, 0, 100, 0 }, { NULL, NULL, 0, 0, 100, 0 },