Removed code in Cal Music Mod making Cirrus sell the Music Boxes.
This commit is contained in:
1 parent
08e1c99d6d
commit
405e4f670d
1 file changed
-26
-26
@@ -1,26 +0,0 @@
|
||||
using CalamityModMusic.Items.Placeables;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityModMusic
|
||||
{
|
||||
public class NPCShops : GlobalNPC
|
||||
{
|
||||
public override void ModifyShop(NPCShop shop)
|
||||
{
|
||||
var calamityMod = ModLoader.TryGetMod("CalamityMod", out Mod calamity);
|
||||
|
||||
Condition DownedCalamitasClone = new("", () => (bool)calamity.Call("GetBossDowned", "calamitasclone"));
|
||||
Condition DownedYharon = new("", () => (bool)calamity.Call("GetBossDowned", "yharon"));
|
||||
Condition DownedDevourerofGods = new("", () => (bool)calamity.Call("GetBossDowned", "devourerofgods"));
|
||||
|
||||
if (calamityMod && shop.NpcType == calamity.Find<ModNPC>("FAP").Type)
|
||||
{
|
||||
shop.Add(ModContent.ItemType<Interlude1MusicBox>(), DownedCalamitasClone);
|
||||
shop.Add(ModContent.ItemType<Interlude2MusicBox>(), Condition.DownedMoonLord);
|
||||
shop.Add(ModContent.ItemType<Interlude3MusicBox>(), DownedYharon);
|
||||
shop.Add(ModContent.ItemType<DevourerofGodsEulogyMusicBox>(), DownedDevourerofGods);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user