This commit is contained in:
termigator1359 committed 2019-12-25 23:14:25 -05:00
commit deff727dc7
34 files changed
+315 -174

No files matched your search

+18 -8
View File
@@ -11,24 +11,34 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Air Spinner");
Tooltip.SetDefault("Fires feathers when enemies are near");
Tooltip.SetDefault("Fires feathers when enemies are near\nVery nimble compared to other yoyos");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.Valor);
item.width = 28;
item.height = 28;
item.melee = true;
item.damage = 20;
item.knockBack = 4f;
item.useTime = 22;
item.useAnimation = 22;
item.autoReuse = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.melee = true;
item.knockBack = 4;
item.value = Item.buyPrice(0, 4, 0, 0);
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<AirSpinnerYoyo>();
item.shootSpeed = 14f;
item.rare = 3;
item.autoReuse = false;
item.shoot = ModContent.ProjectileType<AirSpinnerProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.value = Item.buyPrice(gold: 4);
}
public override void AddRecipes()
+18 -7
View File
@@ -11,23 +11,34 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aorta");
Tooltip.SetDefault("Very nimble compared to other yoyos");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.Valor);
item.width = 30;
item.height = 26;
item.melee = true;
item.damage = 25;
item.knockBack = 4.25f;
item.useTime = 22;
item.useAnimation = 22;
item.autoReuse = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.melee = true;
item.knockBack = 4.25f;
item.value = Item.buyPrice(0, 4, 0, 0);
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<AortaYoyo>();
item.shootSpeed = 8f;
item.rare = 3;
item.autoReuse = false;
item.shoot = ModContent.ProjectileType<AortaProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.value = Item.buyPrice(gold: 4);
}
public override void AddRecipes()
+21 -11
View File
@@ -11,24 +11,34 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Chaotrix");
Tooltip.SetDefault("Explodes on enemy hits");
Tooltip.SetDefault("Explodes on enemy hits\nVery nimble compared to other yoyos");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.Yelets);
item.damage = 110;
item.width = 30;
item.height = 26;
item.melee = true;
item.damage = 88; // 110 pre-nerf
item.knockBack = 4f;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 4f;
item.value = Item.buyPrice(0, 80, 0, 0);
item.rare = 8;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<ChaotrixProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<ChaotrixYoyo>();
item.shootSpeed = 14f;
item.rare = 8;
item.value = Item.buyPrice(gold: 80);
}
public override void AddRecipes()
+19 -9
View File
@@ -12,23 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Cnidarian");
Tooltip.SetDefault("Fires a seashell when enemies are near");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.CorruptYoyo);
item.width = 30;
item.height = 26;
item.melee = true;
item.damage = 13;
item.knockBack = 3f;
item.useTime = 25;
item.useAnimation = 25;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 3f;
item.value = Item.buyPrice(0, 2, 0, 0);
item.rare = 2;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<CnidarianProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<CnidarianYoyo>();
item.shootSpeed = 10f;
item.rare = 2;
item.value = Item.buyPrice(gold: 2);
}
public override void AddRecipes()
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.rare = 10;
item.Calamity().postMoonLordRarity = 21;
item.value = Item.buyPrice(2, 50, 0, 0);
item.value = Item.buyPrice(platinum: 2, gold: 50);
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
+17 -9
View File
@@ -12,25 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Quagmire");
Tooltip.SetDefault("Fires spore clouds");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.HelFire);
item.width = 30;
item.height = 36;
item.melee = true;
item.damage = 52;
item.knockBack = 3.5f;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 3.5f;
item.value = Item.buyPrice(0, 60, 0, 0);
item.rare = 7;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<QuagmireProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<QuagmireYoyo>();
item.shootSpeed = 10f;
item.rare = 7;
item.value = Item.buyPrice(gold: 60);
}
public override void AddRecipes()
+19 -9
View File
@@ -12,23 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Shimmerspark");
Tooltip.SetDefault("Fires stars when enemies are near");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.Chik);
item.width = 50;
item.height = 36;
item.melee = true;
item.damage = 36;
item.knockBack = 3.5f;
item.useTime = 25;
item.useAnimation = 25;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 3.5f;
item.value = Item.buyPrice(0, 36, 0, 0);
item.rare = 5;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<ShimmersparkProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<ShimmersparkYoyo>();
item.shootSpeed = 12f;
item.rare = 5;
item.value = Item.buyPrice(gold: 36);
}
public override void AddRecipes()
+19 -9
View File
@@ -11,23 +11,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Oblivion");
Tooltip.SetDefault("Fires brimstone lasers when enemies are near");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.TheEyeOfCthulhu);
item.width = 28;
item.height = 38;
item.melee = true;
item.damage = 41;
item.knockBack = 4f;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 4f;
item.value = Item.buyPrice(0, 60, 0, 0);
item.rare = 7;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<TheEyeofCalamitasProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<OblivionYoyo>();
item.shootSpeed = 14f;
item.rare = 7;
item.value = Item.buyPrice(gold: 60);
}
}
}
+19 -9
View File
@@ -12,23 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("The God's Gambit");
Tooltip.SetDefault("Fires a stream of slime when enemies are near");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(3291);
item.width = 40;
item.height = 26;
item.melee = true;
item.damage = 28;
item.knockBack = 3.5f;
item.useTime = 21;
item.useAnimation = 21;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 3.5f;
item.value = Item.buyPrice(0, 12, 0, 0);
item.rare = 4;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<TheGodsGambitProjectile>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<GodsGambitYoyo>();
item.shootSpeed = 10f;
item.rare = 4;
item.value = Item.buyPrice(gold: 12);
}
public override void AddRecipes()
+19 -9
View File
@@ -11,23 +11,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Pandemic");
Tooltip.SetDefault("Fires plague seekers when enemies are near");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.TheEyeOfCthulhu);
item.width = 30;
item.height = 32;
item.melee = true;
item.damage = 100;
item.knockBack = 2.5f;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 2.5f;
item.value = Item.buyPrice(0, 80, 0, 0);
item.rare = 8;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<ThePlaguebringerYoyo>();
ItemID.Sets.Yoyo[item.type] = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<PandemicYoyo>();
item.shootSpeed = 14f;
item.rare = 8;
item.value = Item.buyPrice(gold: 80);
}
}
}
+18 -11
View File
@@ -12,26 +12,33 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Riptide");
Tooltip.SetDefault("Sprays a spiral of aqua streams in random directions");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.TheEyeOfCthulhu);
item.damage = 18;
item.width = 30;
item.height = 44;
item.value = Item.buyPrice(0, 2, 0, 0);
item.rare = 2;
item.knockBack = 1f;
item.channel = true;
item.melee = true;
item.useStyle = 5;
item.useAnimation = 25;
item.damage = 18;
item.knockBack = 1f;
item.useTime = 25;
item.shoot = ModContent.ProjectileType<WhirlpoolProjectile>();
item.shootSpeed = 18f;
item.useAnimation = 25;
item.autoReuse = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
ItemID.Sets.Yoyo[item.type] = true;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<RiptideYoyo>();
item.shootSpeed = 18f;
item.rare = 2;
item.value = Item.buyPrice(gold: 2);
}
public override void AddRecipes()
+19 -9
View File
@@ -9,26 +9,36 @@ namespace CalamityMod.Items.Weapons.Melee
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("YinYo");
DisplayName.SetDefault("Yin-Yo");
Tooltip.SetDefault("Fires light or dark shards when enemies are near\n" +
"Light shards fly up and down while dark shards fly left and right");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.Chik);
item.width = 26;
item.height = 24;
item.melee = true;
item.damage = 34;
item.knockBack = 3.5f;
item.useTime = 25;
item.useAnimation = 25;
item.useStyle = 5;
item.channel = true;
item.melee = true;
item.knockBack = 3.5f;
item.value = Item.buyPrice(0, 36, 0, 0);
item.rare = 5;
item.autoReuse = true;
item.useStyle = 5;
item.UseSound = SoundID.Item1;
item.channel = true;
item.noUseGraphic = true;
item.noMelee = true;
item.shoot = ModContent.ProjectileType<YinYoyo>();
ItemID.Sets.Yoyo[item.type] = true;
item.shootSpeed = 12f;
item.rare = 5;
item.value = Item.buyPrice(gold: 36);
}
public override void AddRecipes()
@@ -7,25 +7,29 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class AirSpinnerProjectile : ModProjectile
public class AirSpinnerYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Air Spinner");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 6f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 300f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.Valor);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1.05f;
projectile.height = 16;
projectile.penetrate = 7;
projectile.extraUpdates = 1;
projectile.scale = 1.05f;
projectile.friendly = true;
projectile.melee = true;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
aiType = ProjectileID.Valor;
projectile.penetrate = -1;
projectile.extraUpdates = 1;
}
public override void AI()
@@ -79,8 +83,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D tex = Main.projectileTexture[projectile.type];
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f);
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1);
return false;
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 309 B

@@ -1,35 +1,38 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class AortaProjectile : ModProjectile
public class AortaYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aorta");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 11f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.Valor);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.height = 16;
projectile.penetrate = 7;
projectile.extraUpdates = 1;
projectile.scale = 1f;
projectile.friendly = true;
projectile.melee = true;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
aiType = ProjectileID.Valor;
projectile.penetrate = -1;
projectile.extraUpdates = 1;
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D tex = Main.projectileTexture[projectile.type];
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f);
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1);
return false;
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -7,22 +7,29 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class ChaotrixProjectile : ModProjectile
public class ChaotrixYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Chaotrix");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 14f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 290f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 16f;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.Yelets);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1.15f;
projectile.height = 16;
projectile.penetrate = 10;
projectile.scale = 1.15f;
projectile.friendly = true;
projectile.melee = true;
aiType = 549;
projectile.penetrate = -1;
projectile.extraUpdates = 1;
}
public override void AI()
@@ -43,8 +50,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D tex = Main.projectileTexture[projectile.type];
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f);
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1);
return false;
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 298 B

After

Width:  |  Height:  |  Size: 298 B

@@ -8,22 +8,25 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class CnidarianProjectile : ModProjectile
public class CnidarianYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Cnidarian");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 190f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 11f;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.CorruptYoyo);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1.15f;
projectile.height = 16;
projectile.penetrate = 6;
projectile.scale = 1.15f;
projectile.friendly = true;
projectile.melee = true;
aiType = 542;
projectile.penetrate = -1;
}
public override void AI()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 356 B

@@ -7,22 +7,25 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class TheGodsGambitProjectile : ModProjectile
public class GodsGambitYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("God's Gambit");
DisplayName.SetDefault("The God's Gambit");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 320f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 14f;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.Kraken);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1.15f;
projectile.height = 16;
projectile.penetrate = 6;
projectile.scale = 1.15f;
projectile.friendly = true;
projectile.melee = true;
aiType = 554;
projectile.penetrate = -1;
}
public override void AI()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 294 B

@@ -7,22 +7,28 @@ using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class TheEyeofCalamitasProjectile : ModProjectile
public class OblivionYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Oblivion");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 360f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 16.5f;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1.1f;
projectile.height = 16;
projectile.penetrate = -1;
projectile.scale = 1.1f;
projectile.friendly = true;
projectile.melee = true;
aiType = 555;
projectile.penetrate = -1;
}
public override void AI()
@@ -81,8 +87,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D tex = Main.projectileTexture[projectile.type];
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f);
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1);
return false;
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 264 B

+1 -2
View File
@@ -1,5 +1,4 @@
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
@@ -8,22 +8,25 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class ThePlaguebringerYoyo : ModProjectile
public class PandemicYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Pandemic");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = -1f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 340f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 16.5f;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1f;
projectile.height = 16;
projectile.penetrate = -1;
projectile.scale = 1f;
projectile.friendly = true;
projectile.melee = true;
aiType = 555;
projectile.penetrate = -1;
}
public override void AI()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 287 B

@@ -6,22 +6,25 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class QuagmireProjectile : ModProjectile
public class QuagmireYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Quagmire");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 12f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 275f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 15f;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.HelFire);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 1.25f;
projectile.height = 16;
projectile.penetrate = 8;
projectile.scale = 1.25f;
projectile.friendly = true;
projectile.melee = true;
aiType = 553;
projectile.penetrate = -1;
}
public override void AI()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 328 B

After

Width:  |  Height:  |  Size: 328 B

@@ -4,25 +4,26 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class WhirlpoolProjectile : ModProjectile
public class RiptideYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Riptide");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7.5f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 180f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 12.5f;
}
public override void SetDefaults()
{
projectile.aiStyle = 99;
projectile.width = 16;
projectile.height = 16;
projectile.scale = 0.75f;
projectile.scale = 1f;
projectile.friendly = true;
projectile.melee = true;
projectile.alpha = 150;
projectile.penetrate = -1;
projectile.timeLeft = 99;
projectile.melee = true;
aiType = ProjectileID.Amarok;
projectile.CloneDefaults(ProjectileID.CorruptYoyo);
}
public override void AI()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 292 B

@@ -7,22 +7,25 @@ using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee.Yoyos
{
public class ShimmersparkProjectile : ModProjectile
public class ShimmersparkYoyo : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shimmerspark");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 16f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 275f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 17f;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.Chik);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 0.9f;
projectile.height = 16;
projectile.penetrate = 8;
projectile.scale = 1f;
projectile.friendly = true;
projectile.melee = true;
aiType = 546;
projectile.penetrate = -1;
}
public override void AI()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 557 B

+8 -5
View File
@@ -11,18 +11,21 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Yinyo");
DisplayName.SetDefault("Yin-Yo");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 14f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 275f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 17f;
}
public override void SetDefaults()
{
projectile.CloneDefaults(ProjectileID.Chik);
projectile.aiStyle = 99;
projectile.width = 16;
projectile.scale = 0.9f;
projectile.height = 16;
projectile.penetrate = 5;
projectile.scale = 1f;
projectile.friendly = true;
projectile.melee = true;
aiType = 546;
projectile.penetrate = -1;
}
public override void AI()