Cirrus now sells the Interlude Music Boxes.
This commit is contained in:
1 parent
b86676a324
commit
bc5dc27e92
2 files changed
+17
-8
No files matched your search
+4
-2
@@ -132,8 +132,10 @@ namespace CalamityMod
|
||||
internal static CalamityMod Instance;
|
||||
|
||||
// TODO -- Mod references should be contained in a ModSystem (example name "ModLoadedChecker")
|
||||
internal Mod musicMod = null; // This is Calamity's official music mod, CalamityModMusic
|
||||
internal bool MusicAvailable => !(musicMod is null);
|
||||
|
||||
// This is Calamity's official music mod, CalamityModMusic. It is now a hard dependency.
|
||||
internal Mod musicMod = null;
|
||||
internal bool MusicAvailable => musicMod is not null;
|
||||
|
||||
// Please keep this in alphabetical order so it's easy to read
|
||||
internal Mod ancientsAwakened = null;
|
||||
|
||||
+13
-6
@@ -885,11 +885,14 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
|
||||
public override void AddShops()
|
||||
{
|
||||
Condition potionSells = CalamityConditions.PotionSellingConfig;
|
||||
Condition downedAureus = CalamityConditions.DownedAstrumAureus;
|
||||
Mod musicMod = CalamityMod.Instance.musicMod;
|
||||
ModItem interlude1Box = musicMod.Find<ModItem>("Interlude1MusicBox");
|
||||
ModItem interlude2Box = musicMod.Find<ModItem>("Interlude2MusicBox");
|
||||
ModItem interlude3Box = musicMod.Find<ModItem>("Interlude3MusicBox");
|
||||
ModItem eulogyBox = musicMod.Find<ModItem>("DevourerofGodsEulogyMusicBox");
|
||||
|
||||
NPCShop shop = new(Type);
|
||||
shop.AddWithCustomValue(ItemID.LovePotion, Item.buyPrice(silver: 25), potionSells, Condition.HappyEnough)
|
||||
shop.AddWithCustomValue(ItemID.LovePotion, Item.buyPrice(silver: 25), CalamityConditions.PotionSellingConfig, Condition.HappyEnough)
|
||||
.AddWithCustomValue(ModContent.ItemType<GrapeBeer>(), Item.buyPrice(silver: 30))
|
||||
.AddWithCustomValue(ModContent.ItemType<RedWine>(), Item.buyPrice(gold: 1))
|
||||
.AddWithCustomValue(ModContent.ItemType<Whiskey>(), Item.buyPrice(gold: 2))
|
||||
@@ -905,9 +908,9 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
.AddWithCustomValue(ModContent.ItemType<Margarita>(), Item.buyPrice(gold: 8), Condition.DownedPlantera)
|
||||
.AddWithCustomValue(ModContent.ItemType<OldFashioned>(), Item.buyPrice(gold: 8), Condition.DownedPlantera)
|
||||
.AddWithCustomValue(ItemID.EmpressButterfly, Item.buyPrice(gold: 10), Condition.DownedPlantera)
|
||||
.AddWithCustomValue(ModContent.ItemType<Everclear>(), Item.buyPrice(gold: 3), downedAureus)
|
||||
.AddWithCustomValue(ModContent.ItemType<BloodyMary>(), Item.buyPrice(gold: 4), downedAureus, Condition.BloodMoon)
|
||||
.AddWithCustomValue(ModContent.ItemType<StarBeamRye>(), Item.buyPrice(gold: 6), downedAureus, Condition.TimeNight)
|
||||
.AddWithCustomValue(ModContent.ItemType<Everclear>(), Item.buyPrice(gold: 3), CalamityConditions.DownedAstrumAureus)
|
||||
.AddWithCustomValue(ModContent.ItemType<BloodyMary>(), Item.buyPrice(gold: 4), CalamityConditions.DownedAstrumAureus, Condition.BloodMoon)
|
||||
.AddWithCustomValue(ModContent.ItemType<StarBeamRye>(), Item.buyPrice(gold: 6), CalamityConditions.DownedAstrumAureus, Condition.TimeNight)
|
||||
.AddWithCustomValue(ModContent.ItemType<Moonshine>(), Item.buyPrice(gold: 2), Condition.DownedGolem)
|
||||
.AddWithCustomValue(ModContent.ItemType<MoscowMule>(), Item.buyPrice(gold: 8), Condition.DownedGolem)
|
||||
.AddWithCustomValue(ModContent.ItemType<CinnamonRoll>(), Item.buyPrice(gold: 8), Condition.DownedGolem)
|
||||
@@ -921,6 +924,10 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
.AddWithCustomValue(ModContent.ItemType<ResilientCandle>(), Item.buyPrice(gold: 50))
|
||||
.AddWithCustomValue(ModContent.ItemType<SpitefulCandle>(), Item.buyPrice(gold: 50))
|
||||
.AddWithCustomValue(ModContent.ItemType<OddMushroom>(), Item.buyPrice(1))
|
||||
.AddWithCustomValue(interlude1Box.Type, Item.buyPrice(gold: 10), CalamityConditions.DownedCalamitasClone)
|
||||
.AddWithCustomValue(interlude2Box.Type, Item.buyPrice(gold: 10), Condition.DownedMoonLord)
|
||||
.AddWithCustomValue(interlude3Box.Type, Item.buyPrice(gold: 10), CalamityConditions.DownedYharon)
|
||||
.AddWithCustomValue(eulogyBox.Type, Item.buyPrice(gold: 10), CalamityConditions.DownedDevourerOfGods)
|
||||
.AddWithCustomValue(ItemID.UnicornHorn, Item.buyPrice(0, 2, 50), Condition.HappyEnough, Condition.InHallow)
|
||||
.AddWithCustomValue(ItemID.Milkshake, Item.buyPrice(gold: 5), Condition.HappyEnough, Condition.InHallow, Condition.NpcIsPresent(NPCID.Stylist))
|
||||
.AddWithCustomValue(ModContent.ItemType<CirrusCouch>(), Item.buyPrice(gold: 25), Condition.HappyEnough, Condition.NpcIsPresent(NPCID.Stylist), Condition.NpcIsPresent(NPCID.BestiaryGirl))
|
||||
|
||||
Reference in new issue
Block a user