public override bool TryMerge(ScenPart other) { if (other is ForcedHediffModifier fhm && hediff == fhm.hediff) { chance = GenMath.ChanceEitherHappens(chance, fhm.chance); return(true); } return(false); }
public override bool TryMerge(ScenPart other) { ScenPart_ForcedHediff scenPart_ForcedHediff = other as ScenPart_ForcedHediff; if (scenPart_ForcedHediff != null && this.hediff == scenPart_ForcedHediff.hediff) { this.chance = GenMath.ChanceEitherHappens(this.chance, scenPart_ForcedHediff.chance); return(true); } return(false); }
public override bool TryMerge(ScenPart other) { ScenPart_ForcedSapience scenPart_SetSapience = other as ScenPart_ForcedSapience; if (scenPart_SetSapience != null && need == scenPart_SetSapience.need) { chance = GenMath.ChanceEitherHappens(chance, scenPart_SetSapience.chance); return(true); } return(false); }
public override bool TryMerge(ScenPart other) { ScenPart_SetNeedLevel scenPart_SetNeedLevel = other as ScenPart_SetNeedLevel; if (scenPart_SetNeedLevel != null && this.need == scenPart_SetNeedLevel.need) { this.chance = GenMath.ChanceEitherHappens(this.chance, scenPart_SetNeedLevel.chance); return(true); } return(false); }
public override bool TryMerge(ScenPart other) { ScenPart_ForcedAspect scenPart_ForcedAspect = other as ScenPart_ForcedAspect; if (scenPart_ForcedAspect != null && aspectDef == scenPart_ForcedAspect.aspectDef) { chance = GenMath.ChanceEitherHappens(chance, scenPart_ForcedAspect.chance); return(true); } return(false); }