mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
1.4 updates
This commit is contained in:
parent
cd8fe17713
commit
6cdd801207
190 changed files with 12627 additions and 43 deletions
|
@ -1,5 +1,6 @@
|
|||
using RimWorld;
|
||||
using RimWorld.Planet;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -16,8 +17,10 @@ namespace CRIALactation
|
|||
{
|
||||
Pawn pawn = target.Pawn;
|
||||
|
||||
|
||||
if (pawn == null) return false;
|
||||
if (!pawn.IsColonistPlayerControlled || !pawn.IsSlaveOfColony || !pawn.IsPrisonerOfColony) return false;
|
||||
if (!(pawn.IsColonistPlayerControlled || pawn.IsSlaveOfColony || pawn.IsPrisonerOfColony)) return false;
|
||||
if (!Genital_Helper.has_breasts(pawn) || Genital_Helper.has_male_breasts(pawn)) return false;
|
||||
if (LactationUtility.IsLactating(pawn)) return false;
|
||||
|
||||
return true;
|
||||
|
|
|
@ -16,9 +16,9 @@ namespace CRIALactation
|
|||
public override bool Valid(LocalTargetInfo target, bool throwMessages = false)
|
||||
{
|
||||
Pawn pawn = target.Pawn;
|
||||
return pawn != null && AbilityUtility.ValidateMustBeHuman(pawn, throwMessages) &&
|
||||
AbilityUtility.ValidateNoMentalState(pawn, throwMessages) &&
|
||||
AbilityUtility.ValidateSameIdeo(this.parent.pawn, pawn, throwMessages) &&
|
||||
return pawn != null && AbilityUtility.ValidateMustBeHuman(pawn, throwMessages, this.parent) &&
|
||||
AbilityUtility.ValidateNoMentalState(pawn, throwMessages, this.parent) &&
|
||||
AbilityUtility.ValidateSameIdeo(this.parent.pawn, pawn, throwMessages, this.parent) &&
|
||||
LactationUtility.IsLactating(pawn) &&
|
||||
!LactationUtility.IsHucow(pawn);
|
||||
|
||||
|
|
|
@ -19,6 +19,20 @@ namespace CRIALactation
|
|||
Scribe_Values.Look<int>(ref this.lastHumanLactationIngestedTick, "lastHumanLactationIngestedTick", 0);
|
||||
|
||||
}
|
||||
|
||||
public override string CompInspectStringExtra()
|
||||
{
|
||||
if((parent as Pawn).health?.hediffSet?.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation) != null
|
||||
&& (parent as Pawn).health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation).TryGetComp<HediffComp_LactationInduction>().canMassage())
|
||||
{
|
||||
return "Ready to stimulate breasts for lactation.";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue