Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
No files matched your search
|
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 606 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -4,6 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[AutoloadEquip(EquipType.Shoes)]
|
||||
public class IronBoots : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 620 B |
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 568 B |
@@ -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;
|
||||
|
||||
@@ -4470,7 +4470,7 @@ namespace CalamityMod.NPCs
|
||||
else if (phase2)
|
||||
{
|
||||
damage += 2;
|
||||
projectileType = ProjectileID.FrostBeam;
|
||||
projectileType = ModContent.ProjectileType<DestroyerFrostLaser>();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 138 B |
@@ -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;
|
||||
|
||||