Skip to content
Snippets Groups Projects
Commit c6264444 authored by Ed86's avatar Ed86
Browse files

fix for insect pregnancy generating jelly at current map instead of mother's

parent dfde97e4
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,10 @@ namespace rjw
}
FilthMaker.MakeFilth(mother.Position, mother.Map, ThingDefOf.Filth_AmnioticFluid, mother.LabelIndefinite(), 5);
int howmuch = xxx.has_quirk(mother, "Incubator") ? Rand.Range(1, 3) * 2 : Rand.Range(1, 3);
DebugThingPlaceHelper.DebugSpawn(ThingDef.Named("InsectJelly"), mother.InteractionCell, howmuch, false);
//DebugThingPlaceHelper.DebugSpawn(ThingDef.Named("InsectJelly"), mother.InteractionCell, howmuch, false);
int i = 0;
while (i++ < howmuch)
GenSpawn.Spawn(ThingDefOf.InsectJelly, mother.InteractionCell, mother.Map);
}
mother.health.RemoveHediff(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment