Added Androomba and Repair Unit banners

This commit is contained in:
GinYuH committed 2022-12-16 00:55:33 -08:00
1 parent c489b34bf2
commit 824729d35e
8 files changed
+85

No files matched your search

@@ -0,0 +1,33 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables.Banners
{
public class AndroombaBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Androomba");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 6;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

@@ -0,0 +1,33 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables.Banners
{
public class RepairUnitBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Repair Unit");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 0;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

+3
View File
@@ -1,5 +1,6 @@
using CalamityMod.BiomeManagers;
using CalamityMod.Items.Critters;
using CalamityMod.Items.Placeables.Banners;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
@@ -37,6 +38,8 @@ namespace CalamityMod.NPCs.DraedonLabThings
NPC.chaseable = false;
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath44;
Banner = NPC.type;
BannerItem = ModContent.ItemType<AndroombaBanner>();
NPC.rarity = 2;
NPC.catchItem = (short)ModContent.ItemType<AndroombaItem>();
SpawnModBiomes = new int[1] { ModContent.GetInstance<ArsenalLabBiome>().Type };
@@ -1,6 +1,7 @@
using CalamityMod.BiomeManagers;
using CalamityMod.Items.Critters;
using CalamityMod.Items.DraedonMisc;
using CalamityMod.Items.Placeables.Banners;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
@@ -72,6 +73,8 @@ namespace CalamityMod.NPCs.DraedonLabThings
NPC.chaseable = false;
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath44;
Banner = NPC.type;
BannerItem = ModContent.ItemType<RepairUnitBanner>();
NPC.catchItem = (short)ModContent.ItemType<RepairUnitItem>();
SpawnModBiomes = new int[1] { ModContent.GetInstance<ArsenalLabBiome>().Type };
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

+13
View File
@@ -8,6 +8,7 @@ using CalamityMod.NPCs.AcidRain;
using CalamityMod.NPCs.AquaticScourge;
using CalamityMod.NPCs.Astral;
using CalamityMod.NPCs.Crags;
using CalamityMod.NPCs.DraedonLabThings;
using CalamityMod.NPCs.Leviathan;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.PlagueEnemies;
@@ -379,6 +380,9 @@ namespace CalamityMod
int item = -1;
switch (style)
{
case 0:
item = ModContent.ItemType<RepairUnitBanner>();
break;
case 1:
item = ModContent.ItemType<FlounderBanner>();
break;
@@ -391,6 +395,9 @@ namespace CalamityMod
case 4:
item = ModContent.ItemType<CatfishBanner>();
break;
case 6:
item = ModContent.ItemType<AndroombaBanner>();
break;
case 7:
item = ModContent.ItemType<AquaticUrchinBanner>();
break;
@@ -735,6 +742,9 @@ namespace CalamityMod
int npc = -1;
switch (style)
{
case 0:
npc = ModContent.NPCType<RepairUnitCritter>();
break;
case 1:
npc = ModContent.NPCType<Flounder>();
break;
@@ -747,6 +757,9 @@ namespace CalamityMod
case 4:
npc = ModContent.NPCType<Catfish>();
break;
case 6:
npc = ModContent.NPCType<Androomba>();
break;
case 7:
npc = ModContent.NPCType<AquaticUrchin>();
break;