1 - Shield bashes no longer give extra immunity frames if you are already immune.

2 - Yharim's Stims increase pick speed.
3 - Crumbling Potions no longer require Forbidden Fragments.
4 - Penumbra Potions no longer require Essence of Chaos and take 1 Solar Tablet Fragment instead of 2.
5 - Photosynthesis Potions no longer require Vines and take 1 Beetle Juice instead of 2.
6 - Revivify Potions last 3 seconds intead of 2.
7 - Soaring Potions no longer require Feathers.
8 - Triumph Potions no longer require Stormlion Mandibles.
9 - Yharim's Stimulants no longer require Archery and Magic Power Potions, but they now require Any Food item.
10 - Caustic Edge now requires Shadow Scales or Tissue Samples to craft.
11 - Draconic Swarmers deal 20% less damage if they naturally spawn in the jungle.
12 - Increased normal, small and medium Phantom Spirit HP.
13 - Decreased large Phantom Spirit HP.
14 - Increased Profaned Energy HP.
15 - Added Warmth Potions to Permafrost's shop.
16 - Added Heartreach, Lifeforce and Love Potoins to Cirrus' shop.
17 - Added Gills, Water Walking and Flipper Potions to Amidias' shop.
18 - Added Invisibility, Night Owl and Dangersense Potions to Bandit's shop.
19 - Added Wormhole, Archery, Healing, Mana and Titan Potions to Merchant's shop.
20 - Added Mining, Ironskin, Shine, Spelunker, Obsidian Skin and Endurance Potions to Demolitionist's shop.
21 - Added Ammo Reservation, Hunter and Battle Potions to Arms Dealer's shop.
22 - Added Thorns, Featherfall, Regeneration and Swiftness Potions to Dryad's shop.
23 - Added Stink Potions to Goblin Tinkerer's shop because he's the worst NPC and reprogramming his shit was annoying as fuck.
24 - Added Builder Potions to Mechanic's shop.
25 - Added Mana Regen, Magic Power and Gravitation Potions to Wizard's shop.
26 - Added Calming, Rage, Wrath and Inferno Potions to Witch Doctor's shop.
27 - Added Gender Change Potions to Party Girl's shop.
28 - Added Calcium Potions to Skeleton Merchant's shop.
This commit is contained in:
Andrew Marheine committed 2021-01-11 04:02:31 -06:00
1 parent b2147ddc21
commit 0a7a897aab
23 files changed
+169 -60

No files matched your search

+70 -28
View File
@@ -5850,12 +5850,19 @@ namespace CalamityMod.CalPlayer
proj.velocity *= -1f;
proj.damage = damage2;
proj.penetrate = 1;
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
player.hurtCooldowns[j] = player.immuneTime;
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
player.hurtCooldowns[j] = player.immuneTime;
}
damage = 0;
return;
@@ -8000,12 +8007,19 @@ namespace CalamityMod.CalPlayer
if (npc.immune[player.whoAmI] < 6)
npc.immune[player.whoAmI] = 6;
npc.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300);
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
player.hurtCooldowns[k] = player.immuneTime;
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
player.hurtCooldowns[k] = player.immuneTime;
}
}
}
@@ -8054,12 +8068,19 @@ namespace CalamityMod.CalPlayer
}
if (npc.immune[player.whoAmI] < 6)
npc.immune[player.whoAmI] = 6;
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
player.hurtCooldowns[k] = player.immuneTime;
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
player.hurtCooldowns[k] = player.immuneTime;
}
}
}
@@ -8107,12 +8128,19 @@ namespace CalamityMod.CalPlayer
}
if (npc.immune[player.whoAmI] < 6)
npc.immune[player.whoAmI] = 6;
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
player.hurtCooldowns[k] = player.immuneTime;
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
player.hurtCooldowns[k] = player.immuneTime;
}
}
}
@@ -8148,12 +8176,19 @@ namespace CalamityMod.CalPlayer
if (npc.immune[player.whoAmI] < 6)
npc.immune[player.whoAmI] = 6;
npc.AddBuff(ModContent.BuffType<Plague>(), 300);
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
player.hurtCooldowns[k] = player.immuneTime;
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += 4;
for (int k = 0; k < player.hurtCooldowns.Length; k++)
player.hurtCooldowns[k] = player.immuneTime;
}
}
}
@@ -8714,12 +8749,19 @@ namespace CalamityMod.CalPlayer
player.ApplyDamageToNPC(nPC, (int)Damage, Knockback, direction, false);
}
nPC.immune[player.whoAmI] = NPCImmuneTime;
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += PlayerImmuneTime;
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
player.hurtCooldowns[j] = player.immuneTime;
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
player.immune = true;
player.immuneNoBlink = true;
player.immuneTime += PlayerImmuneTime;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
player.hurtCooldowns[j] = player.immuneTime;
}
num++;
break;
+1
View File
@@ -2398,6 +2398,7 @@ namespace CalamityMod.CalPlayer
{
player.endurance += 0.06f;
player.statDefense += 8;
player.pickSpeed -= 0.05f;
player.allDamage += 0.06f;
modPlayer.AllCritBoost(2);
player.minionKB += 1f;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.Items.Potions
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater, 5);
recipe.AddIngredient(ModContent.ItemType<AncientBoneDust>());
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial);
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>());
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this, 5);
+1 -2
View File
@@ -38,8 +38,7 @@ namespace CalamityMod.Items.Potions
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ModContent.ItemType<SolarVeil>(), 3);
recipe.AddIngredient(ItemID.LunarTabletFragment, 2);
recipe.AddIngredient(ModContent.ItemType<EssenceofChaos>());
recipe.AddIngredient(ItemID.LunarTabletFragment);
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this);
recipe.AddRecipe();
+1 -2
View File
@@ -36,8 +36,7 @@ namespace CalamityMod.Items.Potions
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ModContent.ItemType<BeetleJuice>(), 2);
recipe.AddIngredient(ItemID.Vine);
recipe.AddIngredient(ModContent.ItemType<BeetleJuice>());
recipe.AddIngredient(ModContent.ItemType<TrapperBulb>());
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>());
recipe.AddTile(TileID.AlchemyTable);
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Potions
item.UseSound = SoundID.Item3;
item.consumable = true;
item.buffType = ModContent.BuffType<Revivify>();
item.buffTime = CalamityUtils.SecondsToFrames(120f);
item.buffTime = CalamityUtils.SecondsToFrames(180f);
item.value = Item.buyPrice(0, 2, 0, 0);
}
-1
View File
@@ -38,7 +38,6 @@ namespace CalamityMod.Items.Potions
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ItemID.Feather);
recipe.AddIngredient(ItemID.SoulofFlight);
recipe.AddIngredient(ModContent.ItemType<SunkenSailfish>());
recipe.AddTile(TileID.AlchemyTable);
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Potions
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Titan Scale Potion");
Tooltip.SetDefault("Increases knockback, defense by 5, and damage reduction by 5%\n" +
Tooltip.SetDefault("Increases knockback, defense by 5 and damage reduction by 5%\n" +
"Increases defense by 25 and damage reduction by 10% for a few seconds after a true melee strike");
}
-1
View File
@@ -35,7 +35,6 @@ namespace CalamityMod.Items.Potions
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ModContent.ItemType<StormlionMandible>());
recipe.AddIngredient(ModContent.ItemType<VictoryShard>(), 3);
recipe.AddTile(TileID.Bottles);
recipe.SetResult(this);
+1 -2
View File
@@ -34,11 +34,10 @@ namespace CalamityMod.Items.Potions
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddRecipeGroup("AnyFood");
recipe.AddIngredient(ItemID.EndurancePotion);
recipe.AddIngredient(ItemID.IronskinPotion);
recipe.AddIngredient(ItemID.SwiftnessPotion);
recipe.AddIngredient(ItemID.ArcheryPotion);
recipe.AddIngredient(ItemID.MagicPowerPotion);
recipe.AddIngredient(ItemID.TitanPotion);
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this);
+1 -9
View File
@@ -36,19 +36,11 @@ namespace CalamityMod.Items.Weapons.Melee
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BladeofGrass);
recipe.AddIngredient(ItemID.LavaBucket);
recipe.AddIngredient(ItemID.ShadowScale, 3);
recipe.AddRecipeGroup("Boss2Material", 3);
recipe.AddIngredient(ItemID.Deathweed, 5);
recipe.AddTile(TileID.DemonAltar);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BladeofGrass);
recipe.AddIngredient(ItemID.LavaBucket);
recipe.AddIngredient(ItemID.TissueSample, 3);
recipe.AddIngredient(ItemID.Deathweed, 5);
recipe.AddTile(TileID.DemonAltar);
recipe.SetResult(this);
recipe.AddRecipe();
}
public override void MeleeEffects(Player player, Rectangle hitbox)
+2
View File
@@ -50,6 +50,8 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void AI()
{
npc.damage = CalamityPlayer.areThereAnyDamnBosses ? npc.defDamage : (int)(npc.defDamage * 0.8);
Player player = Main.player[npc.target];
Vector2 vector = npc.Center;
+44
View File
@@ -5,6 +5,7 @@ using CalamityMod.Items.Dyes.HairDye;
using CalamityMod.Items.Pets;
using CalamityMod.Items.Placeables.Furniture.Fountains;
using CalamityMod.Items.Placeables.Walls;
using CalamityMod.Items.Potions;
using CalamityMod.Items.SummonItems;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
@@ -1154,8 +1155,15 @@ namespace CalamityMod.NPCs
#region Shop Stuff
public static void ShopSetup(int type, Mod mod, ref Chest shop, ref int nextSlot)
{
int goldCost = NPC.downedMoonlord ? 8 : Main.hardMode ? 4 : 2;
if (type == NPCID.Merchant)
{
SetShopItem(ref shop, ref nextSlot, ItemID.WormholePotion, true, Item.buyPrice(0, 0, 25, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.ArcheryPotion, NPC.downedBoss1, Item.buyPrice(0, goldCost, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.HealingPotion, NPC.downedBoss2);
SetShopItem(ref shop, ref nextSlot, ItemID.ManaPotion, NPC.downedBoss2);
SetShopItem(ref shop, ref nextSlot, ItemID.TitanPotion, NPC.downedBoss3, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.Flare, (Main.LocalPlayer.HasItem(ItemType<FirestormCannon>()) || Main.LocalPlayer.HasItem(ItemType<SpectralstormCannon>())) && !Main.LocalPlayer.HasItem(ItemID.FlareGun));
SetShopItem(ref shop, ref nextSlot, ItemID.BlueFlare, (Main.LocalPlayer.HasItem(ItemType<FirestormCannon>()) || Main.LocalPlayer.HasItem(ItemType<SpectralstormCannon>())) && !Main.LocalPlayer.HasItem(ItemID.FlareGun));
SetShopItem(ref shop, ref nextSlot, ItemID.ApprenticeBait, NPC.downedBoss1);
@@ -1173,8 +1181,21 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ItemType<DefiledFlameDye>(), Main.hardMode && CalamityWorld.defiled, Item.buyPrice(0, 10));
}
if (type == NPCID.Demolitionist)
{
SetShopItem(ref shop, ref nextSlot, ItemID.MiningPotion, NPC.downedBoss1, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.IronskinPotion, NPC.downedBoss1, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.ShinePotion, NPC.downedBoss1, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.SpelunkerPotion, NPC.downedBoss2, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.ObsidianSkinPotion, NPC.downedBoss3, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.EndurancePotion, NPC.downedBoss3, Item.buyPrice(0, goldCost, 0, 0));
}
if (type == NPCID.ArmsDealer)
{
SetShopItem(ref shop, ref nextSlot, ItemID.AmmoReservationPotion, true, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.HunterPotion, true, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.BattlePotion, NPC.downedBoss2, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.Stake, Main.LocalPlayer.HasItem(ItemType<Impaler>()));
SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.Musket : ItemID.TheUndertaker, WorldGen.shadowOrbSmashed || NPC.downedBoss2);
SetShopItem(ref shop, ref nextSlot, ItemID.Boomstick, NPC.downedQueenBee, price: Item.buyPrice(0, 20, 0, 0));
@@ -1203,6 +1224,10 @@ namespace CalamityMod.NPCs
if (type == NPCID.Dryad)
{
SetShopItem(ref shop, ref nextSlot, ItemID.ThornsPotion, true, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.FeatherfallPotion, true, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.RegenerationPotion, NPC.downedBoss2, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.SwiftnessPotion, NPC.downedBoss2, Item.buyPrice(0, goldCost, 0, 0));
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.SlimeCrown, NPC.downedSlimeKing && CalamityConfig.Instance.SellVanillaSummons, Item.buyPrice(0, 2));
@@ -1222,6 +1247,7 @@ namespace CalamityMod.NPCs
if (type == NPCID.GoblinTinkerer)
{
SetShopItem(ref shop, ref nextSlot, ItemID.StinkPotion, true, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemType<MeleeLevelMeter>(), price: Item.buyPrice(0, 5));
SetShopItem(ref shop, ref nextSlot, ItemType<RangedLevelMeter>(), price: Item.buyPrice(0, 5));
SetShopItem(ref shop, ref nextSlot, ItemType<MagicLevelMeter>(), price: Item.buyPrice(0, 5));
@@ -1231,6 +1257,11 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ItemID.GoblinBattleStandard, price: Item.buyPrice(0, 1));
}
if (type == NPCID.Mechanic)
{
SetShopItem(ref shop, ref nextSlot, ItemID.BuilderPotion, true, Item.buyPrice(0, 1, 0, 0));
}
if (type == NPCID.Clothier)
{
SetShopItem(ref shop, ref nextSlot, ItemType<BlueBrickWallUnsafe>(), price: Item.buyPrice(copper: 10));
@@ -1262,6 +1293,9 @@ namespace CalamityMod.NPCs
if (type == NPCID.Wizard)
{
SetShopItem(ref shop, ref nextSlot, ItemID.ManaRegenerationPotion, true, Item.buyPrice(0, goldCost, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.MagicPowerPotion, true, Item.buyPrice(0, goldCost, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.GravitationPotion, true, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemType<HowlsHeart>());
SetShopItem(ref shop, ref nextSlot, ItemType<CharredIdol>(), CalamityWorld.downedBrimstoneElemental, Item.buyPrice(0, 20));
SetShopItem(ref shop, ref nextSlot, ItemType<AstralChunk>(), CalamityWorld.downedAstrageldon, Item.buyPrice(0, 25));
@@ -1276,6 +1310,10 @@ namespace CalamityMod.NPCs
if (type == NPCID.WitchDoctor)
{
SetShopItem(ref shop, ref nextSlot, ItemID.CalmingPotion, true, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.RagePotion, true, Item.buyPrice(0, goldCost, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.WrathPotion, true, Item.buyPrice(0, goldCost, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.InfernoPotion, true, Item.buyPrice(0, 2, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemType<SunkenSeaFountain>());
SetShopItem(ref shop, ref nextSlot, ItemType<SulphurousFountainItem>());
SetShopItem(ref shop, ref nextSlot, ItemType<AbyssFountainItem>(), Main.hardMode);
@@ -1290,8 +1328,14 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, ItemType<BirbPheromones>(), CalamityWorld.downedBumble, Item.buyPrice(5));
}
if (type == NPCID.PartyGirl)
{
SetShopItem(ref shop, ref nextSlot, ItemID.GenderChangePotion, true, Item.buyPrice(0, 1, 0, 0));
}
if (type == NPCID.SkeletonMerchant)
{
SetShopItem(ref shop, ref nextSlot, ItemType<CalciumPotion>(), true, Item.buyPrice(0, 1, 0, 0));
SetShopItem(ref shop, ref nextSlot, ItemID.Marrow, Main.hardMode, Item.buyPrice(0, 36));
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 16;
npc.height = 16;
npc.defense = 10;
npc.lifeMax = 750;
npc.lifeMax = 1000;
npc.knockBackResist = 0.1f;
animationType = NPCID.DungeonSpirit;
aiType = -1;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.height = 32;
npc.scale = 1.2f;
npc.defense = 30;
npc.lifeMax = 5000;
npc.lifeMax = 3000;
npc.knockBackResist = 0f;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 60, 0);
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.height = 32;
npc.scale = 1.1f;
npc.defense = 25;
npc.lifeMax = 1575;
npc.lifeMax = 2000;
npc.knockBackResist = 0.1f;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 40, 0);
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 32;
npc.height = 32;
npc.defense = 20;
npc.lifeMax = 1125;
npc.lifeMax = 1500;
npc.knockBackResist = 0.1f;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 30, 0);
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.height = 36;
npc.defense = 50;
npc.DR_NERD(0.1f);
npc.lifeMax = 4500;
npc.lifeMax = 6000;
npc.knockBackResist = 0f;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 50, 0);
+6 -3
View File
@@ -144,7 +144,10 @@ namespace CalamityMod.NPCs.TownNPCs
public override void SetupShop(Chest shop, ref int nextSlot)
{
shop.item[nextSlot].SetDefaults(ModContent.ItemType<ColdheartIcicle>());
shop.item[nextSlot].SetDefaults(ItemID.WarmthPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ModContent.ItemType<ColdheartIcicle>());
nextSlot++;
shop.item[nextSlot].SetDefaults(ModContent.ItemType<FrostbiteBlaster>());
nextSlot++;
@@ -183,8 +186,8 @@ namespace CalamityMod.NPCs.TownNPCs
shop.item[nextSlot].SetDefaults(ModContent.ItemType<EnchantedMetal>());
nextSlot++;
shop.item[nextSlot].SetDefaults(ModContent.ItemType<Popo>());
shop.item[nextSlot].shopCustomPrice = 1000000; //I think this is 5 platinum
nextSlot++;
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(5, 0, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ModContent.ItemType<CryoKey>());
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0);
nextSlot++;
+14 -1
View File
@@ -239,7 +239,20 @@ namespace CalamityMod.NPCs.TownNPCs
public override void SetupShop(Chest shop, ref int nextSlot) //charges 50% extra than the original item value
{
shop.item[nextSlot].SetDefaults(ModContent.ItemType<GrapeBeer>());
shop.item[nextSlot].SetDefaults(ItemID.HeartreachPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.LifeforcePotion);
int goldCost = NPC.downedMoonlord ? 8 : 4;
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, goldCost, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.LovePotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ModContent.ItemType<GrapeBeer>());
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
+10 -1
View File
@@ -374,7 +374,16 @@ namespace CalamityMod.NPCs.TownNPCs
nextSlot++;
shop.item[nextSlot].SetDefaults(ModContent.ItemType<MagicalConch>());
nextSlot++;
if (CalamityWorld.downedDesertScourge)
shop.item[nextSlot].SetDefaults(ItemID.GillsPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.WaterWalkingPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.FlipperPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
if (CalamityWorld.downedDesertScourge)
{
shop.item[nextSlot].SetDefaults(ModContent.ItemType<DriedSeafood>());
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
+10 -1
View File
@@ -259,7 +259,16 @@ namespace CalamityMod.NPCs.TownNPCs
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.TigerClimbingGear);
nextSlot++;
if (CalamityWorld.downedSlimeGod)
shop.item[nextSlot].SetDefaults(ItemID.InvisibilityPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.NightOwlPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
shop.item[nextSlot].SetDefaults(ItemID.TrapsightPotion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
if (CalamityWorld.downedSlimeGod)
{
shop.item[nextSlot].SetDefaults(ModContent.ItemType<GelDart>());
nextSlot++;
+1 -1
View File
@@ -1031,7 +1031,7 @@ namespace CalamityMod
});
RecipeGroup.RegisterGroup("AnyIceBlock", group);
group = new RecipeGroup(() => "Any Snow Block", new int[]
group = new RecipeGroup(() => "Any Snow Block", new int[]
{
ItemID.SnowBlock,
ModContent.ItemType<AstralSnow>()