Remove intensity from pheromone properties since it's just a modifier on daysToMaxSeverity

This commit is contained in:
lutepickle 2023-05-09 15:50:36 -07:00
parent 28d77ed1fb
commit 4c788906c7
2 changed files with 1 additions and 3 deletions

View File

@ -88,7 +88,6 @@
<li Class="RJW_Menstruation.CompProperties_Pheromones"> <li Class="RJW_Menstruation.CompProperties_Pheromones">
<daysToMaxSeverity>0.5</daysToMaxSeverity> <!-- The amount of time spent near someone in estrus for full effect --> <daysToMaxSeverity>0.5</daysToMaxSeverity> <!-- The amount of time spent near someone in estrus for full effect -->
<range>6</range> <range>6</range>
<intensity>1</intensity>
</li> </li>
</comps> </comps>
</HediffDef> </HediffDef>

View File

@ -13,7 +13,6 @@ namespace RJW_Menstruation
{ {
public float daysToMaxSeverity; public float daysToMaxSeverity;
public float range; public float range;
public float intensity = 1.0f;
public CompProperties_Pheromones() public CompProperties_Pheromones()
{ {
@ -83,7 +82,7 @@ namespace RJW_Menstruation
protected void ApplyEffectToPawn(Pawn target) protected void ApplyEffectToPawn(Pawn target)
{ {
float intensity = Props.intensity * GetEffectOnPawn(target); float intensity = GetEffectOnPawn(target);
if (intensity <= 0.0f) return; if (intensity <= 0.0f) return;
Hediff pheromones = target.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_AffectedByPheromones); Hediff pheromones = target.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_AffectedByPheromones);
float decay = VariousDefOf.Hediff_AffectedByPheromones.CompProps<HediffCompProperties_SeverityPerDay>().severityPerDay; float decay = VariousDefOf.Hediff_AffectedByPheromones.CompProps<HediffCompProperties_SeverityPerDay>().severityPerDay;