-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
NRE here because hacked mechaniods have no Psychic tracker
private void TrySatisfyPawnNeeds(Pawn pawn)
{
...
Pawn_PsychicEntropyTracker psychicEntropy = pawn.psychicEntropy;
if (psychicEntropy.Psylink != null)
{
TryGainPsyfocus(psychicEntropy);
}
}I added this:
if (pawn.psychicEntropy == null)
pawn.psychicEntropy = new Pawn_PsychicEntropyTracker(pawn);after this:
public static class PawnComponentsUtility_AddAndRemoveDynamicComponents
{
static void Postfix(Pawn pawn)
{
if (flagIsCreatureMine && flagIsCreatureDraftable)
{
//If everything goes well, add drafter to the pawn
pawn.drafter = new Pawn_DraftController(pawn);
...Metadata
Metadata
Assignees
Labels
No labels