Exemplo n.º 1
0
        public static void SetCrownType(this HediffComp_RandySpawnUponDeath comp, Pawn newPawn)
        {
            if (!comp.ChosenItem.copyParent.crownType)
            {
                return;
            }

            if (comp.Pawn.IsHuman())
            {
                newPawn.story.crownType = comp.Pawn.story.crownType;
            }
            else if (comp.Pawn.IsAlien())
            {
                comp.SetAlienCrownType(newPawn);
            }
        }