mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Capitalize EmitRatio
This commit is contained in:
parent
1cce07d312
commit
f40eed6317
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue