public override void DoEffect(Pawn user) { base.DoEffect(user); string nameOfTheImage = this.parent.TryGetComp <CompBeeResearchImages>().GetImage; string textOfTheImage = this.parent.TryGetComp <CompBeeResearchImages>().GetText; beeresearch = new Dialog_BeeResearch(nameOfTheImage, textOfTheImage); Find.WindowStack.Add(beeresearch); }
public override void DoEffect(Pawn user) { base.DoEffect(user); string nameOfTheImage = this.parent.TryGetComp <CompBeeResearchImages>().GetImage; string textOfTheImage = this.parent.TryGetComp <CompBeeResearchImages>().GetText; if (user.Faction == Faction.OfPlayer) { user.health.AddHediff(HediffDef.Named("RB_RecentlyResearched")); } beeresearch = new Dialog_BeeResearch(nameOfTheImage, textOfTheImage); Find.WindowStack.Add(beeresearch); }