1 - Permafrost sells Ice Cream while happy and in the Snow biome.
2 - Amidias sells Shrimp Po Boy while happy and in the Ocean biome. 3 - Cirrus sells Unicorn Horns while happy and in the Hallow biome.
This commit is contained in:
1 parent
f6a0347fc3
commit
fdd38fdb41
3 files changed
+27
-5
No files matched your search
@@ -201,6 +201,17 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
shop.item[nextSlot].SetDefaults(ModContent.ItemType<BloodRune>());
|
||||
nextSlot++;
|
||||
}
|
||||
|
||||
bool happy = Main.LocalPlayer.currentShoppingSettings.PriceAdjustment <= 0.8999999761581421;
|
||||
if (happy)
|
||||
{
|
||||
if (Main.LocalPlayer.ZoneSnow)
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ItemID.IceCream);
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
|
||||
nextSlot++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Make this Town NPC teleport to the King statue when triggered.
|
||||
|
||||
@@ -83,9 +83,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
public override void AI()
|
||||
{
|
||||
if (!CalamityWorld.spawnedCirrus)
|
||||
{
|
||||
CalamityWorld.spawnedCirrus = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanTownNPCSpawn(int numTownNPCs, int money)
|
||||
@@ -95,9 +93,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
Player player = Main.player[k];
|
||||
bool hasVodka = player.InventoryHas(ModContent.ItemType<FabsolsVodka>())/* || player.PortableStorageHas(ModContent.ItemType<FabsolsVodka>())*/;
|
||||
if (player.active && hasVodka)
|
||||
{
|
||||
return Main.hardMode || CalamityWorld.spawnedCirrus;
|
||||
}
|
||||
}
|
||||
return CalamityWorld.spawnedCirrus;
|
||||
}
|
||||
@@ -454,11 +450,15 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
if (happyAsFuck)
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ItemID.MilkCarton);
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 50, 0);
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
|
||||
nextSlot++;
|
||||
|
||||
if (Main.LocalPlayer.ZoneHallow)
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ItemID.UnicornHorn);
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 50, 0);
|
||||
nextSlot++;
|
||||
|
||||
shop.item[nextSlot].SetDefaults(ItemID.Milkshake);
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
|
||||
nextSlot++;
|
||||
|
||||
@@ -403,6 +403,17 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
shop.item[nextSlot].shopCustomPrice = (int)(shop.item[nextSlot].shopCustomPrice * 0.8);
|
||||
nextSlot++;
|
||||
}
|
||||
|
||||
bool happy = Main.LocalPlayer.currentShoppingSettings.PriceAdjustment <= 0.8999999761581421;
|
||||
if (happy)
|
||||
{
|
||||
if (Main.LocalPlayer.ZoneBeach)
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ItemID.ShrimpPoBoy);
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 50, 0);
|
||||
nextSlot++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
Reference in new issue
Block a user