Example #1
0
 public void Googlify(GameObject GO, GameObject Googler)
 {
     GO.AddPart(new acegiak_ModGoogly());
     Popup.Show(GO.The + GO.DisplayNameOnly + GO.GetVerb("look") + " very intimidating.");
     if (GO.pBrain != null)
     {
         GO.pBrain.AdjustFeeling(Googler, -1);
     }
     ParentObject.ForceUnequipAndRemove(true);
 }
Example #2
0
        public void Harness(GameObject harnesser, GameObject harnessee)
        {
            IPart.AddPlayerMessage(harnesser.It + harnesser.GetVerb("attempt") + " to harness " + harnessee.the + harnessee.ShortDisplayName + " with the saddle!");

            if (harnessee.pBrain != null)
            {
                harnessee.pBrain.AdjustFeeling(harnesser, -100);
            }
            if (harnessee.MakeSave("Strength", 8, harnesser, "Strength", "Saddle Harness"))
            {
                IPart.AddPlayerMessage(harnessee.The + harnessee.ShortDisplayName + harnessee.GetVerb("avoid") + " the saddle harness!");
            }
            else
            {
                ParentObject.ForceUnequipAndRemove(true);
                harnessee.ForceEquipObject(ParentObject, "Riding", true);
                IPart.AddPlayerMessage(harnesser.It + harnesser.GetVerb("harness") + " " + harnessee.the + harnessee.ShortDisplayName + " with the saddle!");

                harnessee.ParticleText("*" + harnessee.ShortDisplayName + " Harnessed*");
            }
        }