moved joyful heart to the starter bag

This commit is contained in:
termigator1359 committed 2020-05-05 20:40:48 -04:00
1 parent 896fa1ca51
commit 83cd7e604c
2 files changed
+8 -10

No files matched your search

-2
View File
@@ -2387,8 +2387,6 @@ namespace CalamityMod.CalPlayer
if (!mediumcoreDeath)
{
if (player.name == "Aleksh" || player.name == "Shark Lad")
items.Add(createItem(ModContent.ItemType<JoyfulHeart>()));
items.Add(createItem(ModContent.ItemType<StarterBag>()));
items.Add(createItem(ModContent.ItemType<Revenge>()));
items.Add(createItem(ModContent.ItemType<IronHeart>()));
+8 -8
View File
@@ -1,4 +1,4 @@
using CalamityMod.Items.Pets;
using CalamityMod.Items.DifficultyItems;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
@@ -24,10 +24,7 @@ namespace CalamityMod.Items.TreasureBags
item.rare = 1;
}
public override bool CanRightClick()
{
return true;
}
public override bool CanRightClick() => true;
public override void RightClick(Player player)
{
@@ -54,13 +51,16 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.DropItem(player, ItemID.Torch, 25);
DropHelper.DropItem(player, ItemID.Chest, 3);
// Difficulty items
DropHelper.DropItem(player, ModContent.ItemType<Death>());
DropHelper.DropItem(player, ModContent.ItemType<DefiledRune>());
// Difficulty items (doesn't drop in Normal)
DropHelper.DropItemCondition(player, ModContent.ItemType<Death>(), Main.expertMode);
DropHelper.DropItemCondition(player, ModContent.ItemType<DefiledRune>(), Main.expertMode);
// Speedrun King Slime
DropHelper.DropItem(player, ItemID.SlimeCrown);
// The Lad
DropHelper.DropItemCondition(player, ModContent.ItemType<JoyfulHeart>(), player.name == "Aleksh" || player.name == "Shark Lad");
// Music box (if music mod installed)
Mod musicMod = ModLoader.GetMod("CalamityModMusic");
if (musicMod != null)