Compare commits
3 Commits
5da2b69fd5
...
d6818b9834
Author | SHA1 | Date |
---|---|---|
lutepickle | d6818b9834 | |
lutepickle | bbaf27a397 | |
lutepickle | 88520cb8eb |
|
@ -301,10 +301,10 @@ namespace RJW_Menstruation
|
|||
// So make it always consider the mother to have one baby
|
||||
public static class HAR_LitterSize_Undo
|
||||
{
|
||||
public static void Postfix(ref int __result, Pawn mother)
|
||||
public static void Postfix(ref int __result)
|
||||
{
|
||||
if (Configurations.PregnancySource != Configurations.PregnancyType.Biotech || !Configurations.EnableBiotechTwins) return;
|
||||
__result = 0;
|
||||
if (Configurations.PregnancySource == Configurations.PregnancyType.Biotech && Configurations.EnableBiotechTwins)
|
||||
__result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace RJW_Menstruation
|
|||
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested, int ingestedcount)
|
||||
{
|
||||
Hediff hediff = HediffMaker.MakeHediff(hediffDef, pawn);
|
||||
float effect = ((!(severity > 0f)) ? hediffDef.initialSeverity : severity) * ingested.stackCount;
|
||||
float effect = ((!(severity > 0f)) ? hediffDef.initialSeverity : severity) * ingestedcount;
|
||||
AddictionUtility.ModifyChemicalEffectForToleranceAndBodySize_NewTemp(pawn, toleranceChemical, ref effect, multiplyByGeneToleranceFactors);
|
||||
hediff.Severity = effect;
|
||||
pawn.health.AddHediff(hediff);
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace RJW_Menstruation
|
|||
public const float buttonWidth = 50f;
|
||||
public const float buttonHeight = 20f;
|
||||
|
||||
public static void Prefix(Rect leftRect, Pawn pawn, float curY)
|
||||
public static void Prefix(Rect rect, Pawn pawn, float curY)
|
||||
{
|
||||
if (Configurations.EnableButtonInHT && pawn.ShowStatus() && pawn.ShouldCycle())
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ namespace RJW_Menstruation
|
|||
if (comp != null)
|
||||
{
|
||||
Text.Font = GameFont.Tiny;
|
||||
Rect buttonRect = new Rect(leftRect.xMax - buttonWidth - 8f, curY + 4f, buttonWidth, buttonHeight);
|
||||
Rect buttonRect = new Rect(rect.xMax - buttonWidth - 8f, curY + 4f, buttonWidth, buttonHeight);
|
||||
if (Widgets.ButtonText(buttonRect, Translations.Button_HealthTab))
|
||||
{
|
||||
Dialog_WombStatus.ToggleWindow(pawn, comp);
|
||||
|
|
Loading…
Reference in New Issue