From a6fe9e4dd95ab3b2d29dad3a87a26330cd128fb6 Mon Sep 17 00:00:00 2001 From: Crom Date: Fri, 5 Aug 2022 13:43:28 -0700 Subject: [PATCH] Delete LegendaryDogsSoftTitlePart.cs --- LegendaryDogsSoftTitlePart.cs | 45 ----------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 LegendaryDogsSoftTitlePart.cs diff --git a/LegendaryDogsSoftTitlePart.cs b/LegendaryDogsSoftTitlePart.cs deleted file mode 100644 index 7e604e8..0000000 --- a/LegendaryDogsSoftTitlePart.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using XRL.UI; - -namespace XRL.World.Parts -{ - [Serializable] - public class LegendaryDogsPetTitlePart : IPart - { - public string Descriptor; - - public LegendaryDogsPetTitlePart() : this("soft") - { - } - - public LegendaryDogsPetTitlePart(string Descriptor) - { - base.Name = "LegendaryDogsSoftTitlePart"; - this.Descriptor = Descriptor; - } - - public override bool SameAs(IPart p) - { - return false; - } - - public override void Register(GameObject Object) - { - Object.RegisterPartEvent(this, "ObjectPetted"); - } - - public override bool FireEvent(Event E) - { - if (E.ID == "ObjectPetted") - { - GameObject Petter = E.GetParameter("Petter"); - GameObject Petted = E.GetParameter("Object"); - if (Petter.IsPlayer() && Petted.SameAs(ParentObject)) - { - Popup.Show("You can't help but stop and notice how " + this.Descriptor + " " + ParentObject.the + ParentObject.DisplayNameOnlyDirect + "&y" + "'s fur is. It's incredible!"); - } - } - return base.FireEvent(E); - } - } -}