Fix Fast Metabolism trait

This commit is contained in:
Alexander Batalov 2023-02-12 23:12:36 +03:00
parent 81210f46af
commit f5d3cfb5e3

View File

@ -265,12 +265,12 @@ int traitGetStatModifier(int stat)
break;
case STAT_RADIATION_RESISTANCE:
if (traitIsSelected(TRAIT_FAST_METABOLISM)) {
modifier -= -critterGetBaseStat(gDude, STAT_RADIATION_RESISTANCE);
modifier -= critterGetBaseStat(gDude, STAT_RADIATION_RESISTANCE);
}
break;
case STAT_POISON_RESISTANCE:
if (traitIsSelected(TRAIT_FAST_METABOLISM)) {
modifier -= -critterGetBaseStat(gDude, STAT_POISON_RESISTANCE);
modifier -= critterGetBaseStat(gDude, STAT_POISON_RESISTANCE);
}
break;
}