예제 #1
0
 public override void SetupShop(int type, Chest shop, ref int nextSlot)
 {
     if (type == NPCID.Merchant && Main.bloodMoon)
     {
         shop.AddUniqueItem(ref nextSlot, mod.ItemType <RedPuzzleFragment>());
         nextSlot++;
     }
 }
예제 #2
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <CornSeed>());

            if (!NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Pitchfork>());
            }

            if (Main.dayTime)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.DaybloomSeeds);
            }
            else
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.MoonglowSeeds);
            }

            if (NPC.downedSlimeKing)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.WaterleafSeeds);
            }
            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.BlinkrootSeeds);
                // Eggplant doesn't exist in Tremor namespace.
                //shop.AddUniqueItem(ref nextSlot, mod.ItemType<EggPlant>());
            }

            if (Main.hardMode)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.FireblossomSeeds);
            }

            if (Main.LocalPlayer.HasItem(mod.ItemType <Carrow>()))
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Items.Carrot>());
            }

            if (Main.bloodMoon)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.DeathweedSeeds);
            }
        }
예제 #3
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <GenieLamp>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <JavaHood>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <JavaRobe>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <SandstoneRing>());

            if (NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <FossilSugar>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <DesertCrown>());
            }
            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.BoneJavelin);
                shop.AddUniqueItem(ref nextSlot, ItemID.BoneDagger);
            }

            if (Main.hardMode)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <DesertEagle>());
            }
        }
예제 #4
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, 1337);
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <KeyMold>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <LifeMachine>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <AncientTechnology>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <BagofDust>());

            if (NPC.downedAncientCultist)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ManaGenerator>());
            }
            if (NPC.downedMechBossAny)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChaoticAmplifier>());
            }
        }
예제 #5
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <CandyCane>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <RedChristmasStocking>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <BlueChristmasStocking>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <GreenChristmasStocking>());

            if (NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <SnowShotgun>());
            }
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <CandyBow>());

            if (NPC.downedBoss3)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <TheSnowBall>());
            }

            if (Main.hardMode)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Blizzard>());
            }
        }
예제 #6
0
파일: Witch.cs 프로젝트: simo631m/Tremor
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <PlagueMask>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <PlagueRobe>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <SacrificalScythe>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <Scarecrow>());

            if (NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <BoomSpear>());
            }
            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <BlackRose>());
            }
            if (NPC.downedBoss3)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Pumpspell>());
            }
        }
예제 #7
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <Knife>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <Durian>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChefHat>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <ButcherAxe>());

            if (NPC.AnyNPCs(mod.NPCType <Farmer>()))
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Carrow>());
            }

            if (Main.bloodMoon)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <CursedPopcorn>());
            }
            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChickenLegMace>());
            }
        }
예제 #8
0
파일: LadyMoon.cs 프로젝트: Eldrazi/Tremor
 public override void SetupShop(Chest shop, ref int nextSlot)
 {
     shop.AddUniqueItem(ref nextSlot, mod.ItemType <DimensionalTopHat>());
     shop.AddUniqueItem(ref nextSlot, mod.ItemType <ExtraterrestrialRubies>());
     shop.AddUniqueItem(ref nextSlot, mod.ItemType <UnchargedBand>());
     if (!Main.dayTime)
     {
         shop.AddUniqueItem(ref nextSlot, mod.ItemType <ManaBooster>());
     }
     if (Main.dayTime)
     {
         shop.AddUniqueItem(ref nextSlot, mod.ItemType <HealthBooster>());
     }
     if (Main.bloodMoon)
     {
         shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChainedRocket>());
     }
     if (Main.eclipse)
     {
         shop.AddUniqueItem(ref nextSlot, mod.ItemType <Infusion>());
     }
 }
예제 #9
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType("GreatAnvil"));

            if (Main.dayTime)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.CopperBar);
                shop.AddUniqueItem(ref nextSlot, ItemID.IronBar);
                shop.AddUniqueItem(ref nextSlot, ItemID.SilverBar);

                if (NPC.downedBoss2)
                {
                    shop.AddUniqueItem(ref nextSlot, ItemID.GoldBar);
                }
                if (NPC.downedBoss3)
                {
                    shop.AddUniqueItem(ref nextSlot, ItemID.DemoniteBar);
                }

                if (NPC.downedMechBossAny)
                {
                    shop.AddUniqueItem(ref nextSlot, ItemID.CobaltBar);
                    shop.AddUniqueItem(ref nextSlot, ItemID.MythrilBar);
                    shop.AddUniqueItem(ref nextSlot, ItemID.AdamantiteBar);
                }
            }
            else
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.TinBar);
                shop.AddUniqueItem(ref nextSlot, ItemID.LeadBar);
                shop.AddUniqueItem(ref nextSlot, ItemID.TungstenBar);

                if (NPC.downedBoss2)
                {
                    shop.AddUniqueItem(ref nextSlot, ItemID.PlatinumBar);
                }
                if (NPC.downedBoss3)
                {
                    shop.AddUniqueItem(ref nextSlot, ItemID.CrimtaneBar);
                }

                if (NPC.downedMechBossAny)
                {
                    shop.AddUniqueItem(ref nextSlot, ItemID.PalladiumBar);
                    shop.AddUniqueItem(ref nextSlot, ItemID.OrichalcumBar);
                    shop.AddUniqueItem(ref nextSlot, ItemID.TitaniumBar);
                }
            }

            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <PoisonRod>());
            }
            if (NPC.downedBoss3)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <BurningHammer>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <PerfectBehemoth>());
            }
            if (NPC.downedPlantBoss)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.HallowedBar);
            }
            if (NPC.downedGolemBoss)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.ChlorophyteBar);
            }
            if (NPC.downedAncientCultist)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.SpectreBar);
            }

            if (Main.hardMode)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <GoldenMace>());
                shop.AddUniqueItem(ref nextSlot, ItemID.HellstoneBar);
            }
        }
예제 #10
0
파일: Knight.cs 프로젝트: simo631m/Tremor
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <ThrowingAxe>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <RustySword>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <RipperKnife>());

            if (NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <TombRaider>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <SpikeShield>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChainCoif>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Chainmail>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChainGreaves>());
            }
            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <TwilightHorns>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ToxicRazorknife>());
            }
            if (NPC.downedBoss3)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <NecromancerClaymore>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Shovel>());
            }

            if (Main.hardMode)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <GoldenThrowingAxe>());

                if (Main.bloodMoon)
                {
                    shop.AddUniqueItem(ref nextSlot, mod.ItemType <Oppressor>());
                }
            }
            if (NPC.downedMechBossAny)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <PrizmaticSword>());
            }
        }
예제 #11
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <BasicFlask>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <HazardousChemicals>());
            shop.AddUniqueItem(ref nextSlot, ItemID.StinkPotion);
            shop.AddUniqueItem(ref nextSlot, ItemID.LovePotion);

            if (TremorWorld.Boss.Alchemaster.IsDowned())
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Pyro>());
            }

            if (Main.hardMode)
            {
                if (Main.dayTime)
                {
                    shop.AddUniqueItem(ref nextSlot, mod.ItemType <BigHealingFlack>());
                }
                else
                {
                    shop.AddUniqueItem(ref nextSlot, mod.ItemType <BigManaFlask>());
                }

                shop.AddUniqueItem(ref nextSlot, mod.ItemType <BlackCauldron>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <LesserVenomFlask>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ConcentratedTincture>());
            }
            else
            {
                if (Main.dayTime)
                {
                    shop.AddUniqueItem(ref nextSlot, mod.ItemType <LesserHealingFlack>());
                }
                else
                {
                    shop.AddUniqueItem(ref nextSlot, mod.ItemType <LesserManaFlask>());
                }
            }

            shop.AddUniqueItem(ref nextSlot, mod.ItemType <HealthSupportFlask>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <ManaSupportFlask>());

            if (Main.player[Main.myPlayer].ZoneSnow)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <FreezeFlask>());
            }
            if (Main.player[Main.myPlayer].ZoneJungle)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <LesserPoisonFlask>());
            }

            if (NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <BoomFlask>());
            }
            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Nitro>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <BurningFlask>());
            }
            if (NPC.downedBoss3)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <GoldFlask>());
            }

            if (NPC.downedGolemBoss)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <CthulhuBlood>());
            }

            if (NPC.downedPlantBoss && Main.bloodMoon)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <AlchemistGlove>());
            }
        }
예제 #12
0
파일: Archer.cs 프로젝트: simo631m/Tremor
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            shop.AddUniqueItem(ref nextSlot, ItemID.WoodenArrow);
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <ArcherGlove>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <Crossbow>());

            if (NPC.downedBoss1)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <Quiver>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <MiniGun>());
                shop.AddUniqueItem(ref nextSlot, ItemID.JestersArrow);
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <LeatherHat>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <LeatherShirt>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <LeatherGreaves>());
            }

            if (NPC.downedBoss2)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.UnholyArrow);
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <DragonGem>());
            }

            if (Main.hardMode)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.HolyArrow);
                shop.AddUniqueItem(ref nextSlot, ItemID.HellfireArrow);
            }

            if (Main.bloodMoon)
            {
                shop.AddUniqueItem(ref nextSlot, ItemID.BoneArrow);
            }
        }
예제 #13
0
        public override void SetupShop(Chest shop, ref int nextSlot)
        {
            // todo: change to data representation with conditionals, loop
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <Starmine>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <ChainBow>());
            shop.AddUniqueItem(ref nextSlot, mod.ItemType <EnforcerShield>());

            if (!Main.dayTime)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <SniperHelmet>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <SniperBreastplate>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <SniperBoots>());
            }
            else
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ParatrooperLens>());
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <StartrooperFlameburstPistol>());
            }

            if (TremorWorld.Boss.Trinity.IsDowned())
            {
                if (!Main.dayTime)
                {
                    shop.AddUniqueItem(ref nextSlot, mod.ItemType <CosmicAssaultRifle>());
                }
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <WartimeRocketLauncher>());
            }

            if (Main.bloodMoon)
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <ParatrooperShotgun>());
            }

            if (Main.LocalPlayer.HasItem(mod.ItemType <SuperBigCannon>()))
            {
                shop.AddUniqueItem(ref nextSlot, mod.ItemType <SBCCannonballAmmo>());
            }
        }