This commit is contained in:
DominicKarma committed 2021-10-19 18:14:26 -05:00
commit d258c76c2d
7 files changed
+16 -57

No files matched your search

+1 -1
View File
@@ -3004,7 +3004,7 @@ namespace CalamityMod.CalPlayer
if (modPlayer.pFlames)
{
player.blind = !modPlayer.alchFlask;
player.blind = !modPlayer.reducedPlagueDmg;
player.statDefense -= Plague.DefenseReduction;
player.moveSpeed -= 0.15f;
}
+2 -5
View File
@@ -11,9 +11,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Alchemical Flask");
Tooltip.SetDefault("All attacks inflict the plague\n" +
"Reduces the damage caused to you by the plague\n" +
"Removes the blindness effect caused by the plague\n" +
Tooltip.SetDefault("All attacks inflict the Plague debuff\n" +
"Projectiles spawn plague seekers on enemy hits");
}
@@ -30,14 +28,13 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.alchFlask = true;
modPlayer.reducedPlagueDmg = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ItemID.Bezoar);
recipe.AddIngredient(ItemID.BeeWax, 5);
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 10);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
+4 -46
View File
@@ -13,12 +13,10 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Plague Hive");
Tooltip.SetDefault("The power of your bees and wasps will rival the Moon Lord himself\n" +
"Summons a damaging plague aura around the player to destroy nearby enemies\n" +
"Releases bees when damaged\n" +
"All of your attacks inflict the plague\n" +
"Reduces the damage caused to you by the plague\n" +
"Projectiles spawn plague seekers on enemy hits");
Tooltip.SetDefault("The power of bees and wasps will rival the Moon Lord himself\n" +
"All attacks inflict the Plague debuff\n" +
"Releases bees when damaged that inflict the Plague\n" +
"Projectiles spawn plague seekers on enemy hits");
}
public override void SetDefaults()
@@ -26,7 +24,6 @@ namespace CalamityMod.Items.Accessories
item.width = 42;
item.height = 48;
item.value = CalamityGlobalItem.Rarity9BuyPrice;
item.expert = true;
item.rare = ItemRarityID.Cyan;
item.accessory = true;
}
@@ -34,9 +31,7 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<ToxicHeart>());
recipe.AddIngredient(ModContent.ItemType<AlchemicalFlask>());
recipe.AddIngredient(ItemID.HiveBackpack);
recipe.AddIngredient(ItemID.HoneyComb);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
@@ -48,44 +43,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
player.bee = true;
modPlayer.uberBees = true;
player.strongBees = true;
modPlayer.alchFlask = true;
modPlayer.reducedPlagueDmg = true;
int plagueCounter = 0;
Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.1f, 2f, 0.2f);
int num = ModContent.BuffType<Plague>();
float num2 = 300f;
bool flag = plagueCounter % 60 == 0;
int num3 = (int)(60 * player.AverageDamage());
int random = Main.rand.Next(10);
if (player.whoAmI == Main.myPlayer)
{
if (random == 0)
{
for (int l = 0; l < 200; l++)
{
NPC nPC = Main.npc[l];
if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && !nPC.buffImmune[num] && Vector2.Distance(player.Center, nPC.Center) <= num2)
{
if (nPC.FindBuffIndex(num) == -1)
{
nPC.AddBuff(num, 120, false);
}
if (flag)
{
if (player.whoAmI == Main.myPlayer)
{
Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), num3, 0f, player.whoAmI, l);
}
}
}
}
}
}
plagueCounter++;
if (plagueCounter >= 180)
{
}
}
}
}
+6 -2
View File
@@ -1,5 +1,6 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.CalPlayer;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
@@ -12,7 +13,8 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Toxic Heart");
Tooltip.SetDefault("Summons a damaging plague aura around the player to destroy nearby enemies");
Tooltip.SetDefault("Summons a plague aura around you that damages nearby enemies\n" +
"Reduces the damage caused by the Plague debuff and removes its blindness effect");
}
public override void SetDefaults()
@@ -27,12 +29,14 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.reducedPlagueDmg = true;
int plagueCounter = 0;
Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.05f, 1f, 0.1f);
int num = ModContent.BuffType<Plague>();
float num2 = 300f;
bool flag = plagueCounter % 60 == 0;
int num3 = (int)(30 * player.AverageDamage());
int num3 = (int)(50 * player.AverageDamage());
int random = Main.rand.Next(10);
if (player.whoAmI == Main.myPlayer)
{
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 30;
item.damage = 44;
item.magic = true;
item.mana = 7;
item.width = 60;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.width = 74;
item.damage = 75;
item.damage = 80;
item.melee = true;
item.useAnimation = 20;
item.useStyle = ItemUseStyleID.SwingThrow;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 20;
item.damage = 60;
item.damage = 63;
item.noMelee = true;
item.noUseGraphic = true;
item.consumable = true;