Removed Rotten Matter and Blood Sample
* Removed Hive Mind and Perforators weapon and Glove crafting recipes * Evils2 summon items now use Aerialite Bars * Hekate summon now uses Bloody Vein as God intended
This commit is contained in:
1 parent
62ee9cf193
commit
112448d544
31 files changed
+31
-242
No files matched your search
@@ -24,15 +24,5 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.bloodyGlove = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 2).
|
||||
AddIngredient<BloodSample>(6).
|
||||
AddIngredient(ItemID.Vertebrae, 2).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,15 +24,5 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.filthyGlove = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 2).
|
||||
AddIngredient<RottenMatter>(6).
|
||||
AddIngredient(ItemID.RottenChunk, 2).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public class BloodSample : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Materials";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 25;
|
||||
ItemID.Sets.SortingPriorityMaterials[Type] = 68; // Sturdy Fossil
|
||||
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ModContent.ItemType<RottenMatter>(), 1);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 34;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
Item.MakeUsableWithChlorophyteExtractinator();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 557 B |
@@ -1,30 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
[LegacyName("TrueShadowScale")]
|
||||
public class RottenMatter : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Materials";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 25;
|
||||
ItemID.Sets.SortingPriorityMaterials[Type] = 65; // Crimtane Ore
|
||||
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ModContent.ItemType<BloodSample>(), 1);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 32;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
Item.MakeUsableWithChlorophyteExtractinator();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 539 B |
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient(ItemID.CrimtaneBar, 3)
|
||||
.AddIngredient<BloodSample>(7)
|
||||
.AddIngredient<AerialiteBar>(7)
|
||||
.AddIngredient(ItemID.Vertebrae, 13)
|
||||
.AddTile(TileID.DemonAltar)
|
||||
.AddDecraftCondition(CalamityConditions.DownedPerforator)
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 3).
|
||||
AddIngredient<RottenMatter>(7).
|
||||
AddIngredient<AerialiteBar>(7).
|
||||
AddIngredient(ItemID.RottenChunk, 13).
|
||||
AddTile(TileID.DemonAltar).
|
||||
AddDecraftCondition(CalamityConditions.DownedHiveMind).
|
||||
|
||||
@@ -60,7 +60,6 @@ namespace CalamityMod.Items.TreasureBags
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<HiveMind>()));
|
||||
|
||||
// Materials
|
||||
itemLoot.Add(ModContent.ItemType<RottenMatter>(), 1, 30, 40);
|
||||
itemLoot.Add(ItemID.DemoniteBar, 1, 15, 20);
|
||||
itemLoot.Add(ItemID.RottenChunk, 1, 15, 20);
|
||||
itemLoot.AddIf(() => Main.hardMode, ItemID.CursedFlame, 1, 25, 30);
|
||||
|
||||
@@ -60,7 +60,6 @@ namespace CalamityMod.Items.TreasureBags
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<PerforatorHive>()));
|
||||
|
||||
// Materials
|
||||
itemLoot.Add(ModContent.ItemType<BloodSample>(), 1, 30, 40);
|
||||
itemLoot.Add(ItemID.CrimtaneBar, 1, 15, 20);
|
||||
itemLoot.Add(ItemID.Vertebrae, 1, 15, 20);
|
||||
itemLoot.AddIf(() => Main.hardMode, ItemID.Ichor, 1, 25, 30);
|
||||
|
||||
@@ -93,15 +93,5 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 3).
|
||||
AddIngredient<BloodSample>(9).
|
||||
AddIngredient(ItemID.Vertebrae, 3).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,15 +79,5 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 3).
|
||||
AddIngredient<RottenMatter>(9).
|
||||
AddIngredient(ItemID.RottenChunk, 3).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,15 +49,5 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 3).
|
||||
AddIngredient<BloodSample>(9).
|
||||
AddIngredient(ItemID.Vertebrae, 3).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,12 +22,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
internal const int TotalRows = 2;
|
||||
|
||||
internal const int TotalTeeth = 4;
|
||||
internal const int TotalTeeth = 3;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<Leviatitan>();
|
||||
}
|
||||
internal const int TotalTeeth = 3;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -43,14 +43,5 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BrainRot>(), 300);
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 5).
|
||||
AddIngredient<RottenMatter>(15).
|
||||
AddIngredient(ItemID.RottenChunk, 5).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,15 +38,5 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 4).
|
||||
AddIngredient<BloodSample>(12).
|
||||
AddIngredient(ItemID.Vertebrae, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -43,14 +43,5 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BurningBlood>(), 300);
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 5).
|
||||
AddIngredient<BloodSample>(15).
|
||||
AddIngredient(ItemID.Vertebrae, 5).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,15 +52,5 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 4).
|
||||
AddIngredient<BloodSample>(12).
|
||||
AddIngredient(ItemID.Vertebrae, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,15 +37,5 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 4).
|
||||
AddIngredient<RottenMatter>(12).
|
||||
AddIngredient(ItemID.RottenChunk, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,15 +51,5 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 4).
|
||||
AddIngredient<RottenMatter>(12).
|
||||
AddIngredient(ItemID.RottenChunk, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,15 +51,5 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 4).
|
||||
AddIngredient<BloodSample>(12).
|
||||
AddIngredient(ItemID.Vertebrae, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,15 +49,5 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.DemoniteBar, 4).
|
||||
AddIngredient<RottenMatter>(12).
|
||||
AddIngredient(ItemID.RottenChunk, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,15 +40,5 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Projectile.NewProjectile(source, player.ClampedMouseWorld(), Vector2.UnitY * -1f, type, damage, knockback, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.CrimtaneBar, 4).
|
||||
AddIngredient<BloodSample>(12).
|
||||
AddIngredient(ItemID.Vertebrae, 4).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,11 +53,6 @@ BloodOrb: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
BloodSample: {
|
||||
DisplayName: Blood Sample
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
Bloodstone: {
|
||||
DisplayName: Bloodstone
|
||||
Tooltip: ""
|
||||
@@ -247,11 +242,6 @@ ReaperTooth: {
|
||||
Tooltip: Sharp enough to cut diamonds
|
||||
}
|
||||
|
||||
RottenMatter: {
|
||||
DisplayName: Rotten Matter
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RuinousSoul: {
|
||||
DisplayName: Ruinous Soul
|
||||
Tooltip: A shard of the distant past
|
||||
|
||||
@@ -1371,7 +1371,6 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
normalOnly.Add(ItemID.DemoniteBar, 1, 10, 15);
|
||||
normalOnly.Add(ItemID.RottenChunk, 1, 10, 15);
|
||||
normalOnly.Add(ItemID.CorruptSeeds, 1, 10, 15);
|
||||
normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<RottenMatter>(), 1, 25, 30));
|
||||
normalOnly.Add(ItemDropRule.ByCondition(DropHelper.Hardmode(), ItemID.CursedFlame, 1, 10, 20));
|
||||
|
||||
// Equipment
|
||||
|
||||
@@ -606,7 +606,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
normalOnly.Add(ItemID.CrimtaneBar, 1, 10, 15);
|
||||
normalOnly.Add(ItemID.Vertebrae, 1, 10, 15);
|
||||
normalOnly.Add(ItemID.CrimsonSeeds, 1, 10, 15);
|
||||
normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<BloodSample>(), 1, 25, 30));
|
||||
normalOnly.Add(ItemDropRule.ByCondition(DropHelper.Hardmode(), ItemID.Ichor, 1, 10, 20));
|
||||
|
||||
// Equipment
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Packets
|
||||
packet.Write(codeBreaker.InputtedCellCount);
|
||||
packet.Write(codeBreaker.InitialCellCountBeforeDecrypting);
|
||||
packet.Write(codeBreaker.HeldSchematicID);
|
||||
packet.Write(codeBreaker.ContainsBloodSample);
|
||||
packet.Write(codeBreaker.ContainsBloodyVein);
|
||||
packet.Send(toClient, ignoreClient);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Packets
|
||||
int cellCount = packet.ReadInt32();
|
||||
int cellCountBeforeDecrypting = packet.ReadInt32();
|
||||
int schematicID = packet.ReadInt32();
|
||||
bool containsBloodSample = packet.ReadBoolean();
|
||||
bool containsBloodyVein = packet.ReadBoolean();
|
||||
|
||||
// Verify to ensure that the tile entity is a valid one.
|
||||
if (codeBreaker is null)
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Packets
|
||||
codeBreaker.InputtedCellCount = cellCount;
|
||||
codeBreaker.InitialCellCountBeforeDecrypting = cellCountBeforeDecrypting;
|
||||
codeBreaker.HeldSchematicID = schematicID;
|
||||
codeBreaker.ContainsBloodSample = containsBloodSample;
|
||||
codeBreaker.ContainsBloodyVein = containsBloodyVein;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.DraedonMisc;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Packets;
|
||||
using CalamityMod.Systems.Collections;
|
||||
using CalamityMod.Tiles.DraedonSummoner;
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.TileEntities
|
||||
public bool ContainsVoltageRegulationSystem;
|
||||
public bool ContainsCoolingCell;
|
||||
|
||||
public bool ContainsBloodSample;
|
||||
public bool ContainsBloodyVein;
|
||||
|
||||
public bool CanDecryptHeldSchematic
|
||||
{
|
||||
@@ -163,7 +163,7 @@ namespace CalamityMod.TileEntities
|
||||
totalCellsToDrop = 999;
|
||||
|
||||
InputtedCellCount -= totalCellsToDrop;
|
||||
int itemType = ContainsBloodSample ? ModContent.ItemType<BloodSample>() : ModContent.ItemType<DraedonPowerCell>();
|
||||
int itemType = ContainsBloodyVein ? ModContent.ItemType<BloodyVein>() : ModContent.ItemType<DraedonPowerCell>();
|
||||
Item.NewItem(new EntitySource_TileEntity(this), x * 16, y * 16, 32, 32, itemType, totalCellsToDrop);
|
||||
}
|
||||
}
|
||||
@@ -270,7 +270,7 @@ namespace CalamityMod.TileEntities
|
||||
tag["HeldSchematicID"] = HeldSchematicID;
|
||||
tag["DecryptionCountdown"] = DecryptionCountdown;
|
||||
tag["InitialCellCountBeforeDecrypting"] = InitialCellCountBeforeDecrypting;
|
||||
tag["ContainsBloodSample"] = ContainsBloodSample;
|
||||
tag["ContainsBloodyVein"] = ContainsBloodyVein;
|
||||
}
|
||||
|
||||
public override void LoadData(TagCompound tag)
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.TileEntities
|
||||
HeldSchematicID = tag.GetInt("HeldSchematicID");
|
||||
DecryptionCountdown = tag.GetInt("DecryptionCountdown");
|
||||
InitialCellCountBeforeDecrypting = tag.GetInt("InitialCellCountBeforeDecrypting");
|
||||
ContainsBloodSample = tag.GetBool("ContainsBloodSample");
|
||||
ContainsBloodyVein = tag.GetBool("ContainsBloodyVein");
|
||||
}
|
||||
|
||||
public override void NetSend(BinaryWriter writer)
|
||||
@@ -298,7 +298,7 @@ namespace CalamityMod.TileEntities
|
||||
writer.Write(HeldSchematicID);
|
||||
writer.Write(DecryptionCountdown);
|
||||
writer.Write(InitialCellCountBeforeDecrypting);
|
||||
writer.Write(ContainsBloodSample);
|
||||
writer.Write(ContainsBloodyVein);
|
||||
}
|
||||
|
||||
public override void NetReceive(BinaryReader reader)
|
||||
@@ -312,7 +312,7 @@ namespace CalamityMod.TileEntities
|
||||
HeldSchematicID = reader.ReadInt32();
|
||||
DecryptionCountdown = reader.ReadInt32();
|
||||
InitialCellCountBeforeDecrypting = reader.ReadInt32();
|
||||
ContainsBloodSample = reader.ReadBoolean();
|
||||
ContainsBloodyVein = reader.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Text;
|
||||
using CalamityMod.Items.DraedonMisc;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.NPCs.ExoMechs;
|
||||
using CalamityMod.Packets;
|
||||
using CalamityMod.Systems.Collections;
|
||||
@@ -168,13 +169,13 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
// Draw the cell payment slot icon.
|
||||
Texture2D emptyCellIconTexture = ModContent.Request<Texture2D>("CalamityMod/UI/DraedonsArsenal/PowerCellSlot_Empty").Value;
|
||||
Texture2D occupiedCellIconTexture = ModContent.Request<Texture2D>("CalamityMod/UI/DraedonsArsenal/PowerCellSlot_Filled").Value;
|
||||
Texture2D bloodSampleIconTexture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/BloodSample").Value;
|
||||
Texture2D bloodyVeinIconTexture = ModContent.Request<Texture2D>("CalamityMod/Items/Pets/BloodyVein").Value;
|
||||
Texture2D cellTexture = emptyCellIconTexture;
|
||||
if (codebreakerTileEntity.InputtedCellCount > 0)
|
||||
{
|
||||
if (codebreakerTileEntity.ContainsBloodSample)
|
||||
if (codebreakerTileEntity.ContainsBloodyVein)
|
||||
{
|
||||
cellTexture = bloodSampleIconTexture;
|
||||
cellTexture = bloodyVeinIconTexture;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -194,7 +195,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
DisplayNotStrongEnoughErrorText(schematicSlotDrawCenter + new Vector2(-24f, 56f));
|
||||
|
||||
// Handle decryption costs.
|
||||
else if (codebreakerTileEntity.HeldSchematicID != 0 && codebreakerTileEntity.DecryptionCountdown == 0 && !codebreakerTileEntity.ContainsBloodSample)
|
||||
else if (codebreakerTileEntity.HeldSchematicID != 0 && codebreakerTileEntity.DecryptionCountdown == 0 && !codebreakerTileEntity.ContainsBloodyVein)
|
||||
{
|
||||
int cost = codebreakerTileEntity.DecryptionCellCost;
|
||||
DisplayCostText(costDisplayLocation, cost);
|
||||
@@ -247,8 +248,8 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
// Create a temporary item for drawing purposes.
|
||||
// If cells are present, make the item reflect that.
|
||||
Item temporaryPowerCell = new Item();
|
||||
if (codebreakerTileEntity.ContainsBloodSample)
|
||||
temporaryPowerCell.SetDefaults(ModContent.ItemType<BloodSample>());
|
||||
if (codebreakerTileEntity.ContainsBloodyVein)
|
||||
temporaryPowerCell.SetDefaults(ModContent.ItemType<BloodyVein>());
|
||||
else
|
||||
temporaryPowerCell.SetDefaults(ModContent.ItemType<DraedonPowerCell>());
|
||||
|
||||
@@ -313,7 +314,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
if (Main.mouseLeft && Main.mouseLeftRelease && codebreakerTileEntity.DecryptionCountdown <= 0)
|
||||
{
|
||||
int powercellID = ModContent.ItemType<DraedonPowerCell>();
|
||||
int sampleID = ModContent.ItemType<BloodSample>();
|
||||
int sampleID = ModContent.ItemType<BloodyVein>();
|
||||
short cellStackDiff = 0;
|
||||
bool shouldPlaySound = true;
|
||||
|
||||
@@ -323,7 +324,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
cellStackDiff = (short)-Math.Min(temporaryItem.stack, temporaryItem.maxStack);
|
||||
Player p = Main.LocalPlayer;
|
||||
var source = p.GetSource_TileInteraction(codebreakerTileEntity.Position.X, codebreakerTileEntity.Position.Y);
|
||||
p.QuickSpawnItem(source, codebreakerTileEntity.ContainsBloodSample ? sampleID : powercellID, -cellStackDiff);
|
||||
p.QuickSpawnItem(source, codebreakerTileEntity.ContainsBloodyVein ? sampleID : powercellID, -cellStackDiff);
|
||||
|
||||
// Do not play a sound in this situation. The player is going to pick up the dropped cells in a few frames, which will make sound.
|
||||
shouldPlaySound = false;
|
||||
@@ -333,7 +334,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
else
|
||||
{
|
||||
bool holdingPowercell = playerHandItem.type == powercellID || (playerHandItem.type == sampleID && Main.zenithWorld);
|
||||
bool powercellsinserted = !codebreakerTileEntity.ContainsBloodSample && temporaryItem.stack > 0;
|
||||
bool powercellsinserted = !codebreakerTileEntity.ContainsBloodyVein && temporaryItem.stack > 0;
|
||||
bool cansummon = codebreakerTileEntity.ReadyToSummonDraedon && CalamityWorld.AbleToSummonDraedon;
|
||||
|
||||
// If the player's held power cells can be stacked on top of what's already in the codeberaker, then stack them.
|
||||
@@ -347,7 +348,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
{
|
||||
SoundEngine.PlaySound(BloodSound, codebreakerTileEntity.Center);
|
||||
}
|
||||
codebreakerTileEntity.ContainsBloodSample = true;
|
||||
codebreakerTileEntity.ContainsBloodyVein = true;
|
||||
|
||||
int spaceLeft = TECodebreaker.MaxCellCapacity - temporaryItem.stack;
|
||||
|
||||
@@ -362,7 +363,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
// If theres nothing inside or there are cells inside, cells can be inserted
|
||||
if (playerHandItem.type == powercellID && (temporaryItem.stack == 0 || powercellsinserted))
|
||||
{
|
||||
codebreakerTileEntity.ContainsBloodSample = false;
|
||||
codebreakerTileEntity.ContainsBloodyVein = false;
|
||||
|
||||
int spaceLeft = TECodebreaker.MaxCellCapacity - temporaryItem.stack;
|
||||
|
||||
@@ -387,7 +388,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
playerHandItem.stack = -cellStackDiff;
|
||||
temporaryItem.TurnToAir();
|
||||
AwaitingDecryptionTextClose = false;
|
||||
codebreakerTileEntity.ContainsBloodSample = false;
|
||||
codebreakerTileEntity.ContainsBloodyVein = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -637,7 +638,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
|
||||
Rectangle clickArea = Utils.CenteredRectangle(drawPosition, contactButton.Size() * VerificationButtonScale);
|
||||
|
||||
float iconrotation = codebreakerTileEntity.ContainsBloodSample ? Main.GlobalTimeWrappedHourly * 20f : 0f;
|
||||
float iconrotation = codebreakerTileEntity.ContainsBloodyVein ? Main.GlobalTimeWrappedHourly * 20f : 0f;
|
||||
|
||||
// Check if the mouse is hovering over the contact button area.
|
||||
if (MouseScreenArea.Intersects(clickArea))
|
||||
@@ -652,7 +653,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
{
|
||||
CalamityWorld.DraedonSummonCountdown = CalamityWorld.DraedonSummonCountdownMax;
|
||||
CalamityWorld.DraedonSummonPosition = codebreakerTileEntity.Center + new Vector2(-8f, -100f);
|
||||
if (Main.zenithWorld && codebreakerTileEntity.ContainsBloodSample)
|
||||
if (Main.zenithWorld && codebreakerTileEntity.ContainsBloodyVein)
|
||||
{
|
||||
CalamityWorld.DraedonMechdusa = true;
|
||||
}
|
||||
@@ -677,7 +678,7 @@ namespace CalamityMod.UI.DraedonSummoning
|
||||
string contactTextKey = "Contact";
|
||||
if (DownedBossSystem.downedExoMechs)
|
||||
contactTextKey = "Summon";
|
||||
if (codebreakerTileEntity.ContainsBloodSample)
|
||||
if (codebreakerTileEntity.ContainsBloodyVein)
|
||||
contactTextKey = "Evoke";
|
||||
string contactText = CalamityUtils.GetTextValue("UI." + contactTextKey);
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 983 B After Width: | Height: | Size: 1.3 KiB |
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.DraedonMisc;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Pets;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod
|
||||
// This check is done twice because the draw order matters. We want to draw the background icon before any text.
|
||||
if (item.stack > 0)
|
||||
{
|
||||
if (item.type == ItemType<BloodSample>())
|
||||
if (item.type == ItemType<BloodyVein>())
|
||||
{
|
||||
slotBackgroundTex = Request<Texture2D>("CalamityMod/UI/DraedonsArsenal/PowerCellSlot_Blood").Value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user