Update ingestion hediff giver for Biotech

This commit is contained in:
lutepickle 2022-12-11 10:25:12 -08:00
parent 221883c2fc
commit bbd8030cc6
2 changed files with 1 additions and 3 deletions

Binary file not shown.

View File

@ -9,11 +9,9 @@ namespace RJW_Menstruation
{
Hediff hediff = HediffMaker.MakeHediff(hediffDef, pawn);
float effect = ((!(severity > 0f)) ? hediffDef.initialSeverity : severity) * ingested.stackCount;
AddictionUtility.ModifyChemicalEffectForToleranceAndBodySize(pawn, toleranceChemical, ref effect);
AddictionUtility.ModifyChemicalEffectForToleranceAndBodySize_NewTemp(pawn, toleranceChemical, ref effect, multiplyByGeneToleranceFactors);
hediff.Severity = effect;
pawn.health.AddHediff(hediff);
}
}
}