Change the ingestion effect to use the new ingestedcount

This commit is contained in:
lutepickle 2024-04-17 18:46:51 -07:00
parent 5da2b69fd5
commit 88520cb8eb
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace RJW_Menstruation
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested, int ingestedcount)
{
Hediff hediff = HediffMaker.MakeHediff(hediffDef, pawn);
float effect = ((!(severity > 0f)) ? hediffDef.initialSeverity : severity) * ingested.stackCount;
float effect = ((!(severity > 0f)) ? hediffDef.initialSeverity : severity) * ingestedcount;
AddictionUtility.ModifyChemicalEffectForToleranceAndBodySize_NewTemp(pawn, toleranceChemical, ref effect, multiplyByGeneToleranceFactors);
hediff.Severity = effect;
pawn.health.AddHediff(hediff);