public override void CompPostPostAdd(DamageInfo?dinfo) { base.CompPostPostAdd(dinfo); DeathActionWorker daw = this.Pawn.def.race.DeathActionWorker; this.Pawn.def.race.deathActionWorkerClass = typeof(DeathActionWorker_Simple); if (parent.def == XenomorphDefOf.RRY_HiddenNeomorphImpregnation || parent.def == XenomorphDefOf.RRY_NeomorphImpregnation && this.parent.pawn.Faction == Faction.OfPlayer) { string text = TranslatorFormattedStringExtensions.Translate("Xeno_Neospores_Added", base.parent.pawn.LabelShortCap, parent.Part.LabelShort); Log.Message(text); MoteMaker.ThrowText(base.parent.pawn.Position.ToVector3(), base.parent.pawn.Map, text, 3f); } }
public override void CompPostPostAdd(DamageInfo?dinfo) { base.CompPostPostAdd(dinfo); DeathActionWorker daw = this.Pawn.def.race.DeathActionWorker; this.Pawn.def.race.deathActionWorkerClass = typeof(DeathActionWorker_Simple); if (parent.pawn.Spawned) { if (parent.pawn.Map != null) { if (!PlayerKnowledgeDatabase.IsComplete(XenomorphConceptDefOf.RRY_Concept_Embryo) && Pawn.Spawned && Pawn.IsColonist && (this.parent.def == XenomorphDefOf.RRY_XenomorphImpregnation || this.parent.def == XenomorphDefOf.RRY_NeomorphImpregnation) && MyMap != null) { LessonAutoActivator.TeachOpportunity(XenomorphConceptDefOf.RRY_Concept_Embryo, OpportunityType.Important); } } } }
public override void CompPostPostAdd(DamageInfo?dinfo) { base.CompPostPostAdd(dinfo); DeathActionWorker daw = this.Pawn.def.race.DeathActionWorker; this.Pawn.def.race.deathActionWorkerClass = typeof(DeathActionWorker_Simple); if (parent.pawn.Spawned) { if (parent.pawn.Map != null) { if (parent.def == XenomorphDefOf.RRY_HiddenNeomorphImpregnation || parent.def == XenomorphDefOf.RRY_NeomorphImpregnation && this.parent.pawn.Faction == Faction.OfPlayer) { string text = TranslatorFormattedStringExtensions.Translate("Xeno_Neospores_Added", base.parent.pawn.LabelShortCap, parent.Part.LabelShort); MoteMaker.ThrowText(base.parent.pawn.Position.ToVector3(), base.parent.pawn.Map, text, 3f); } if (!PlayerKnowledgeDatabase.IsComplete(XenomorphConceptDefOf.RRY_Concept_Embryo) && Pawn.Spawned && Pawn.IsColonist && (this.parent.def == XenomorphDefOf.RRY_XenomorphImpregnation || this.parent.def == XenomorphDefOf.RRY_NeomorphImpregnation) && MyMap != null) { LessonAutoActivator.TeachOpportunity(XenomorphConceptDefOf.RRY_Concept_Embryo, OpportunityType.Important); } } } }