mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Remove intensity from pheromone properties since it's just a modifier on daysToMaxSeverity
This commit is contained in:
parent
28d77ed1fb
commit
4c788906c7
2 changed files with 1 additions and 3 deletions
|
@ -88,7 +88,6 @@
|
|||
<li Class="RJW_Menstruation.CompProperties_Pheromones">
|
||||
<daysToMaxSeverity>0.5</daysToMaxSeverity> <!-- The amount of time spent near someone in estrus for full effect -->
|
||||
<range>6</range>
|
||||
<intensity>1</intensity>
|
||||
</li>
|
||||
</comps>
|
||||
</HediffDef>
|
||||
|
|
|
@ -13,7 +13,6 @@ namespace RJW_Menstruation
|
|||
{
|
||||
public float daysToMaxSeverity;
|
||||
public float range;
|
||||
public float intensity = 1.0f;
|
||||
|
||||
public CompProperties_Pheromones()
|
||||
{
|
||||
|
@ -83,7 +82,7 @@ namespace RJW_Menstruation
|
|||
|
||||
protected void ApplyEffectToPawn(Pawn target)
|
||||
{
|
||||
float intensity = Props.intensity * GetEffectOnPawn(target);
|
||||
float intensity = GetEffectOnPawn(target);
|
||||
if (intensity <= 0.0f) return;
|
||||
Hediff pheromones = target.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_AffectedByPheromones);
|
||||
float decay = VariousDefOf.Hediff_AffectedByPheromones.CompProps<HediffCompProperties_SeverityPerDay>().severityPerDay;
|
||||
|
|
Loading…
Reference in a new issue