This commit is contained in:
Amber Sienna committed 2020-04-08 00:37:22 +01:00
commit eb31cda556
12 files changed
+56 -1

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

+1
View File
@@ -4,6 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Shoes)]
public class IronBoots : ModItem
{
public override void SetStaticDefaults()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 951 B

After

Width:  |  Height:  |  Size: 568 B

+1
View File
@@ -201,6 +201,7 @@ namespace CalamityMod.Items
case ItemID.Gungnir:
case ItemID.ObsidianSwordfish:
case ItemID.MonkStaffT3:
case ItemID.MonkStaffT2:
case ItemID.MonkStaffT1:
trueMelee = true;
break;
+1 -1
View File
@@ -4470,7 +4470,7 @@ namespace CalamityMod.NPCs
else if (phase2)
{
damage += 2;
projectileType = ProjectileID.FrostBeam;
projectileType = ModContent.ProjectileType<DestroyerFrostLaser>();
}
}
else
+52
View File
@@ -0,0 +1,52 @@
using Microsoft.Xna.Framework;
using System;
using System.IO;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Buffs.StatDebuffs;
namespace CalamityMod.Projectiles.Boss
{
public class DestroyerFrostLaser : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Frost Laser");
}
public override void SetDefaults()
{
projectile.ignoreWater = true;
projectile.width = 4;
projectile.height = 4;
projectile.aiStyle = 1;
aiType = ProjectileID.FrostBeam;
projectile.hostile = true;
projectile.penetrate = -1;
projectile.light = 0.75f;
projectile.alpha = 255;
projectile.scale = 1.2f;
projectile.timeLeft = 600;
projectile.magic = true;
projectile.coldDamage = true;
projectile.extraUpdates = 1;
}
public override Color? GetAlpha(Color lightColor)
{
if (projectile.alpha < 200)
{
return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0);
}
return Color.Transparent;
}
public override void OnHitPlayer(Player target, int damage, bool crit)
{
if (Main.rand.NextBool(5) && !target.Calamity().gState && !target.frozen && target.chilled)
target.AddBuff(ModContent.BuffType<GlacialState>(), 20);
target.AddBuff(BuffID.Frostburn, 240);
target.AddBuff(BuffID.Chilled, 120);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

+1
View File
@@ -87,6 +87,7 @@ namespace CalamityMod.Projectiles
case ProjectileID.Gungnir:
case ProjectileID.ObsidianSwordfish:
case ProjectileID.MonkStaffT3:
case ProjectileID.MonkStaffT2:
case ProjectileID.MonkStaffT1:
trueMelee = true;
break;