This commit is contained in:
mountaindrew10 committed 2022-04-20 19:28:42 -05:00
commit 3ef4ae4f5b
239 files changed
+505 -483

No files matched your search

File renamed without changes.

Before

Width:  |  Height:  |  Size: 358 B

After

Width:  |  Height:  |  Size: 358 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 410 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 371 B

+31 -8
View File
@@ -311,7 +311,7 @@ namespace CalamityMod.ILEditing
cursor.Emit(OpCodes.Ldc_R4, iceSkateTopSpeed);
}
}
#endregion Run Speed Changes
#endregion
#region Vanilla Hover Wing Nerfs
private static void ReduceWingHoverVelocities(ILContext il)
@@ -355,7 +355,7 @@ namespace CalamityMod.ILEditing
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, 10.8f); // Reduce by 10%.
}
#endregion Vanilla Hover Wing Nerfs
#endregion
#region Life Regen Changes
private static void PreventWellFedFromBeingRequiredInExpertModeForFullLifeRegen(ILContext il)
@@ -417,9 +417,9 @@ namespace CalamityMod.ILEditing
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, 0.75f); // Increase to 0.75f.
}
#endregion Mana Regen Nerfs
#endregion
#region Damage Variance Dampening
#region Damage Variance Dampening and Luck Removal
private static void AdjustDamageVariance(ILContext il)
{
// Change the damage variance from +-15% to +-5%.
@@ -432,15 +432,38 @@ namespace CalamityMod.ILEditing
cursor.Remove();
cursor.Emit(OpCodes.Ldc_I4, -5); // Increase to -5%.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(16))) // The 15% upper bound of the variance.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(16))) // The +15% upper bound of the variance.
{
LogFailure("+/-5% Damage Variance", "Could not locate the upper bound.");
return;
}
cursor.Remove();
cursor.Emit(OpCodes.Ldc_I4_6); // Decrease to +5%.
// Remove the ability for luck to affect damage variance.
// TODO -- Old Die should re-enable this later, which will cause a lot of complexity as DamageVar has no context.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdarg(1))) // The function argument for luck.
{
LogFailure("Damage Variance Luck Removal", "Could not locate the first luck load.");
return;
}
// Multiply the loaded luck value by zero so the positive luck condition never triggers.
cursor.Emit(OpCodes.Ldc_R4, 0f);
cursor.Emit(OpCodes.Mul);
// Do the same thing again for the second luck check.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdarg(1))) // The function argument for luck.
{
LogFailure("Damage Variance Luck Removal", "Could not locate the second luck load.");
return;
}
// Multiply the loaded luck value by zero so the negative luck condition never triggers.
cursor.Emit(OpCodes.Ldc_R4, 0f);
cursor.Emit(OpCodes.Mul);
}
#endregion Damage Variance Dampening
#endregion
#region Expert Hardmode Scaling Removal
private static void RemoveExpertHardmodeScaling(ILContext il)
@@ -455,7 +478,7 @@ namespace CalamityMod.ILEditing
cursor.Remove();
cursor.Emit(OpCodes.Ldc_I4_M1); // Replace the 1000 with -1, no NPC can have less than -1 HP on spawn, so it fails to run.
}
#endregion Expert Hardmode Scaling Removal
#endregion
#region Chlorophyte Bullet Speed Nerfs
private static void AdjustChlorophyteBullets(ILContext il)
@@ -483,6 +506,6 @@ namespace CalamityMod.ILEditing
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, 150f); // Reduce homing range by 50%.
}
#endregion Chlorophyte Bullet Speed Nerfs
#endregion
}
}
+6 -3
View File
@@ -29,9 +29,12 @@ namespace CalamityMod.Items.Accessories
"Provides a moderate amount of light in the abyss\n" +
"Greatly reduces breath loss in the abyss");
int equipSlot = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawFullHair[equipSlot] = false;
ArmorIDs.Head.Sets.DrawHatHair[equipSlot] = false;
if (Main.netMode != NetmodeID.Server)
{
int equipSlot = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawFullHair[equipSlot] = false;
ArmorIDs.Head.Sets.DrawHatHair[equipSlot] = false;
}
}
public override void SetDefaults()
+10 -7
View File
@@ -50,13 +50,16 @@ namespace CalamityMod.Items.Accessories
Item.value = CalamityGlobalItem.Rarity11BuyPrice;
Item.rare = ItemRarityID.Purple;
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
int equipSlotBody = Mod.GetEquipSlot(Name, EquipType.Body);
int equipSlotLegs = Mod.GetEquipSlot(Name, EquipType.Legs);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
ArmorIDs.Body.Sets.HidesTopSkin[equipSlotBody] = true;
ArmorIDs.Body.Sets.HidesArms[equipSlotBody] = true;
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
if (Main.netMode != NetmodeID.Server)
{
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
int equipSlotBody = Mod.GetEquipSlot(Name, EquipType.Body);
int equipSlotLegs = Mod.GetEquipSlot(Name, EquipType.Legs);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
ArmorIDs.Body.Sets.HidesTopSkin[equipSlotBody] = true;
ArmorIDs.Body.Sets.HidesArms[equipSlotBody] = true;
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
}
}
public override void UpdateAccessory(Player player, bool hideVisual)
+6 -4
View File
@@ -24,10 +24,12 @@ namespace CalamityMod.Items.Accessories
Tooltip.SetDefault("15% increased rogue projectile velocity\n" +
"Stealth strikes cause feathers to fall from the sky on enemy hits");
int equipSlot = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawFullHair[equipSlot] = false;
ArmorIDs.Head.Sets.DrawHatHair[equipSlot] = false;
if (Main.netMode != NetmodeID.Server)
{
int equipSlot = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawFullHair[equipSlot] = false;
ArmorIDs.Head.Sets.DrawHatHair[equipSlot] = false;
}
}
public override void SetDefaults()
+6 -3
View File
@@ -28,9 +28,12 @@ namespace CalamityMod.Items.Accessories
"Stealth strikes summon lunar flares on enemy hits\n" +
"Rogue projectiles very occasionally summon moon sigils behind them");
int equipSlot = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawFullHair[equipSlot] = false;
ArmorIDs.Head.Sets.DrawHatHair[equipSlot] = false;
if (Main.netMode != NetmodeID.Server)
{
int equipSlot = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawFullHair[equipSlot] = false;
ArmorIDs.Head.Sets.DrawHatHair[equipSlot] = false;
}
}
public override void SetDefaults()
+10 -7
View File
@@ -33,13 +33,16 @@ namespace CalamityMod.Items.Accessories
"Wow, you can swim now!\n" +
"Most of these effects are only active after Skeletron has been defeated");
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
int equipSlotBody = Mod.GetEquipSlot(Name, EquipType.Body);
int equipSlotLegs = Mod.GetEquipSlot(Name, EquipType.Legs);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
ArmorIDs.Body.Sets.HidesTopSkin[equipSlotBody] = true;
ArmorIDs.Body.Sets.HidesArms[equipSlotBody] = true;
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
if (Main.netMode != NetmodeID.Server)
{
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
int equipSlotBody = Mod.GetEquipSlot(Name, EquipType.Body);
int equipSlotLegs = Mod.GetEquipSlot(Name, EquipType.Legs);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
ArmorIDs.Body.Sets.HidesTopSkin[equipSlotBody] = true;
ArmorIDs.Body.Sets.HidesArms[equipSlotBody] = true;
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
}
}
public override void SetDefaults()
+3 -1
View File
@@ -15,7 +15,9 @@ namespace CalamityMod.Items.Armor
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Aerospec Headgear");
Tooltip.SetDefault("8% increased rogue damage and 5% increased movement speed");
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Anahita Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+4 -1
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ID;
using Microsoft.Xna.Framework;
using Terraria.DataStructures;
@@ -14,7 +15,9 @@ namespace CalamityMod.Items.Armor.Vanity
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Apollo Mask");
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Aquatic Scourge Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Ares Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+8 -3
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Microsoft.Xna.Framework;
using Terraria.DataStructures;
@@ -13,8 +14,12 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Artemis Mask");
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
if (Main.netMode != NetmodeID.Server)
{
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
}
}
public override void SetDefaults()
+3 -1
View File
@@ -12,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Ashen Horns");
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Astrum Deus Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Astrum Aureus Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Brimstone Elemental Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Dragonfolly Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Calamitas Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+3 -1
View File
@@ -12,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Hood of Calamity");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Ceaseless Void Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Crabulon Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Cryogen Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Desert Scourge Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Devourer of Gods Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Draedon Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Hive Mind Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Leviathan Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Old Duke Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Perforator Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Plaguebringer Goliath Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Polterghast Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Profaned Guardian Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Providence Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Ravager Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Calamitous Hood");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Signus Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Slime God Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Slime God Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Storm Weaver Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Thanatos Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
+5 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ID;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent.Creative;
@@ -11,7 +12,9 @@ namespace CalamityMod.Items.Armor.Vanity
{
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
DisplayName.SetDefault("Yharon Mask");
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
}
public override void SetDefaults()
@@ -39,8 +39,11 @@ namespace CalamityMod.Items.Weapons.Summon
"Exiting the mount while a boss is alive will temporarily hinder your movement\n" +
CalamityUtils.ColorMessage("Now, make them pay.", new Color(135, 206, 235)));
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
if (Main.netMode != NetmodeID.Server)
{
int equipSlotHead = Mod.GetEquipSlot(Name, EquipType.Head);
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
}
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
}
+16 -2
View File
@@ -16,6 +16,7 @@ using System.IO;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
@@ -80,10 +81,12 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Adult Eidolon Wyrm");
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
Scale = 0.4f,
PortraitScale = 0.7f,
Scale = 0.5f,
PortraitScale = 0.8f,
PortraitPositionXOverride = 2f,
PortraitPositionYOverride = 2f
};
value.Position.Y -= 32f;
@@ -121,6 +124,17 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
NPC.Calamity().VulnerableToWater = false;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
//AAAAAAAAAAAAH Scary abyss superboss guy so he gets pitch black bg and no biome source
new MoonLordPortraitBackgroundProviderBestiaryInfoElement(),
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Traces of them appear even in records going back to before the Golden Age of Dragons… They may very well be a glimpse into the full potential of nature.")
});
}
public override void SendExtraAI(BinaryWriter writer)
{
writer.WriteVector2(chargeDestination);
+6 -6
View File
@@ -3965,7 +3965,7 @@ namespace CalamityMod.NPCs
npc.life = 0;
npc.HitEffect(0, 10.0);
npc.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
}
if (npc.ai[0] > 0f && npc.ai[0] < (float)Main.npc.Length)
@@ -3975,7 +3975,7 @@ namespace CalamityMod.NPCs
npc.life = 0;
npc.HitEffect(0, 10.0);
npc.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
}
}
@@ -3987,7 +3987,7 @@ namespace CalamityMod.NPCs
npc.HitEffect(0, 10.0);
npc.checkDead();
npc.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (isSplittingNPCHead && !Main.npc[(int)npc.ai[0]].active)
{
@@ -3995,7 +3995,7 @@ namespace CalamityMod.NPCs
npc.HitEffect(0, 10.0);
npc.checkDead();
npc.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (isSplittingNPCTail && !Main.npc[(int)npc.ai[1]].active)
{
@@ -4003,7 +4003,7 @@ namespace CalamityMod.NPCs
npc.HitEffect(0, 10.0);
npc.checkDead();
npc.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (isSplittingNPCBody && (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != npc.aiStyle))
{
@@ -4034,7 +4034,7 @@ namespace CalamityMod.NPCs
if (!npc.active && Main.netMode == NetmodeID.Server)
{
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
}
+15
View File
@@ -4,6 +4,7 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
@@ -15,6 +16,7 @@ namespace CalamityMod.NPCs.Crabulon
{
DisplayName.SetDefault("Crab Shroom");
Main.npcFrameCount[NPC.type] = 4;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
@@ -40,6 +42,19 @@ namespace CalamityMod.NPCs.Crabulon
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
int associatedNPCType = ModContent.NPCType<CrabulonIdle>();
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.UndergroundMushroom,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Mushrooms that grow only on Crabulon’s shell, feasting off the nutrients in the husk. By jolting its body, it flings these off in defense.")
});
}
public override void FindFrame(int frameHeight)
{
NPC.frameCounter += 0.15f;
+18
View File
@@ -17,6 +17,7 @@ using System;
using System.IO;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
@@ -34,6 +35,13 @@ namespace CalamityMod.NPCs.Crabulon
{
DisplayName.SetDefault("Crabulon");
Main.npcFrameCount[NPC.type] = 6;
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
Scale = 0.8f,
PortraitScale = 0.9f,
};
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
}
public override void SetDefaults()
@@ -62,6 +70,16 @@ namespace CalamityMod.NPCs.Crabulon
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.UndergroundMushroom,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("In the bulbous growths of the fungal caverns it is not uncommon to find molted shells.They are far too large for any of the usual decapods of the mushrooms.")
});
}
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(biomeEnrageTimer);
+1 -1
View File
@@ -125,7 +125,7 @@ namespace CalamityMod.NPCs.DevourerofGods
}
if (!NPC.active && Main.netMode == NetmodeID.Server)
{
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
}
+13
View File
@@ -11,6 +11,7 @@ using System;
using System.IO;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Graphics.Shaders;
@@ -124,6 +125,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
DisplayName.SetDefault(NameToDisplay);
NPCID.Sets.TrailingMode[NPC.type] = 3;
NPCID.Sets.TrailCacheLength[NPC.type] = 15;
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
PortraitPositionXOverride = 50f,
@@ -163,6 +165,17 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
NPC.Calamity().VulnerableToElectricity = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
//We'll probably want a custom background for Exos like ML has.
//BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Exo,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Within it, burns chemicals with the fury of Greek fire. Highly refined from the design of the eye-like twins before, it is now capable of outstanding mid-air movement. ")
});
}
public override void BossHeadSlot(ref int index)
{
if (SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune)
+13
View File
@@ -22,6 +22,7 @@ using System.Collections.Generic;
using System.IO;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
@@ -138,6 +139,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
DisplayName.SetDefault("XF-09 Ares");
NPCID.Sets.TrailingMode[NPC.type] = 3;
NPCID.Sets.TrailCacheLength[NPC.type] = NPC.oldPos.Length;
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
PortraitScale = 0.6f,
@@ -173,6 +175,17 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.Calamity().VulnerableToElectricity = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
//We'll probably want a custom background for Exos like ML has.
//BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Exo,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("While it is the most flamboyant of Draedon’s machines, it appears to be lacking some finish, though this trait does not compromise its killing potential whatsoever.")
});
}
public override void BossHeadSlot(ref int index)
{
if (SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune)
+13
View File
@@ -11,6 +11,7 @@ using System.Collections.Generic;
using System.IO;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
@@ -136,6 +137,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
DisplayName.SetDefault(NameToDisplay);
NPCID.Sets.TrailingMode[NPC.type] = 3;
NPCID.Sets.TrailCacheLength[NPC.type] = 15;
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
PortraitPositionXOverride = -50f,
@@ -174,6 +176,17 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
NPC.Calamity().VulnerableToElectricity = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
//We'll probably want a custom background for Exos like ML has.
//BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Exo,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("The Exo Twins are the ultimate recon units. Capable of detecting various wavelengths of light unknown to us, nothing can hide.")
});
}
public override void BossHeadSlot(ref int index)
{
if (SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune)
+13
View File
@@ -11,6 +11,7 @@ using System;
using System.IO;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Skies;
@@ -113,6 +114,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
// Ensure that the reticle is not culled due to the player being very far from Thanatos.
NPCID.Sets.MustAlwaysDraw[NPC.type] = true;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
@@ -145,6 +147,17 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.Calamity().VulnerableToElectricity = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
//We'll probably want a custom background for Exos like ML has.
//BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Exo,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Under every armored plate on this machine lies an advanced weapon. This sacrifices the machine’s durability, but it makes it a very effective mass murderer.")
});
}
public override void BossHeadSlot(ref int index)
{
if (SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune)
+19
View File
@@ -4,6 +4,7 @@ using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
@@ -14,6 +15,10 @@ namespace CalamityMod.NPCs.HiveMind
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dank Creeper");
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0);
value.Position.X += 1f;
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
}
public override void SetDefaults()
@@ -41,6 +46,20 @@ namespace CalamityMod.NPCs.HiveMind
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
int associatedNPCType = ModContent.NPCType<HiveMind>();
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCorruption,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.UndergroundCorruption,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Though their core is the same as a hive blob, their armored shell of shadow scale prevents them from dying quite as easily. They also carry a noxious gas within them.")
});
}
public override void AI()
{
NPC.TargetClosest();
+1
View File
@@ -15,6 +15,7 @@ namespace CalamityMod.NPCs.HiveMind
{
DisplayName.SetDefault("Dark Heart");
Main.npcFrameCount[NPC.type] = 4;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
+19
View File
@@ -4,6 +4,7 @@ using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
@@ -14,6 +15,10 @@ namespace CalamityMod.NPCs.HiveMind
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Hive Blob");
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0);
value.Position.X += 1f;
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
}
public override void SetDefaults()
@@ -41,6 +46,20 @@ namespace CalamityMod.NPCs.HiveMind
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
int associatedNPCType = ModContent.NPCType<HiveMind>();
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCorruption,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.UndergroundCorruption,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("A ball of flesh and rotting matter, it is flung out by the hive mind towards its enemies as fodder, to wear down any who stand in their way.")
});
}
public override void AI()
{
bool expertMode = Main.expertMode || BossRushEvent.BossRushActive;
+13
View File
@@ -1,6 +1,7 @@
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
@@ -12,6 +13,7 @@ namespace CalamityMod.NPCs.HiveMind
{
DisplayName.SetDefault("Hive Cyst");
Main.npcFrameCount[NPC.type] = 4;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
@@ -33,6 +35,17 @@ namespace CalamityMod.NPCs.HiveMind
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCorruption,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.UndergroundCorruption,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Despite retaining a humanoid form, it is not capable of any higher thoughts. It only knows violence.")
});
}
public override void FindFrame(int frameHeight)
{
NPC.frameCounter += 0.15f;
+20
View File
@@ -18,6 +18,7 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
using Terraria;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
@@ -87,6 +88,14 @@ namespace CalamityMod.NPCs.HiveMind
Main.npcFrameCount[NPC.type] = 16;
NPCID.Sets.TrailingMode[NPC.type] = 1;
NPCID.Sets.TrailCacheLength[NPC.type] = NPC.oldPos.Length;
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
Scale = 0.4f,
PortraitPositionYOverride = 3f
};
value.Position.Y += 3f;
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
}
public override void SetDefaults()
@@ -152,6 +161,17 @@ namespace CalamityMod.NPCs.HiveMind
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCorruption,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.UndergroundCorruption,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("In the deep trenches of the corruption, infected creatures gather to manifest their own deity. Unlike other cases where smaller beings gather for protection, this is an entirely offensive maneuver.")
});
}
public override void BossHeadSlot(ref int index)
{
if (NPC.life / (float)NPC.lifeMax < 0.8f)
+2 -2
View File
@@ -240,7 +240,7 @@ namespace CalamityMod.NPCs.NormalNPCs
}
if (Main.netMode == NetmodeID.Server & flag24)
{
NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)NPC.direction, 0, 0, 0);
NetMessage.SendData(MessageID.ToggleDoorState, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)NPC.direction, 0, 0, 0);
}
}
if (Main.tile[num170, num171 - 1].TileType == 388)
@@ -253,7 +253,7 @@ namespace CalamityMod.NPCs.NormalNPCs
}
if (Main.netMode == NetmodeID.Server & flag25)
{
NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0);
NetMessage.SendData(MessageID.ToggleDoorState, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0);
}
}
}
+2 -2
View File
@@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.NormalNPCs
}
if (Main.netMode == NetmodeID.Server & flag24)
{
NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)NPC.direction, 0, 0, 0);
NetMessage.SendData(MessageID.ToggleDoorState, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)NPC.direction, 0, 0, 0);
}
}
if (Main.tile[num170, num171 - 1].TileType == 388)
@@ -279,7 +279,7 @@ namespace CalamityMod.NPCs.NormalNPCs
}
if (Main.netMode == NetmodeID.Server & flag25)
{
NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0);
NetMessage.SendData(MessageID.ToggleDoorState, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0);
}
}
}
+3 -3
View File
@@ -120,7 +120,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.HitEffect(0, 10.0);
NPC.checkDead();
NPC.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (!Main.npc[(int)NPC.ai[0]].active)
{
@@ -128,11 +128,11 @@ namespace CalamityMod.NPCs.Perforator
NPC.HitEffect(0, 10.0);
NPC.checkDead();
NPC.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (!NPC.active && Main.netMode == NetmodeID.Server)
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
// Movement
+3 -3
View File
@@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.HitEffect(0, 10.0);
NPC.checkDead();
NPC.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (!Main.npc[(int)NPC.ai[1]].active)
{
@@ -93,11 +93,11 @@ namespace CalamityMod.NPCs.Perforator
NPC.HitEffect(0, 10.0);
NPC.checkDead();
NPC.active = false;
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
if (!NPC.active && Main.netMode == NetmodeID.Server)
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, NPC.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
Vector2 vector2 = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
+1 -1
View File
@@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.TownNPCs
public override bool CanTownNPCSpawn(int numTownNPCs, int money) => DownedBossSystem.downedCryogen;
public override string TownNPCName() => "Permafrost";
public override List<string> SetNPCNameList() => new List<string>() { "Permafrost" };
public override string GetChat()
{
+1 -4
View File
@@ -68,10 +68,7 @@ namespace CalamityMod.NPCs.TownNPCs
return CalamityWorld.spawnedCirrus;
}
public override string TownNPCName()
{
return "Cirrus";
}
public override List<string> SetNPCNameList() => new List<string>() { "Cirrus" };
public override string GetChat()
{
+1 -4
View File
@@ -52,10 +52,7 @@ namespace CalamityMod.NPCs.TownNPCs
return DownedBossSystem.downedCLAM && DownedBossSystem.downedDesertScourge;
}
public override string TownNPCName()
{
return "Amidias";
}
public override List<string> SetNPCNameList() => new List<string>() { "Amidias" };
public override void AI()
{
+2 -8
View File
@@ -17,13 +17,11 @@ namespace CalamityMod.NPCs.TownNPCs
[AutoloadHead]
public class THIEF : ModNPC
{
string npcName;
public static List<string> PossibleNames = new List<string>()
{
// Patron names
"Xplizzy", // <@!98826096237109248> Whitegiraffe#6342
"Freakish", // <@!750363283520749598> Freakish#0001
"Freakish", // <@!750363283520749598> Freakish#0001
// Original names
"Laura", "Mie", "Bonnie",
@@ -86,11 +84,7 @@ namespace CalamityMod.NPCs.TownNPCs
return CalamityWorld.spawnedBandit;
}
public override string TownNPCName()
{
npcName = PossibleNames[Main.rand.Next(PossibleNames.Count)];
return npcName;
}
public override List<string> SetNPCNameList() => PossibleNames;
public override string GetChat()
{
+2 -1
View File
@@ -4,6 +4,7 @@ using CalamityMod.Items;
using CalamityMod.Projectiles.Magic;
using CalamityMod.UI.CalamitasEnchants;
using CalamityMod.World;
using System.Collections.Generic;
using Terraria;
using Terraria.GameContent.Events;
using Terraria.ID;
@@ -52,7 +53,7 @@ namespace CalamityMod.NPCs.TownNPCs
public override bool CanTownNPCSpawn(int numTownNPCs, int money) => DownedBossSystem.downedSCal && !NPC.AnyNPCs(NPCType<SCalBoss>());
public override string TownNPCName() => "Calamitas";
public override List<string> SetNPCNameList() => new List<string>() { "Calamitas" };
// The way this works is by having an RNG based on weights.
// With certain conditions (such as if a blood moon is happening) you can add possibilities
+2 -2
View File
@@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
npc.active = false;
if (Main.netMode != NetmodeID.MultiplayerClient)
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
for (int j = 0; j < Main.maxNPCs; j++)
{
@@ -157,7 +157,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
Main.npc[j].active = false;
if (Main.netMode != NetmodeID.MultiplayerClient)
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0);
}
}
}
@@ -228,7 +228,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
// If for any reason this segment was deleted, send info to clients so they also see it die.
if (!npc.active && Main.netMode == NetmodeID.Server)
NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f);
NetMessage.SendData(MessageID.DamageNPC, -1, -1, null, npc.whoAmI, -1f);
}
// Movement
+13 -1
View File
@@ -27,10 +27,11 @@ using System.Collections.Generic;
using System.IO;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.GameContent.ItemDropRules;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
using Terraria.GameContent.ItemDropRules;
namespace CalamityMod.NPCs.Yharon
{
@@ -62,6 +63,7 @@ namespace CalamityMod.NPCs.Yharon
DisplayName.SetDefault("Jungle Dragon, Yharon");
Main.npcFrameCount[NPC.type] = 7;
NPCID.Sets.TrailingMode[NPC.type] = 1;
NPCID.Sets.BossBestiaryPriority.Add(Type);
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
{
Scale = 0.3f,
@@ -104,6 +106,16 @@ namespace CalamityMod.NPCs.Yharon
NPC.Calamity().VulnerableToSickness = true;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Jungle,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Perhaps… the last of its kind. It could decimate this Jungle in an instant if it wished, however, it seems to take great care in not doing so.")
});
}
public override void SendExtraAI(BinaryWriter writer)
{
BitsByte bb = new BitsByte();
+1 -1
View File
@@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Boss
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
Main.EntitySpriteDraw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/MushBombGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0);
Main.EntitySpriteDraw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/MushBombGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0);
}
public override void Kill(int timeLeft)
+1 -1
View File
@@ -64,7 +64,7 @@ namespace CalamityMod.Projectiles.Boss
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0);
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0);
return false;
}
+1 -1
View File
@@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Melee
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
Main.EntitySpriteDraw(ModContent.Request<Texture2D>(Texture).Value, Projectile.Center - Main.screenPosition, null, color, Projectile.rotation, origin, 1f, SpriteEffects.None, 0);
Main.EntitySpriteDraw(ModContent.Request<Texture2D>(Texture).Value, Projectile.Center - Main.screenPosition, null, color, Projectile.rotation, origin, 1f, spriteEffects, 0);
}
public override Color? GetAlpha(Color lightColor)
+1 -1
View File
@@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee
WorldGen.KillTile(x, y);
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, x, y);
NetMessage.SendData(MessageID.TileManipulation, -1, -1, null, 0, x, y);
AchievementsHelper.CurrentlyMining = false;
}
+1 -1
View File
@@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Melee
float rot = MathHelper.ToRadians(22.5f) * Math.Sign(Projectile.velocity.X);
Vector2 drawPos = Projectile.oldPos[i] - Main.screenPosition + origin + new Vector2(0f, Projectile.gfxOffY);
Color color = Projectile.GetAlpha(lightColor) * ((Projectile.oldPos.Length - i) / (float)Projectile.oldPos.Length);
Main.EntitySpriteDraw(texture, drawPos, new Rectangle?(), color, Projectile.rotation - i * rot, origin, Projectile.scale, SpriteEffects.None, 0);
Main.EntitySpriteDraw(texture, drawPos, new Rectangle?(), color, Projectile.rotation - i * rot, origin, Projectile.scale, spriteEffects, 0);
}
return false;
}
+1 -1
View File
@@ -476,7 +476,7 @@ namespace CalamityMod.Projectiles.Pets
SpriteEffects spriteEffects = SpriteEffects.None;
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), Projectile.scale, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), Projectile.scale, spriteEffects, 0);
return false;
}
}
+4 -5
View File
@@ -1,14 +1,13 @@
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Graphics.Shaders;
using CalamityMod.Particles;
using Terraria.Audio;
//TY dom for coding condemnation, great reference, would steal code from again :)
// - Iban
@@ -97,8 +96,8 @@ namespace CalamityMod.Projectiles.Ranged
CurrentChargingFrames = 0f;
++PumpkinsCharge;
FramesToLoadNextPumpkin *= 0.850f;
//CombatText.NewText(projectile.Hitbox, new Color(255*(PumpkinsCharge/5), 151 * (PumpkinsCharge / 5), 78 * (PumpkinsCharge / 5)), ((int)PumpkinsCharge).ToString(), true);
//Colors don't properly shift towards orange, they remain white fsr. I assume its float fuckery. Also the numbers appear too high up
// Debug text:
// CombatText.NewText(Projectile.Hitbox, new Color(255f * (PumpkinsCharge / 5f) / 255f, 151f * (PumpkinsCharge / 5f) / 255f, 78f * (PumpkinsCharge / 5f) / 255f), ((int)PumpkinsCharge).ToString(), true);
if (PumpkinsCharge >= Pumpler.MaxPumpkins)
SoundEngine.PlaySound(SoundID.Item69);
else
+3 -3
View File
@@ -154,9 +154,9 @@ namespace CalamityMod.Projectiles.Rogue
Color alpha5 = Projectile.GetAlpha(color25);
Vector2 origin7 = rectangle11.Size() / 2f;
Color color47 = Main.hslToRgb(0.25f, 1f, 1f).MultiplyRGBA(new Color(255, 255, 255, 0));
Main.spriteBatch.Draw(texture2D27, vector38, new Microsoft.Xna.Framework.Rectangle?(rectangle11), color47, 0f, origin7, new Vector2(1f, 5f) * Projectile.scale * 2f, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture2D27, vector38, new Microsoft.Xna.Framework.Rectangle?(rectangle11), alpha5, Projectile.rotation, origin7, Projectile.scale, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture2D27, vector38, new Microsoft.Xna.Framework.Rectangle?(rectangle11), alpha5, 0f, origin7, new Vector2(1f, 8f) * Projectile.scale, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture2D27, vector38, new Microsoft.Xna.Framework.Rectangle?(rectangle11), color47, 0f, origin7, new Vector2(1f, 5f) * Projectile.scale * 2f, spriteEffects, 0);
Main.spriteBatch.Draw(texture2D27, vector38, new Microsoft.Xna.Framework.Rectangle?(rectangle11), alpha5, Projectile.rotation, origin7, Projectile.scale, spriteEffects, 0);
Main.spriteBatch.Draw(texture2D27, vector38, new Microsoft.Xna.Framework.Rectangle?(rectangle11), alpha5, 0f, origin7, new Vector2(1f, 8f) * Projectile.scale, spriteEffects, 0);
return false;
}
}
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue
SpriteEffects spriteEffects = SpriteEffects.None;
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), Projectile.scale, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), Projectile.scale, spriteEffects, 0);
return false;
}
+1 -1
View File
@@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Summon
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipVertically;
Main.spriteBatch.Draw(texture, startPos, rectangle, Projectile.GetAlpha(lightColor), rotation, origin, scale, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture, startPos, rectangle, Projectile.GetAlpha(lightColor), rotation, origin, scale, spriteEffects, 0);
return false;
}
}
+1 -1
View File
@@ -290,7 +290,7 @@ namespace CalamityMod.Projectiles.Summon
if (Projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture.Width, frameHeight)), Color.White, Projectile.rotation, new Vector2(texture.Width / 2f, frameHeight / 2f), Projectile.scale, SpriteEffects.None, 0);
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture.Width, frameHeight)), Color.White, Projectile.rotation, new Vector2(texture.Width / 2f, frameHeight / 2f), Projectile.scale, spriteEffects, 0);
}
}
}
-2
View File
@@ -7,8 +7,6 @@ namespace CalamityMod.Projectiles.Summon
{
public class IceSentry : ModProjectile
{
private bool setDamage = true;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ice Sentry");
-1
View File
@@ -10,7 +10,6 @@ namespace CalamityMod.Projectiles.Summon
{
public class PlantTentacle : ModProjectile
{
private bool initialized = false;
private int counter = 0;
private float desiredDistance = 150f;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
-2
View File
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
@@ -1,6 +1,4 @@
using Terraria.Audio;
using Terraria.Audio;
using Terraria.Audio;
using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
Loaded 100 of 239 files, more files were not shown because too many files have changed in this diff. Show more