SHARE
TWEET

Untitled

a guest Mar 26th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     if (gameObject1 != this.ParentObject)
  2.                     {
  3.                         GameObject gameObject2 = gameObject1.DeepCopy(false);
  4.                         gameObject2.RemovePart("GivesRep");
  5.                         (gameObject2.GetPart("Inventory") as Inventory).Objects.Clear();
  6.                         if (gameObject2.ApplyEffect((Effect)new Metamorphed(this.ParentObject, 1)))
  7.                         {
  8.                             GameObject body = XRLCore.Core.Game.Player.Body;
  9.                             Mutations playerMutations = XRLCore.Core.Game.Player.Body.GetPart<Mutations>();
  10.                             Skills playerSkills = XRLCore.Core.Game.Player.Body.GetPart<Skills>();
  11.                             Talents playerTalents = XRLCore.Core.Game.Player.Body.GetPart<Talents>();
  12.                             XRLCore.Core.Game.Player.Body = gameObject2;
  13.                             gameObject2.RemovePart<Mutations>();
  14.                             gameObject2.RemovePart<Skills>();
  15.                             gameObject2.RemovePart<Talents>();
  16.                             gameObject2.RemovePart<Skills>();
  17.                             gameObject2.AddPart(playerMutations);
  18.                             gameObject2.AddPart(playerSkills);
  19.                             gameObject2.AddPart(playerTalents);
  20.                             gameObject2.AddPart(playerSkills);
  21. //                            Metamorphosis.ClearInventory(gameObject2);
  22. //                            Metamorphosis.TransferMental(body, gameObject2);
  23. //                            Metamorphosis.TransferInventory(body, gameObject2, true);
  24.                             MessageQueue.AddPlayerMessage("&GYou transfasdfasdsafform into " + gameObject1.DisplayName + "!");
  25.                             XRLCore.Core.Game.ActionManager.RemoveActiveObject(body);
  26.                             XRLCore.Core.Game.ActionManager.AddActiveObject(gameObject2);
  27.                             Cell currentCell = body.pPhysics.CurrentCell;
  28.                             currentCell.RemoveObject(body);
  29.                             currentCell.AddObject(gameObject2);
  30.                         }
  31.                         this.ActivatedAbility.Cooldown = 1 - 250 * this.Level;
  32.                         this.UseEnergy(1000, "Physical Mutation");
  33.                         return true;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top