High
No files matched your search
@@ -20,6 +20,7 @@ using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
@@ -9296,13 +9297,17 @@ namespace CalamityMod.CalPlayer
|
||||
effect = SpriteEffects.FlipHorizontally | SpriteEffects.FlipVertically;
|
||||
}
|
||||
|
||||
if (item.type == ModContent.ItemType<DeathhailStaff>() || item.type == ModContent.ItemType<Vesuvius>() || item.type == ModContent.ItemType<SoulPiercer>())
|
||||
// Staff
|
||||
if (item.type == ModContent.ItemType<DeathhailStaff>() || item.type == ModContent.ItemType<Vesuvius>() || item.type == ModContent.ItemType<SoulPiercer>() ||
|
||||
item.type == ModContent.ItemType<FatesReveal>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow");
|
||||
if (item.type == ModContent.ItemType<Vesuvius>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/VesuviusGlow");
|
||||
else if (item.type == ModContent.ItemType<SoulPiercer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow");
|
||||
if (item.type == ModContent.ItemType<Vesuvius>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/VesuviusGlow");
|
||||
else if (item.type == ModContent.ItemType<SoulPiercer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow");
|
||||
else if (item.type == ModContent.ItemType<FatesReveal>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/FatesRevealGlow");
|
||||
|
||||
float num104 = drawPlayer.itemRotation + 0.785f * (float)drawPlayer.direction;
|
||||
int num105 = 0;
|
||||
@@ -9341,6 +9346,7 @@ namespace CalamityMod.CalPlayer
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
|
||||
// Bow and Book
|
||||
else if (item.type == ModContent.ItemType<Deathwind>() || item.type == ModContent.ItemType<Apotheosis>() || item.type == ModContent.ItemType<CleansingBlaze>() ||
|
||||
item.type == ModContent.ItemType<SubsumingVortex>())
|
||||
{
|
||||
@@ -9362,7 +9368,7 @@ namespace CalamityMod.CalPlayer
|
||||
offsetX = 9;
|
||||
}
|
||||
|
||||
Vector2 vector13 = new Vector2((float)(Main.itemTexture[item.type].Width / 2), (float)(Main.itemTexture[item.type].Height / 2));
|
||||
Vector2 vector13 = new Vector2((float)(Main.itemTexture[item.type].Width / 2), (float)(Main.itemTexture[item.type].Height / 2));
|
||||
Vector2 vector14 = vector13;
|
||||
int num107 = (int)vector14.X - offsetX;
|
||||
vector13.Y = vector14.Y;
|
||||
@@ -9384,8 +9390,9 @@ namespace CalamityMod.CalPlayer
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
|
||||
// Sword
|
||||
else if (item.type == ModContent.ItemType<Excelsus>() || item.type == ModContent.ItemType<EssenceFlayer>() || item.type == ModContent.ItemType<TheEnforcer>() ||
|
||||
item.type == ModContent.ItemType<ElementalExcalibur>())
|
||||
item.type == ModContent.ItemType<ElementalExcalibur>() || item.type == ModContent.ItemType<TerrorBlade>() || item.type == ModContent.ItemType<EtherealSubjugator>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ExcelsusGlow");
|
||||
if (item.type == ModContent.ItemType<EssenceFlayer>())
|
||||
@@ -9394,8 +9401,12 @@ namespace CalamityMod.CalPlayer
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow");
|
||||
else if (item.type == ModContent.ItemType<ElementalExcalibur>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ElementalExcaliburGlow");
|
||||
else if (item.type == ModContent.ItemType<TerrorBlade>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow");
|
||||
else if (item.type == ModContent.ItemType<EtherealSubjugator>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow");
|
||||
|
||||
float yOffset = drawPlayer.gravDir == -1f ? 0f : (float)Main.itemTexture[item.type].Height;
|
||||
float yOffset = drawPlayer.gravDir == -1f ? 0f : (float)Main.itemTexture[item.type].Height;
|
||||
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X), (float)(int)(vector.Y - Main.screenPosition.Y)),
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class Affliction : ModItem
|
||||
@@ -15,15 +18,21 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.width = 38;
|
||||
item.height = 44;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(19f, 20f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Accessories/Affliction"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.affliction = true;
|
||||
|
||||
|
After Width: | Height: | Size: 325 B |
|
After Width: | Height: | Size: 843 B |
@@ -1,6 +1,8 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.Polterghast;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,8 +21,8 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 18;
|
||||
item.width = 42;
|
||||
item.height = 58;
|
||||
item.useAnimation = 45;
|
||||
item.useTime = 45;
|
||||
item.useStyle = 4;
|
||||
@@ -28,7 +30,13 @@ namespace CalamityMod.Items.SummonItems
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(21f, 27f); //21, 29
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/SummonItems/NecroplasmicBeaconGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return player.ZoneDungeon && !NPC.AnyNPCs(ModContent.NPCType<Polterghast>()) && CalamityWorld.downedBossAny;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -8,6 +8,8 @@ using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.Polterghast;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -33,7 +35,13 @@ namespace CalamityMod.Items.TreasureBags
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override bool CanRightClick()
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(16f, 20f); //16, 17
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/TreasureBags/PolterghastBagGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool CanRightClick()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 662 B |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -21,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.damage = 60;
|
||||
item.magic = true;
|
||||
item.mana = 20;
|
||||
item.width = 68;
|
||||
item.height = 72;
|
||||
item.width = 80;
|
||||
item.height = 86;
|
||||
item.useTime = 16;
|
||||
item.useAnimation = 16;
|
||||
item.useStyle = 5;
|
||||
@@ -37,7 +38,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(40f, 41f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/FatesRevealGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
float num78 = (float)Main.mouseX + Main.screenPosition.X - vector.X;
|
||||
|
||||
|
After Width: | Height: | Size: 601 B |
@@ -1,6 +1,9 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class GhastlyVisage : ModItem
|
||||
@@ -18,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.noUseGraphic = true;
|
||||
item.channel = true;
|
||||
item.mana = 20;
|
||||
item.width = 78;
|
||||
item.height = 70;
|
||||
item.width = 32;
|
||||
item.height = 36;
|
||||
item.useTime = 27;
|
||||
item.useAnimation = 27;
|
||||
item.useStyle = 5;
|
||||
@@ -32,7 +35,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
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)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(16f, 16f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/GhastlyVisageGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<GhastlyVisageProj>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
|
||||
|
After Width: | Height: | Size: 306 B |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Projectiles.Melee.Spears;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -17,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 16;
|
||||
item.width = 120;
|
||||
item.damage = 155;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
@@ -29,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 8.5f;
|
||||
item.UseSound = SoundID.DD2_GhastlyGlaivePierce;
|
||||
item.autoReuse = true;
|
||||
item.height = 16;
|
||||
item.height = 108;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<BansheeHookProj>();
|
||||
@@ -37,7 +38,13 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(60f, 52f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/BansheeHookGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < 1000; ++i)
|
||||
{
|
||||
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -35,7 +36,13 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(44f, 38f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -17,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 160;
|
||||
item.width = 20;
|
||||
item.height = 12;
|
||||
item.width = 62;
|
||||
item.height = 128;
|
||||
item.useTime = 12;
|
||||
item.useAnimation = 12;
|
||||
item.useStyle = 5;
|
||||
@@ -37,7 +38,13 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(31f, 62f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/DaemonsFlameGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<DaemonsFlameBow>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
|
||||
|
After Width: | Height: | Size: 716 B |
@@ -1,4 +1,6 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 68;
|
||||
item.width = 74;
|
||||
item.damage = 160;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
@@ -25,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.knockBack = 7.5f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 60;
|
||||
item.height = 68;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<GhoulishGougerBoomerang>();
|
||||
@@ -33,5 +35,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(37f, 32f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Rogue/GhoulishGougerGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 928 B |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -36,7 +37,13 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Vector2 origin = new Vector2(33f, 33f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int i = Main.myPlayer;
|
||||
float num72 = item.shootSpeed;
|
||||
|
||||
|
After Width: | Height: | Size: 549 B |
@@ -11877,7 +11877,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (flag86)
|
||||
{
|
||||
MoonlordDeathDrama.AddExplosion(vector159);
|
||||
//MoonlordDeathDrama.AddExplosion(vector159);
|
||||
for (float num1168 = 0f; num1168 < num1163 * 2f; num1168 = ai1 + 1f)
|
||||
{
|
||||
Dust dust2 = Main.dust[Dust.NewDust(vector159, 0, 0, 229, 0f, 0f, 0, default, 1f)];
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -191,5 +192,18 @@ namespace CalamityMod.Projectiles.Magic
|
||||
player.itemAnimation = 2;
|
||||
player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction));
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Texture2D texture2D13 = Main.projectileTexture[projectile.type];
|
||||
int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type];
|
||||
int y6 = num214 * projectile.frame;
|
||||
Vector2 origin = new Vector2(13f, 16f);
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Magic/GhastlyVisageProjGlow"), projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), Color.White, projectile.rotation, origin, projectile.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 256 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -108,20 +108,22 @@ namespace CalamityMod.Projectiles.Melee.Spears
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Color color25 = Lighting.GetColor((int)(projectile.position.X + projectile.width * 0.5) / 16, (int)((projectile.position.Y + projectile.height * 0.5) / 16.0));
|
||||
Vector2 vector53 = projectile.position + new Vector2(projectile.width, projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition;
|
||||
Texture2D texture2D31 = projectile.spriteDirection == -1 ? ModContent.GetTexture("CalamityMod/Projectiles/Melee/Spears/BansheeHookAlt") : Main.projectileTexture[projectile.type];
|
||||
Color alpha4 = projectile.GetAlpha(color25);
|
||||
Vector2 origin8 = new Vector2(texture2D31.Width, texture2D31.Height) / 2f;
|
||||
origin8 = new Vector2(projectile.spriteDirection == 1 ? texture2D31.Width - -8f : -8f, -8f); //-8 -8
|
||||
SpriteBatch arg_E055_0 = Main.spriteBatch;
|
||||
Vector2 arg_E055_2 = vector53;
|
||||
Rectangle? sourceRectangle2 = null;
|
||||
arg_E055_0.Draw(texture2D31, arg_E055_2, sourceRectangle2, new Color(255, 255, 255, 127), projectile.rotation, origin8, projectile.scale, SpriteEffects.None, 0f);
|
||||
Vector2 origin8 = new Vector2(projectile.spriteDirection == 1 ? texture2D31.Width - -8f : -8f, -8f); //-8 -8
|
||||
spriteBatch.Draw(texture2D31, vector53, null, new Color(255, 255, 255, 127), projectile.rotation, origin8, projectile.scale, SpriteEffects.None, 0f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Vector2 vector53 = projectile.position + new Vector2(projectile.width, projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition;
|
||||
Texture2D texture = projectile.spriteDirection == -1 ? ModContent.GetTexture("CalamityMod/Projectiles/Melee/Spears/BansheeHookAltGlow") : ModContent.GetTexture("CalamityMod/Projectiles/Melee/Spears/BansheeHookGlow");
|
||||
Vector2 origin8 = new Vector2(projectile.spriteDirection == 1 ? texture.Width - -8f : -8f, -8f); //-8 -8
|
||||
spriteBatch.Draw(texture, vector53, null, Color.White, projectile.rotation, origin8, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
float f2 = projectile.rotation - 0.7853982f * Math.Sign(projectile.velocity.X) + (projectile.spriteDirection == -1 ? 3.14159274f : 0f);
|
||||
float num4 = 0f;
|
||||
|
||||
@@ -15,11 +15,11 @@ namespace CalamityMod.Projectiles.Melee.Spears
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 40; //The width of the .png file in pixels divided by 2.
|
||||
projectile.width = 40;
|
||||
projectile.aiStyle = 19;
|
||||
projectile.melee = true; //Dictates whether this is a melee-class weapon.
|
||||
projectile.melee = true;
|
||||
projectile.timeLeft = 90;
|
||||
projectile.height = 40; //The height of the .png file in pixels divided by 2.
|
||||
projectile.height = 40;
|
||||
projectile.friendly = true;
|
||||
projectile.hostile = false;
|
||||
projectile.tileCollide = false;
|
||||
|
||||
@@ -54,12 +54,11 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X);
|
||||
}
|
||||
Lighting.AddLight(projectile.Center, 0f, 0.1f, 0.7f);
|
||||
int num959 = (int)projectile.ai[0];
|
||||
if (num959 >= 0 && Main.player[num959].active && !Main.player[num959].dead)
|
||||
if (Main.player[projectile.owner].active && !Main.player[projectile.owner].dead)
|
||||
{
|
||||
if (projectile.Distance(Main.player[num959].Center) > num954)
|
||||
if (projectile.Distance(Main.player[projectile.owner].Center) > num954)
|
||||
{
|
||||
Vector2 vector102 = projectile.DirectionTo(Main.player[num959].Center);
|
||||
Vector2 vector102 = projectile.DirectionTo(Main.player[projectile.owner].Center);
|
||||
if (vector102.HasNaNs())
|
||||
{
|
||||
vector102 = Vector2.UnitY;
|
||||
@@ -73,11 +72,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
projectile.timeLeft = 30;
|
||||
}
|
||||
if (projectile.ai[0] != -1f)
|
||||
{
|
||||
projectile.ai[0] = -1f;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -150,5 +151,18 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
player.itemAnimation = 2;
|
||||
player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction));
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Texture2D texture2D13 = Main.projectileTexture[projectile.type];
|
||||
int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type];
|
||||
int y6 = num214 * projectile.frame;
|
||||
Vector2 origin = new Vector2(27f, 58f);
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Ranged/DaemonsFlameBowGlow"), projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), Color.White, projectile.rotation, origin, projectile.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 829 B |
@@ -18,8 +18,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 60;
|
||||
projectile.height = 60;
|
||||
projectile.width = 74;
|
||||
projectile.height = 68;
|
||||
projectile.friendly = true;
|
||||
projectile.tileCollide = false;
|
||||
projectile.penetrate = -1;
|
||||
@@ -118,5 +118,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Vector2 origin = new Vector2(37f, 34f);
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Projectiles/Rogue/GhoulishGougerBoomerangGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 928 B |
@@ -1,5 +1,5 @@
|
||||
author = MountainDrew
|
||||
version = 1.4.2.106
|
||||
version = 1.4.2.107
|
||||
displayName = Calamity Mod (No Calamity Music)
|
||||
homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/
|
||||
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes
|
||||
|
||||