mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Use explicit types in a few places
This commit is contained in:
parent
1c29218fdb
commit
76eec3852a
2 changed files with 2 additions and 2 deletions
|
@ -311,7 +311,7 @@ namespace RJW_Menstruation
|
|||
// Replicate how rjw.PawnCapacityWorker_Fertility.CalculateCapacityLevel does it, but without the age factor
|
||||
if (!Pawn.RaceHasFertility()) return 0.0f;
|
||||
if (AndroidsCompatibility.IsAndroid(Pawn) && parent.def != Genital_Helper.archotech_vagina) return 0.0f;
|
||||
foreach (var part in StatDefOf.Fertility.parts)
|
||||
foreach (StatPart part in StatDefOf.Fertility.parts)
|
||||
{
|
||||
if(part is StatPart_FertilityByGenderAge fertilityByAge)
|
||||
{
|
||||
|
|
|
@ -284,7 +284,7 @@ namespace RJW_Menstruation
|
|||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
|
||||
{
|
||||
if (ApplyBirthOutcome?.ReturnType != typeof(Thing)) throw new InvalidOperationException("ApplyBirthOutcome not found");
|
||||
foreach (var instruction in instructions)
|
||||
foreach (CodeInstruction instruction in instructions)
|
||||
{
|
||||
if (instruction.Calls(ApplyBirthOutcome))
|
||||
yield return CodeInstruction.Call(typeof(Ritual_ChildBirth_Apply_Patch), nameof(Ritual_ChildBirth_Apply_Patch.ApplyBirthLoop));
|
||||
|
|
Loading…
Reference in a new issue