resprites galore
No files matched your search
@@ -12,13 +12,13 @@ namespace CalamityMod.Items.Accessories
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 14));
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 12));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.width = 34;
|
||||
Item.height = 32;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
||||
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.4 KiB |
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 98;
|
||||
Item.height = 34;
|
||||
Item.width = 130;
|
||||
Item.height = 58;
|
||||
Item.damage = 99;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 12;
|
||||
|
||||
|
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 2.1 KiB |
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
Item.height = 38;
|
||||
Item.width = 82;
|
||||
Item.height = 84;
|
||||
Item.damage = 17;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 3;
|
||||
|
||||
|
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 2.5 KiB |
@@ -12,8 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 44;
|
||||
Item.height = 28;
|
||||
Item.width = 68;
|
||||
Item.height = 38;
|
||||
Item.damage = 29;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 10;
|
||||
|
||||
|
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 1.2 KiB |
@@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 44;
|
||||
Item.width = 46;
|
||||
Item.height = 48;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 14;
|
||||
Item.knockBack = 1f;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -15,8 +15,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public int throwCount = 0; // Gives bubbles an order to be fused in
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 44;
|
||||
Item.width = 38;
|
||||
Item.height = 42;
|
||||
Item.damage = 35;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 1.2 KiB |
@@ -18,8 +18,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
Projectile.height = 10;
|
||||
Projectile.width = Projectile.height = 14;
|
||||
Projectile.friendly = true;
|
||||
Projectile.alpha = 255;
|
||||
Projectile.penetrate = 1;
|
||||
@@ -31,7 +30,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
Projectile.rotation = Projectile.velocity.ToRotation();
|
||||
Projectile.velocity *= 1.015f;
|
||||
if (Projectile.alpha > 0)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 210 B |
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.aiStyle = ProjAIStyleID.Yoyo;
|
||||
Projectile.width = Projectile.height = 16;
|
||||
Projectile.width = Projectile.height = 22;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Projectile.alpha = 150;
|
||||
|
||||
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 569 B |
@@ -16,8 +16,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public bool notTheClone => Projectile.Calamity().stealthStrike && Projectile.ai[0] == 0; // If the bomb is the initial thrown stealth strike bomb and not a split
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 14;
|
||||
Projectile.height = 20;
|
||||
Projectile.width = Projectile.height = 38;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 400;
|
||||
|
||||
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 1.1 KiB |
@@ -14,7 +14,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public class SeafoamBubble : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/CoralBubble";
|
||||
public ref float time => ref Projectile.ai[0];
|
||||
public ref float bubbleLevel => ref Projectile.ai[1]; // -1 = small bubble, 0 = fusing bubble, 1 = big bubble
|
||||
public bool startEffects = true; // Spawn effects
|
||||
@@ -22,10 +21,12 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public bool canHit = false; // Only the small bubbles can directly hit enemies
|
||||
public Projectile fuseGoal; // The bubble to fuse with
|
||||
public NPC targeted; // The enemy to home in on as a small bubble
|
||||
|
||||
public override void SetStaticDefaults() => Main.projFrames[Type] = 2;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 28;
|
||||
Projectile.height = 28;
|
||||
Projectile.width = Projectile.height = 32;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 300;
|
||||
@@ -194,18 +195,12 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
float sine = (float)Math.Sin(time * Projectile.scale * 0.275f / MathHelper.Pi);
|
||||
float sizeMult = ((sine + 2) * 0.05f);
|
||||
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Particles/HighResFoggyCircleHardEdge").Value;
|
||||
Texture2D tex2 = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
|
||||
Texture2D tex3 = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomRingThinLarge").Value;
|
||||
Texture2D tex = Terraria.GameContent.TextureAssets.Projectile[Type].Value;
|
||||
Rectangle frame = tex.Frame(1, Main.projFrames[Type], 0, Projectile.scale + sizeMult >= 1.5625f ? 1 : 0);
|
||||
|
||||
Vector2 squash = new Vector2(Utils.Remap(Projectile.velocity.Length(), 2, 6, 1, 0.7f), Utils.Remap(Projectile.velocity.Length(), 2, 6, 1, 2f));
|
||||
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Color.DodgerBlue with { A = 0 }, Projectile.rotation, tex.Size() * 0.5f, squash * (Projectile.scale + sizeMult) * 0.03f, SpriteEffects.None, 0);
|
||||
|
||||
Main.EntitySpriteDraw(tex3, Projectile.Center - Main.screenPosition, null, Color.Turquoise with { A = 0 }, Projectile.rotation, tex3.Size() * 0.5f, squash * (Projectile.scale + sizeMult) * 0.032f, SpriteEffects.None, 0);
|
||||
|
||||
Main.EntitySpriteDraw(tex2, Projectile.Center - Main.screenPosition + (MathHelper.PiOver4.ToRotationVector2() * -11.5f * Projectile.scale), null, Color.White with { A = 0 } * 0.5f, Projectile.rotation, tex2.Size() * 0.5f, squash * (Projectile.scale) * 0.3f, SpriteEffects.None, 0);
|
||||
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, frame.Size() * 0.5f, squash * (Projectile.scale + sizeMult), SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
public override bool? CanCutTiles() => false;
|
||||
|
||||
|
After Width: | Height: | Size: 1.5 KiB |