I literally did this crap already

bruh moment.
This commit is contained in:
termigator1359 committed 2019-10-20 19:06:48 -04:00
1 parent aeeb117251
commit 0d64964cd3
4 files changed
+22 -7

No files matched your search

+4 -3
View File
@@ -7,6 +7,7 @@ using Terraria.GameContent.Achievements;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using CalamityMod.Buffs.Mounts;
using CalamityMod.Tiles;
using CalamityMod.Tiles.Abyss;
using CalamityMod.Tiles.Ores;
@@ -141,11 +142,11 @@ namespace CalamityMod.Items.Mounts
{
if (tile != null && tile.active() && tile.type != (ushort)ModContent.TileType<AbyssGravel>() &&
tile.type != (ushort)ModContent.TileType<Voidstone>() && (tile.type != TileID.Hellstone || Main.hardMode) &&
(tile.type != TileID.LihzahrdBrick || NPC.downedGolemBoss) && tile.type != TileID.BlueDungeonBrick &&
tile.type != TileID.GreenDungeonBrick && tile.type != TileID.PinkDungeonBrick && tile.type != TileID.DemonAltar &&
(tile.type != TileID.LihzahrdBrick || NPC.downedGolemBoss) && (tile.type != TileID.BlueDungeonBrick || NPC.downedBoss3) &&
(tile.type != TileID.GreenDungeonBrick || NPC.downedBoss3) && (tile.type != TileID.PinkDungeonBrick || NPC.downedBoss3) && tile.type != TileID.DemonAltar &&
(tile.type != (ushort)ModContent.TileType<AstralOre>() || CalamityWorld.downedStarGod) &&
((tile.type != (ushort)ModContent.TileType<Tenebris>() && tile.type != (ushort)ModContent.TileType<PlantyMush>()) || NPC.downedPlantBoss || CalamityWorld.downedCalamitas) &&
(!player.Calamity().ZoneSunkenSea || CalamityWorld.downedDesertScourge) &&
(!player.Calamity().ZoneSunkenSea || CalamityWorld.downedDesertScourge) && tile.type != (ushort)ModContent.TileType<ArenaTile>() &&
(Main.tileValue[tile.type] < tileValueLimit || tile.type == TileID.Heart || tile.type == TileID.LifeFruit) &&
!player.noBuilding && tile.type != TileID.ElderCrystalStand && tile.type != TileID.Containers)
{
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Tools.ClimateChange
// this is extremely ugly and has to be fully qualified because we add an item called Sandstorm
public override bool CanUseItem(Player player)
{
return !Terraria.GameContent.Events.Sandstorm.Happening;
return CalamityWorld.downedDesertScourge;
}
public override bool UseItem(Player player)
+14 -3
View File
@@ -3441,15 +3441,25 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ItemID.Stake, Main.LocalPlayer.HasItem(ModContent.ItemType<Impaler>()));
SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.Musket : ItemID.TheUndertaker, NPC.downedBoss2);
SetShopItem(ref shop, ref nextSlot, ItemID.Boomstick, NPC.downedQueenBee, price: Item.buyPrice(0, 20, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.TacticalShotgun, NPC.downedGolemBoss, Item.buyPrice(0, 25));
SetShopItem(ref shop, ref nextSlot, ItemID.SniperRifle, NPC.downedGolemBoss, Item.buyPrice(0, 25));
}
if (type == NPCID.Cyborg)
{
SetShopItem(ref shop, ref nextSlot, ItemID.RocketLauncher, NPC.downedGolemBoss, Item.buyPrice(0, 25));
}
if (type == NPCID.Pirate)
{
SetShopItem(ref shop, ref nextSlot, ItemID.PirateMap, Item.buyPrice(0, 5));
}
if (type == NPCID.Dryad)
{
SetShopItem(ref shop, ref nextSlot, ItemID.JungleRose, price: Item.buyPrice(0, 2));
SetShopItem(ref shop, ref nextSlot, ItemID.NaturesGift, price: Item.buyPrice(0, 10));
SetShopItem(ref shop, ref nextSlot, ItemID.GoblinBattleStandard, price: Item.buyPrice(0, 1));
SetShopItem(ref shop, ref nextSlot, ItemID.SlimeCrown, NPC.downedSlimeKing, Item.buyPrice(0, 2));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<DriedSeafood>(), CalamityWorld.downedDesertScourge, Item.buyPrice(0, 2));
SetShopItem(ref shop, ref nextSlot, ItemID.SuspiciousLookingEye, NPC.downedBoss1, Item.buyPrice(0, 3));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<DecapoditaSprout>(), CalamityWorld.downedCrabulon, Item.buyPrice(0, 4));
SetShopItem(ref shop, ref nextSlot, ItemID.BloodySpine, NPC.downedBoss2, Item.buyPrice(0, 6));
@@ -3461,7 +3471,6 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<Teratoma>(), CalamityWorld.downedHiveMind, Item.buyPrice(0, 10));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<BloodyWormTooth>(), CalamityWorld.downedHiveMind && Main.expertMode);
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<OverloadedSludge>(), CalamityWorld.downedSlimeGod, Item.buyPrice(0, 15));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<Seafood>(), CalamityWorld.downedAquaticScourge, Item.buyPrice(0, 20));
SetShopItem(ref shop, ref nextSlot, ItemID.PumpkinMoonMedallion, NPC.downedHalloweenKing, Item.buyPrice(0, 25));
SetShopItem(ref shop, ref nextSlot, ItemID.NaughtyPresent, NPC.downedChristmasIceQueen, Item.buyPrice(0, 25));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<RomajedaOrchid>());
@@ -3474,6 +3483,7 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<MagicLevelMeter>(), price: Item.buyPrice(0, 5));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<SummonLevelMeter>(), price: Item.buyPrice(0, 5));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<RogueLevelMeter>(), price: Item.buyPrice(0, 5));
SetShopItem(ref shop, ref nextSlot, ItemID.GoblinBattleStandard, price: Item.buyPrice(0, 1));
}
if (type == NPCID.Clothier)
@@ -3522,6 +3532,7 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<BulbofDoom>(), NPC.downedPlantBoss, Item.buyPrice(0, 20));
SetShopItem(ref shop, ref nextSlot, ItemID.SolarTablet, NPC.downedGolemBoss, Item.buyPrice(0, 25));
SetShopItem(ref shop, ref nextSlot, ItemID.LihzahrdPowerCell, NPC.downedGolemBoss, Item.buyPrice(0, 30));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<GypsyPowder>(), NPC.downedGolemBoss, Item.buyPrice(0, 10));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<AncientMedallion>(), CalamityWorld.downedScavenger, Item.buyPrice(0, 50));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<Abomination>(), CalamityWorld.downedPlaguebringer, Item.buyPrice(0, 50));
SetShopItem(ref shop, ref nextSlot, ModContent.ItemType<BirbPheromones>(), CalamityWorld.downedBumble, Item.buyPrice(5));
+3
View File
@@ -715,6 +715,9 @@ namespace CalamityMod.NPCs
// If Polterghast has not been killed, notify players about the Abyss minibosses now dropping items
if (!CalamityWorld.downedPolterghast)
{
if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active)
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/ReaperSearchRoar"), (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y);
string key = "Mods.CalamityMod.GhostBossText";
Color messageColor = Color.RoyalBlue;