Ejemplo n.º 1
0
        public override void OnChatButtonClicked(bool firstButton, ref bool shop)
        {
            if (firstButton)
            {
                shop = true;
            }
            else
            {
                Player p = Main.player[Main.myPlayer];
                FargowiltasSouls.FargoPlayer fargoPlayer = p.GetModPlayer <FargowiltasSouls.FargoPlayer>();

                if (Main.rand.Next(3) == 0)
                {
                    if (FargowiltasSouls.FargoSoulsWorld.downedMutant)
                    {
                        return("What's that? You want to fight me? ...maybe in 2023.");
                    }
                    else if (FargowiltasSouls.FargoSoulsWorld.downedFishronEX)
                    {
                        return("What's that? You want to fight my brother? ...maybe if he had a reason to.");
                    }
                }

                if (NPC.downedMoonlord && !FargowiltasSouls.FargoSoulsWorld.downedFishronEX && Main.rand.Next(3) == 0)
                {
                    return("When you're ready, go fishing with a Truffle Worm EX. But until then... yeah, keep farming. So what are you buying today?");
                }

                IList <string> dialogue = new List <string>();

                dialogue.Add("You're more masochistic than I thought, aren't you?");
                dialogue.Add("Seems like everyone's learning to project auras these days. If you look at the particles, you can see whether it'll affect you at close range or a distance.");
                dialogue.Add("There's probably a thousand items to protect against all these debuffs. It's a shame you don't have a thousand hands to carry them all at once.");
                dialogue.Add("I've always wondered why those other monsters never bothered to carry any healing potions. Well, you probably shouldn't wait and see if they actually do.");
                dialogue.Add("Powerful enemies can drop all sorts of helpful loot. They'll also come back for revenge after you beat them, so keep an eye out for that.");
                dialogue.Add("Why bother fishing when you can massacre bosses for the same goods? With spawners provided by my brother of course!");

                if (!p.accFlipper && !p.gills && !fargoPlayer.MutantAntibodies)
                {
                    dialogue.Add("The water is bogging you down? Never had an issue with it, personally... Have you tried breathing water instead of air?");
                }
                if (!p.fireWalk && !p.buffImmune[BuffID.OnFire])
                {
                    dialogue.Add("The underworld has gotten a lot hotter since the last time I visited. I hear an obsidian is a good luck charm against burning alive, though.");
                }
                if (!p.buffImmune[BuffID.Suffocation] && !fargoPlayer.PureHeart)
                {
                    dialogue.Add("Want to have a breath-holding contest? The empty vacuum of space would be perfect.");
                }

                if (p.statLifeMax < 400)
                {
                    dialogue.Add("I don't have any Life Crystals for you, but Cthulhu's eye is going on a new diet of them. Not that they would share...");
                }
                if (NPC.downedBoss3)
                {
                    dialogue.Add("Dungeon Guardian sent me photos of their kids earlier. Cute little skull demons hiding in other skeletons, aren't they? Oh, and their drop wards off random boss spawns, I guess.");
                }

                if (Main.hardMode)
                {
                    if (!fargoPlayer.PureHeart)
                    {
                        dialogue.Add("The spirits of light and dark stopped by and they sounded pretty upset with you. Don't be too surprised if something happens to you for entering their territory.");
                    }
                    dialogue.Add("They're not in my shop, but why not go hunting for some rare monsters every once in a while? Plenty of treasure to be looted and all that.");
                    dialogue.Add("The desert monsters keep sending me letters about all the fossils they're collecting. I don't get the craze about it, myself.");
                    if (p.statLifeMax < 500)
                    {
                        dialogue.Add("If you ask me, Plantera is really letting herself go. Chlorophyte and Life Fruit aren't THAT healthy!");
                    }
                }

                if (NPC.downedPlantBoss)
                {
                    dialogue.Add("Trick or treat? Merry Christmas? I don't have anything for you, go ask Pumpking or Ice Queen.");
                }

                Main.npcChatText = dialogue[Main.rand.Next(dialogue.Count)];
            }
        }
Ejemplo n.º 2
0
 private void RevertNerfsFargowiltasSoulsWeaponDamage(On.FargowiltasSouls.FargoPlayer.orig_ModifyWeaponDamage orig, FargowiltasSouls.FargoPlayer self, object item, ref float add, ref float mult, ref float flat)
 {
     throw new NotImplementedException();
 }