mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Change the ingestion effect to use the new ingestedcount
This commit is contained in:
parent
5da2b69fd5
commit
88520cb8eb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue