Exemplo n.º 1
0
        /*public override void SetDefaults(NPC npc)
         * {
         *  Mod thoriummod = ModLoader.GetMod("ThoriumMod");
         *  Mod calamitymod = ModLoader.GetMod("CalamityMod");
         *
         *  if (MyPlayer.RealismMode)
         *  {
         *      if (npc.type == NPCID.EyeofCthulhu)
         *      {
         *          npc.lifeMax = npc.lifeMax * 2;
         *      }
         *      else if (npc.type == NPCID.EaterofWorldsHead)
         *      {
         *          npc.lifeMax = npc.lifeMax * 3;
         *      }
         *      else if (npc.type == NPCID.EaterofWorldsBody)
         *      {
         *          npc.lifeMax = npc.lifeMax * 3;
         *      }
         *      else if (npc.type == NPCID.EaterofWorldsTail)
         *      {
         *          npc.lifeMax = npc.lifeMax * 3;
         *      }
         *      else if (npc.type == NPCID.BrainofCthulhu)
         *      {
         *          npc.lifeMax = npc.lifeMax * 3;
         *      }
         *      else if (npc.type == NPCID.QueenBee)
         *      {
         *          npc.lifeMax = npc.lifeMax * 4;
         *      }
         *      else if (npc.type == NPCID.SkeletronHead)
         *      {
         *          npc.lifeMax = npc.lifeMax * 5;
         *      }
         *      else if (npc.type == NPCID.SkeletronHand)
         *      {
         *          npc.lifeMax = npc.lifeMax * 5;
         *      }
         *      else if (npc.type == NPCID.WallofFlesh)
         *      {
         *          npc.lifeMax = npc.lifeMax * 7;
         *      }
         *      else if (npc.type == NPCID.WallofFleshEye)
         *      {
         *          npc.lifeMax = npc.lifeMax * 7;
         *      }
         *      else if (npc.type == NPCID.Spazmatism)
         *      {
         *          npc.lifeMax = npc.lifeMax * 8;
         *      }
         *      else if (npc.type == NPCID.Retinazer)
         *      {
         *          npc.lifeMax = npc.lifeMax * 8;
         *      }
         *      else if (npc.type == NPCID.SkeletronPrime)
         *      {
         *          npc.lifeMax = npc.lifeMax * 8;
         *      }
         *      else if (npc.type == NPCID.TheDestroyer)
         *      {
         *          npc.lifeMax = npc.lifeMax * 8;
         *      }
         *      else if (npc.type == NPCID.Plantera)
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == NPCID.Golem)
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == NPCID.GolemHead)
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == NPCID.GolemFistLeft)
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == NPCID.GolemFistRight)
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == NPCID.DukeFishron)
         *      {
         *          npc.lifeMax = npc.lifeMax * 10;
         *      }
         *      else if (npc.type == NPCID.CultistBoss)
         *      {
         *          npc.lifeMax = npc.lifeMax * 11;
         *      }
         *      else if (npc.type == NPCID.MoonLordCore)
         *      {
         *          npc.lifeMax = npc.lifeMax * 12;
         *      }
         *      else if (npc.type == NPCID.MoonLordHand)
         *      {
         *          npc.lifeMax = npc.lifeMax * 12;
         *      }
         *      else if (npc.type == NPCID.MoonLordHead)
         *      {
         *          npc.lifeMax = npc.lifeMax * 12;
         *      }
         *      else if (npc.type == thoriummod.NPCType("TheGrandThunderBirdv2"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 2;
         *      }
         *      else if (npc.type == thoriummod.NPCType("QueenJelly"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 3;
         *      }
         *      else if (npc.type == thoriummod.NPCType("Viscount"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 4;
         *      }
         *      else if (npc.type == thoriummod.NPCType("TheBuriedWarrior"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 5;
         *      }
         *      else if (npc.type == thoriummod.NPCType("GraniteEnergyStorm"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 5;
         *      }
         *      else if (npc.type == thoriummod.NPCType("ThePrimeScouter"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 6;
         *      }
         *      else if (npc.type == thoriummod.NPCType("BoreanStrider"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 7;
         *      }
         *      else if (npc.type == thoriummod.NPCType("BoreanStriderPopped"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 7;
         *      }
         *      else if (npc.type == thoriummod.NPCType("FallenDeathBeholder"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 7;
         *      }
         *      else if (npc.type == thoriummod.NPCType("FallenDeathBeholder2"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 7;
         *      }
         *      else if (npc.type == thoriummod.NPCType("Lich"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 8;
         *      }
         *      else if (npc.type == thoriummod.NPCType("LichHeadless"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 8;
         *      }
         *      else if (npc.type == thoriummod.NPCType("Abyssion"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == thoriummod.NPCType("AbyssionCracked"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == thoriummod.NPCType("AbyssionReleased"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 9;
         *      }
         *      else if (npc.type == thoriummod.NPCType("Aquaius"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 13;
         *      }
         *      else if (npc.type == thoriummod.NPCType("Aquaius2"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 13;
         *      }
         *      else if (npc.type == thoriummod.NPCType("Omnicide"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 13;
         *      }
         *      else if (npc.type == thoriummod.NPCType("SlagFury"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 13;
         *      }
         *      else if (npc.type == thoriummod.NPCType("RealityBreaker"))
         *      {
         *          npc.lifeMax = npc.lifeMax * 13;
         *      }
         *  }
         *  base.SetDefaults(npc);
         * }*/

        public override void OnChatButtonClicked(NPC npc, bool firstButton)
        {
            if (npc.type == NPCID.Nurse)
            {
                if (firstButton)
                {
                    MyPlayer modPlayer = Main.LocalPlayer.GetModPlayer <MyPlayer>();

                    modPlayer.kaiokenLevel = 0;
                    modPlayer.EndTransformations();
                    float kihealvalue = modPlayer.OverallKiMax() - modPlayer.GetKi();
                    modPlayer.AddKi(modPlayer.OverallKiMax(), false, false);
                    CombatText.NewText(new Rectangle((int)modPlayer.player.position.X, (int)modPlayer.player.position.Y, modPlayer.player.width, modPlayer.player.height), new Color(51, 204, 255), (int)Math.Round(kihealvalue, 0), false, false);
                    SoundHelper.PlayVanillaSound(SoundID.MaxMana, modPlayer.player);
                }
            }
        }