Skip to content

Human egg fails to hatch if no parent #176

Open

Description

@ModestLime

I found a human egg from a quest to save a prisoner and inside the room along with meals and random other food items was a human egg, but since it was randomly generated it has no parents and fails to hatch. Idk if this is a bug with eggs being able to spawn randomly or being able to spawn with no parent or a slight oversight in the human egg spawning code. but here is the line it errors on:

PawnGenerationRequest request = new PawnGenerationRequest(hatcheeParent.kindDef,hatcheeFaction, PawnGenerationContext.NonPlayer, -1,forceGenerateNewPawn: false, allowDead: false, allowDowned: true, canGeneratePawnRelations: true, mustBeCapableOfViolence: false, 1f, forceAddFreeWarmLayerIfNeeded: false, allowGay: true, allowPregnant: false, allowFood: true, allowAddictions: true, inhabitant: false, certainlyBeenInCryptosleep: false, forceRedressWorldPawnIfFormerColonist: false, worldPawnFactionDoesntMatter: false, 0f, 0f, null, 1f, null, null, null, null, null, null, null, null, null, null, null, null, forceNoIdeo: false, forceNoBackstory: false, forbidAnyTitle: false, forceDead: false, null, null, null, null, null, 0f, DevelopmentalStage.Newborn);

because hatcheeparent is null and trys to get the kinddef of null.
probably just a little oversight since a couple lines below there is if (hatcheeParent != null) and technicaly since it throws an error if its null it will never get to that code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions