Capitalize EmitRatio

This commit is contained in:
lutepickle 2023-05-09 23:01:55 -07:00
parent 1cce07d312
commit f40eed6317
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -24,7 +24,7 @@ namespace RJW_Menstruation
{
public CompProperties_Pheromones Props => (CompProperties_Pheromones)props;
public const int emitInterval = GenTicks.TickRareInterval;
public float emitRatio => (float)emitInterval / GenDate.TicksPerDay;
public float EmitRatio => (float)emitInterval / GenDate.TicksPerDay;
public override void CompPostTick(ref float severityAdjustment)
{
@ -87,7 +87,7 @@ namespace RJW_Menstruation
Hediff pheromones = target.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_AffectedByPheromones);
float decay = VariousDefOf.Hediff_AffectedByPheromones.CompProps<HediffCompProperties_SeverityPerDay>().severityPerDay;
float raiseSeverityPerDay = intensity / Props.daysToMaxSeverity - decay; // Desired increase plus enough to overcome pheromone decay
float amountToApply = emitRatio * raiseSeverityPerDay;
float amountToApply = EmitRatio * raiseSeverityPerDay;
if (pheromones != null)
pheromones.Severity += amountToApply;
else