Skip to content

Commit

Permalink
h
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilysen committed Feb 4, 2020
1 parent a1b361b commit 2686c66
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 117 deletions.
4 changes: 2 additions & 2 deletions Items/InnocentBunny.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ public class InnocentBunny : ModItem
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Innocent, Helpless Bunny");
Tooltip.SetDefault("Irresistible to evil demons\nSummons the Wall of Flesh, approaching from the left");
Tooltip.SetDefault("Irresistible to evil demons\nSummons the Wall of Flesh, approaching from whichever side of the world you're on");
}

public override void SetDefaults()
{
item.width = 28;
item.height = 26;
item.maxStack = 20;
item.value = Item.sellPrice(0, 0, 1, 0);
item.value = Item.sellPrice(0, 0, 5, 0);
item.rare = 5;
item.useAnimation = 30;
item.useTime = 30;
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@ If you have a mod like Calamity that already has this function built in, you won

# Changelog

### Feb. 4, 2020

#### 1.0.0.4

* Changed the tooltip of the Bunny to explain its mechanics more accurately.

### Aug. 7, 2019

#### 1.0.0.3

* The Cracked Sigil is now available after defeating the Lunatic Cultist, not the Moon Lord. I wouldn't wish Lunar Event grinding on anyone.

#### 1.0.0.2

* Reduced the pricing of all items.
Expand Down
225 changes: 111 additions & 114 deletions YABSSM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,118 +4,115 @@

namespace YABSSM
{
class YABSSM : Mod
{
internal class YABSSM : Mod
{ }

}

class YABSSMNPC : GlobalNPC
{
public override void SetupShop(int type, Chest shop, ref int nextSlot)
{
if (type == NPCID.Clothier)
{
Player player;
if (NPC.downedSlimeKing)
{
shop.item[nextSlot].SetDefaults(ItemID.SlimeCrown);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 50, 0);
nextSlot++;
}
if (NPC.downedBoss1)
{
shop.item[nextSlot].SetDefaults(ItemID.SuspiciousLookingEye);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
}
if (NPC.downedBoss2)
{
if (!WorldGen.crimson)
{
shop.item[nextSlot].SetDefaults(ItemID.WormFood);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
}
else
{
shop.item[nextSlot].SetDefaults(ItemID.BloodySpine);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
}
}
if (NPC.downedBoss3)
{
shop.item[nextSlot].SetDefaults(ItemID.ClothierVoodooDoll);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
nextSlot++;
}
if (NPC.downedQueenBee)
{
shop.item[nextSlot].SetDefaults(ItemID.Abeemination);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
nextSlot++;
}
if (Main.hardMode)
{
shop.item[nextSlot].SetDefaults(mod.ItemType("InnocentBunny"));
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedMechBoss1)
{
shop.item[nextSlot].SetDefaults(ItemID.MechanicalWorm);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedMechBoss2)
{
shop.item[nextSlot].SetDefaults(ItemID.MechanicalEye);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedMechBoss3)
{
shop.item[nextSlot].SetDefaults(ItemID.MechanicalSkull);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedPlantBoss)
{
shop.item[nextSlot].SetDefaults(mod.ItemType("PepperyFruit"));
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedGolemBoss)
{
shop.item[nextSlot].SetDefaults(ItemID.LihzahrdPowerCell);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedFishron)
{
shop.item[nextSlot].SetDefaults(ItemID.TruffleWorm);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedHalloweenTree)
{
shop.item[nextSlot].SetDefaults(ItemID.PumpkinMoonMedallion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedChristmasTree)
{
shop.item[nextSlot].SetDefaults(ItemID.NaughtyPresent);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedMoonlord)
{
shop.item[nextSlot].SetDefaults(mod.ItemType("CrackedRelic"));
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0);
nextSlot++;
}
}
}
}
}
internal class YABSSMNPC : GlobalNPC
{
public override void SetupShop(int type, Chest shop, ref int nextSlot)
{
if (type == NPCID.Clothier)
{
if (NPC.downedSlimeKing)
{
shop.item[nextSlot].SetDefaults(ItemID.SlimeCrown);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 50, 0);
nextSlot++;
}
if (NPC.downedBoss1)
{
shop.item[nextSlot].SetDefaults(ItemID.SuspiciousLookingEye);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
}
if (NPC.downedBoss2)
{
if (!WorldGen.crimson)
{
shop.item[nextSlot].SetDefaults(ItemID.WormFood);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
}
else
{
shop.item[nextSlot].SetDefaults(ItemID.BloodySpine);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0);
nextSlot++;
}
}
if (NPC.downedBoss3)
{
shop.item[nextSlot].SetDefaults(ItemID.ClothierVoodooDoll);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
nextSlot++;
}
if (NPC.downedQueenBee)
{
shop.item[nextSlot].SetDefaults(ItemID.Abeemination);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0);
nextSlot++;
}
if (Main.hardMode)
{
shop.item[nextSlot].SetDefaults(mod.ItemType("InnocentBunny"));
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedMechBoss1)
{
shop.item[nextSlot].SetDefaults(ItemID.MechanicalWorm);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedMechBoss2)
{
shop.item[nextSlot].SetDefaults(ItemID.MechanicalEye);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedMechBoss3)
{
shop.item[nextSlot].SetDefaults(ItemID.MechanicalSkull);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0);
nextSlot++;
}
if (NPC.downedPlantBoss)
{
shop.item[nextSlot].SetDefaults(mod.ItemType("PepperyFruit"));
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedGolemBoss)
{
shop.item[nextSlot].SetDefaults(ItemID.LihzahrdPowerCell);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedFishron)
{
shop.item[nextSlot].SetDefaults(ItemID.TruffleWorm);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedHalloweenTree)
{
shop.item[nextSlot].SetDefaults(ItemID.PumpkinMoonMedallion);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedChristmasTree)
{
shop.item[nextSlot].SetDefaults(ItemID.NaughtyPresent);
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0);
nextSlot++;
}
if (NPC.downedAncientCultist)
{
shop.item[nextSlot].SetDefaults(mod.ItemType("CrackedRelic"));
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0);
nextSlot++;
}
}
}
}
}
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
author = Ilysen
version = 1.0.0.2
version = 1.0.0.5
displayName = Yet Another Boss Summon Shop
homepage = https://forums.terraria.org/index.php?threads/avas-mods-thaumaturgy-challenge-runes-yabssm.81892/

0 comments on commit 2686c66

Please sign in to comment.