Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Cooldowns
|
||||
{
|
||||
public class PlagueBlackoutCooldown : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plague Blackout Cooldown");
|
||||
Description.SetDefault("Your plague blackout ability is recharging");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 488 B |
@@ -9,8 +9,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaos Spirit");
|
||||
Description.SetDefault("The chaos spirit will protect you");
|
||||
DisplayName.SetDefault("Hydrothermic Vent");
|
||||
Description.SetDefault("The hydrothermic vent will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 561 B |
|
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 522 B |
@@ -17,12 +17,14 @@ using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.SunkenSea;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
@@ -30,6 +32,7 @@ using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.Environment;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -507,6 +510,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool ataxiaFire = false;
|
||||
public bool ataxiaVolley = false;
|
||||
public bool ataxiaBlaze = false;
|
||||
public bool hydrothermalSmoke = false;
|
||||
public bool daedalusAbsorb = false;
|
||||
public bool daedalusShard = false;
|
||||
public bool reaverSpore = false;
|
||||
@@ -1874,6 +1878,7 @@ namespace CalamityMod.CalPlayer
|
||||
ataxiaFire = false;
|
||||
ataxiaVolley = false;
|
||||
ataxiaBlaze = false;
|
||||
hydrothermalSmoke = false;
|
||||
snowRuffianSet = false;
|
||||
eskimoSet = false; //vanilla armor
|
||||
meteorSet = false; //vanilla armor, for Space Gun nerf
|
||||
@@ -5555,7 +5560,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (npc.type == NPCID.BlueJellyfish || npc.type == NPCID.PinkJellyfish || npc.type == NPCID.GreenJellyfish ||
|
||||
npc.type == NPCID.FungoFish || npc.type == NPCID.BloodJelly || npc.type == NPCID.AngryNimbus || npc.type == NPCID.GigaZapper ||
|
||||
npc.type == NPCID.MartianTurret || npc.type == ModContent.NPCType<StormlionCharger>())
|
||||
npc.type == NPCID.MartianTurret || npc.type == ModContent.NPCType<StormlionCharger>() || npc.type == ModContent.NPCType<GhostBell>() || npc.type == ModContent.NPCType<BoxJellyfish>())
|
||||
damage /= 2;
|
||||
}
|
||||
if (fleshTotem && !fleshTotemCooldown)
|
||||
@@ -5641,7 +5646,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (aSparkRare)
|
||||
{
|
||||
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc ||
|
||||
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ModContent.ProjectileType<LightningMark>() ||
|
||||
proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet)
|
||||
damage /= 2;
|
||||
}
|
||||
|
||||
@@ -408,7 +408,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Acid rain droplets
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (CalamityWorld.rainingAcid && player.Calamity().ZoneSulphur && !CalamityPlayer.areThereAnyDamnBosses && player.Center.Y < Main.worldSurface * 16f + 800f)
|
||||
if (CalamityWorld.rainingAcid && modPlayer.ZoneSulphur && !CalamityPlayer.areThereAnyDamnBosses && player.Center.Y < Main.worldSurface * 16f + 800f)
|
||||
{
|
||||
int acidRainDropRate = (int)MathHelper.Clamp(Main.invasionSize * 0.4f, 13.5f, 50);
|
||||
Vector2 spawnPoint = new Vector2(player.Center.X + Main.rand.Next(-1000, 1001), player.Center.Y - Main.rand.Next(700, 801));
|
||||
@@ -423,6 +423,23 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
//Hydrothermal blue smoke effects but it doesn't work epicccccc
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (modPlayer.hydrothermalSmoke)
|
||||
{
|
||||
if ((double)player.velocity.X > 0 || (double)player.velocity.Y > 0 || (double)player.velocity.X < -0.1 || (double)player.velocity.Y < -0.1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<HydrothermalSmoke>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
//trying to find a workaround because apparently putting the bool in ResetEffects prevents it from working
|
||||
if (!player.armorEffectDrawOutlines)
|
||||
{
|
||||
modPlayer.hydrothermalSmoke = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Death Mode effects
|
||||
modPlayer.caveDarkness = 0f;
|
||||
if (CalamityWorld.death)
|
||||
|
||||
|
Before Width: | Height: | Size: 639 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 422 B |
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Scuttler's Jewel");
|
||||
Tooltip.SetDefault("Javelin projectiles have a chance spawn a jewel spike when destroyed");
|
||||
Tooltip.SetDefault("Rogue javelin projectiles have a chance spawn a jewel spike when destroyed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 759 B After Width: | Height: | Size: 424 B |
@@ -13,13 +13,13 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Discordian Wings");
|
||||
Tooltip.SetDefault("Formed from the flames of pure chaos\n" +
|
||||
DisplayName.SetDefault("Hadal Mantle");
|
||||
Tooltip.SetDefault("Fueled by the fury of the depths\n" +
|
||||
"Horizontal speed: 7.75\n" +
|
||||
"Acceleration multiplier: 1.5\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 180\n" +
|
||||
"10% increased damage while wearing the Ataxia Armor");
|
||||
"10% increased damage while wearing the Hydrothermic Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 497 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Armor");
|
||||
DisplayName.SetDefault("Hydrothermic Armor");
|
||||
Tooltip.SetDefault("+20 max life\n" +
|
||||
"8% increased damage and 4% increased critical strike chance");
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 791 B After Width: | Height: | Size: 707 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Headgear");
|
||||
DisplayName.SetDefault("Hydrothermic Headgear");
|
||||
Tooltip.SetDefault("12% increased ranged damage and 10% increased ranged critical strike chance\n" +
|
||||
"Reduces ammo usage by 25%, temporary immunity to lava, and immunity to fire damage\n" +
|
||||
"Provides heat protection in Death Mode");
|
||||
@@ -34,6 +34,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawOutlines = true;
|
||||
player.Calamity().hydrothermalSmoke = true;
|
||||
}
|
||||
|
||||
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
|
||||
|
||||
|
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 420 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 3.7 KiB |
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Helm");
|
||||
DisplayName.SetDefault("Hydrothermic Helm");
|
||||
Tooltip.SetDefault("12% increased melee damage and 10% increased melee critical strike chance\n" +
|
||||
"12% increased melee and movement speed\n" +
|
||||
"Melee attacks and melee projectiles inflict on fire\n" +
|
||||
@@ -36,6 +36,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawOutlines = true;
|
||||
player.Calamity().hydrothermalSmoke = true;
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
|
||||
|
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 633 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Helmet");
|
||||
DisplayName.SetDefault("Hydrothermic Helmet");
|
||||
Tooltip.SetDefault("5% increased minion damage and increased minion knockback\n" +
|
||||
"+2 max minions\n" +
|
||||
"Temporary immunity to lava and immunity to fire damage\n" +
|
||||
@@ -37,13 +37,14 @@ namespace CalamityMod.Items.Armor
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawOutlines = true;
|
||||
player.Calamity().hydrothermalSmoke = true;
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "40% increased minion damage\n" +
|
||||
"Inferno effect when below 50% life\n" +
|
||||
"Summons a chaos spirit to protect you\n" +
|
||||
"Summons a hydrothermic vent to protect you\n" +
|
||||
"You have a 20% chance to emit a blazing explosion when you are hit";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.ataxiaBlaze = true;
|
||||
@@ -56,7 +57,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<ChaosSpirit>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<ChaosSpirit>(), (int)(190f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<ChaosSpirit>(), (int)(190f * player.MinionDamage()), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.minionDamage += 0.4f;
|
||||
|
||||
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Hood");
|
||||
DisplayName.SetDefault("Hydrothermic Hood");
|
||||
Tooltip.SetDefault("12% increased rogue damage and 10% increased rogue critical strike chance\n" +
|
||||
"50% chance to not consume rogue items and 15% increased movement speed\n" +
|
||||
"Temporary immunity to lava and immunity to fire damage\n" +
|
||||
@@ -35,6 +35,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawOutlines = true;
|
||||
player.Calamity().hydrothermalSmoke = true;
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
@@ -51,8 +52,8 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.ataxiaBlaze = true;
|
||||
modPlayer.ataxiaVolley = true;
|
||||
modPlayer.rogueStealthMax += 1.1f;
|
||||
player.Calamity().throwingDamage += 0.05f;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
modPlayer.throwingDamage += 0.05f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
|
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 360 B |
|
Before Width: | Height: | Size: 992 B After Width: | Height: | Size: 3.5 KiB |
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Mask");
|
||||
DisplayName.SetDefault("Hydrothermic Mask");
|
||||
Tooltip.SetDefault("12% increased magic damage, reduces mana usage by 15%, and 10% increased magic critical strike chance\n" +
|
||||
"+100 max mana, temporary immunity to lava, and immunity to fire damage\n" +
|
||||
"Provides heat protection in Death Mode");
|
||||
@@ -34,6 +34,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawOutlines = true;
|
||||
player.Calamity().hydrothermalSmoke = true;
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
|
||||
|
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ataxia Subligar");
|
||||
DisplayName.SetDefault("Hydrothermic Subligar");
|
||||
Tooltip.SetDefault("3% increased critical strike chance\n" +
|
||||
"15% increased movement speed");
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 4.8 KiB |
@@ -1,3 +1,4 @@
|
||||
using CalamityMod.Buffs.Cooldowns;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
@@ -69,6 +70,10 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
modPlayer.plagueReaperCooldown--;
|
||||
}
|
||||
if (modPlayer.plagueReaperCooldown == 1500)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<PlagueBlackoutCooldown>(), 1500, false);
|
||||
}
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaotic Spread Rod");
|
||||
DisplayName.SetDefault("Rift Reeler");
|
||||
Tooltip.SetDefault("Fires three to five lines at once. Can fish in lava.\n" +
|
||||
"The battlefield is a scene of constant chaos.\n" + //Napoleon Bonaparte quote reference
|
||||
"The winner will be the one who controls that chaos, both the pole and the fish.");
|
||||
@@ -40,7 +40,10 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-75, 76) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-75, 76) * 0.05f;
|
||||
int linecolor = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, 0, 0f, player.whoAmI, 0.0f, 0.0f);
|
||||
int line = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, 0, 0f, player.whoAmI, 0.0f, 0.0f);
|
||||
// Protection against projectile cap
|
||||
if (Main.rand.NextBool() && line < Main.maxProjectiles) // randomizing line color
|
||||
Main.projectile[line].Calamity().lineColor = 1;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -1,7 +1,9 @@
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Tiles;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
@@ -9,11 +11,22 @@ namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaotic Bar");
|
||||
DisplayName.SetDefault("Scoria Bar");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
Tooltip.SetDefault("The smoke feels warm\n" +
|
||||
"Looks funky when placed"); //explaining the texture shown when placed. same bug as red lightning container and ectoheart tbh
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.createTile = ModContent.TileType<ChaoticBarPlaced>();
|
||||
item.noUseGraphic = true; //no use graphic because animated things swing their entire sheet
|
||||
item.useStyle = 1;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
item.width = 30;
|
||||
item.height = 24;
|
||||
item.maxStack = 999;
|
||||
|
||||
|
Before Width: | Height: | Size: 611 B After Width: | Height: | Size: 910 B |
@@ -7,7 +7,7 @@ namespace CalamityMod.Items.Placeables.Ores
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaotic Ore");
|
||||
DisplayName.SetDefault("Scoria Ore");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 409 B |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Tools
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaoswarped Slashaxe");
|
||||
DisplayName.SetDefault("Tectonic Truncator");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -44,7 +44,12 @@ namespace CalamityMod.Items.Tools
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 127);
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(3) ? 16 : 127);
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
int smoke = Gore.NewGore(new Vector2(hitbox.X, hitbox.Y), default, Main.rand.Next(375, 378), 0.75f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -71,7 +71,12 @@ Right click to use as a hammer");
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 127);
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(3) ? 16 : 127);
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
int smoke = Gore.NewGore(new Vector2(hitbox.X, hitbox.Y), default, Main.rand.Next(375, 378), 0.75f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 986 B After Width: | Height: | Size: 1.2 KiB |
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class BelchingSaxophone : ModItem
|
||||
{
|
||||
public const int BaseDamage = 30;
|
||||
public const int BaseDamage = 32;
|
||||
private int counter = 0;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 649 B After Width: | Height: | Size: 862 B |
|
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 885 B |
|
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 430 B |
@@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaotrix");
|
||||
Tooltip.SetDefault("Explodes on enemy hits\nAn exceptionally agile yoyo");
|
||||
Tooltip.SetDefault("Explodes on enemy hits\n" +
|
||||
"A very agile yoyo");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 867 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Hellfire Flamberge");
|
||||
Tooltip.SetDefault("Fires a spread of fireballs");
|
||||
Tooltip.SetDefault("Fires a spread of volcanic fireballs");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 60;
|
||||
item.width = 58;
|
||||
item.damage = 102;
|
||||
item.melee = true;
|
||||
item.useAnimation = 20;
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
type = ModContent.ProjectileType<ChaosFlameSmall>();
|
||||
break;
|
||||
case 1:
|
||||
type = ModContent.ProjectileType<ChaosFlameMedium>();
|
||||
type = ModContent.ProjectileType<ChaosFlameSmall>();
|
||||
break;
|
||||
case 2:
|
||||
type = ModContent.ProjectileType<ChaosFlameLarge>();
|
||||
@@ -73,7 +73,12 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 174);
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, Main.rand.NextBool(3) ? 16 : 174);
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
int smoke = Gore.NewGore(new Vector2(hitbox.X, hitbox.Y), default, Main.rand.Next(375, 378), 0.75f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -21,7 +21,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 72;
|
||||
item.width = 62;
|
||||
item.height = 62;
|
||||
item.damage = 2500;
|
||||
item.melee = true;
|
||||
item.useTime = 5;
|
||||
@@ -32,7 +33,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 4;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 72;
|
||||
item.value = Item.buyPrice(5, 0, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<RSSolarFlare>();
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 759 B After Width: | Height: | Size: 621 B |
@@ -11,18 +11,19 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Greatbow of Turmoil");
|
||||
Tooltip.SetDefault("Fires 3 arrows at once\n" +
|
||||
Tooltip.SetDefault("Wooden arrows are set alight with fire\n" +
|
||||
"Fires 3 arrows at once\n" +
|
||||
"Fires 2 additional cursed, hellfire, or ichor arrows");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 33;
|
||||
item.damage = 27;
|
||||
item.ranged = true;
|
||||
item.width = 18;
|
||||
item.height = 36;
|
||||
item.useTime = 17;
|
||||
item.useAnimation = 17;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4f;
|
||||
@@ -52,6 +53,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
value9 -= vector7;
|
||||
}
|
||||
if (type == ProjectileID.WoodenArrowFriendly)
|
||||
{
|
||||
type = ProjectileID.FireArrow;
|
||||
}
|
||||
int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
}
|
||||
@@ -75,6 +80,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.5f), knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[index].noDropItem = true;
|
||||
Main.projectile[index].usesLocalNPCImmunity = true;
|
||||
Main.projectile[index].localNPCHitCooldown = 10;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,6 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
@@ -33,13 +34,20 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.Calamity().customRarity = CalamityRarity.RareVariant;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
for (int index = 0; index < 3; ++index)
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-15, 16) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-15, 16) * 0.05f;
|
||||
Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ProjectileID.ExplosiveBullet, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int bullet = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ProjectileID.ExplosiveBullet, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[bullet].usesLocalNPCImmunity = true;
|
||||
Main.projectile[bullet].localNPCHitCooldown = 10;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
@@ -16,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 21;
|
||||
item.damage = 31;
|
||||
item.ranged = true;
|
||||
item.width = 50;
|
||||
item.height = 24;
|
||||
@@ -33,6 +34,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
for (int index = 0; index < 2; ++index)
|
||||
|
||||
|
Before Width: | Height: | Size: 689 B After Width: | Height: | Size: 880 B |
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.ranged = true;
|
||||
item.width = 66;
|
||||
item.height = 26;
|
||||
item.useTime = 24;
|
||||
item.useAnimation = 24;
|
||||
item.useTime = 26;
|
||||
item.useAnimation = 26;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4.5f;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 506 B |
@@ -638,27 +638,49 @@ namespace CalamityMod
|
||||
if (setBonus == "umbraphile")
|
||||
return mp.umbraphileSet;
|
||||
|
||||
// Ataxia
|
||||
// Hydrothermic (Ataxia is legacy name)
|
||||
switch (setBonus)
|
||||
{
|
||||
default:
|
||||
break;
|
||||
case "ataxia":
|
||||
case "hydrothermic":
|
||||
case "hydrothermal":
|
||||
return mp.ataxiaBlaze;
|
||||
case "ataxia_melee":
|
||||
case "ataxia melee":
|
||||
case "hydrothermic_melee":
|
||||
case "hydrothermic melee":
|
||||
case "hydrothermal_melee":
|
||||
case "hydrothermal melee":
|
||||
return mp.ataxiaGeyser;
|
||||
case "ataxia_ranged":
|
||||
case "ataxia ranged":
|
||||
case "hydrothermic_ranged":
|
||||
case "hydrothermic ranged":
|
||||
case "hydrothermal_ranged":
|
||||
case "hydrothermal ranged":
|
||||
return mp.ataxiaBolt;
|
||||
case "ataxia_magic":
|
||||
case "ataxia magic":
|
||||
case "hydrothermic_magic":
|
||||
case "hydrothermic magic":
|
||||
case "hydrothermal_magic":
|
||||
case "hydrothermal magic":
|
||||
return mp.ataxiaMage;
|
||||
case "ataxia_summon":
|
||||
case "ataxia summon":
|
||||
case "hydrothermic_summon":
|
||||
case "hydrothermic summon":
|
||||
case "hydrothermal_summon":
|
||||
case "hydrothermal summon":
|
||||
return mp.chaosSpirit;
|
||||
case "ataxia_rogue":
|
||||
case "ataxia rogue":
|
||||
case "hydrothermic_rogue":
|
||||
case "hydrothermic rogue":
|
||||
case "hydrothermal_rogue":
|
||||
case "hydrothermal rogue":
|
||||
return mp.ataxiaVolley;
|
||||
}
|
||||
|
||||
@@ -928,36 +950,58 @@ namespace CalamityMod
|
||||
return true;
|
||||
}
|
||||
|
||||
// Ataxia
|
||||
// Hydrothermic (Ataxia as legacy name)
|
||||
switch (setBonus)
|
||||
{
|
||||
default:
|
||||
break;
|
||||
case "ataxia":
|
||||
case "hydrothermic":
|
||||
case "hydrothermal":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
return true;
|
||||
case "ataxia_melee":
|
||||
case "ataxia melee":
|
||||
case "hydrothermic_melee":
|
||||
case "hydrothermic melee":
|
||||
case "hydrothermal_melee":
|
||||
case "hydrothermal melee":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
mp.ataxiaGeyser = enabled;
|
||||
return true;
|
||||
case "ataxia_ranged":
|
||||
case "ataxia ranged":
|
||||
case "hydrothermic_ranged":
|
||||
case "hydrothermic ranged":
|
||||
case "hydrothermal_ranged":
|
||||
case "hydrothermal ranged":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
mp.ataxiaBolt = enabled;
|
||||
return true;
|
||||
case "ataxia_magic":
|
||||
case "ataxia magic":
|
||||
case "hydrothermic_magic":
|
||||
case "hydrothermic magic":
|
||||
case "hydrothermal_magic":
|
||||
case "hydrothermal magic":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
mp.ataxiaMage = enabled;
|
||||
return true;
|
||||
case "ataxia_summon":
|
||||
case "ataxia summon":
|
||||
case "hydrothermic_summon":
|
||||
case "hydrothermic summon":
|
||||
case "hydrothermal_summon":
|
||||
case "hydrothermal summon":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
mp.chaosSpirit = enabled; // LATER -- remove this when player.chaosSpirit actually controls ataxia summoner
|
||||
return true;
|
||||
case "ataxia_rogue":
|
||||
case "ataxia rogue":
|
||||
case "hydrothermic_rogue":
|
||||
case "hydrothermic rogue":
|
||||
case "hydrothermal_rogue":
|
||||
case "hydrothermal rogue":
|
||||
mp.ataxiaBlaze = enabled;
|
||||
mp.ataxiaVolley = enabled;
|
||||
return true;
|
||||
|
||||
@@ -772,7 +772,7 @@ namespace CalamityMod
|
||||
AddToMutantShop("SlimeGod", "OverloadedSludge", DownedSlimeGod, Item.buyPrice(gold: 15));
|
||||
AddToMutantShop("BrimstoneElemental", "CharredIdol", DownedBrimstoneElemental, Item.buyPrice(gold: 20));
|
||||
AddToMutantShop("AstrumAureus", "AstralChunk", DownedAureus, Item.buyPrice(gold: 25));
|
||||
AddToMutantShop("PlaguebringerGoliath", "Abombination", DownedPBG, Item.buyPrice(gold: 50));
|
||||
AddToMutantShop("PlaguebringerGoliath", "Abomination", DownedPBG, Item.buyPrice(gold: 50));
|
||||
AddToMutantShop("Ravager", "AncientMedallion", DownedRavager, Item.buyPrice(gold: 50));
|
||||
AddToMutantShop("ProfanedGuardians", "ProfanedShard", DownedGuardians, Item.buyPrice(platinum: 5));
|
||||
AddToMutantShop("Bumblebirb", "BirbPheromones", DownedBirb, Item.buyPrice(platinum: 5));
|
||||
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 6.2 KiB |
@@ -41,7 +41,12 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
npc.width = 130;
|
||||
npc.height = 100;
|
||||
npc.defense = 40;
|
||||
npc.LifeMaxNERB(227500, 252500, 3000000);
|
||||
CalamityGlobalNPC global = npc.Calamity();
|
||||
global.DR = 0.1f;
|
||||
global.customDR = true;
|
||||
global.multDRReductions.Add(BuffID.Ichor, 0.88f);
|
||||
global.multDRReductions.Add(BuffID.CursedInferno, 0.9f);
|
||||
npc.LifeMaxNERB(227500, 252500, 3000000);
|
||||
double HPBoost = CalamityMod.CalamityConfig.BossHealthPercentageBoost * 0.01;
|
||||
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
|
||||
npc.knockBackResist = 0f;
|
||||
@@ -213,7 +218,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
Texture2D texture2D15 = Main.npcTexture[npc.type];
|
||||
Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2));
|
||||
Color color = lightColor;
|
||||
Color color36 = phase2 && calamityGlobalNPC.newAI[2] == 1f ? Color.Yellow : Color.White;
|
||||
Color color36 = Color.White;
|
||||
|
||||
float amount9 = 0f;
|
||||
int num150 = 120;
|
||||
@@ -221,23 +226,17 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
|
||||
if (phase3 && calamityGlobalNPC.newAI[3] == 1f)
|
||||
{
|
||||
color = buffColor(color, 0.4f, 0.8f, 0.4f, 1f);
|
||||
}
|
||||
else if (phase3 && calamityGlobalNPC.newAI[1] > (float)num150)
|
||||
{
|
||||
float num152 = calamityGlobalNPC.newAI[1] - (float)num150;
|
||||
num152 /= (float)num151;
|
||||
color = buffColor(color, 1f - 0.5f * num152, 1f - 0.5f * num152, 1f - 0.3f * num152, 1f);
|
||||
color = buffColor(color, 0.9f, 0.6f, 0.2f, 1f);
|
||||
}
|
||||
else if (phase2 && calamityGlobalNPC.newAI[2] == 1f)
|
||||
{
|
||||
color = buffColor(color, 0.5f, 0.7f, 0.5f, 1f);
|
||||
color = buffColor(color, 0.7f, 0.7f, 0.3f, 1f);
|
||||
}
|
||||
else if (phase2 && calamityGlobalNPC.newAI[0] > (float)num150)
|
||||
{
|
||||
float num152 = calamityGlobalNPC.newAI[0] - (float)num150;
|
||||
num152 /= (float)num151;
|
||||
color = buffColor(color, 1f - 0.5f * num152, 1f - 0.5f * num152, 1f - 0.3f * num152, 1f);
|
||||
color = buffColor(color, 1f - 0.3f * num152, 1f - 0.3f * num152, 1f - 0.7f * num152, 1f);
|
||||
}
|
||||
|
||||
int num153 = 10;
|
||||
@@ -250,7 +249,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
{
|
||||
num153 = 7;
|
||||
}
|
||||
if (npc.ai[0] == 2f || npc.ai[0] == 3.2f)
|
||||
if (npc.ai[0] == 2f || npc.ai[0] == 3.2f || (phase2 && calamityGlobalNPC.newAI[2] == 1f))
|
||||
{
|
||||
color36 = Color.Yellow;
|
||||
amount9 = 0.5f;
|
||||
@@ -294,12 +293,22 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
}
|
||||
}
|
||||
|
||||
if (phaseSwitchPhase && (calamityGlobalNPC.newAI[0] > (float)num150 || calamityGlobalNPC.newAI[1] > (float)num150))
|
||||
if (phaseSwitchPhase)
|
||||
{
|
||||
num156 = 6;
|
||||
num157 = 1f - (float)Math.Cos((double)(((phase3 ? calamityGlobalNPC.newAI[1] : calamityGlobalNPC.newAI[0]) - (float)num150) / (float)num151 * MathHelper.TwoPi));
|
||||
num157 /= 3f;
|
||||
scaleFactor9 = 60f;
|
||||
if (phase3 && calamityGlobalNPC.newAI[1] > (float)num150)
|
||||
{
|
||||
num156 = 6;
|
||||
num157 = 1f - (float)Math.Cos((double)((calamityGlobalNPC.newAI[1] - (float)num150) / (float)num151 * MathHelper.TwoPi));
|
||||
num157 /= 3f;
|
||||
scaleFactor9 = 60f;
|
||||
}
|
||||
else if (phase2 && calamityGlobalNPC.newAI[0] > (float)num150)
|
||||
{
|
||||
num156 = 6;
|
||||
num157 = 1f - (float)Math.Cos((double)((calamityGlobalNPC.newAI[0] - (float)num150) / (float)num151 * MathHelper.TwoPi));
|
||||
num157 /= 3f;
|
||||
scaleFactor9 = 60f;
|
||||
}
|
||||
}
|
||||
|
||||
for (int num160 = 0; num160 < num156; num160++)
|
||||
|
||||
@@ -3701,6 +3701,8 @@ namespace CalamityMod.NPCs
|
||||
|
||||
npc.dontTakeDamage = phaseSwitchPhase;
|
||||
|
||||
calamityGlobalNPC.DR = npc.ai[0] == 5f ? 0.75f : 0.1f;
|
||||
|
||||
if (phaseSwitchPhase)
|
||||
{
|
||||
npc.collideX = false;
|
||||
|
||||
@@ -56,11 +56,11 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
npc.boss = true;
|
||||
npc.netAlways = true;
|
||||
npc.timeLeft = NPC.activeTime * 30;
|
||||
/*Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
|
||||
Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
|
||||
if (calamityModMusic != null)
|
||||
music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/OldDuke");
|
||||
music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/BoomerDuke");
|
||||
else
|
||||
music = MusicID.Boss1;*/
|
||||
music = MusicID.Boss1;
|
||||
bossBag = ModContent.ItemType<OldDukeBag>();
|
||||
for (int k = 0; k < npc.buffImmune.Length; k++)
|
||||
{
|
||||
@@ -251,7 +251,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
if (npc.ai[2] > (float)num158)
|
||||
{
|
||||
num156 = 6;
|
||||
num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num158) / (float)num159 * 6.28318548f));
|
||||
num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num158) / (float)num159 * MathHelper.TwoPi));
|
||||
num157 /= 3f;
|
||||
scaleFactor9 = 40f;
|
||||
}
|
||||
@@ -260,7 +260,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
if ((npc.ai[0] == 4f || npc.ai[0] == 9f) && npc.ai[2] > (float)num150)
|
||||
{
|
||||
num156 = 6;
|
||||
num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num150) / (float)num151 * 6.28318548f));
|
||||
num157 = 1f - (float)Math.Cos((double)((npc.ai[2] - (float)num150) / (float)num151 * MathHelper.TwoPi));
|
||||
num157 /= 3f;
|
||||
scaleFactor9 = 60f;
|
||||
}
|
||||
@@ -268,7 +268,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
if (npc.ai[0] == 12f)
|
||||
{
|
||||
num156 = 6;
|
||||
num157 = 1f - (float)Math.Cos((double)(npc.ai[2] / 30f * 6.28318548f));
|
||||
num157 = 1f - (float)Math.Cos((double)(npc.ai[2] / 30f * MathHelper.TwoPi));
|
||||
num157 /= 3f;
|
||||
scaleFactor9 = 20f;
|
||||
}
|
||||
@@ -279,7 +279,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
color39 = Color.Lerp(color39, color36, amount9);
|
||||
color39 = npc.GetAlpha(color39);
|
||||
color39 *= 1f - num157;
|
||||
Vector2 vector42 = npc.Center + ((float)num160 / (float)num156 * 6.28318548f + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition;
|
||||
Vector2 vector42 = npc.Center + ((float)num160 / (float)num156 * MathHelper.TwoPi + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition;
|
||||
vector42 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f;
|
||||
vector42 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, vector42, new Rectangle?(npc.frame), color39, npc.rotation, vector11, npc.scale, spriteEffects, 0f);
|
||||
@@ -343,7 +343,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
color42 = Color.Lerp(color42, color36, amount9);
|
||||
color42 = npc.GetAlpha(color42);
|
||||
color42 *= 1f - num157;
|
||||
Vector2 vector45 = npc.Center + ((float)num164 / (float)num156 * 6.28318548f + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition;
|
||||
Vector2 vector45 = npc.Center + ((float)num164 / (float)num156 * MathHelper.TwoPi + npc.rotation).ToRotationVector2() * scaleFactor9 * num157 - Main.screenPosition;
|
||||
vector45 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f;
|
||||
vector45 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, vector45, new Rectangle?(npc.frame), color42, npc.rotation, vector11, npc.scale, spriteEffects, 0f);
|
||||
|
||||
|
Before Width: | Height: | Size: 706 B |
@@ -2,7 +2,7 @@
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Enemy
|
||||
namespace CalamityMod.Projectiles.Environment
|
||||
{
|
||||
public class LavaChunk : ModProjectile
|
||||
{
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -3,7 +3,7 @@ using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Enemy
|
||||
namespace CalamityMod.Projectiles.Environment
|
||||
{
|
||||
public class LightningMark : ModProjectile
|
||||
{
|
||||
|
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 136 B |
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sun");
|
||||
Main.projFrames[projectile.type] = 4;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -24,6 +26,17 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X);
|
||||
projectile.frameCounter++;
|
||||
if (projectile.frameCounter > 4)
|
||||
{
|
||||
projectile.frame++;
|
||||
projectile.frameCounter = 0;
|
||||
}
|
||||
if (projectile.frame >= Main.projFrames[projectile.type])
|
||||
{
|
||||
projectile.frame = 0;
|
||||
}
|
||||
Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.2f / 255f, (255 - projectile.alpha) * 0.01f / 255f);
|
||||
if (projectile.wet && !projectile.lavaWet)
|
||||
{
|
||||
@@ -34,12 +47,11 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20);
|
||||
projectile.localAI[0] += 1f;
|
||||
}
|
||||
for (int num457 = 0; num457 < 5; num457++)
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 55, 0f, 0f, 100, default, 1.2f);
|
||||
Main.dust[num458].noGravity = true;
|
||||
Main.dust[num458].velocity *= 0.5f;
|
||||
Main.dust[num458].velocity += projectile.velocity * 0.1f;
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 174, 0f, 0f);
|
||||
Main.dust[num469].noGravity = true;
|
||||
Main.dust[num469].velocity *= 0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 576 B |
@@ -114,6 +114,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
target.immune[projectile.owner] = 5;
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 120);
|
||||
if (target.type == NPCID.TargetDummy)
|
||||
return;
|
||||
Vector2 vector80 = projectile.rotation.ToRotationVector2();
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Flame");
|
||||
Main.projFrames[projectile.type] = 4;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -27,11 +28,21 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
|
||||
projectile.frameCounter++;
|
||||
if (projectile.frameCounter > 4)
|
||||
{
|
||||
projectile.frame++;
|
||||
projectile.frameCounter = 0;
|
||||
}
|
||||
if (projectile.frame >= Main.projFrames[projectile.type])
|
||||
{
|
||||
projectile.frame = 0;
|
||||
}
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X);
|
||||
Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f);
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f);
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 174, 0f, 0f);
|
||||
Main.dust[num469].noGravity = true;
|
||||
Main.dust[num469].velocity *= 0f;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 788 B |
@@ -1,60 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class ChaosFlameMedium : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Flame");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 20;
|
||||
projectile.height = 20;
|
||||
projectile.aiStyle = 44;
|
||||
projectile.friendly = true;
|
||||
projectile.melee = true;
|
||||
projectile.penetrate = 1;
|
||||
projectile.timeLeft = 600;
|
||||
aiType = ProjectileID.SporeCloud;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
|
||||
Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f);
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f);
|
||||
Main.dust[num469].noGravity = true;
|
||||
Main.dust[num469].velocity *= 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f);
|
||||
Main.dust[num469].noGravity = true;
|
||||
Main.dust[num469].velocity *= 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.OnFire, 360);
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor)
|
||||
{
|
||||
return new Color(255, Main.DiscoG, 53, projectile.alpha);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 381 B |
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Flame");
|
||||
Main.projFrames[projectile.type] = 4;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -27,11 +28,21 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
|
||||
projectile.frameCounter++;
|
||||
if (projectile.frameCounter > 4)
|
||||
{
|
||||
projectile.frame++;
|
||||
projectile.frameCounter = 0;
|
||||
}
|
||||
if (projectile.frame >= Main.projFrames[projectile.type])
|
||||
{
|
||||
projectile.frame = 0;
|
||||
}
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X);
|
||||
Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f);
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, 0f, 0f);
|
||||
int num469 = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 174, 0f, 0f);
|
||||
Main.dust[num469].noGravity = true;
|
||||
Main.dust[num469].velocity *= 0f;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 576 B |
@@ -33,8 +33,14 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Lighting.AddLight(projectile.Center, 0.25f, 0.15f, 0f);
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) + projectile.velocity.X, projectile.position.Y + (float)(projectile.height / 2) + projectile.velocity.Y);
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.75f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -16,8 +16,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 40;
|
||||
projectile.height = 40;
|
||||
projectile.width = 46;
|
||||
projectile.height = 46;
|
||||
projectile.friendly = true;
|
||||
projectile.tileCollide = false;
|
||||
projectile.penetrate = 1;
|
||||
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 826 B |
@@ -36,7 +36,14 @@ namespace CalamityMod.Projectiles.Melee.Spears
|
||||
public override void ExtraBehavior()
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
|
||||
Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) + projectile.velocity.X, projectile.position.Y + (float)(projectile.height / 2) + projectile.velocity.Y);
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 1f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
}
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -35,7 +35,14 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
public override void AI()
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, Main.rand.NextBool(3) ? 16 : 127, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
|
||||
Vector2 goreVec = new Vector2(projectile.position.X, projectile.position.Y);
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
int smoke = Gore.NewGore(goreVec, default, Main.rand.Next(375, 378), 0.5f);
|
||||
Main.gore[smoke].behindTiles = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
|
||||